Skip to content

Self-hosting: Write Carv compiler in Carv #12

@dev-dami

Description

@dev-dami

Description

The ultimate goal: write the Carv compiler in Carv itself.

Why Self-Hosting?

  • Proves the language is capable enough for real programs
  • Dogfooding - we use what we build
  • Bragging rights tbh

Prerequisites

  • Module system (done in v0.2.0!)
  • Package manager
  • File I/O in standard library
  • More robust string handling
  • Possibly: generics or better type system

Roadmap

  1. Write a simple lexer in Carv
  2. Write the parser
  3. Write the type checker
  4. Write the C codegen
  5. Bootstrap: compile Carv compiler with Go version, then compile itself

Milestone

This is the long-term vision. Breaking into smaller tasks as prerequisites are met.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions