Git Product home page Git Product logo

didactic-eureka's Introduction

didactic-eureka

todo

  • finish first end-to-end prototype
    • implement typechecking for initial language subset
    • implement C code generation for initial language subset
      • make sure to have underflow and overflow checks
    • vim syntax highlighting
    • vim :make compatible diagnostic formatting
  • add enough language features to make writing useful code possible
    • struct field access
      • make sure to support through pointer
    • return, break and continue
      • don’t worry about checking whether every path through a function returns
    • bool, true and false
    • infinite loops and while loops
    • length-prefixed slices with bounds-checked indexing
    • string literal escapes
    • struct literals
    • bitwise or, and, not, xor
    • C-like enums lowered to integers
    • malloc and free as special syntax
    • debug printing as special syntax
    • unchecked external C functions
  • write some tiny demo programs to make sure everything works
  • add enough language features to make writing code an alright experience
    • format strings
    • methods
    • nullable types
      • look at Zig and Hare for inspiration
    • some form of a switch-like construct
    • some form of unions
      • could be unchecked unions, Rust-like extended enums with payloads, Hare-like anonymous tagged unions
    • enough of a generics/templates system to allow making collection types and nothing else
    • Zig-like tests
    • basic multi-file support
  • self hosting
  • further features ...
    • replace dedicated malloc and free syntax with Zig-like custom allocators
    • immutable variables and pointers
    • module system
    • unused warnings
    • actually check if all paths through a function return a value
    • documentation generator
    • autoformatter
    • custom TUI editor with language intelligence
    • LSP server

didactic-eureka's People

Contributors

lunacookies avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.