This is a joke about HolyC

Alt text:

Transcendence meme template

function main() {...}

int main() {...}

void main() {...}

U0 main() {...}

/* HolyC example */
U0 Main()
{
 U8 *message = "hello world";
 "%s\n",message;
}
Main;
84 points · 16 comments · view on lemmy.world

16 Comments

aaaaaaaaargh@feddit.org · 25 pts · 176d

I wasn't aware it has a Logo:

marcos@lemmy.world · 15 pts · 176d

You know somebody is really lost when they decide the empty set is a subset specifically of unsigned integers and nothing else.

arcterus@piefed.blahaj.zone · 7 pts · 176d (2 replies)

What is the Main; at the end? Is this like a scripting language where having something like main() is just an idiom? Also is printf() like built-in or something?

bitcrafter@programming.dev · 10 pts · 176d (1 reply)

Yes, it is the scripting language of TempleOS.

arcterus@piefed.blahaj.zone · 5 pts · 176d

I knew it was from TempleOS, didn't realize it was actually a scripting language though.

somerandomperson@lemmy.dbzer0.com · 5 pts · 175d
f () {...}

also, (nix)

f = x: x
themoken@startrek.website · 5 pts · 176d (4 replies)

Okay, U8, sure, but a boolean is U0? Surely U1 if you absolutely must...

jh29a@lemmy.blahaj.zone · 30 pts · 176d

well I'd assume U0 is the void type. since it contains no data

Quetzalcutlass@lemmy.world · 17 pts · 176d (2 replies)

I think it's equivalent to void, not a boolean.

themoken@startrek.website · 3 pts · 176d (1 reply)

Oh, that makes more sense, but then "unsigned" void?

Kacarott@aussie.zone · 14 pts · 176d

Tbf, unsigned void makes more sense than signed void

vala@lemmy.dbzer0.com · 4 pts · 175d

Honestly kinda weird to see something I made and posed 2 days ago reposted on this community with my my exact title and alt text but no acknowledgement.

wewbull@feddit.uk · 3 pts · 176d (2 replies)
Kacarott@aussie.zone · 9 pts · 176d (1 reply)

Wow zig has u0 and i0

sga@piefed.social · 4 pts · 176d

what does i0 even mean, like what is the sign even for

flandish@lemmy.world · 2 pts · 176d

what an interesting story. truly a gem.