Show HN: Jik – a self-hosted language using region-based memory management githu...
Show HN @show
Show HN: Jik – a self-hosted language using region-based memory management github.com · 4 points · 0 comments · HN thread
TL;DR Jik is a statically typed, readable language that compiles to C and manages memory with regions instead of garbage collection or manual heap allocation. The project is shown on GitHub with a release download, a standard library, examples, a Raylib-based game package, and a VS Code extension. The thread has no comments yet, so no community reaction is recorded.
- Composite values (vectors, dictionaries, and similar) are allocated into regions that set their lifetime, and the compiler checks prevent references across regions with incompatible lifetimes.
- Functions returning composite values let the caller pick the destination region, for example by passing _ for the current local region or an explicit Region.
- The language includes type inference, optional annotations, options, variants, exhaustive enum/variant tables, and error handling via throws functions with try/except.
- jik run and jik build need a C compiler; Jik looks for clang, then gcc, then cc, and can be pointed at one with --cc or JIK_CC.
- Only gcc and clang were tested as host compilers; MSVC was not tested.
- The build uses a bundled C seed, so no prior Jik compiler download is needed; make test runs the test suite.
Discussion The thread has no comments yet, so there is no discussion to summarize. The submission has 4 points and has not yet drawn any reaction from readers.
#programmingLanguage #regions #memoryManagement #compilerToC #showHN