Announcement

Collapse
No announcement yet.

CIB: Getting The Clang Compiler To Run In A Web Browser

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CIB: Getting The Clang Compiler To Run In A Web Browser

    Phoronix: CIB: Getting The Clang Compiler To Run In A Web Browser

    CIB is a new hobby project getting the full-blown Clang C/C++ compiler to run within a web browser as a technical feat...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    This is amazing and probably somewhat terrifying…

    Comment


    • #3
      This is not the first time a generic compiler was made to work inside a browser - the in-browser VMs available at https://bellard.org/jslinux/ used to come with a functional gcc included - here's an archive.org link to an older version from 2012 that was still containing gcc: http://web.archive.org/web/201202290...d.org/jslinux/

      While technically a nice demonstration, I think it is creepy how the common people confuse browsers with operating systems these days, and developers follow suit, emphasizing way too seldom how turning your browser into an operating system will basically lower the safety of your system to that of the browser. It's weird how people think it's safe to automatically execute whatever software they load if only it comes to them via HTTP(S) protocol...
      Last edited by dwagner; 01 January 2018, 08:50 PM.

      Comment


      • #4
        This is one of those things that you can't help but to ask why yet on the other hand admire the person taking this on. Now given that what the demonstrates more than anything is how far the whole LLVM project has come, effectively a fully fleshed out suite of tools.

        Comment


        • #5
          Cool , but i would rather prefer web text editors / IDEs such as Monaco to use ( or at least default to ) the stock clang compiler

          Comment


          • #6
            Interesting. Maybe this could lead to a browser-based "kill-ryzen" style test, too.

            Comment


            • #7
              Originally posted by dwagner View Post
              This is not the first time a generic compiler was made to work inside a browser - the in-browser VMs available at https://bellard.org/jslinux/ used to come with a functional gcc included - here's an archive.org link to an older version from 2012 that was still containing gcc: http://web.archive.org/web/201202290...d.org/jslinux/

              While technically a nice demonstration, I think it is creepy how the common people confuse browsers with operating systems these days, and developers follow suit, emphasizing way too seldom how turning your browser into an operating system will basically lower the safety of your system to that of the browser. It's weird how people think it's safe to automatically execute whatever software they load if only it comes to them via HTTP(S) protocol...
              I agree with the sentiment, but the reality is the web as an OS has one feature that no other OS has. Write once, run anywhere. (You can debate browser versions, but I would simply respond they are akin to Unix distros, i.e. OS X, BSD, Linux, etc..) And it works across almost all of device types. This is no small feat when you consider how many of the devices sold to third world countries are not the classic three that developers have traditionally compiled for.

              This should also stress the WASM system in a new way to help find speed bumps and issues.

              Comment


              • #8
                Yes, it will run everywhere, but it'll run like sh1t. Not to mention stupid GUI optimized for browsing the web and not some serious CAD or development work

                Comment


                • #9
                  Originally posted by Space Beer View Post
                  Yes, it will run everywhere, but it'll run like sh1t. Not to mention stupid GUI optimized for browsing the web and not some serious CAD or development work
                  It will run decent if it's being optimised for it and there's no reason you can't have a more traditional GUI in the browser. Immediate mode is a thing, you know.

                  Comment


                  • #10
                    Jeezus Christ on a pogo stick... this is beautiful and scary at the same time.

                    Comment

                    Working...
                    X