Goto

If goto is so evil then why does the linux kernel have 13k of em?

Attached: IMG_20180726_205127.jpg (533x698, 54K)

Other urls found in this thread:

haiku-os.org/
twitter.com/SFWRedditImages

Shit kernel has shit code, wow.

how else would I go to another location in the code?

By finishing an instruction and moving to the next one.

You can use it in a bad and confusing way, and in a logical and structured way. Disallowing its usage because you are scared of people using it wrong is absolutely brainlet tier and is the symptom of a much bigger problem (You are working with idiots).

It's actually a really useful tool, just it can easily fuck things up.

then how do you explain high level languages with garbagers

And all that usage completely fucks up compiler optimizations for those chunks of code so you sacrificed that for being a smartass.

Gee I don't know OP. Maybe because Linux is clusterfuck of patches and shitty hacks thrown together with zero fucks given to design philosophy and quality control??

Attached: 1200px-Gnulinux.svg.png (1200x1363, 290K)

t. winbaby

is there a well designed kernel out there?

Windows has even more gotos.
seL4

this is the best designed kernel there is, full proof
literally a superfood

Attached: best.jpg (2048x1536, 632K)

Compilers only care about program logic. They don't care how you go about doing it. If you create something similar to a for loop using goto statements, it will be optimised the same. Anything that doesn't is a garbage compiler.

haiku-os.org/
Enjoy

You could argue that it is a bit more productive to not have to worry about memory management. Especially if an issue occurs and you have to worry about memory management of code you didn't write. It is a trade off.

[citation needed]
In fact, compilers are smart enough to "hoist"/duplicate code from the goto target and make an inline copy if they determine it would be better.

/thread

Anyone who disagrees with this has likely never shipped a product.

goto isn't bad, every loop is based on goto
but when you use goto instead of for or while you're gonna miss out on compile optimizations
t. know fuckall about compilers, don't even study CS

abandonware?

Attached: its dead jim.png (1735x886, 543K)

Plan 9 has a well designed monolithic kernel.
seL4 is a well designed microkernel.

They obviously reached their goal sooner than expected, but don't want people to know it yet.

Pretty clever.

what exactly does haiku offer over my debian testing?

>what is Amiga

Are you browsing on a phone?
Development activity is shown just below.

Attached: 18.07.26-22.28_sel_maim.png (958x289, 62K)

no harry potter software

>he has to duplicate code everytime he wants to use it

forgot pic

Attached: 545464545.png (515x696, 295K)

>lacks memory protection
A system with problematic kernel

that's not an argument to choose a completely different OS.
that's an argument to move from debian to devuan.

>memory managment
>not worrying about fucking up
the same reasoning applies to goto usage