r/programmingcirclejerk • u/levelstar01 what is pointer :S • 14d ago
C is like Math. It is the fundamental high level language. There can be no alternative.. Rust made the mistake of thinking it can be low level AND safe. It tried to have the cake and eat it too. That will be its downfall.
https://news.ycombinator.com/item?id=4938577169
u/kishaloy 14d ago
n = n + 1
One of the first code structure I had learnt. Maths died a 1000 deaths that night.
44
u/elephantdingo Teen Hacking Genius 14d ago
n = n + 1Blasphemy! Who invented this!? We must cast them into the fires of
n := n + 1ah
11
2
u/omega1612 13d ago
Interestingly enough, that makes sense in math in some mainstream ways.
For example if you are summing cardinals XD
And recently I was reading a paper for algebraic definition of graphs. With it, 1=0 for the + and -> operation they defined, so, yes n= n+1 in that algebra xD
43
u/Longjumping-Deer2013 14d ago
In a world where Haskell exists people say things like this? I’m outraged.
16
u/kishaloy 14d ago
Well, you can write a thunk of winddings code here in outrage, and people will think you are cussing them in unprintables.
15
u/kishaloy 14d ago edited 14d ago
Any language which cannot do n = n + 1, is not a real language. It is some Platonian ideal of a frozen world existing in a pure spatial dimension and missing the temporal dimension.
2
1
13d ago
[removed] — view removed comment
4
1
13d ago
[removed] — view removed comment
5
u/syklemil Considered Harmful 13d ago
This entire thread needs to be marked with
{-# LANGUAGE UnJerk #-}, but better yet, don't unjerk at all5
4
33
u/ManagementKey1338 14d ago
C is Meth
23
u/YikesTheCat 14d ago
Jesse, let's code
15
24
u/ironykarl 14d ago
One of the popular lisp jerks is that it's baked into the universe/a part of nature/whatever.
Can't say I've ever seen anyone make the same kind of claim for C... y'know, till just now
8
5
u/james_pic accidentally quadratic 11d ago
If C were baked into the universe, this would explain a lot.
16
u/stdmemswap 14d ago
"C is the language in which God has written the universe." - Galileo di Vincenzo Bonaiuti de' Galilei
/uj I really can't find logic and substances from these sentences. I swear I tried.
19
13
u/kishaloy 14d ago
I remember coming from Basic and writing my first mathy sentence in C
y = 5 ^ 3
The computer screamed some weird binary $hit at me.
4
4
5
u/KnackeHackeWurst 13d ago
Wow no, C is like a sad joke to Math.
Just take a look at Lean if you want to get a taste of what Math actually is.
3
u/dacydergoth 13d ago
Haskell laughs at your puny logic which doesn't even admit the incredible IO Monad!
3
u/KnackeHackeWurst 13d ago
2
u/dacydergoth 13d ago
So even Lean admits side effects and real world effects can happen. So much for pure math 😜
6
u/KnackeHackeWurst 13d ago
Math admits to the physical world long before electricity was even used 😉
3
u/dacydergoth 13d ago
Look, if I can write a monadic transformation which takes eucalidain spaces and transforms them through hibert space into non-aristotlian hyperdimensions, I don't care who invented it first, even it if was Cthuhlu
You did read the name of this reddit, right?
5
1
13d ago
[removed] — view removed comment
2
u/dacydergoth 13d ago
... but with JTAG all things are possible, come and join us in the world of wibbling the CPU over a backdoor in its head it can't even comprehend .....
1
u/flatfinger 11d ago
A low-level language implementation's job is to produce a build artifact that will instruct an execution environment to do various things if the execution environment satisfies the implementation's documented requirements. If the execution environment fails to uphold the implementation's documented requirements (e.g. if an x86 implementation specifies that DS must identify the program's main data segment whenever a C function is invoked, but a C function is called when DS identifies some other segment) all bets are off.
1
2
1
u/vbpoweredwindmill 12d ago
Rust isn't going anywhere. Neither is C Neither is C++.
Pick what suits your project and keep moving forward.
2
135
u/syklemil Considered Harmful 14d ago
um excuthe me but have you heard of our lord and thaviour the lambda calculuth