Giter Site home page Giter Site logo

katalist's Introduction

Implementation Brainstorming

Opbvious Requirements: - low memory footprint - highly parallel - inremental - advanced compile time features - calling functions at compile time - inline loops, switches, functions - programatical construction of types

Per File Item Registy

Each file has its own set of datastructures and managed allocations. - there is a memory arena for each file that stores slices - enumerations are stored in optimized storage where each varinat has its own array, small variants are inlined into the enum index. - each scope is an record that can contain functions, fields, and variables, where all of the items can contain expressions. - record it self is an expression - each record is represented as a packed slice to items it owns + slice to expressions it contains - each item tracks how many expressions it contains so we can reserve memory to store types and values in parralel to ast - per file registry allows us to efficiently deallocate changed files and reparse + recompile them as needed

katalist's People

Contributors

mlokr avatar

Watchers

Jakub Dóka 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.