~icefox/garnetc#7: 
Self-hosting roadmap

So what are the things that I want, and the things that I MUST have, before I can self host? I suppose the question is, how restrictive a language am I willing to write the compiler in? Self-hosting too early is just gonna make life hard, self-hosting too late means I have to write a lot of the compiler twice.

Must have:

  • Structs
  • Enums and pattern matching
  • Pointers
  • Arrays/slices
  • Memory allocation
  • Some amount of I/O

Would be pretty darn nice:

  • Type inference
  • Move semantics
  • Modules
  • Borrow checker
  • Generics of some kind
  • Error handling of some kind (panics, etc)
Status
REPORTED
Submitter
~icefox
Assigned to
No-one
Submitted
1 year, 8 months ago
Updated
1 year, 6 months ago
Labels
T-LATER

~icefox 1 year, 6 months ago

Zig's Grand Bootstrapping Plan: https://github.com/ziglang/zig/issues/853 plenty to learn from there.

~icefox 1 year, 6 months ago

Related: #1

Register here or Log in to comment, or comment via email.