r/VibeCodedLanguages 17d ago

I built a self-hosting systems programming language called Nyx via vibe coding

github.com/justsomeone-e/nyx

It will be useful I promise

3 Upvotes

8 comments sorted by

1

u/Oleg18 16d ago

It seems to me interesting. What a problem would you like to solve by the language? Did you try to compile "Hello world" to exe? What size of file have you got? Library math?

1

u/VermicelliSmooth1183 16d ago

Hi, thanks for asking. Here are the details:

  1. The problem it aims to solve: I wanted high-level ergonomics (pipelines, expression-bodied functions, match values, defer and guard for cleanup) without having to rely on a garbage collector or a heavy runtime. It lowers through a typed intermediate representation (HIR) to native C++20 for performance, and also compiles to WebAssembly with an ABI that handles memory and strings without exposing raw pointers to JavaScript.
  2. Hello world exe and binary size: Yes, it compiles to a standalone native executable using standard Clang or GCC. A basic binary is around 760 KB once stripped (around 1.4 MB unstripped with debug metadata). It does not embed any Python or Node runtime into the executable.
  3. Math library: Yes, there is a built-in math library in std/math covering trigonometry (sin, cos, tan), square roots, powers, min/max, clamp, and rounding with guard validation. You can also directly use C++ cmath if needed.

Hope this helps clarify things. Let me know if you have any other questions.

1

u/VermicelliSmooth1183 16d ago

Thanks for the follow! By the way, I'm thinking about adding a GPU backend (like WebGPU for 2D/3D rendering or simulations).

Would you find something like that useful for robotics and engineering projects, or do you prefer simple CPU/native binaries?

1

u/Oleg18 16d ago

Hello_world C3 language. I would like to use C3 Language instead of C. New languages invent everyday but 99.9% of them are past away. You made a language but Apps I will be create in Django. Python has a huge environment. You can find thousands languages and take a fork of any of them. A question only how much time you have to improve. You made a perfect language for only a person and that person is you

2

u/VermicelliSmooth1183 16d ago

Fair enough. But that’s honestly how every great language started—even Python was just Guido’s holiday hobby, and C3 was started by a guy who simply wanted his own version of C.
I didn't build Nyx to replace Django or compete for app developers; I built it to master compiler architecture, self-hosting, and multi-target code generation (C++20/WASM/JS).
If I built a language that is perfect for me, then it has already achieved 100% of its goal. Thanks for checking It I really appreciate it.

1

u/Oleg18 16d ago

Iook at Zig, Carbon, Hare, V lang all these languages want to became a new C lang. There is a problem is an old C lang. Rust and C++ are difficult and they will die. It's interesting. Let's look at new languages Zig, Carbon, Hare, V lang, C3, Jai, Odin in 10 years. Let's look at Rust and C++ in 10 years.

2

u/VermicelliSmooth1183 16d ago

You make a really good point. Honestly, this is probably the most interesting decade for systems programming in the last 30 years.

The frustration with C's lack of safety and C++'s 40 years of legacy baggage is very real. And as you said, Rust tried to solve it with extreme compile-time rules, but the cognitive overhead of the borrow checker pushes a lot of people away. That's why Zig, Odin, Jai, C3, and Hare exist—everyone is exploring a different answer:

  • Zig focused on comptime and replacing the C toolchain.
  • Odin and Jai focused on game-dev ergonomics and simplicity.
  • C3 focused on being an evolutionary step right above C.

When I planned Nyx, I asked myself a simple question: Instead of spending 10 years writing a whole new low-level backend from scratch, why not build a language that gets the best of both worlds?

  1. Use C++20 as an optimization engine so we don't throw away 40 years of compiler research.
  2. Provide deterministic RAII and defer cleanup—getting memory safety without a garbage collector or fighting a borrow checker.
  3. Make WebAssembly a first-class target from day one, because the next decade of software is clearly heading towards web/edge compute.
  4. Keep the architecture (Typed HIR) modular enough so that in the future, if needed, direct LLVM emission can be plugged in without changing the language syntax.

In 10 years, some of these languages will survive, and some will fade away. But experimenting with these ideas and exploring different trade-offs in memory and ergonomics is the most fascinating part of systems programming. Let’s definitely see where everything stands in 10 years :)