llvm-project
darwin-xnu
llvm-project | darwin-xnu | |
---|---|---|
356 | 186 | |
26,431 | 10,694 | |
3.3% | - | |
10.0 | 0.0 | |
3 days ago | over 1 year ago | |
LLVM | C | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
llvm-project
-
Compilers Are (Too) Smart
The background here is that "ctpop < 2" or "ctpop == 1" (depending on zero behavior) is LLVM's canonical representation for a "power of two" check. It is used on the premise that the backend will expand it back into a cheap bitwise check and not use an actual ctpop operation. However, due to complex interactions in the backend, this does not actually happen in this case (https://github.com/llvm/llvm-project/issues/94829).
-
What errors are lurking in LLVM code?
The checked project version is LLVM 18.1.0.
-
Qualcomm's Oryon LLVM Patches
I think they should probably set LoopMicroOpBufferSize to a non-zero value even if its not microarchitecturally accurate. This value is used in LLVM to control whether partial and runtime loop unrolling are enabled (actually only for that). Although some targets override this default behaviour, AArch64 only overrides it to enable partial and runtime unrolling for in-order models. I've left a review comment https://github.com/llvm/llvm-project/pull/91022/files#r16026... and as I note there, the setting seems to have become very divorced from microarchitectural reality if you look at how and why different scheduling models set it in-tree (e.g. all the Neoverse cores, set it to 16 with a comment they just copied it from the A57).
-
Yes, Ruby is fast, but…
In conclusion, none of the proposed changes to the Ruby version of the code makes a dent in the Crystal version. This is not entirely Crystal's doing: it uses the LLVM backend, which generates very optimized binaries.
-
Qt and C++ Trivial Relocation (Part 1)
As far as I know, libstdc++'s representation has two advantages:
First, it simplifies the implementation of `s.data()`, because you hold a pointer that invariably points to the first character of the data. The pointer-less version needs to do a branch there. Compare libstdc++ [1] to libc++ [2].
[1]: https://github.com/gcc-mirror/gcc/blob/065dddc/libstdc++-v3/...
[2]: https://github.com/llvm/llvm-project/blob/1a96179/libcxx/inc...
Basically libstdc++ is paying an extra 8 bytes of storage, and losing trivial relocatability, in exchange for one fewer branch every time you access the string's characters. I imagine that the performance impact of that extra branch is tiny, and massively confounded in practice by unrelated factors that are clearly on libc++'s side (e.g. libc++'s SSO buffer is 7 bytes bigger, despite libc++'s string object itself being smaller). But it's there.
The second advantage is that libstdc++ already did it that way, and to change it would be an ABI break; so now they're stuck with it. I mean, obviously that's not an "advantage" in the intuitive sense; but it's functionally equivalent to an advantage, in that it's a very strong technical answer to the question "Why doesn't libstdc++ just switch to doing it libc++'s way?"
-
Playing with DragonRuby Game Toolkit (DRGTK)
This Ruby implementation is based on mruby and LLVM and it’s commercial software but cheap.
- Add support for Qualcomm Oryon processor
-
Ask HN: Which books/resources to understand modern Assembler?
'Computer Architeture: A Quantitative Apporach" and/or more specific design types (mips, arm, etc) can be found under the Morgan Kaufmann Series in Computer Architeture and Design.
"Getting Started with LLVM Core Libraries: Get to Grips With Llvm Essentials and Use the Core Libraries to Build Advanced Tools "
"The Architecture of Open Source Applications (Volume 1) : LLVM" https://aosabook.org/en/v1/llvm.html
"Tourist Guide to LLVM source code" : https://blog.regehr.org/archives/1453
llvm home page : https://llvm.org/
llvm tutorial : https://llvm.org/docs/tutorial/
llvm reference : https://llvm.org/docs/LangRef.html
learn by examples : C source code to 'llvm' bitcode : https://stackoverflow.com/questions/9148890/how-to-make-clan...
-
Flang-new: How to force arrays to be allocated on the heap?
See
https://github.com/llvm/llvm-project/issues/88344
https://fortran-lang.discourse.group/t/flang-new-how-to-forc...
- The LLVM Compiler Infrastructure
darwin-xnu
-
What font is thls?
Here's the C source code of the font itself, as a 256x16 array of 8 bit values.
-
Long before CentOS or RHEL, a reminder from 2000: RedHatIsNotLinux.org
> Update: fortunately there's still Mac OS.
Go download the source for Darwin.. https://github.com/apple/darwin-xnu
Compile it. Install it on your MacBook. Tell us how well MacOS boots that kernel.
- Apple’s Game Porting Toolkit is Wine
-
The real murder is always in the comments
What is still true? That apple kernels are Mach kernels? It still is very true. Darwin is (mostly) open source, you can check it out here: https://github.com/apple/darwin-xnu
-
[D] ClosedAI license, open-source license which restricts only OpenAI, Microsoft, Google, and Meta from commercial use
Everything that includes copyleft code is open source. You can see https://opensource.apple.com for a full list
-
Google Leaked Doc: OpenAI doesn’t matter
Jup! Their kernel was based on FreeBSD, IIRC, and is Open Source!
- An improvement to Apple's XNU kernel
-
Linux is too proprietary and slow compared to Windows 11
Funfact darwin itself is open source aswell: apple/darwin-xnu: The Darwin Kernel (mirror). This repository is a pure mirror and contributions are currently not accepted via pull-requests, please submit your contributions via https://developer.apple.com/bug-reporting/ (github.com)
- Linux got nothing on macOS
- Top Ten Fallacies About RISC-V
What are some alternatives?
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
DeepCreamPy
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
linux-m1 - Linux kernel source tree
gcc
ravynos - A BSD-based OS project that aims to provide source and binary compatibility with macOS® and a similar user experience.
SDL - Simple Directmedia Layer
freebsd-src - The FreeBSD src tree publish-only repository. Experimenting with 'simple' pull requests....
cosmopolitan - build-once run-anywhere c library
darling - Darwin/macOS emulation layer for Linux
windmill - Open-source developer platform to turn scripts into workflows and UIs. Fastest workflow engine (5x vs Airflow). Open-source alternative to Airplane and Retool.
xnu