5 ms·
Chimera Linux: a Linux distribution based on FreeBSD userland and LLVM
- ktm5j 5y agoOh wow! I often wished that something like this existed, very cool!
- opk 5y agoYes, me too. I've used void linux quite a bit which does use some BSD components like mandoc but is still gcc and GNU coreutils. I can understand the logic of using the packaging system from Alpine. I rather like pkg on FreeBSD, it feels more consistent, predictable and simpler than either deb/apt or rpm/dnf.
- q66 5y agoi did intend to use pkg at first, however, after some experimenting apk turned out to be the better option (there are things pkg still doesn't support - such as version constraints, getting it to work on musl is a fair amount of patching, its shlib scanning is semi-broken on Linux, and its repo indexing is insufficient for my purposes)
- maybeben 5y agothe shlib dependency stuff is pretty broken even in FreeBSD. apk is probably my favorite package manager experience. cool project, thank you
- littlestymaar 5y agoAs the most upvoted comment in this thread is wondering what could be the motivations for that (and I'm also wondering), could you explain why you wished it exist?
- sjansen 5y agoAn explanation of their motivations would be helpful. I’m sure it’s great for anyone that already knows they want it, but what about everyone else? My experience managing many different flavors of *nix has been that the GNU utils are far superior, so I don’t understand wanting to replace them. My first guess is this is targeted at embedded use, but that’s pure conjecture.
- genghizkhan 5y agoGNU tools are GPL-licensed, and there's a certain contingent of folks who do not want their userland polluted with GPL-licensed tooling. I'm not saying I like or understand this, but I have seen this attitude among a few in the community.
- spijdar 5y agoAs someone who finds this a bit appealing and perhaps speaking for others with similar "taste", it's a mixture of this, but also the sense that the BSD userland is smaller and less bloated than the GNU userland. It's the flipside of what another commenter mentioned, GNU tools tend to be more feature filled, but at the expense of code size and complexity. Similar to why some people want to use a musl libc userland. For some people, it's the licensing, for others it's about the design and simplicity of implementation.
- genghizkhan 5y agoI use the Alpine userland and so totally understand the reasoning of having less bloated tooling and the like. However, personally I prefer to apply this philosophy to stuff I have running in the background. If I'm using initscripts, I'd rather they be written using execline (and ideally running with s6) rather than bash, if it has to be a version of sh then I prefer dash over bash, builtins over external tools, nginx over apache, and so on. But having used busybox utils on a daily basis I truly do not understand how people can use them daily and not go insane. The GNU utils are so much faster and more feature-filled. To me, reducing bloat makes sense for something running forever in the background. Interactive stuff ought to be as feature-filled as possible, stuff in the background as lean it can. I realise others have different views about this, but I think I hew fairly closely to the mainstream thought about bloat.
- amelius 5y agoHow do you compile C++ on this distribution (without gcc)?
- invokestatic 5y agoclang/clang++
- mrlonglong 5y agoYou use LLVM to cross compile binaries then use them to boot strap the rest of the system.
- tyingq 5y agoPoking around a bit, the FreeBSD Userland port seems to mostly be from dcantrell, and seems maintained: https://github.com/dcantrell/bsdutils https://github.com/dcantrell/bsdutils
- rkeene2 5y agoThis is the converse of Debian/kFreeBSD ! So if you find it interesting you might be interested in Debian/kFreeBSD as well.
- imiric 5y agoInteresting, thanks for sharing. The choice of Python for writing the package management tool is curious. Besides the fact that writing such a tool from scratch is a large undertaking in and of itself. I wish more Linux distributions just adopted a transactional tool like Guix instead of rolling their own. Doing upgrades safely and being able to rollback easily is a huge benefit for end users that it's hard to believe more distros haven't adopted it. We shouldn't have to reinvent the wheel every time.
- gh02t 5y agoPython isn't that unusual, dnf and yum on Redhat are both written (primarily) in Python. Agree with you though, I get the appeal of writing your own package manager but...
- zinekeller 5y agoReally not unusual. In Debian, while dpkg is in C itself (and still be for the foreseeable future), more and more apt tools are rewritten in Python.
- alekq 5y agoGentoo's Portage also.
- phendrenad2 5y agoWhy is writing a package management tool a large undertaking? What specifically makes it difficult or time-consuming?
- gh02t 5y agoIt's a deceptively complex with a lot of edge cases. Dependency resolution is a difficult problem, as are transactional updates. And you want it to be something that is bulletproof, since broken packages are a nightmare. It's not that hard to get something usable, but it can take a lot of effort to get something competitive with what people have come to expect from existing mature package managers.
- qwerty456127 5y agoI wish there were a Linux with GNU userland but structured and configured like FreeBSD and it wasn't a marginal retrograde sandbox with weak community and no support from app authors. Essentially I want a Manjaro or an Ubuntu but with BSD init and config. Because in FreeBSD (as I remember it, it has been a while) you just have some plain-text configs in well-established places and can easily understand when and what does run and it's more classic unixway. SysVinit was not bad but everything depends on systemd nowadays which I find a sacrifice fast booting isn't worth.
- krylon 5y agoIt's been a very, very long time (~17-18 years) since I last touched it, but as I recall, Slackware had an init system back then that was similar to FreeBSD's.
- dTal 5y agoI'm getting a lot of mileage out of Void Linux. It's more like Arch than Ubuntu, but otherwise it fits your description. It's very easy to configure and administrate, mostly by virtue of doing nothing "weird" - just a simple init system, a powerful package manager, and utterly standard everything else (the Arch wiki works well for it).
- flatiron 5y agoSounds like arch with extra steps. Why use it and not arch?
- hestefisk 5y agoApart from Linux’ hardware support, is there any other major motivation behind this? Otherwise if you want a stable base and sane config, why not just install FreeBSD? :) I like the name Chimera btw. Underscores the hybrid nature of the project well.
- yjftsjthsd-h 5y agoIn fairness, hardware support is a pretty good reason:) But also: It's fun, it's interesting, and that's a good enough reason for some of us:)
- flatiron 5y agoLinux buys you lots of stuff besides hardware. Docker comes to mind.
- vzaliva 5y agoSo the most viral component of GNU ecosystem is "make". They managed to replace everything except it :)
- craftkiller 5y agoFor what its worth, the BSDs do have their own "make"[1]. Its just not compatible with GNU makefiles so for building 3rd party software you often need to install GNU's make on the BSDs. [1] https://www.freebsd.org/cgi/man.cgi?make(1) https://www.freebsd.org/cgi/man.cgi?make(1)
- q66 5y agoi do use BSD make for a lot of components, but yes, there are a few where GNU make is not easily replaceable :) there are plans to change this eventually, but nothing has materialized yet
- yjftsjthsd-h 5y agoA big part of it is likely that many components are mostly stand-alone - even things like coreutils can be replaced at will so long as everyone is using POSIX/portable behaviors - but make(1) gets used by every package that you build, so if any of your packages are using GNUisms in their Makefile you need GNU Make. (Of course, you could declare gmake as a build dependency for 3rd party software that you're packaging, but that only allows you to kinda segment the problem out rather than solving it)
- phendrenad2 5y agoSo what part of Chimera is "built with LLVM"? Certainly not the Linux kernel itself, that relies too heavily on GCC quirks.
- robmusial 5y agoThis has not been true for some time, maybe 2017? Linux Foundation even had an LLVM Linux initiative. Building with Clang is supported https://www.kernel.org/doc/html/v5.8/kbuild/llvm.html https://www.kernel.org/doc/html/v5.8/kbuild/llvm.html
- rjmalagon 5y agoActually, I have a LLVM build kernel in a Debian server, with ThinLTO enabled config. "Linux version 5.13.0+ (x@x) (Debian clang version 13.0.0-++20210418105309+a0898f0cecc7-1~exp1, LLD 13.0.0) #6 SMP Thu Jul 1 10:22:40 CDT 2021"
- cesarb 5y ago> Certainly not the Linux kernel itself, that relies too heavily on GCC quirks. True, but there was a large effort to clone in LLVM nearly all the GCC extensions and quirks that the Linux kernel requires, so that nowadays the Linux kernel can be mostly compiled also with LLVM. See https://bugs.llvm.org/show_bug.cgi?id=4068 https://bugs.llvm.org/show_bug.cgi?id=4068 and its long list of dependencies to get an idea of what had to be done.
- wyldfire 5y agoThis was historically the case, but no longer. Several architectures can be built with clang now and there's one that is built exclusively with clang (for lack of a gcc-based toolchain). Also, Nick Desaulniers and team from Google work on fixes to the toolchains and kernel to keep it that way. [1] [1] https://clangbuiltlinux.github.io/ https://clangbuiltlinux.github.io/
- deleted 5y ago[deleted]
- maweki 5y agoFunnily enough, the Linux distribution GamerOS, which is basically a game-console-experience distribution based on the idea of SteamOS (booting directly into the game platform), just rebranded to ChimeraOS last week. I was immediately confused.