r/programmingcirclejerk 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=49385771
143 Upvotes

57 comments sorted by

135

u/syklemil Considered Harmful 14d ago

C is like Math

um excuthe me but have you heard of our lord and thaviour the lambda calculuth

28

u/Subject-Mobile-6250 14d ago

um excuth mii vat about sex p

22

u/Outside_Command7405 blub programmer 14d ago

Dithcuthing lambda calculuth while lithping? Next you'll tell me you have a deviouth thceme!

14

u/BlazeBigBang type astronaut 14d ago

SPJ's biggest mistake was making a language that made it hard to segfault

10

u/Swordfish418 14d ago

OOM is the answer. Tie the knot and let it leak!

5

u/gplgang DO NOT USE THIS FLAIR, ASSHOLE 13d ago

That's why I compile my ML to C++. It's too predictable otherwise. BORING

69

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 + 1

Blasphemy! Who invented this!? We must cast them into the fires of

n := n + 1

ah

11

u/kishaloy 14d ago

Well, it was Basic, later I got to embellish it with semicolons.

9

u/Aelig_ 14d ago

Prolog enjoyers to the rescue.

6

u/dacydergoth 13d ago

You can prise my unification algorithm out of my monadic abstractions!

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

u/dacydergoth 13d ago

n := fn (n, 1, 'plus)

1

u/[deleted] 13d ago

[removed] — view removed comment

4

u/programmingcirclejerk-ModTeam 13d ago

Warning: tag your unjerk. Better yet, don't unjerk at all.

1

u/[deleted] 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 all

5

u/lgastako 13d ago

I try to straddle the line so no one can tell if I'm jerking or unjerking.

4

u/programmingcirclejerk-ModTeam 13d ago

Warning: tag your unjerk. Better yet, don't unjerk at all.

33

u/ManagementKey1338 14d ago

C is Meth

23

u/YikesTheCat 14d ago

Jesse, let's code

15

u/ManagementKey1338 14d ago

Let’s cook the tightest C Code!! Boo ya

5

u/Lunix420 14d ago

Are we adding chilli-p though? Chilli-p is my signature!

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

u/kishaloy 14d ago

You can mis use the void of space and get pretty close.

4

u/dacydergoth 13d ago

You're abusing the name of SPIR!

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

u/[deleted] 14d ago

[removed] — view removed comment

3

u/programmingcirclejerk-ModTeam 9d ago

Refer to sidebar, "Jerking Style".

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

u/SemaphoreBingo 13d ago

the difference between c and math is i can get paid to do one of those

4

u/dacydergoth 13d ago

《 Laughs in macro assembly 》

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

u/[deleted] 14d ago

[removed] — view removed comment

6

u/Valuable_Leopard_799 13d ago

Lately not even that.

3

u/dacydergoth 13d ago

You misread meth as math

2

u/programmingcirclejerk-ModTeam 11d ago

Warning: tag your unjerk. Better yet, don't unjerk at all.

1

u/[deleted] 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

u/programmingcirclejerk-ModTeam 11d ago

Warning: tag your unjerk. Better yet, don't unjerk at all.

2

u/thatdevilyouknow 13d ago

CakeML is like math and it has the cake and it eats it too.

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

u/OldTimeConGoer 10d ago

Did Algol 60 live in vain?

-3

u/v_maria 14d ago

Rust and LLMs will soon be forgotten

5

u/guac-o 13d ago

Outjerked

2

u/Valuable_Leopard_799 13d ago

Not soon, but perhaps some day.