ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    When is Something Built from Source

    Scheduled Pinned Locked Moved IT Discussion
    113 Posts 7 Posters 7.9k Views
    Loading More Posts
    • 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.
    • scottalanmillerS
      scottalanmiller @Dashrender
      last edited by

      @Dashrender said in When is Something Built from Source:

      Before this thread, if someone posted here's my source code, grab it and install it. I'd ask - how do I compile it?
      I guess now I have to ask - does it require compilation, or is it some sort of script?

      You are safe assuming that anyone saying it is source means that you need to compile. It's purely in the circumstances of marketing that someone technical would use it in this manner. You truly never hear of scripts called source code that I know of. It's not entirely wrong, it's just really pointless and silly.

      1 Reply Last reply Reply Quote 1
      • DustinB3403D
        DustinB3403 @scottalanmiller
        last edited by

        @scottalanmiller said in When is Something Built from Source:

        @Dashrender said in When is Something Built from Source:

        So I don't see this big tip off you're talking about. I will admit that I'm looking at this through my Windows admin goggles.

        You've never downloaded source code and run "commands" and ended up with executable.

        This is the part that makes the most sense to me.

        Think of Visual Basic, you write the code, design the form, and then you compile it, and get an executable that you can ship out and anyone can install the application from.

        scottalanmillerS 1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller @DustinB3403
          last edited by

          @DustinB3403 said in When is Something Built from Source:

          @scottalanmiller said in When is Something Built from Source:

          @Dashrender said in When is Something Built from Source:

          So I don't see this big tip off you're talking about. I will admit that I'm looking at this through my Windows admin goggles.

          You've never downloaded source code and run "commands" and ended up with executable.

          This is the part that makes the most sense to me.

          Think of Visual Basic, you write the code, design the form, and then you compile it, and get an executable that you can ship out and anyone can install the application from.

          Yup, exactly. VB6 was a compiler. You you never, ever wrote VB6 code and "ran" it. It always had to be compiled first and the only thing that you "ran" was an .exe executable fie.

          1 Reply Last reply Reply Quote 0
          • DashrenderD
            Dashrender @scottalanmiller
            last edited by

            @scottalanmiller said in When is Something Built from Source:

            @Dashrender said in When is Something Built from Source:

            So I don't see this big tip off you're talking about. I will admit that I'm looking at this through my Windows admin goggles.

            Actually use those goggles. Tell me when anyone has snuck a compiler past you on Windows? I bet the answer is... never. You've never downloaded source code and run "commands" and ended up with executables. It just doesn't happen - it's that complex and Windows is much more predictable as a single OS than Linux is as an OS family.

            Oh, you're right, I don't believe that has ever happened on Windows, but then again, scripting things like this wouldn't be common on Windows, nor using source to make things work on Windows (for the every-admin/generalist). If I can't find the precompiled version, I move on to something else.

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @Dashrender
              last edited by

              @Dashrender said in When is Something Built from Source:

              @scottalanmiller said in When is Something Built from Source:

              @Dashrender said in When is Something Built from Source:

              So I don't see this big tip off you're talking about. I will admit that I'm looking at this through my Windows admin goggles.

              Actually use those goggles. Tell me when anyone has snuck a compiler past you on Windows? I bet the answer is... never. You've never downloaded source code and run "commands" and ended up with executables. It just doesn't happen - it's that complex and Windows is much more predictable as a single OS than Linux is as an OS family.

              Oh, you're right, I don't believe that has ever happened on Windows, but then again, scripting things like this wouldn't be common on Windows, nor using source to make things work on Windows (for the every-admin/generalist). If I can't find the precompiled version, I move on to something else.

              It isn't common on Linux, either. I've done it, but I go years in between doing it and have never done it for production.

              DashrenderD 1 Reply Last reply Reply Quote 0
              • DashrenderD
                Dashrender @scottalanmiller
                last edited by

                @scottalanmiller said in When is Something Built from Source:

                @Dashrender said in When is Something Built from Source:

                Again - all of that stuff can be scripted - I had no idea XO was made in NodeJS, you can script the install of the compiler, you can script the compilation process.

                CAN script it, yes, but you'd have a compiler sitting about. Literally nothing does that. And compilation is not reliable, that's why it is scary to talk about. Basically you never know if it will work across different systems. So you need human intervention. If you were actually able to script compilation reliably, no one would be concerned about using it.

                What makes scripting compilation so unreliable? Is it that there are dozens of nix flavors out there, and you have no idea what's on one version from the next? This just adds more fuel to the fire of how much I hate talking about Linux... Linux should almost NEVER be spoken of, but we should only talk about OSes.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • DashrenderD
                  Dashrender @scottalanmiller
                  last edited by

                  @scottalanmiller said in When is Something Built from Source:

                  @Dashrender said in When is Something Built from Source:

                  Again - all of that stuff can be scripted - I had no idea XO was made in NodeJS,

                  The process involved using NPM, the NodeJS Package Manager 🙂

                  I run an install script that one of you guys wrote - so I have no idea that NPM is being used, nor what it was prior to this conversation.

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @Dashrender
                    last edited by

                    @Dashrender said in When is Something Built from Source:

                    @scottalanmiller said in When is Something Built from Source:

                    @Dashrender said in When is Something Built from Source:

                    Again - all of that stuff can be scripted - I had no idea XO was made in NodeJS, you can script the install of the compiler, you can script the compilation process.

                    CAN script it, yes, but you'd have a compiler sitting about. Literally nothing does that. And compilation is not reliable, that's why it is scary to talk about. Basically you never know if it will work across different systems. So you need human intervention. If you were actually able to script compilation reliably, no one would be concerned about using it.

                    What makes scripting compilation so unreliable? Is it that there are dozens of nix flavors out there, and you have no idea what's on one version from the next? This just adds more fuel to the fire of how much I hate talking about Linux... Linux should almost NEVER be spoken of, but we should only talk about OSes.

                    Yes and no. It's that compiling is literally "building software for your system" and requires loads of support tools and is dependent on the architecture. So you need to know so many things that even two versions of Windows or CentOS might be problematic.

                    Scripting is certainly unreliable between OSes, or between OS families, or whatever. But it isn't a Linux variation thing, or else it would be used on Windows just as often.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @Dashrender
                      last edited by

                      @Dashrender said in When is Something Built from Source:

                      @scottalanmiller said in When is Something Built from Source:

                      @Dashrender said in When is Something Built from Source:

                      Again - all of that stuff can be scripted - I had no idea XO was made in NodeJS,

                      The process involved using NPM, the NodeJS Package Manager 🙂

                      I run an install script that one of you guys wrote - so I have no idea that NPM is being used, nor what it was prior to this conversation.

                      That's another tip off, if you install from script, you can pretty safely assume that it's not source code 🙂 Unless that script creates a million errors that you have to correct by hand.

                      DashrenderD 1 Reply Last reply Reply Quote 0
                      • DashrenderD
                        Dashrender @scottalanmiller
                        last edited by

                        @scottalanmiller said in When is Something Built from Source:

                        @Dashrender said in When is Something Built from Source:

                        @scottalanmiller said in When is Something Built from Source:

                        @Dashrender said in When is Something Built from Source:

                        So I don't see this big tip off you're talking about. I will admit that I'm looking at this through my Windows admin goggles.

                        Actually use those goggles. Tell me when anyone has snuck a compiler past you on Windows? I bet the answer is... never. You've never downloaded source code and run "commands" and ended up with executables. It just doesn't happen - it's that complex and Windows is much more predictable as a single OS than Linux is as an OS family.

                        Oh, you're right, I don't believe that has ever happened on Windows, but then again, scripting things like this wouldn't be common on Windows, nor using source to make things work on Windows (for the every-admin/generalist). If I can't find the precompiled version, I move on to something else.

                        It isn't common on Linux, either. I've done it, but I go years in between doing it and have never done it for production.

                        Right - OK that makes sense. I recall you talking about this years ago - many years ago - on SW. People were always talking about open source code, this or that... but rarely was it the case that you actually ever touched the actual source code, instead you downloaded the precompiled installer.

                        scottalanmillerS 1 Reply Last reply Reply Quote 1
                        • scottalanmillerS
                          scottalanmiller @Dashrender
                          last edited by

                          @Dashrender said in When is Something Built from Source:

                          @scottalanmiller said in When is Something Built from Source:

                          @Dashrender said in When is Something Built from Source:

                          @scottalanmiller said in When is Something Built from Source:

                          @Dashrender said in When is Something Built from Source:

                          So I don't see this big tip off you're talking about. I will admit that I'm looking at this through my Windows admin goggles.

                          Actually use those goggles. Tell me when anyone has snuck a compiler past you on Windows? I bet the answer is... never. You've never downloaded source code and run "commands" and ended up with executables. It just doesn't happen - it's that complex and Windows is much more predictable as a single OS than Linux is as an OS family.

                          Oh, you're right, I don't believe that has ever happened on Windows, but then again, scripting things like this wouldn't be common on Windows, nor using source to make things work on Windows (for the every-admin/generalist). If I can't find the precompiled version, I move on to something else.

                          It isn't common on Linux, either. I've done it, but I go years in between doing it and have never done it for production.

                          Right - OK that makes sense. I recall you talking about this years ago - many years ago - on SW. People were always talking about open source code, this or that... but rarely was it the case that you actually ever touched the actual source code, instead you downloaded the precompiled installer.

                          Right. Let's use top as an example. It is a small, open source, C language, compiled application for Linux.

                          You can get access to and check the source code any time that you want. That means that you are free to compile it yourself anytime that you want, too. But I've never seen someone do this (outside of those weirdos using Gentoo.)

                          You use rpm -i top and it downloads the pre-compiled, verified binary from your repo and just puts that in the right place, easy peasy.

                          But if you wanted to modify the source code and compile it yourself for your own version of top, of course that is totally allowed and completely feasible and actually very simple to do (assuming you know how to program in C.)

                          1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403
                            last edited by

                            So @scottalanmiller would you call https://github.com/Jarli01/xenorchestra_installer a "precompiled installer"?

                            scottalanmillerS DashrenderD 2 Replies Last reply Reply Quote 0
                            • DashrenderD
                              Dashrender @scottalanmiller
                              last edited by

                              @scottalanmiller said in When is Something Built from Source:

                              @Dashrender said in When is Something Built from Source:

                              @scottalanmiller said in When is Something Built from Source:

                              @Dashrender said in When is Something Built from Source:

                              Again - all of that stuff can be scripted - I had no idea XO was made in NodeJS,

                              The process involved using NPM, the NodeJS Package Manager 🙂

                              I run an install script that one of you guys wrote - so I have no idea that NPM is being used, nor what it was prior to this conversation.

                              That's another tip off, if you install from script, you can pretty safely assume that it's not source code 🙂 Unless that script creates a million errors that you have to correct by hand.

                              How is a noob suppose to know these things? or even learn these things short of running to a conversation like this? Heck, it's easy to see guys with a dozen years of experience never running into this or understanding it.

                              I feel that you and JB have a leg up because you were both previously software developers.

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @DustinB3403
                                last edited by

                                @DustinB3403 said in When is Something Built from Source:

                                So @scottalanmiller would you call https://github.com/Jarli01/xenorchestra_installer a "precompiled installer"?

                                No, there is nothing compiled in it, nor anything to compile later. It's a script, so compilation/buiding is out of scope.

                                1 Reply Last reply Reply Quote 1
                                • DustinB3403D
                                  DustinB3403
                                  last edited by

                                  @scottalanmiller add some tags please.

                                  source, compilers, precompiled installation, script

                                  1 Reply Last reply Reply Quote 0
                                  • DashrenderD
                                    Dashrender @DustinB3403
                                    last edited by

                                    @DustinB3403 said in When is Something Built from Source:

                                    So @scottalanmiller would you call https://github.com/Jarli01/xenorchestra_installer a "precompiled installer"?

                                    I wouldn't, it's an installation script. There's nothing compiled about it.

                                    DustinB3403D 1 Reply Last reply Reply Quote 1
                                    • DustinB3403D
                                      DustinB3403 @Dashrender
                                      last edited by DustinB3403

                                      @Dashrender said in When is Something Built from Source:

                                      @DustinB3403 said in When is Something Built from Source:

                                      So @scottalanmiller would you call https://github.com/Jarli01/xenorchestra_installer a "precompiled installer"?

                                      I wouldn't, it's an installation script. There's nothing compiled about it.

                                      Why wouldn't you? Think back to when I went through the process of installing XO into Ubuntu 14 (or whatever it was) and posted the process here on ML.

                                      I then compressed the commands down, and @scottalanmiller wrote a script for it. That script pulls in everything you need to install XO.

                                      This is similar to Visual Basic, except you don't have an .exe but a .sh file that does the job.

                                      The end result is an installed application.

                                      DashrenderD scottalanmillerS JaredBuschJ 4 Replies Last reply Reply Quote 0
                                      • DashrenderD
                                        Dashrender @DustinB3403
                                        last edited by

                                        @DustinB3403 said in When is Something Built from Source:

                                        @Dashrender said in When is Something Built from Source:

                                        @DustinB3403 said in When is Something Built from Source:

                                        So @scottalanmiller would you call https://github.com/Jarli01/xenorchestra_installer a "precompiled installer"?

                                        I wouldn't, it's an installation script. There's nothing compiled about it.

                                        Why wouldn't you? Think back to when I went through the process of installing XO into Ubuntu 14 (or whatever it was).

                                        I then compressed the commands down, and @scottalanmiller wrote a script for it. That script pulls in everything you need to install XO.

                                        This is similar to Visual Basic, except you don't have an .exe but a .sh file that does the job.

                                        The end result is an installed application.

                                        You're missing the key concept here.
                                        Compilation.

                                        .sh files are just text files - they are not compiled code.
                                        They require an interpreter of their own to function.
                                        compiled code (normally) doesn't, it runs native on the system.

                                        1 Reply Last reply Reply Quote 1
                                        • scottalanmillerS
                                          scottalanmiller @DustinB3403
                                          last edited by

                                          @DustinB3403 said in When is Something Built from Source:

                                          @Dashrender said in When is Something Built from Source:

                                          @DustinB3403 said in When is Something Built from Source:

                                          So @scottalanmiller would you call https://github.com/Jarli01/xenorchestra_installer a "precompiled installer"?

                                          I wouldn't, it's an installation script. There's nothing compiled about it.

                                          Why wouldn't you? Think back to when I went through the process of installing XO into Ubuntu 14 (or whatever it was).

                                          I then compressed the commands down, and @scottalanmiller wrote a script for it. That script pulls in everything you need to install XO.

                                          This is similar to Visual Basic, except you don't have an .exe but a .sh file that does the job.

                                          The end result is an installed application.

                                          Because they aren't similar, at all. One is compiling, one is copying. In one case you start with a script and just move it between two different places, in the other you compile something and have something that can be executed.

                                          Or to look at it another way....

                                          Visual Basic you start with code and end up with an executable.

                                          XO you start with code and end with code and an executable that was already on the system (NodeJS) runs that code. NodeJS is the executable, not XO.

                                          DashrenderD DustinB3403D 2 Replies Last reply Reply Quote 0
                                          • DustinB3403D
                                            DustinB3403
                                            last edited by

                                            So you're saying bash is a compiler?

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 3 / 6
                                            • First post
                                              Last post