A
A
axtyt2014-02-13 10:51:39
Debian
axtyt, 2014-02-13 10:51:39

What programming language is used to create their "OS" on Debian?

What programming language is used to create their "OS" on Debian?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vlad Zhivotnev, 2014-02-14
@axtyt

You don't seem to fully understand what a Debian based OS is. These are at least 3 OS families - Hurd, kFreeBSD and GNU/Linux.
If we talk about GNU / Linux Debian (which you mean, most likely) - then it is written in everything. The core is in rather specific C, userspace, mainly in C / C ++, python, perl. Well, a bunch of spaghetti in the form of shell scripts to make it all work together (well, at least until they switched to systemd).
If we talk about "how to build your own distribution kit based on GNU / Linux Debian" (this is also allowed, Ubuntu appeared that way), then there is no need for special knowledge in programming - just sit there, put the bags into the config, and write it to USB /CD.
Literature - The Linux Kernel Module Programming Guide (if we are talking about the kernel), any book about python / perl / C, if we talk about userspace. However, do not forget about "mostly" - they write something on everything.
No one has written anything on ACM for a long time, except for C-compilers. Python compilers and interpreters are already written in C.

N
Nikolai Vasilchuk, 2014-02-13
@Anonym

Popov got to Debian?

S
sergeevav82, 2014-02-13
@sergeevav82

Probably the universal answer will be machine, so to speak, hardcore on asme.

M
marazmiki, 2015-04-16
@marazmiki

For some reason I was reminded of formsets .
And one more detail: here is this code (regardless of formsets)

@register.assignment_tag(takes_context=True)
def add_mark(context):
    mark = Mark.objects.get(pupil=context['pupil'],
                            lesson=context['lesson'])
    form = MarkForm(initial={'value': mark.value},
                    prefix=mark.id)
    return form

it's better to rewrite it like this:
@register.assignment_tag(takes_context=True)
def add_mark(context):
    request = context['request']
    mark = Mark.objects.get(pupil=context['pupil'],
                            lesson=context['lesson'])
    form = MarkForm(request.POST or None, prefix=mark.id,
                    instance=mark)
    return form

namely, to pass the object associated with it to the form (instance argument). Well, pass POST data to the form, if any.

U
un1t, 2015-04-16
@un1t

It is not clear why the form is put in the assignment_tag
Usually this code is located in the view and when post is saved form.save ()
In any case, there must be a view where the post request is sent from this form.
And there you need to initialize this form, taking into account the data from request.POST, and save form.save()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question