Vire: my own programming language, and it compiles itself

By (@cannamuffinman) · · Code

Vire: my own programming language, and it compiles itself - image 1

Not a game, not a dashboard. A whole programming language 🛠️Vire is my own small language with its own syntax. Its native compiler builds itself, and two rebuilds in a row come out byte-for-byte identical on Windows and Linux. Security first: guest code runs in a folder sandbox with hard caps (100,000-item lists, 64 calls deep), and the caps never get loosened to make a test pass. It's not done yet. Send it to the friend in your group chat who thinks they can break anything, then have them send the fix as a PR 👇 github.com/CannaMuffinMan/vire

Tech stack

  • Cursor

Prompt

Goal: a working, CI-verified Hello World quickstart for Vire.
1. Branch from phase0-harden to `hello-world/quickstart`.
2. Add `examples/hello/hello.vire`:
  define main
    say "Hello, World!"
  end
(Adjust only if the current grammar requires different syntax; it must actually run.)
3. README: add a section "Quickstart: Hello World" with exact, tested commands: `dotnet build vire.csproj -c Release`; `dotnet exec bin/Release/net10.0/vire.dll examples/hello/hello.vire`; then the compiled path (set VIRE_SEAL_KEY or run `vire keygen`, copy to data/hello.vire, compile with compiler.vire, run data/hello.vc). Use the real invocation syntax the repo supports, and never print or commit a key.
4. `.github/workflows/check.yml`: add a `hello` job (ubuntu-latest, .NET 10) that builds and runs BOTH interpreter and compiled modes, and fails unless each stdout is exactly `Hello, World!` and exit code 0. Generate any seal key ephemerally inside the job, and never echo it.
5. Optional: add `examples/` to the Dockerfile COPY plus a `docker run` hello check, only if it stays green.
6. Rules: no commits to master/main, no force-push, no committed binaries (`tools/check-tracked-binaries.sh` must pass…

Comments (1)

  1. Jack Herzlich · · 1 like

    Bros really dropping his own language out here. Jeez man talk about cooking. Incredible work I’m sure this took a lot of time. This is really amazing and it’s great to see something here like this. Very inspiring keep up the great work. Excited to see how this grows

    1. TheGreenHoodLegend ·

      I'm still fleshing it out further. It's time there were 4 primary coding languages.

    2. TheGreenHoodLegend ·

      I really need to do more fuzzing. Maybe set up some Ollama Fuzz models...idk yet...

3 likes · 3 comments · 8 views

Explore more on Prompted