Can't determine if an array is empty

>Can't determine if an array is empty
>O(n) strlen
>no hashmaps
>no package manager
>on critical life support by legacy codebase maintenance
>Somehow only shilled by beginners and politically charged nocoders
What went so wrong?

Attached: 398-3984086_history-of-c-programming-language-circle.jpg (920x862, 75.99K)

Other urls found in this thread:

logicalshift.org.uk/musings/oo-typing.html
ziglang.org/
twitter.com/AnonBabble

>Can't determine if an array is empty
Do it yourself
>O(n) strlen
Do it yourself
>no hashmaps
Do it yourself
>no package manager
Do it yourself
>on critical life support by legacy codebase maintenance
And that's a good thing

>>Can't determine if an array is empty
you are a retard
>>O(n) strlen
you are a retard
>>no hashmaps
you are a retard
>>no package manager
dont need it
>>on critical life support by legacy codebase maintenance
you never worked with code a day in your life

>>Somehow only shilled by beginners and politically charged nocoders

>coping retards LARPing as a programmer comes to rescue C
Why is this so common?

>Filtered by easy boomer language

it's cool because you learn a lot about how computers work. Also it's the second most popular language on the TIOBE index but whatever

>C is how computer works
It's a fake news. If you want to learn hardware, learn HDLs like Verilog.

Nah bro I'm fine, thanks anyway

Understandable. Have a good day.

>faggots

No

>you learn a lot about how computers work
Not really

>t's cool because you learn a lot about how PDP-11s work.
FTFY

>cant determine if array is empty
struct vector{
int size;
int* array;
}

if (opretard.size == 0){
printf("op is retarded")
}

>no hashmap
>google "C single header hashmap"
>oh this guy on github made one and its free
>download paste in to project
wow i have hashmap in C now and he did it under a permissive license!
you have to do this in C++ too depending on the data structure and if its not included in the standard library or boost

>no O(n) strlen
has this even been an issue?
i have never ever had strlen been a performance bottleneck
"damn my string is a million characters long and my performance is getting worst because i strlen all the time" if this is the case you will have to create your own tracker of the size of the string which is very easy! Keep it null terminated but have an int size with it. typically done in a struct.

>no package manager
okay
>on critical life support
wrong new programs are written in C everyday! basically anything embedded is written in C! it has full support from the manufactures of the chips, ie libraries, code examples, "start up code", etc or C with C++ features ie C++ with a linter removing all the retarded shit in C++ that would be terrible to use in an embedded program.
>Somehow only shilled by beginners
I like C i really do. i wrote C code in my previous job as a test engineer and really enjoyed it. Now i just use labview but i really miss writing C.
>and politically charged nocoders
thats mostly because new thing bad old thing good thought process
you are the typical old thing bad new thing good type of shill. you arent much better

>int* array;
lmao

Attached: 05ozr0xcpar41.png (1920x1080, 770.25K)

>makes Rustards, Carboniggers and everyone else seethe
Holy C. I kneel

Worse is better.

>basically anything embedded is written in C
C is too bloated for 8 bit microcontrollers with a k of ram. it's better to use assembly for anything serious

>What went so wrong?
Java and the rest of the "modern" languages introducing hidden execution complexity with things like garbage collection, spooky control flow, and preprocessor witchcraft.

Choose a little Zig Lang and upset the lose type established order.

logicalshift.org.uk/musings/oo-typing.html
ziglang.org/

Attached: zig-logo.png (386x91, 3.53K)

Don't start shilling Zig until they aren't releasing updates that break all previously written code, and the compiler is faster than the slowest C compiler.

depends
in extreme cases you might need to write assembly but 99% of anything written is arent on these micros. the cheapest micros on digikey that you can actually order have like 20k of ram and they go for a quarter. i know you can buy 1 cent processors but they have basically 3 pins and arent very useful for most thing.

in general you save very little cost with added engineering time PLUS the extremely low cost chips probably doesnt have the peripherals you need and based the application you could get away with using C if your program is very simple. basically just something that does some spi and basic gpio shit.

C and Assembly are equivalent depending on the compiler configuration.