Post #2097469
2024-12-26 13:52 UTC
Replies (32)
-
@Obdurodon@hachyderm.io 2024-12-26 20:28
Apparently this also serves as a humor test. Pleased to say that 90% passed.
-
@rdm@aus.social 2024-12-26 15:02
@Obdurodon@hachyderm.io That is oddly clever. Terrible abuse of charsets and hashdefs.
-
@fortyseven@defcon.social 2024-12-26 15:06
@Obdurodon@hachyderm.io That's pretty much either an instant hire during an interview, or reason to have security drag you away. π€
-
@prokyonid@mastodon.sdf.org 2024-12-26 15:18
@Obdurodon@hachyderm.io you can't pretend it isn't readable and easily understood, though!
-
@luigirenna@infosec.exchange 2024-12-26 15:30
@Obdurodon@hachyderm.io
-
@lonespelunker@mastodon.social 2024-12-26 15:56
@Obdurodon@hachyderm.io Nice. I love impractical things of beauty.
-
@mirabilos@toot.mirbsd.org 2024-12-26 17:10
@Obdurodon@hachyderm.io butβ¦ does it actually work? Wouldnβt #define define a macro e.g. β but not βββββββββ etc.?
-
@kaiyou@mastodon.tedomum.net 2024-12-26 17:15
@Obdurodon@hachyderm.io It's actually beautiful and deserves a Forth equivalent someday.
-
@flowxy@furry.engineer 2024-12-26 17:51
@Obdurodon@hachyderm.io And then define βas a semicolon, so you can even omit them from the printf lines
-
@bit101@mstdn.social 2024-12-26 17:58
@Obdurodon@hachyderm.io unobfuscated c
-
@clusterfcku@mastodon.social 2024-12-26 18:10
@Obdurodon@hachyderm.io since none of these frame characters have lexical meaning (except the two for braces) this spacing/highlighting could be better done in and by the IDE with static code analysis. Otherwise, out of the hands of a crafted person, the multiple representations of the space character could also make it an unintelligible obfuscated mess.
-
@gkrnours@mastodon.gamedev.place 2024-12-26 18:51
@Obdurodon@hachyderm.io yay π
-
@lunarloony@dosgame.club 2024-12-26 18:56
@Obdurodon@hachyderm.io ...Kind of about it
-
@vmiheer@mastodon.social 2024-12-26 19:32
@Obdurodon@hachyderm.io first I thought it was just editor folding. π
-
@herdsoft@gruene.social 2024-12-26 20:02
@Obdurodon@hachyderm.io This does not seem to be legal C code. 1. if β would be an empty macro, ββ would still be undefined. 2. gcc does not accept β as a macro name: gcc -o test test.c test.c:3:9: error: macro names must be identifiers 3 | #define β ; 3. When c file is in input charset IBM-850, it still does not work.
-
@tthbaltazar@chaos.social 2024-12-26 20:23
@Obdurodon@hachyderm.io I want to do a violence
-
@kboyd@phpc.social 2024-12-26 20:25
@Obdurodon@hachyderm.io Speaking as someone who long ago tried to write menuing systems for BBS doors for fun: π€©π€©π€©
-
@0xC01DC0FFEE@bytearray.eu 2024-12-26 20:26
@Obdurodon@hachyderm.io could be improved with #define β£ }{
-
@atlrvrse@social.translunar.academy 2024-12-26 21:34
@Obdurodon@hachyderm.io Bitch what the fuck
-
@dhobern@scicomm.xyz 2024-12-26 21:58
@Obdurodon@hachyderm.io Wouldn't that just print "0", "fizzbuzz" 14 times, then "15", 14 more instances of "fizzbuzz", then "30", etc.? Isn't it missing three ! characters?
-
@illusionofmana@socel.net 2024-12-26 23:16
@Obdurodon@hachyderm.io I really like this, especially for showing people what the concept of scope visually looks like in programming.
-
@jannem@fosstodon.org 2024-12-26 23:56
@Obdurodon@hachyderm.io ...I don't hate it. I know, it's a joke. But I don't hate it.
-
@bzdev@fosstodon.org 2024-12-27 02:06
@Obdurodon@hachyderm.io I have a short program called "whatyear", written in a scripting language, that prints the animal for the Chinese calendar given the western year: #!/usr/bin/scrunner -sI:year,E:true,P:true ["η΄ monkey", "ι rooster", "η dog", "豬 pig", "ιΌ rat", "η ox", "θ tiger", "ε rabbit","ιΎ dragon", "θ snake", "馬 horse", "ηΎ goat" ][year %% 12] For example, ./whatyear 2024 It's a reasonable example of using Unicode characters in source code.
-
@cyclophora@mastodon.social 2024-12-27 03:49
@Obdurodon@hachyderm.io im sorry to hear that you hate readable code π
-
@podryban@wspanialy.eu 2024-12-27 05:21
@Obdurodon@hachyderm.io - fizz! - buzz! - have a banana!
-
@geoffl@mastodon.me.uk 2024-12-27 07:57
@Obdurodon@hachyderm.io Yep, those nested if statements are awful.
-
@nshiell@fosstodon.org 2024-12-27 14:26
@Obdurodon@hachyderm.io actually this is kinda cool
-
@jeanetienne@mastodon.social 2024-12-27 17:04
@Obdurodon@hachyderm.io I absolutely love it and absolutely hate it at the same time. Itβs perfect.
-
@michelin@hachyderm.io 2024-12-27 18:09
@Obdurodon@hachyderm.io he's also here on Hachyderm! @dfeldman@hachyderm.io
-
@hstone32@mastodon.social 2024-12-27 18:59
@Obdurodon@hachyderm.io I don't believe people really struggle with nested blocks so much that they have to go to so much trouble to do things like this. If you're nesting deeper than 4, maybe consider using local jumps instead of loops
-
@flesh@thicc.horse 2024-12-28 02:59
@Obdurodon@hachyderm.io Bit awkward to use, but man it looks pretty.
-
@flower@pony.social 2024-12-29 12:24
@Obdurodon@hachyderm.io It's kinda beautiful in its ugliness. Creative.