What's the point of doing this in "Zig" instead of C, the traditional choice for this kind of thing?
Fun?
Minimal x86 Kernel Zig
51–60 of 71 posts
Re: Minimal x86 Kernel Zig
#52Earlier quoted context omitted.
What's the point writing another kernel in C ???
Considering that we are talking about experimental toys which have lower odds of seeing production than of you winning a national lottery jackpot, the point of writing it in C would be the same as the point of writing it in anything else - IOW, the kernel is the objective, not the language used to write it. .
Re: Minimal x86 Kernel Zig
#53Earlier quoted context omitted.
What's the point writing another kernel in C ???
Considering that we are talking about experimental toys which have lower odds of seeing production than of you winning a national lottery jackpot, the point of writing it in C would be the same as the point of writing it in anything else - IOW, the kernel is the objective, not the language used to write it. .
Re: Minimal x86 Kernel Zig
#54What's the point of doing this in "Zig" instead of C, the traditional choice for this kind of thing?
Re: Minimal x86 Kernel Zig
#55Why to spread confusion and call it bare metal when it's run under QEMU? Then it's not bare metal at all. In order to be run on bare metal it's needing another bootloader which the documentation only barely mentions. More on the naming: why to call it kernel?
You still need a bootloader to run the Linux kernel.
Re: Minimal x86 Kernel Zig
#56Earlier quoted context omitted.
Would you say its always slower, or always faster?
No. I will continue my crusade against blanket statements about performance.
The rest, you can google yourself, but in short, sorry to tell you that it is sometimes faster. Often, sometimes, some portion of the time.
Re: Minimal x86 Kernel Zig
#57Earlier quoted context omitted.
Considering that we are talking about experimental toys which have lower odds of seeing production than of you winning a national lottery jackpot, the point of writing it in C would be the same as the point of writing it in anything else - IOW, the kernel is the objective, not the language used to write it. .
If you read yourself you'll realize your answer i highly toxic, quiet honestly completely irrelevant, discouraging other people from doing what they like. I would get rid of people with your attitude, you are the kind of problem I don't want to have to deal with and more than that, I don't want to have juniors have to deal with you. Please realize that you had your chance and you played it. Nobody ow you an explanati…
drnick1 says why "Zig" not C? [I took the quotation marks as dismissive of Zig, but I could be misreading that]
6r17 says why do it in C?
lelanthran says the language is mostly irrelevant, it's a fun experiment.
6r17 blows off the handle and starts calling people toxic and being really unpleasant.
Nothing in this comment chain seems to justify even 1/10th of the vitriol espoused.
Re: Minimal x86 Kernel Zig
#58What's the point of doing this in "Zig" instead of C, the traditional choice for this kind of thing?
Re: Minimal x86 Kernel Zig
#59Re: Minimal x86 Kernel Zig
#60Why to spread confusion and call it bare metal when it's run under QEMU? Then it's not bare metal at all. In order to be run on bare metal it's needing another bootloader which the documentation only barely mentions. More on the naming: why to call it kernel?