News for hackers. Stuff that matters.
Re:ExectOS – brand new operating system which derives from N... by otabdeveloper4 on Wednesday June 19, 2024 @07:48AM (#40727346)
Clang isn't better. It just has a more permissive license so it's what Apple uses.
Re:ExectOS – brand new operating system which derives from N... by KingLancelot on Wednesday June 19, 2024 @09:32AM (#40728126)
Apple started the Clang project buddy, you’ve got your cause and effect backwards.
Re:ExectOS – brand new operating system which derives from N... by pjmlp on Wednesday June 19, 2024 @02:29PM (#40731064)
Yes, because they weren't willing to keep using their GCC fork, for various reason, namely the license (which already made Steve Jobs unhappy once), and being less modular (as per design decision).
Re:ExectOS – brand new operating system which derives from N... by boxed on Wednesday June 19, 2024 @10:14AM (#40728512)
It's also usable as a library in a way GCC isn't. That's why Apple started using it with their OpenGL software drivers back in the day. That's why almost all modern and new programming languages use LLVM, and those that don't do not use GCC.
Re:ExectOS – brand new operating system which derives from N... by pjmlp on Wednesday June 19, 2024 @02:31PM (#40731079)
Even if GCC was easily usable as library, many of those LLVM use cases don't work that well with GCC's license.
Re:ExectOS – brand new operating system which derives from N... by astrange on Thursday June 20, 2024 @03:42AM (#40735987)
That's out of date, libgccjit exists. LLVM is a bit difficult to use as a library because it has no stable API and is in C++ so it doesn't have a stable ABI either.
Re:ExectOS – brand new operating system which derives from N... by pjmlp on Friday June 21, 2024 @02:32AM (#40746784)
LLVM does offer a C based stable ABI, even though it isn't as feature rich as the C++ one, is good enough for most use cases.

https://llvm.org/doxygen/group__LLVMC.html

Re:ExectOS – brand new operating system which derives from N... by boxed on Sunday June 23, 2024 @01:21PM (#40768992)
Hmm.. why is it called "jit"? That seems like it's telling everyone the use case is very different from LLVM. Also the big EXPERIMENTAL banner doesn't instill confidence. Unlike with LLVM which is used by dozens of production languages.
Re:ExectOS – brand new operating system which derives from N... by astrange on Sunday June 23, 2024 @09:24PM (#40772017)
Why would you need it as a library other than to do jit?
Re:ExectOS – brand new operating system which derives from N... by kirha on Wednesday June 19, 2024 @12:29PM (#40729805)
Actually GCC for Windows target is like pain in the ass. Look for how many problems ReactOS had with it. Also this would need SEH to be implemented. Clang gives that out of the box.
Re:ExectOS – brand new operating system which derives from N... by otabdeveloper4 on Monday June 24, 2024 @02:03PM (#40778977)
Don't care for legacy dying OS's, sorry.