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

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

                                  sashin@veganism.socialS This user is from outside of this forum
                                  sashin@veganism.socialS This user is from outside of this forum
                                  sashin@veganism.social
                                  wrote last edited by
                                  #22

                                  @citizen428 I did this with rust before!

                                  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

                                    schaf@netzkms.deS This user is from outside of this forum
                                    schaf@netzkms.deS This user is from outside of this forum
                                    schaf@netzkms.de
                                    wrote last edited by
                                    #23

                                    @citizen428 old and busted: php as a c preprocessorยน

                                    hot and new: c preprocessor as a php

                                    ยน https://stackoverflow.com/questions/396644/replacements-for-the-c-preprocessor/16256052#16256052

                                    Edit: Originalquelle verlinkt

                                    citizen428@chaos.socialC 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

                                      crazyeddie@mastodon.socialC This user is from outside of this forum
                                      crazyeddie@mastodon.socialC This user is from outside of this forum
                                      crazyeddie@mastodon.social
                                      wrote last edited by
                                      #24

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

                                      adrianvovk@fosstodon.orgA 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

                                        sigmasternchen@comfy.socialS This user is from outside of this forum
                                        sigmasternchen@comfy.socialS This user is from outside of this forum
                                        sigmasternchen@comfy.social
                                        wrote last edited by
                                        #25

                                        @citizen428@chaos.social Oh oh-no...

                                        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

                                          m3tti@functional.cafeM This user is from outside of this forum
                                          m3tti@functional.cafeM This user is from outside of this forum
                                          m3tti@functional.cafe
                                          wrote last edited by
                                          #26

                                          @citizen428 if it works don't fix it i guess. Somehow it feels like react but without the reactivity ๐Ÿ˜„

                                          citizen428@chaos.socialC 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