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.
  • jrose@social.belkadan.comJ jrose@social.belkadan.com

    @citizen428 @joe Hey, guess what syntax the C preprocessor strips out for you?

    Guess what syntax is really common in web pages? (and also property lists, where I first encountered this clash)

    joe@f.duriansoftware.comJ This user is from outside of this forum
    joe@f.duriansoftware.comJ This user is from outside of this forum
    joe@f.duriansoftware.com
    wrote last edited by
    #34

    @jrose @citizen428 to their credit, they did say it was a bad idea

    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

      menos@todon.euM This user is from outside of this forum
      menos@todon.euM This user is from outside of this forum
      menos@todon.eu
      wrote last edited by
      #35

      @citizen428 @roskakori probably did this about 30 years ago 😉

      1 Reply Last reply
      0
      • R relay@relay.publicsquare.global shared this topic
      • 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

        gullevek@famichiki.jpG This user is from outside of this forum
        gullevek@famichiki.jpG This user is from outside of this forum
        gullevek@famichiki.jp
        wrote last edited by
        #36

        @citizen428 Himmel!

        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

          tech_himbo@mastodon.socialT This user is from outside of this forum
          tech_himbo@mastodon.socialT This user is from outside of this forum
          tech_himbo@mastodon.social
          wrote last edited by
          #37

          @citizen428 this is based actually

          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

            ruenahcmohr@infosec.exchangeR This user is from outside of this forum
            ruenahcmohr@infosec.exchangeR This user is from outside of this forum
            ruenahcmohr@infosec.exchange
            wrote last edited by
            #38

            @citizen428 for GCC, add #define true 1

            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

              minego@pdx.socialM This user is from outside of this forum
              minego@pdx.socialM This user is from outside of this forum
              minego@pdx.social
              wrote last edited by
              #39

              @citizen428 I suspect that the fact that my first reaction is "Oh, how do I get that?" says a lot about me. Probably not good things either.

              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

                fraca7@social.linux.pizzaF This user is from outside of this forum
                fraca7@social.linux.pizzaF This user is from outside of this forum
                fraca7@social.linux.pizza
                wrote last edited by
                #40

                @citizen428 This is magnificent and I *will* use it in production.

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

                  The horrors:

                  Link Preview Image
                  C preprocessor abuse

                  C preprocessor abuse. GitHub Gist: instantly share code, notes, and snippets.

                  favicon

                  Gist (gist.github.com)

                  xilokar@mamot.frX This user is from outside of this forum
                  xilokar@mamot.frX This user is from outside of this forum
                  xilokar@mamot.fr
                  wrote last edited by
                  #41

                  @citizen428

                  So, it's some kind of chtml...

                  (you'll definitively want to put the ```#define HTML``` in a .h.tml file included by abuse.c)

                  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

                    prlg@mastodon.onlineP This user is from outside of this forum
                    prlg@mastodon.onlineP This user is from outside of this forum
                    prlg@mastodon.online
                    wrote last edited by
                    #42

                    @citizen428 *points and snaps* Nord Theme.

                    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

                      justin@ribeiro.socialJ This user is from outside of this forum
                      justin@ribeiro.socialJ This user is from outside of this forum
                      justin@ribeiro.social
                      wrote last edited by
                      #43

                      @citizen428 reminds me way way back in the late 1990s a long since defunct firm sold an e-commerce dev stack that they dubbed "WebC" that I recall was similarish concept—or crimes. Most definitely crimes. 🤣

                      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

                        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
                        #44

                        @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 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

                          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
                          #45

                          @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 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

                            mirabilos@toot.mirbsd.orgM This user is from outside of this forum
                            mirabilos@toot.mirbsd.orgM This user is from outside of this forum
                            mirabilos@toot.mirbsd.org
                            wrote last edited by
                            #46

                            @citizen428 ok, that’s a different kind of using cpp(1) as a webpage templating engine than what I did.

                            Won’t escape, of course…

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

                              The horrors:

                              Link Preview Image
                              C preprocessor abuse

                              C preprocessor abuse. GitHub Gist: instantly share code, notes, and snippets.

                              favicon

                              Gist (gist.github.com)

                              hannahk@floss.socialH This user is from outside of this forum
                              hannahk@floss.socialH This user is from outside of this forum
                              hannahk@floss.social
                              wrote last edited by
                              #47

                              @citizen428 Glorious

                              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

                                thepolishdispatch@mstdn.socialT This user is from outside of this forum
                                thepolishdispatch@mstdn.socialT This user is from outside of this forum
                                thepolishdispatch@mstdn.social
                                wrote last edited by
                                #48

                                @citizen428 chef's kiss

                                1 Reply Last reply
                                0
                                • tea@chaos.socialT tea@chaos.social

                                  @citizen428 reminds me of the horrors me and @friz64 were up to, also serving an entire web page from an ESP32 as one big string iirc, base64 encoded images and all.

                                  nyanpasu64@donotsta.reN This user is from outside of this forum
                                  nyanpasu64@donotsta.reN This user is from outside of this forum
                                  nyanpasu64@donotsta.re
                                  wrote last edited by
                                  #49
                                  @tea @citizen428 @friz64 reminded of tue gbs-control building a webpage into a byte array and spitting it out at runtime, as well as saving and loading files in a flash filesystem
                                  and the gazillion associated race conditions
                                  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

                                    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
                                    #50

                                    @citizen428 This is extra bad because cpp isn't specified in a way you can necessarily cough up matching text and different compilers resolve that problem in their preprocessed output in different ways...

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

                                      @Lemmus @citizen428 https://github.com/crazy-eddie/arduino_modern/blob/capacities/include/hardware/chip/atmega328p.hpp

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

                                      @crazyeddie @Lemmus @citizen428 The HTML thing is mostly fine. The macros are being used basically as intended.

                                      But this.......

                                      1 Reply Last reply
                                      0
                                      • wonka@chaos.socialW wonka@chaos.social

                                        Looks a bit like perlcgi.

                                        @Lemmus @citizen428

                                        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
                                        #52

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

                                        stefanct@chaos.socialS wonka@chaos.socialW 2 Replies Last reply
                                        0
                                        • crazyeddie@mastodon.socialC crazyeddie@mastodon.social

                                          @Lemmus @citizen428 https://github.com/crazy-eddie/arduino_modern/blob/capacities/include/hardware/chip/atmega328p.hpp

                                          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
                                          #53

                                          @crazyeddie @Lemmus Is there a word for the combination of impressed and revolted? Because I definitely feel imvolted after seeing this 😉

                                          1 Reply Last reply
                                          0
                                          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