What’s with people complaining about the C standard?

|
lanciagreggori 2022-08-28 05:47:52
yabadaba doo 2022-08-28 05:46:06
yeah i just discovered been procrastinating and reading it

Read Life with UNIX

yabadaba doo 2022-08-28 05:48:17
lanciagreggori 2022-08-28 05:47:52
Read Life with UNIX

yes please, any good/iconic funny/important cs papers please let me know

capezotte 2022-08-28 05:48:39
yabadaba doo 2022-08-28 05:47:07
if [ls] thats not good, but if [ ls ] works

that’s like a LISPer complaining about how commas are important in C

lanciagreggori 2022-08-28 05:48:54
yabadaba doo 2022-08-28 05:48:17
yes please, any good/iconic funny/important cs papers please let me know

Life with UNIX is like the prequel to the haters handbook, they even reference it at least one time

yabadaba doo 2022-08-28 05:48:54
commas?
yabadaba doo 2022-08-28 05:49:04
wait what
yabadaba doo 2022-08-28 05:49:08
as opposed to what?
capezotte 2022-08-28 05:50:40
yabadaba doo 2022-08-28 05:49:08
as opposed to what?

on lisp commas to separate arguments are optional

yabadaba doo 2022-08-28 05:50:53
capezotte 2022-08-28 05:50:40
on lisp commas to separate arguments are optional

so in lisp i could do like f(xyz)?

capezotte 2022-08-28 05:51:10
(f x y z) or (f x, y, z)
capezotte 2022-08-28 05:51:45
[ is ultimately a command, a badly named one, but a command
capezotte 2022-08-28 05:51:53
not a special operator
yabadaba doo 2022-08-28 05:52:55
capezotte 2022-08-28 05:51:10
(f x y z) or (f x, y, z)

itd be cool if languages gave the option to swap character in the soruce code

yabadaba doo 2022-08-28 05:53:03
and then you just give a .option file or smtn
capezotte 2022-08-28 05:53:37
this is how you get stephen bourne’s weird sh source code in the original version
yabadaba doo 2022-08-28 05:54:11
capezotte 2022-08-28 05:53:37
this is how you get stephen bourne’s weird sh source code in the original version

yes, i always forget, options = bad

yabadaba doo 2022-08-28 05:54:15
unironically
capezotte 2022-08-28 05:55:04
literally turning C into Pascal with the power of macros
yabadaba doo 2022-08-28 05:56:44
i had to use a weird pascal variant in hs, good times
yabadaba doo 2022-08-28 05:59:49
but imo c syntax is literally perfect, i would never change nuffin 😤
yabadaba doo 2022-08-28 06:00:09
just wish the c standard was ran by more competent people 😭
lanciagreggori 2022-08-28 06:08:57
yabadaba doo 2022-08-28 06:00:09
just wish the c standard was ran by more competent people 😭

What’s with people complaining about the C standard?

yabadaba doo 2022-08-28 06:09:43
lanciagreggori 2022-08-28 06:08:57
What’s with people complaining about the C standard?

they dont like the direction it’s taken/taking?

capezotte 2022-08-28 06:25:48
lanciagreggori 2022-08-28 06:08:57
What’s with people complaining about the C standard?

some guy linked to a blog post complaining about how the standard gives more and more room for unwanted optimizations that break more foundational programs like memory allocators, OS kernels and crypto libraries each version

yabadaba doo 2022-08-28 06:26:47
that was me
yabadaba doo 2022-08-28 06:26:57
maybe
2022-08-28 06:27:07
yabadaba doo 2022-08-28 06:00:09
just wish the c standard was ran by more competent people 😭

_Generic(x) is horrible but imo it’s the only C-like way to implement generics in C

yabadaba doo 2022-08-28 06:27:21
why does c need generics
yabadaba doo 2022-08-28 06:27:28
if uncle ritchie didnt put it there i dont want it
2022-08-28 06:27:45
yabadaba doo 2022-08-28 06:27:21
why does c need generics

C++ retards whose brains are soaked in templates

2022-08-28 06:28:07
All I need is le ebin (void*)
lordV 2022-08-28 06:29:43
2022-08-28 06:27:07
_Generic(x) is horrible but imo it’s the only C-like way to implement generics in C

There is no mistake with this way.

yabadaba doo 2022-08-28 06:29:59
thats the point
yabadaba doo 2022-08-28 06:30:03
c isnt supposed to stop mistakes
capezotte 2022-08-28 06:30:04
yabadaba doo 2022-08-28 06:27:21
why does c need generics

they are less fragile than macros

|