Can confirm it's a shitty metric. I once saved the company I was working at few millions by changing one line of code. And it took 3 days to find it. And it was only 3 characters changed.
That's the curse and blessing of our profession: efficiency of work is almost impossible to measure once you go beyond very simple code.
You can feel like a hero for changing three characters and finally fixing that nasty, or you can feel like an absolute disgrace for needing days to find such a simple fix. Your manager employs the same duality of judgement
I feel like a hero in this particular case, it was a bug in a code that was written when I was still too young to even read. And no one knew how to run it. We didn't have access to the pipelines so no one knew how to build it and how to run it. It was a very obscure hybrid of C and PHP. I basically had to be the compiler, I went line by line through the whole codebase, searching for the code path that caused the error. Sounds easy enough, right? Just CTRL+click in your IDE. Wouldn't it be a shame if someone decided that function names should be constructed as a string using at least 20 levels of nesting where each layer adda something to the function name and then it's finally called. TL;DR it was a very shitty code.
-2 on your paycheck!
I wrote a program that does nothing but busy loop on all cores. stylist_trend/Linux is my favourite OS.
What you refer to as Linux, is actually called Forkbomb/Linux, or as I've recently taken to calli-[Process Killed]
Yes. Also the required clock cycles depends a lot on individual CPU architectures.
For example division: Some CPUs have hardwired logic to compute the division operation directly on circuit level. Others are basically running a for loop with substraction. The difference in required clock cycles for a division operation can then be huge.
Another example: is it a scalar or superscalar CPU?
A rather obvious example: the bit width of the CPU. 32 bit systems compute 64 bit data much more inefficiently than 64 bit systems.
Then there is other stuff like branch prediction, or system dependencies like memory bus width and clock, cache size and associativity etc. etc..
Long story short: When evaluating the performance of code, multiple performance metrics have to be considered simultaneously and prioritized according to the development goals.
Lines of code is usually a veeery bad metric. (I sometimes spend hours just to write a few lines of code. But those are good ones then.) Cycles per code segment is better, but also not good (except you are developing for a very specific target system). Do benchmarking, profiling, run it on different systems and maybe design individual performance metrics based on your expectations.
No, he doesn't. He suggests that there are Linux systems with no GNU code, like one I'm replying from, and whether "no" meant "no SLOC" or "no instructions spent executing" or "no packages" absolutely doesn't matter.
There's more truth to that than most people realize: Linux is only one kernel option in Debian:
Debian: "Libre Operating System"
FTFY
Lifree
Bruh
Been running a Linux based os for coming up on two years. I still definitely do not care about this.
It shows that Unix’s implementation of echo uses 10 lines of code, other *nixen use 60 to 100, and gnu uses 250. The implication being, I suppose, that GNU has such a high line of code count because it’s very verbose or padded
Not only comments and padding, but also features/flags/options in GNU echo
Implementation is the actual code with the logic that does the thing you want it do, as opposed to the command, which is how you tell the system what it should do.
The command can be the same on multiple OSs, but the implementation can be different.
In case of Linux and the coreutils (which are the basic programs you need beside the kernel to make a functioning system, stuff like mkdir) the most common implementation of all the coreutils is the one made by GNU. Stallmann did a lot of work on that so he wants credit for making a big part of the OS.
That's how they get more lines of code.
I honestly never cared about this, it's the first time I write something about that, but any Linux-based OS is made of countless different software. What limits the number of names to two? Why can't I call my OS OpenVPN/Gnu/Linux, then why not Wayland/OpenVPN/Gnu/Linux? That would be crazy. A single recognizable name is what makes it.
Furthermore by definition an operating system is an interface between userspace applications to the hardware, hence the operating system should be just Linux.
Not shitting on GNU at all, but this push for calling the OS Gnu/Linux seems futile
Furthermore by definition an operating system is an interface between userspace applications to the hardware, hence the operating system should be just Linux.
It gets more complicated with microkernels, though because you literally can't run anything without some important processes running in userspace.
That's a good point, thank you for your time
I call GNU
I mean I don't think there must be a heated debate about it you know. You can call it GNU because you probably value more GNU, some others call it GNU/Linux and some Linux. It's okay as long as it's understandable
True
This is why Windows users don’t switch.
I used Linux for many years, I still run it for my personal projects. I'm sure it's not everyone but damn the community is toxic as hell to newbies. If something doesn't work it's your fault. Don't know what flatpak is? You're an idiot. How do I use X? Don't use X it sucks but also I won't provide alternatives. Linux just works now open up terminal and type these flags to mount your external drive correctly so other programs can see it.
I love the power and customization but it's a confusing world at times with unhelpful people.
I mean X does suck. Unfortunately, it's still the better choice sometimes. At least Wayland is clearly better than the other X.
This has been pretty much my experience with every time I've gotten the "Linux" itch...
It's so bad that most of the time googling doesn't help because the top twenty results are just someone else getting shit on for asking the same question.
Some guy got mad at me for referring to linux as GNU/Linux in a post clearly making fun of him for being a huge shit head to someone earnestly trying to do something on Linux and failing. Never address any of the criticisms, just called me an idiot and a liar. SOME linux users are their own worst enemy if they want wider adoption.
No! No clarification, you must already know how it works.
holds up linux os without gnu software WHATS THIS THEN HUH?!
GNL (GNU isn't Linux) / Linux
Gnu+Linux+Arch+KDE
So say GNU instead of GNU linux kek
Why? Both parts of GNU/Linux are important. Open source is all about collaboration. It doesn't need to conform to the neat capitalist OS ideas with one monolithic corporate creator and one user-friendly name.
Some people call just linux so.... Also GNU is easier to say than GNU/Linux right? Thats the same argument made by people who say just "linux".
Open source is all about collaboration
Free software is all about freedom. Nothing wrong with any of them tho
busybox, musl and llvm enter the room
Take a look at Alpine, Void, and (most importantly) Chimera Linux.
adjunction space moment
And hardware can't talk to it. Has it ever occurred to you that there's more at stake here? That companies feel the need to lock away hardware in order to drive their profit line.
At least GNU has something interesting to say about computer science. And for what it's worth, it's telling to know that you woild rather disparage GNU rather than the purposeful decisions made by executives and manufactuers to render both hardware and software undocumented and subjugating.
But no! That's "unfixable" and we need to learn how to "deal with it." God forbid anyone makes a ruckus about it. Freedom for me but not for thee in this fast paced economy.
You picked the status quo and are now complaining that people reject the status quo.
I feel like you misunderstood. Operating system has many functions, one of the most important ones is talking to hardware. GNU cannot do that because that's the kernel's job. And the kernel is Linux. So they claim they're an operating system but can't do the most fundamental thing an operating system needs to do.
Well by that token Linux can't claim to be an OS either, since as your own comment mentions it only performs one function of an OS. It's important that it can talk to hardware but it's not an OS if it can't do anything else.
So much corporate bootlicking in this thread. People don't seem to know what GNU and Linux actually stand for and the importance of the free software movement, all they see is a fancy Windows alternative where they can run the same stupid proprietary programs and in the end contribute to the loss of software freedom just as much as a useless Microsoft consumer. People here are even openly hostile to GNU despite it being possibly the most important component in ensuring that free software remains free. I feel like our operating systems are being hijacked by little children with no responsibility for which GNU/Linux only serves mundane, corporately induced needs, and they don't see the political and idealistic dimension at all.
More like GN vs Linus
I'd like to interject for a moment........ STALLMAN, Richard
@lemmy.world
Hint: :q!
Community rules (click to expand)
sudo in Windows.We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
go to feed...
@lemmy.world
Hint: :q!
Community rules (click to expand)
sudo in Windows.We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
go to feed...
save