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.
  • 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

    lemmus@social.vivaldi.netL This user is from outside of this forum
    lemmus@social.vivaldi.netL This user is from outside of this forum
    lemmus@social.vivaldi.net
    wrote last edited by
    #2

    @citizen428 I once did something not quite dissimilar with Forth and CGI scripts. I think this is fine! ;-D

    citizen428@chaos.socialC wonka@chaos.socialW crazyeddie@mastodon.socialC 3 Replies 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

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

      The horrors:

      Link Preview Image
      C preprocessor abuse

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

      favicon

      Gist (gist.github.com)

      necrophcodr@layer8.spaceN leyrer@23.socialL xilokar@mamot.frX hannahk@floss.socialH ryanc@infosec.exchangeR 7 Replies Last reply
      0
      • lemmus@social.vivaldi.netL lemmus@social.vivaldi.net

        @citizen428 I once did something not quite dissimilar with Forth and CGI scripts. I think this is fine! ;-D

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

        @Lemmus A man of culture I see.

        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

          threesigma@mastodon.onlineT This user is from outside of this forum
          threesigma@mastodon.onlineT This user is from outside of this forum
          threesigma@mastodon.online
          wrote last edited by
          #5

          @citizen428 seems perfectly sensible to me. C pre processor is fast and well-understood.

          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

            reiddragon@fedi.catto.gardenR This user is from outside of this forum
            reiddragon@fedi.catto.gardenR This user is from outside of this forum
            reiddragon@fedi.catto.garden
            wrote last edited by
            #6
            @citizen428 I mean, this is actually not *that* far off from what lispers do when generating sites in lisp
            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)

              necrophcodr@layer8.spaceN This user is from outside of this forum
              necrophcodr@layer8.spaceN This user is from outside of this forum
              necrophcodr@layer8.space
              wrote last edited by
              #7

              @citizen428 some slight modifications, and you can use cpp -E + that to make a static site generator using the preprocessor.

              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

                mfranc@mastodon.xyzM This user is from outside of this forum
                mfranc@mastodon.xyzM This user is from outside of this forum
                mfranc@mastodon.xyz
                wrote last edited by
                #8

                @citizen428 Looks more sensible than generating programs with it.

                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

                  millihertz@oldbytes.spaceM This user is from outside of this forum
                  millihertz@oldbytes.spaceM This user is from outside of this forum
                  millihertz@oldbytes.space
                  wrote last edited by
                  #9

                  @citizen428

                  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

                    tea@chaos.socialT This user is from outside of this forum
                    tea@chaos.socialT This user is from outside of this forum
                    tea@chaos.social
                    wrote last edited by
                    #10

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

                    wintermute_bbs@oldbytes.spaceW nyanpasu64@donotsta.reN citizen428@chaos.socialC 3 Replies 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

                      jwo@mastodonczech.czJ This user is from outside of this forum
                      jwo@mastodonczech.czJ This user is from outside of this forum
                      jwo@mastodonczech.cz
                      wrote last edited by
                      #11

                      @citizen428 That's called GNU M4.

                      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)

                        leyrer@23.socialL This user is from outside of this forum
                        leyrer@23.socialL This user is from outside of this forum
                        leyrer@23.social
                        wrote last edited by
                        #12

                        @citizen428

                        phantasus@fedi.atP 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

                          raymaccarthy@mastodon.ieR This user is from outside of this forum
                          raymaccarthy@mastodon.ieR This user is from outside of this forum
                          raymaccarthy@mastodon.ie
                          wrote last edited by
                          #13

                          @citizen428
                          Macros are a really bad idea that should never be used in C. They are unfortunately needed in Assembler, but assembler, other than to boot strap a compiler is not needed for the last 30 years. Not even on microcontrollers (see Forth and JAL).

                          wintermute_bbs@oldbytes.spaceW citizen428@chaos.socialC 2 Replies 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

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

                            @citizen428 Oh great, doxygen patch coming in 3 .. 2 .. 1 ..

                            1 Reply Last reply
                            0
                            • lemmus@social.vivaldi.netL lemmus@social.vivaldi.net

                              @citizen428 I once did something not quite dissimilar with Forth and CGI scripts. I think this is fine! ;-D

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

                              Looks a bit like perlcgi.

                              @Lemmus @citizen428

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

                                @citizen428

                                phantasus@fedi.atP This user is from outside of this forum
                                phantasus@fedi.atP This user is from outside of this forum
                                phantasus@fedi.at
                                wrote last edited by
                                #16

                                @leyrer @citizen428 I would say finally that the C pre-processor is nearing the realm of the mighty lisp macro systems.

                                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

                                  schnittchen@tech.lgbtS This user is from outside of this forum
                                  schnittchen@tech.lgbtS This user is from outside of this forum
                                  schnittchen@tech.lgbt
                                  wrote last edited by
                                  #17

                                  @citizen428 I did a somewhat similar thing in AtomVM on a microcontroller. Saves lots of memory!

                                  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

                                    overflo@23.socialO This user is from outside of this forum
                                    overflo@23.socialO This user is from outside of this forum
                                    overflo@23.social
                                    wrote last edited by
                                    #18

                                    @citizen428 Ein klarer Fall für die kinky geeks

                                    phantasus@fedi.atP 1 Reply Last reply
                                    0
                                    • R relay@relay.an.exchange shared this topic
                                    • overflo@23.socialO overflo@23.social

                                      @citizen428 Ein klarer Fall für die kinky geeks

                                      phantasus@fedi.atP This user is from outside of this forum
                                      phantasus@fedi.atP This user is from outside of this forum
                                      phantasus@fedi.at
                                      wrote last edited by
                                      #19

                                      @overflo @citizen428 Kinky geeks wäre mindestens mit Seilen. Das ist nur vanilla "kreativ".

                                      overflo@23.socialO citizen428@chaos.socialC 2 Replies 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.

                                        wintermute_bbs@oldbytes.spaceW This user is from outside of this forum
                                        wintermute_bbs@oldbytes.spaceW This user is from outside of this forum
                                        wintermute_bbs@oldbytes.space
                                        wrote last edited by
                                        #20

                                        @tea @citizen428 @friz64 others do the same using ConfigMaps ... 🫢

                                        1 Reply Last reply
                                        0
                                        • raymaccarthy@mastodon.ieR raymaccarthy@mastodon.ie

                                          @citizen428
                                          Macros are a really bad idea that should never be used in C. They are unfortunately needed in Assembler, but assembler, other than to boot strap a compiler is not needed for the last 30 years. Not even on microcontrollers (see Forth and JAL).

                                          wintermute_bbs@oldbytes.spaceW This user is from outside of this forum
                                          wintermute_bbs@oldbytes.spaceW This user is from outside of this forum
                                          wintermute_bbs@oldbytes.space
                                          wrote last edited by
                                          #21

                                          @raymaccarthy @citizen428 Forth ... 👍

                                          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