Urgent.News

What's breaking now, across thousands of outlets.

Tech

oviev: Building a Compiler in Ovie The Self-Hosting Journey

One of the milestones of any programming language is when it can compile itself. Ovie Lang 1.0 ships oviev the Ovie compiler written entirely in Ovie (.ov files). Two Compilers, One Language Compiler Language Status oviec Rust Stable use for everything today oviev Ovie (.ov) Stage 1 self-hosted, help test it Both run the same .ov programs: oviec run hello.ov # stable Rust compiler oviev run…

Compiling a compiler is a significant achievement for any programming language, and Ovie Lang has accomplished this milestone with oviev, the Ovie compiler written entirely in Ovie. The compiler, oviev, is released as part of Ovie Lang 1.0 and runs on the stable Rust compiler.

The source code for oviev, written in Ovie, resides in the oviev/src/ directory, with corresponding .ov files in the oviec/src/ directory. The lexer, parser, and other components of oviev are all written in Ovie, demonstrating the self-hosting nature of the compiler.

For example, the lexer in lexer.ov defines token types and maps Ovie keywords to token kinds. The Ovie keywords are hard-coded in the lexer, showcasing the direct integration of language constructs in the compiler's source code.

The compiler is currently in Stage 1, where it delegates to the Rust-based oviec for compilation. Stage 2 is planned, where oviev will be able to compile its own .ov files without relying on the outer Rust compiler. This self-hosted stage will mark an important transition point in the development of Ovie Lang.

The significance of this achievement lies in the fact that Ovie can now describe its own compiler using Ovie itself. This indicates that the language is robust enough to handle compiler logic and build real-world applications. The entire compiler test suite in oviev/src/ is a testament to the power and completeness of Ovie's syntax and features.

To verify the functionality of the compiler, users can use the oviec and oviev commands to run and check various .ov files. So far, all tests have passed, confirming that oviev is functioning as intended.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Direct-to-Storage Browser Uploads for Web Apps: Implement Presigned Retention

For a media SaaS storing training artifacts, the constraint that changes the design is deletion: every upload needs a predictable owner, expiry rule, and audit trail.

  • Implement presigned URLs for safe, efficient direct uploads
  • Application server controls upload permissions and duration
  • Infrai tool provides public, self-describing presign generation

How to make a pet hatching system in Roblox Studio (server-checked Luau)

Egg hatching looks like a UI feature, but almost all of it is server code: who pays, what they get and where it is stored. This is a complete small version you can paste into Studio: one config table, one server script, one button.

  • Create EggConfig ModuleScript with egg prices and weights in ReplicatedStorage
  • Implement PetServer Script in ServerScriptService for server-checked Luau
  • Add equip function with slot limit and client-side hatching request button

More from Tuesday 17 November →