Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. A tale in 3 pictures.

A tale in 3 pictures.

Scheduled Pinned Locked Moved Uncategorized
programming
103 Posts 56 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • aartaka@merveilles.townA aartaka@merveilles.town

    @citizen428 yes, that’s a thing I built my website on, at some point <https://aartaka.me/this-post-is-cpp.html> (migrated to ed(1) since then.)

    citizen428@chaos.socialC This user is from outside of this forum
    citizen428@chaos.socialC This user is from outside of this forum
    citizen428@chaos.social
    wrote last edited by
    #90

    @aartaka Love the cursors, instant follow. Keep the web weird!

    aartaka@merveilles.townA 1 Reply Last reply
    0
    • L luc0x61@mastodon.gamedev.place

      @citizen428 The fact you can jump off the window isn't a good reason to do it. And don't mention someone brave who did: they're on the ground floor, stupid.

      citizen428@chaos.socialC This user is from outside of this forum
      citizen428@chaos.socialC This user is from outside of this forum
      citizen428@chaos.social
      wrote last edited by
      #91

      @luc0x61 Really? A cartoon calling it an "extremely bad idea" and an implementation covering a handful of tags wasn't enough of an indication that this was not a serious post?

      L 1 Reply Last reply
      0
      • prlg@mastodon.onlineP prlg@mastodon.online

        @citizen428 *points and snaps* Nord Theme.

        citizen428@chaos.socialC This user is from outside of this forum
        citizen428@chaos.socialC This user is from outside of this forum
        citizen428@chaos.social
        wrote last edited by
        #92

        @prlg Always Nord theme, on everything. I even made one for the OCaml's utop so it looks less out of place in my terminal:

        Link Preview Image
        ~citizen428/nord-utop - A Nord color theme for OCaml's utop toplevel - sourcehut git

        favicon

        (git.sr.ht)

        1 Reply Last reply
        0
        • citizen428@chaos.socialC This user is from outside of this forum
          citizen428@chaos.socialC This user is from outside of this forum
          citizen428@chaos.social
          wrote last edited by
          #93

          @nabijaczleweli You glorious madman, have a follow 🙂

          1 Reply Last reply
          0
          • ruenahcmohr@infosec.exchangeR ruenahcmohr@infosec.exchange

            @citizen428 for GCC, add #define true 1

            citizen428@chaos.socialC This user is from outside of this forum
            citizen428@chaos.socialC This user is from outside of this forum
            citizen428@chaos.social
            wrote last edited by
            #94

            @RueNahcMohr Works fine as-is. The Makefile targets `-std=c23` where `true` is an actual keyword. Unless I misunderstood your intention here.

            1 Reply Last reply
            0
            • citizen428@chaos.socialC citizen428@chaos.social

              @aartaka Love the cursors, instant follow. Keep the web weird!

              aartaka@merveilles.townA This user is from outside of this forum
              aartaka@merveilles.townA This user is from outside of this forum
              aartaka@merveilles.town
              wrote last edited by
              #95

              @citizen428 yay, I didn’t make these in vain 🤩

              1 Reply Last reply
              0
              • citizen428@chaos.socialC citizen428@chaos.social

                @luc0x61 Really? A cartoon calling it an "extremely bad idea" and an implementation covering a handful of tags wasn't enough of an indication that this was not a serious post?

                L This user is from outside of this forum
                L This user is from outside of this forum
                luc0x61@mastodon.gamedev.place
                wrote last edited by
                #96

                @citizen428 I've seen enough to witness that some humorous exits have been chosen as real solutions 😀
                Would you believe that I've seen someone printing a variable as binary text to further process it with binary logic on single ASCII digits, instead of using the logical operators native of any CPU?

                citizen428@chaos.socialC 1 Reply Last reply
                0
                • citizen428@chaos.socialC citizen428@chaos.social

                  A tale in 3 pictures. In which our hero wonders if he can and doesn't stop to ask if he should.

                  #c #programming

                  exec@furry.engineerE This user is from outside of this forum
                  exec@furry.engineerE This user is from outside of this forum
                  exec@furry.engineer
                  wrote last edited by
                  #97

                  @citizen428 Several years ago I had the idea of doing the same in Lua (though not a preprocessor, of course)

                  1 Reply Last reply
                  0
                  • L luc0x61@mastodon.gamedev.place

                    @citizen428 I've seen enough to witness that some humorous exits have been chosen as real solutions 😀
                    Would you believe that I've seen someone printing a variable as binary text to further process it with binary logic on single ASCII digits, instead of using the logical operators native of any CPU?

                    citizen428@chaos.socialC This user is from outside of this forum
                    citizen428@chaos.socialC This user is from outside of this forum
                    citizen428@chaos.social
                    wrote last edited by
                    #98

                    @luc0x61 Fair enough.

                    And yes, I'll believe almost everything at this point, though your example is definitely one of the more bizarre ones.

                    I once had to work with an API we paid good money for, which essentially was configurable through bit flags via `?options=<32-digit or so binary string>`. And to generate that option string they gave you an Excel sheet.

                    L 1 Reply Last reply
                    0
                    • citizen428@chaos.socialC citizen428@chaos.social

                      @luc0x61 Fair enough.

                      And yes, I'll believe almost everything at this point, though your example is definitely one of the more bizarre ones.

                      I once had to work with an API we paid good money for, which essentially was configurable through bit flags via `?options=<32-digit or so binary string>`. And to generate that option string they gave you an Excel sheet.

                      L This user is from outside of this forum
                      L This user is from outside of this forum
                      luc0x61@mastodon.gamedev.place
                      wrote last edited by
                      #99

                      @citizen428 Binary data is extremely dangerous 😅

                      1 Reply Last reply
                      0
                      • citizen428@chaos.socialC citizen428@chaos.social

                        @wonka @Lemmus I did (do?) have a soft spot for Perl 🙂

                        wonka@chaos.socialW This user is from outside of this forum
                        wonka@chaos.socialW This user is from outside of this forum
                        wonka@chaos.social
                        wrote last edited by
                        #100

                        I still prefer Perl for some specific things where Python (or Groovy) would be more of a hassle.

                        @citizen428 @Lemmus

                        1 Reply Last reply
                        0
                        • citizen428@chaos.socialC citizen428@chaos.social

                          A tale in 3 pictures. In which our hero wonders if he can and doesn't stop to ask if he should.

                          #c #programming

                          asmaloney@fosstodon.orgA This user is from outside of this forum
                          asmaloney@fosstodon.orgA This user is from outside of this forum
                          asmaloney@fosstodon.org
                          wrote last edited by
                          #101

                          @citizen428 Marvel at this curse:

                          Cookie monster!

                          favicon

                          (codeberg.org)

                          With "C" code like this:

                          `#include"a.h" `
                          `A1(rs0,rsz(0,x)) ZN A flt(A x,A y,B b/*01b*/)_(P(xK-1,er(y))Ym(K("{(!y)[i]!(.y)i:&z~/:x@.y}",xR,y,ai(b)))Yt(flt(x,enl(y),b))`

                          1 Reply Last reply
                          0
                          • citizen428@chaos.socialC citizen428@chaos.social

                            A tale in 3 pictures. In which our hero wonders if he can and doesn't stop to ask if he should.

                            #c #programming

                            mat@friendica.exon.nameM This user is from outside of this forum
                            mat@friendica.exon.nameM This user is from outside of this forum
                            mat@friendica.exon.name
                            wrote last edited by
                            #102

                            @citizen428 Amazon's early implementation used the C preprocessor as an HTML templating system. The preprocessor is super fast and stable, that's what made this a terrific idea.

                            I have dark, poorly-repressed memories of perl/mason being an improvement, for which we were expected to be grateful.

                            1 Reply Last reply
                            0
                            • citizen428@chaos.socialC citizen428@chaos.social

                              @malwareminigun Does the first image not make it clear that this is not a serious post?

                              malwareminigun@infosec.exchangeM This user is from outside of this forum
                              malwareminigun@infosec.exchangeM This user is from outside of this forum
                              malwareminigun@infosec.exchange
                              wrote last edited by
                              #103

                              @citizen428 no. I see people say “I’m doing this bad idea hold my beer” and abusing cpp all the time

                              1 Reply Last reply
                              1
                              0
                              • R relay@relay.infosec.exchange shared this topic
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups