All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Nibble: A C-like systems programming language that generates LLVM IR without malloc or external dependencies

By

glouwbug

18d ago· 2 min readenCode

Summary

Nibble is a C-like systems programming language written in 3000 lines of C that demonstrates a novel approach to generating LLVM IR without relying on external dependencies or heap allocations. It supports a range of features including defer, recursion, various data types (integer, float, boolean), structs with GLSL-like operators, pointers, function pointers, branching, loops, type checking, basic C interoperability via generic pointers, and reasonable error messages. The project includes four graphical demos requiring SDL2.

Key quotes

· 3 pulled
Nibble is C-like systems programming language.
Nibble was written in 3000 lines of C to demonstrate an approach to LLVM IR generation without relying on external dependencies or heap allocations.
Nibble supports defer, recursion, integer, floating, and boolean types, structs (simply named types), GLSL-like struct operators, pointers, function pointers, branching, loops, type checking, basic C interoperability via generic pointers, and reasonable error messages.
Snippet from the RSS feed
Generating LLVM IR without malloc or external dependencies - glouw/nibble

You might also wanna read