I built my own programming language Called whale using Go as the base

Hey everyone!

Over the last few weeks, I decided to dive into the deep end of compilers and language design. The result? I built a brand new systems programming language called Whale (.wh).

I wanted the strict, safe error handling and beautiful syntax of Rust (using match, let mut, and strict typing), but I didn't want to reinvent the wheel for OS-level threading and networking. So, I wrote the entire engine, parser, and interpreter in Go.

In Whale, you get a "Shield of Rust, Engine of Go" architecture. When you type spawn handle_client() in Whale, the FFI tells the Go runtime to seamlessly spin up a Goroutine under the hood.

What it can do so far:

  • I've successfully built a Real-Time TCP Chat Server entirely in user-space Whale code.
  • It compiles down to a single standalone wh.exe executable. No massive runtimes needed for end-users!
  • Has its own standard libraries (std/net, std/http, std/fs).

My ultimate goal? I want to get Whale officially recognized by GitHub's language detector (Linguist) so we can get our own official language color! But GitHub requires a language to be used in 200 unique repositories first.

If you're a language nerd or just want to try breaking a new compiler, I'd love for you to check it out, run a script, and tell me what you think!

https://github.com/divyanshuchoudhary2508-pixel/Whale-programming-lang

Posted Jul 11, 2026, 1:29 PM UTC

11
Loading comments…