Q is a minimal, dependency-free programming language and compiler targeting x86-64 and arm64 with ultra-fast builds and tiny binaries. This table ofte

The Q Programming Language

submited by
Style Pass
2025-08-03 15:00:03

Q is a minimal, dependency-free programming language and compiler targeting x86-64 and arm64 with ultra-fast builds and tiny binaries.

This table often raises the question why Mac builds are so huge compared to the rest. The answer is in these few lines of their kernel code. None of the other operating systems force you to page-align sections on disk. In practice, however, it's not as bad as it sounds because the padding is a zero-filled area that barely consumes any disk space in sparse files.

The backend uses an SSA based IR which is also used by well established compilers like gcc, go and llvm. SSA makes it trivial to apply lots of common optimization passes to it. As such, the quality of the generated assembly is fairly high despite the young age of the project.

Create a file with the contents above and add permissions via chmod +x. Now you can execute it from anywhere. The generated machine code runs directly from RAM if the OS supports it.

Leave a Comment
Related Posts