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 r e y o u r e a d y t o h a v e s o m e f u n ?

A r e y o u r e a d y t o h a v e s o m e f u n ?

Scheduled Pinned Locked Moved Uncategorized
65 Posts 12 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.
  • uecker@mastodon.socialU uecker@mastodon.social

    @manx @thephd Can you explain what you mean? I do not generally find building C code hard - not even when it runs code (which it rarely does).

    manx@mastodon.onlineM This user is from outside of this forum
    manx@mastodon.onlineM This user is from outside of this forum
    manx@mastodon.online
    wrote last edited by
    #19

    @uecker @thephd
    make
    ninja
    cmake
    msbuild
    premake5
    autotools
    vcpkg
    conan
    apt
    yum
    rpm
    ...

    Having a reverse dependency on the build system multiplies this nonsense, especially when cross-compiling and interacting between different build systems.

    Compare this to any (really any) other language.

    This is really not fixable if every build system invents its own mechanism for generating code at build time, thereby locking any project into build system vendor specific mechanisms.

    uecker@mastodon.socialU manx@mastodon.onlineM 2 Replies Last reply
    0
    • manx@mastodon.onlineM manx@mastodon.online

      @uecker @thephd
      make
      ninja
      cmake
      msbuild
      premake5
      autotools
      vcpkg
      conan
      apt
      yum
      rpm
      ...

      Having a reverse dependency on the build system multiplies this nonsense, especially when cross-compiling and interacting between different build systems.

      Compare this to any (really any) other language.

      This is really not fixable if every build system invents its own mechanism for generating code at build time, thereby locking any project into build system vendor specific mechanisms.

      uecker@mastodon.socialU This user is from outside of this forum
      uecker@mastodon.socialU This user is from outside of this forum
      uecker@mastodon.social
      wrote last edited by
      #20

      @manx I agree that the lack of standardization of build systems is a problem.

      uecker@mastodon.socialU 1 Reply Last reply
      0
      • manx@mastodon.onlineM manx@mastodon.online

        @uecker @thephd
        make
        ninja
        cmake
        msbuild
        premake5
        autotools
        vcpkg
        conan
        apt
        yum
        rpm
        ...

        Having a reverse dependency on the build system multiplies this nonsense, especially when cross-compiling and interacting between different build systems.

        Compare this to any (really any) other language.

        This is really not fixable if every build system invents its own mechanism for generating code at build time, thereby locking any project into build system vendor specific mechanisms.

        manx@mastodon.onlineM This user is from outside of this forum
        manx@mastodon.onlineM This user is from outside of this forum
        manx@mastodon.online
        wrote last edited by
        #21

        @uecker @thephd If you are cross-compiling, you are running the interpreter and code generator on the build host instead of on the build target, which means, if it requires any platform-specific knowledge (like the size and alignment of fundamental types), you have to manually duplicate this knowledge into your custom interpreter.

        Inside the target language itself, this information is naturally trivially available.

        uecker@mastodon.socialU 1 Reply Last reply
        0
        • uecker@mastodon.socialU uecker@mastodon.social

          @manx I agree that the lack of standardization of build systems is a problem.

          uecker@mastodon.socialU This user is from outside of this forum
          uecker@mastodon.socialU This user is from outside of this forum
          uecker@mastodon.social
          wrote last edited by
          #22

          @manx But I think it partially also reflects the size of the ecosystem. I really do not like many other languages that provide a framework that locks you into a specific way of doing things.

          1 Reply Last reply
          0
          • manx@mastodon.onlineM manx@mastodon.online

            @uecker @thephd If you are cross-compiling, you are running the interpreter and code generator on the build host instead of on the build target, which means, if it requires any platform-specific knowledge (like the size and alignment of fundamental types), you have to manually duplicate this knowledge into your custom interpreter.

            Inside the target language itself, this information is naturally trivially available.

            uecker@mastodon.socialU This user is from outside of this forum
            uecker@mastodon.socialU This user is from outside of this forum
            uecker@mastodon.social
            wrote last edited by
            #23

            @manx @thephd Cross-compilation is a good argument, but it is still not clear to me that this would not be better solved at a different level.

            manx@mastodon.onlineM 1 Reply Last reply
            0
            • thephd@pony.socialT thephd@pony.social

              @uecker If that's all you took from this, okay!

              mia@shrimptest.0x0.stM This user is from outside of this forum
              mia@shrimptest.0x0.stM This user is from outside of this forum
              mia@shrimptest.0x0.st
              wrote last edited by
              #24
              @thephd @uecker take a look at fftw3’s build system and i think several use cases for this kind of compile-time functionality will become apparrent. for example, it currently uses some arcane OCaml code generators to turn customizable rules into SIMD code. it’s so unwieldy that the project’s README recommends users only ever build from tarballs with the sources already generated.

              (after exchanging some emails i ported that whole mess to meson to make it usable but then that didn’t get reviewed at all and i stopped caring)
              mia@shrimptest.0x0.stM uecker@mastodon.socialU 2 Replies Last reply
              0
              • uecker@mastodon.socialU uecker@mastodon.social

                @manx @thephd Cross-compilation is a good argument, but it is still not clear to me that this would not be better solved at a different level.

                manx@mastodon.onlineM This user is from outside of this forum
                manx@mastodon.onlineM This user is from outside of this forum
                manx@mastodon.online
                wrote last edited by
                #25

                @uecker @thephd I am also not 100% sure that doing this in constexpr context is necessarily the best approach (mainly because debugging constexpr code is a completely unsolved problem), but it is frankly the best approach I have seen offered so far, and IMHO far better than involving the build system in any way.

                uecker@mastodon.socialU 1 Reply Last reply
                0
                • uecker@mastodon.socialU uecker@mastodon.social

                  @manx @thephd You could turn this around "Do not feel proud about your clever compile-time meta programming. You should feel ashamed that you have been tricked into using your compiler as a poor interpreter."

                  manx@mastodon.onlineM This user is from outside of this forum
                  manx@mastodon.onlineM This user is from outside of this forum
                  manx@mastodon.online
                  wrote last edited by
                  #26

                  @uecker @thephd Well, I am happy to disagree here.

                  No cyclic dependency is IMHO always better than any cyclic dependency.

                  This whole problem tends to always bite especially hard when you need to port from one build system to another (because the existing build system does not support your platform or toolchain), like trying to use an Autoconf project with MSVC.

                  uecker@mastodon.socialU 1 Reply Last reply
                  0
                  • manx@mastodon.onlineM manx@mastodon.online

                    @uecker @thephd I am also not 100% sure that doing this in constexpr context is necessarily the best approach (mainly because debugging constexpr code is a completely unsolved problem), but it is frankly the best approach I have seen offered so far, and IMHO far better than involving the build system in any way.

                    uecker@mastodon.socialU This user is from outside of this forum
                    uecker@mastodon.socialU This user is from outside of this forum
                    uecker@mastodon.social
                    wrote last edited by
                    #27

                    @manx @thephd IMHO if people are unhappy about build systems (which seems to be the case and there are certainly good reasons), one should think hard why this is the case and fix it at that level. This is hard, because it is likely not just a technical issue, but lack of standardization and the need to support annoying environments that intentionally wanted to be different.

                    manx@mastodon.onlineM 1 Reply Last reply
                    0
                    • uecker@mastodon.socialU uecker@mastodon.social

                      @manx @thephd IMHO if people are unhappy about build systems (which seems to be the case and there are certainly good reasons), one should think hard why this is the case and fix it at that level. This is hard, because it is likely not just a technical issue, but lack of standardization and the need to support annoying environments that intentionally wanted to be different.

                      manx@mastodon.onlineM This user is from outside of this forum
                      manx@mastodon.onlineM This user is from outside of this forum
                      manx@mastodon.online
                      wrote last edited by
                      #28

                      @uecker @thephd I agree, and I think reducing the scope and responsibility of what build systems need to do, is a good and necessary step into that direction.

                      1 Reply Last reply
                      0
                      • manx@mastodon.onlineM manx@mastodon.online

                        @uecker @thephd Well, I am happy to disagree here.

                        No cyclic dependency is IMHO always better than any cyclic dependency.

                        This whole problem tends to always bite especially hard when you need to port from one build system to another (because the existing build system does not support your platform or toolchain), like trying to use an Autoconf project with MSVC.

                        uecker@mastodon.socialU This user is from outside of this forum
                        uecker@mastodon.socialU This user is from outside of this forum
                        uecker@mastodon.social
                        wrote last edited by
                        #29

                        @manx @thephd I am not entirely sure I understand what is "cyclic" in this context. To me one reason people try to make languages into complete frameworks is that it seems an easier approach to standardize things at the language level than try to harmonize the diverse environments. And this is a valid argument, but not really a technical one.

                        manx@mastodon.onlineM 1 Reply Last reply
                        0
                        • mia@shrimptest.0x0.stM mia@shrimptest.0x0.st
                          @thephd @uecker take a look at fftw3’s build system and i think several use cases for this kind of compile-time functionality will become apparrent. for example, it currently uses some arcane OCaml code generators to turn customizable rules into SIMD code. it’s so unwieldy that the project’s README recommends users only ever build from tarballs with the sources already generated.

                          (after exchanging some emails i ported that whole mess to meson to make it usable but then that didn’t get reviewed at all and i stopped caring)
                          mia@shrimptest.0x0.stM This user is from outside of this forum
                          mia@shrimptest.0x0.stM This user is from outside of this forum
                          mia@shrimptest.0x0.st
                          wrote last edited by
                          #30
                          @thephd @uecker my personal opinion is that build systems should not generate code, and code should not depend on build system output. the responsibility of a build system is the build/test/deploy process alone.
                          uecker@mastodon.socialU 1 Reply Last reply
                          0
                          • mia@shrimptest.0x0.stM mia@shrimptest.0x0.st
                            @thephd @uecker take a look at fftw3’s build system and i think several use cases for this kind of compile-time functionality will become apparrent. for example, it currently uses some arcane OCaml code generators to turn customizable rules into SIMD code. it’s so unwieldy that the project’s README recommends users only ever build from tarballs with the sources already generated.

                            (after exchanging some emails i ported that whole mess to meson to make it usable but then that didn’t get reviewed at all and i stopped caring)
                            uecker@mastodon.socialU This user is from outside of this forum
                            uecker@mastodon.socialU This user is from outside of this forum
                            uecker@mastodon.social
                            wrote last edited by
                            #31

                            @mia @thephd I don't know. Maybe fftw3's build system could be better, but I personally would not prefer a C++ constexpr approach to it.

                            1 Reply Last reply
                            0
                            • mia@shrimptest.0x0.stM mia@shrimptest.0x0.st
                              @thephd @uecker my personal opinion is that build systems should not generate code, and code should not depend on build system output. the responsibility of a build system is the build/test/deploy process alone.
                              uecker@mastodon.socialU This user is from outside of this forum
                              uecker@mastodon.socialU This user is from outside of this forum
                              uecker@mastodon.social
                              wrote last edited by
                              #32

                              @mia @thephd Then let's agree to disagree, because my opinion is that compilers should not be misused as interpreters.

                              uecker@mastodon.socialU 1 Reply Last reply
                              0
                              • uecker@mastodon.socialU uecker@mastodon.social

                                @mia @thephd Then let's agree to disagree, because my opinion is that compilers should not be misused as interpreters.

                                uecker@mastodon.socialU This user is from outside of this forum
                                uecker@mastodon.socialU This user is from outside of this forum
                                uecker@mastodon.social
                                wrote last edited by
                                #33

                                @mia @thephd (my personal pain with build systems is typically with CMake where it throws some error and I have no idea where in the thousands of lines of CMake I am supposed to change something. Especially if it first compiles for a long time and processing constexpr as part of it just makes it worse. )

                                mia@shrimptest.0x0.stM 1 Reply Last reply
                                0
                                • uecker@mastodon.socialU uecker@mastodon.social

                                  @manx @thephd I am not entirely sure I understand what is "cyclic" in this context. To me one reason people try to make languages into complete frameworks is that it seems an easier approach to standardize things at the language level than try to harmonize the diverse environments. And this is a valid argument, but not really a technical one.

                                  manx@mastodon.onlineM This user is from outside of this forum
                                  manx@mastodon.onlineM This user is from outside of this forum
                                  manx@mastodon.online
                                  wrote last edited by
                                  #34

                                  @uecker @thephd

                                  The build system generates input for the compiler. The compiler generates input for the build system (include dependency graph). This is cyclic, and by itself causes all sorts of complications (which are all solved in current build systems, but which IMHO makes all of them more complex than they should need to be).

                                  This is similar to what Autoconf does (which also induces a cyclic dependency).

                                  It is also remotely similar to what C++ Modules require (but there it is way worse).

                                  uecker@mastodon.socialU 1 Reply Last reply
                                  0
                                  • manx@mastodon.onlineM manx@mastodon.online

                                    @uecker @thephd

                                    The build system generates input for the compiler. The compiler generates input for the build system (include dependency graph). This is cyclic, and by itself causes all sorts of complications (which are all solved in current build systems, but which IMHO makes all of them more complex than they should need to be).

                                    This is similar to what Autoconf does (which also induces a cyclic dependency).

                                    It is also remotely similar to what C++ Modules require (but there it is way worse).

                                    uecker@mastodon.socialU This user is from outside of this forum
                                    uecker@mastodon.socialU This user is from outside of this forum
                                    uecker@mastodon.social
                                    wrote last edited by
                                    #35

                                    @manx @thephd Thanks! I guess in a reasonable approach you would only have two stages. You build a tool that creates the code you then run to create he code you ultimately compile. This is not fundamentally different to what happens with constexpr. Just there is all part of an in transparent and slow monolithic C++ compiler. The complexity is not gone, but just hidden. But this is not better IMHO.

                                    manx@mastodon.onlineM 1 Reply Last reply
                                    0
                                    • uecker@mastodon.socialU uecker@mastodon.social

                                      @mia @thephd (my personal pain with build systems is typically with CMake where it throws some error and I have no idea where in the thousands of lines of CMake I am supposed to change something. Especially if it first compiles for a long time and processing constexpr as part of it just makes it worse. )

                                      mia@shrimptest.0x0.stM This user is from outside of this forum
                                      mia@shrimptest.0x0.stM This user is from outside of this forum
                                      mia@shrimptest.0x0.st
                                      wrote last edited by
                                      #36
                                      @uecker @thephd that’s just cmake being utter garbage (without hyperbole, it has more in common with microsoft batch than it does with an actual build system) that for no apparent reason half the software industry agreed to force on each other, the other half being google’s flavor of the week.

                                      qt needs more than 90k lines of code—again, no hyperbole because i’ve ported some of that recently—consisting mostly of cmake workarounds to achieve what meson can express entirely declaratively in just over a hundred. and
                                      none of it would have to exist if qt didn’t require 5 or 6 different generators.

                                      so i don’t think “this makes bad build systems even more of a pain to use” is a strong argument
                                      uecker@mastodon.socialU 1 Reply Last reply
                                      0
                                      • uecker@mastodon.socialU uecker@mastodon.social

                                        @manx @thephd Thanks! I guess in a reasonable approach you would only have two stages. You build a tool that creates the code you then run to create he code you ultimately compile. This is not fundamentally different to what happens with constexpr. Just there is all part of an in transparent and slow monolithic C++ compiler. The complexity is not gone, but just hidden. But this is not better IMHO.

                                        manx@mastodon.onlineM This user is from outside of this forum
                                        manx@mastodon.onlineM This user is from outside of this forum
                                        manx@mastodon.online
                                        wrote last edited by
                                        #37

                                        @uecker @thephd The reasonable approach is only have two stages, I totally agree. But this is not how any build system I know models it. They all support the complexity of arbitrary graphs, which offers enormous flexibility at the cost of unbounded complexity. Unless this gets simplified in one way or another, any build system standardization is IMHO very unlikely to happen.
                                        ...

                                        manx@mastodon.onlineM 1 Reply Last reply
                                        0
                                        • manx@mastodon.onlineM manx@mastodon.online

                                          @uecker @thephd The reasonable approach is only have two stages, I totally agree. But this is not how any build system I know models it. They all support the complexity of arbitrary graphs, which offers enormous flexibility at the cost of unbounded complexity. Unless this gets simplified in one way or another, any build system standardization is IMHO very unlikely to happen.
                                          ...

                                          manx@mastodon.onlineM This user is from outside of this forum
                                          manx@mastodon.onlineM This user is from outside of this forum
                                          manx@mastodon.online
                                          wrote last edited by
                                          #38

                                          @uecker @thephd ...
                                          I think moving complexity into the language proper is the right approach. It frees developers from learning multiple "languages", and it simplifies porting to other platforms that require different build systems.

                                          uecker@mastodon.socialU 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