Top
Best
New

Posted by synergy20 10/24/2024

Pretty.c(github.com)
370 points | 221 commentspage 4
stankot 10/24/2024|
This reminded me of ArnoldC

https://lhartikk.github.io/ArnoldC/

chris_wot 10/24/2024||
I’m waiting for someone to write a lambda calculus based C++ library that allows everything to be defined in terms of function. Peano axioms and all.
leetsbehonest 10/24/2024||
That is pretty cool
fnord77 10/24/2024||
I feel like this would have been cool 25 years ago
layer8 10/24/2024||
Given the title, shouldn’t that be #include "pretty.c" instead of #include "pretty.h"?
_benj 10/24/2024||
> The goals for Pretty C are:

> Provide so much syntactic sugar as to cause any C developer a diabetes-induced heart attack.

:-D

spacedcowboy 10/24/2024|
As someone who just got diagnosed with type-1 diabetes (the auto-immune variety, not the “you eat too much sugar” variety), this was far more depressing than funny. I’m probably being overly-sensitive, but man my life has gone to shit in the last couple of years…
_benj 10/26/2024|||
Uff, I’m so sorry to hear! I can see how that joke could be really not funny for someone that has gone through some crappy stuff.

I hope you stay strong as you work through such a rough life-changing diagnosis.

jdthedisciple 10/24/2024|||
Sorry to hear.

Honest advice: I have heard fasting + healthy diet can permanently fix diabetes (though I forgot which type)

Maybe try it? Good luck in any case!

spacedcowboy 10/25/2024||
There’s nothing wrong with my diet, that’s type-2. Type-1 is an auto-immune disease, and in my case was triggered by a couple of years of immense stress. Cortisol and the like wreak havoc over the long term. Mine isn’t curable, I don’t have many insulin-producing cells left in my pancreas.

All because two years ago, a hospital tried to make a little bit more money by turning beds faster, and fed sodium into my wife about 2x the recommended rate. Although awake, she has never recovered from the coma, and of course she has brain damage. It’s not like in the movies where you just wake up.

I’m not going into details, but when you scream yourself hoarse from the agony in your limbs, and there’s no painkiller that works, and eventually you lose your voice but you’re still screaming, silently… Yeah, that’s pretty terrible.

Neither of us will recover. I, at least, can manage it with insulin injections/pumps/CGM-patches… She is currently in a “mental health facility”, something she’s had happen to her several times this year. It looks pretty on the outside and resembles a prison once you step beyond the secured entry. It’s where hope goes to die.

All because a “hospital” wanted to make even more money than normal, and didn’t give a shit about their actual patients. Yes, I’m bitter.

I appreciate the sentiment behind your words, thank you for that. It won’t help, but still.

jdthedisciple 10/25/2024||
That sounds rough man.

I don't know what to say except to wish you and your wife utmost strength.

Only thing I personally find solace in is that I am certain there is a life after this one in which everything will be amended by the One God Himself.

azinman2 10/24/2024||
> Deprecate Lua, Python, JavaScript, Ruby and a dozen other languages, because Pretty C is the ultimate scripting language, but lightning-fast and strongly typed!

Umm… that’s quite the goal.

I’ll stick with deprecated Python.

fancyfredbot 10/24/2024|
Deprecate Python?! You'll have to deprecate me first! ;-)
psychoslave 10/24/2024||
We will all reach this status at some point, though the silly code we produced might stick a bit longer in some legacy codebase. :D
looopTools 10/24/2024||
I cannot wait to show this to a colleague of mine. He will kill me XD
aartaka 10/24/2024|
Can't wait to learn of how it went!
shiomiru 10/24/2024||
> max and min of two numbers.

Influenced by windows.h I see :)

nicman23 10/24/2024|
as someone that just started C, it looks pretty :)
aartaka 10/24/2024|
Thanks!
More comments...