[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why is the Linux kernel written in C and not Assembly?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 54
Thread images: 5

File: linus-torvalds.jpg (16KB, 221x336px) Image search: [Google]
linus-torvalds.jpg
16KB, 221x336px
Why is the Linux kernel written in C and not Assembly?
>>
>>59941587
Because Linus isn't an autist
>>
>>59941587
C is portable.
He wanted it to be run on many architectures.
>>
>>59941587
Linus is a nigger-tier programmer, he has not even finished writing his compiler yet and got beat by Stallman.
>>
>>59941587
you need a higher abstraction for assembly.
C translates to assembly and that translates to binary opcodes
>>
>>59941587
Why is Linux written in C and not Java?
>>
>>59941587
Imagine having to rewrite the entire kernel for every seperate architecture and how fucking worthless the minute performance boost would be in comparison to the tears of extra development time.
>>
>>59941646
https://benchmarksgame.alioth.debian.org/u64q/java.html
>>
>>59941646
because java is an island you moron
>>
File: poo.png (18KB, 112x91px) Image search: [Google]
poo.png
18KB, 112x91px
>>59941646
>>
>>59941587
It's written in C + assembly
>>
>>59941740
C++ASM.NET
>>
File: 1475828501899.png (41KB, 1145x370px) Image search: [Google]
1475828501899.png
41KB, 1145x370px
>>59941708
You don't need any performance above java.
>>59941721
Java is the best language ever made. Only neo-/g/ denies. True /g/ knows java is the best.
>>59941733
>muh poo in loo
Not an argument.
>>
>>59941623
Has Linus even started a compiler?

>>59941646
Because Java is too slow for real-time.

>>59941740
Assembly is a subset of C.
>>
>>59941772
>muh speed
you don't need speed above java. Only autistic NEETs want more speed than java.
>>
>>59941768
>You don't need any performance above java.
Wrong. There's a computer version of Axis & Allies written in Java and the AI takes literally 10 minutes to make it move on max difficulty.
>>
>>59941768
Scala is superior to java in every way.
>muh industry standturds
>>
>>59941772
>C
>language for programming bugs and undefined behaviours
>>
>>59941794
Because of it's shitty implementation. You don't need any speed above Java.
>>59941807
>Some shitlang no one uses
Into the trash it goes.
>>
>>59941813
>tfw to smart too not understand pointers
>>
>>59941835
>Because of it's shitty implementation. You don't need any speed above Java.
I never had that problem with games written in C. Let me guess, the "proper implementation" of Java code means writing a library in C and calling it from Java?
>>
>>59941841
>implying only pointers are subject to undefined behaviour
>>
>>59941865
>implying undefined behavior isn't just syntactic sugar for pointer abuse
>>
Linus doesn't hate himself enough
>>
>>59941877
>implying (x + 1) is not an undefined behaviour in C
>>
>>59941835
> Because of it's shitty implementation.
Most of software is shitty implemented and you know it
>>
>>59941646
Java doesn't have pointers.
>>
>>59941924
>pointers
Useless.
>>59941909
t. autistic neet who cares about "bloat"
>>
>>59941946

Java has a really bad reputation that may or may not be deserved. I don't really care though since there are plenty of other languages that don't have that stigma.
>>
>>59941987
>bad reputation
Among Ctards. Java is best language, even /g/ knows it.
>>
>>59942022
>Java is best language
C# is better
>>
>>59941987
Male has a really bad reputation that may or may not be deserved. I don't really care though since there are plenty of other genders that don't have that stigma.
>>
>>59942039
>C# is better
No it isn't. It's just microsoft's java knockoff. Just use Java.
>>
File: catmeme.jpg (5KB, 249x249px) Image search: [Google]
catmeme.jpg
5KB, 249x249px
>>59942099
>>59942039

Great arguments guys
>>
>His entire operating system isn't an application-specific integrated circuit

>He doesn't re-manufacture his silicon every time he updates a line of code

It's like you hate speed.
>>
>>59942128
Yes but I have better digits.
>>
>>59941902
>undefined type of x
>bitches about UB
Found the pajeet
>>
>>59941861
No
Write it in haskell include it in C include it in c++ include it in an android studio project code the main in java and export as apk.
>>
>>59942243
>Haskell
You mean that meme-tier language no one uses?
>>
>>59942231
>undefined type
>pajeet doesn't know int is the default type in C
>>
>>59941646
Because Linus poos in a loo
>>
>>59941607
*Because Linus isn't a fucking retard
>>
>>59941768
Pajeet confirmed
>>
>>59942336
>abusing default types
No, Pajeet, you are the Pajeet.
>>
>>59941587
why does this nigga look exactly like sam hyde
>>
>>59941587
You literally don't know how computers work if you don't know why.
>>
>>59941587
portability
>>
>>59941587
because C is portable u stupid piece of shit
>>
>>59941587
because Linus is fucking CIA nigger
>>
>>59941587
It's written in both, because Linus is not a pleb and just uses the best tool for each job.
>>
>>59941587

1. Easier to write bug-free C than bug-free Assembly
2. Portability. Linux runs on everything under the sun thanks to a reasonably sized base of C code that works everywhere. Things like CPU scheduling and I/O scheduling don't need to be CPU-specific, necessarily.

>>59941646

1. Because that would require making a fucking VM in the kernel to run the kernel (an idea that only makes sense in thought experiments).
2. Because Linux is several years older than Java. Java first came out on May 23, 1995. Linux came out in 1991, and the first release of Debian was in 1993. Red Hat even came out 10 days earlier than Java, on May 13, 1995.
>>
>>59941646
Why is Linux writtten in C and not Python?
>>
File: IMG_2033.jpg (88KB, 1333x900px) Image search: [Google]
IMG_2033.jpg
88KB, 1333x900px
>>59942288
DELET THIS
>>
>>59944789

Same reasons for not being written in Java as detailed here: >>59944604

Except version 1.0 of Python came out in 1994, not 1995.
Thread posts: 54
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.