Remix.run Logo
Show HN: G – A fast, memory-safe language with a symbol-free syntax(github.com)
1 points by _pouya_ 6 hours ago

Hi HN,

I built G, a lightweight programming language written in D (with a Go interpreter available). It is designed to be memory-safe and super fast, with a tiny footprint (~2.4MB).

The most unique aspect of G is its syntax. It doesn't use symbols for comments or complex punctuation for functions. It uses a stack-based approach (similar to concatenative languages) where arguments are passed before the function call.

For example, defining an addition function looks like this:

fn add_two [@] : + 2

It also comes with Flex, a built-in package manager to handle external libraries (sudo flex add <lib>).

I’d love to get feedback on the syntax design and the interpreter architecture.

GitHub: https://github.com/pouyathe/glang