Git Product home page Git Product logo

Comments (1)

gabordemooij avatar gabordemooij commented on September 27, 2024

Citrine can 'compile' programs. By doing this you can gain extra performance. However, since Citrine is an interpreted language, compiling in this context means something different. It serializes the AST (abstract syntax tree) to disk to skip the lexing and parsing steps. However, serializing also takes time, so instead of serializing/deserializing, Citrine writes the actual bytes to disk, directly. This however is not really possible because C pointers can be fragmented, to accomplish this task Citrine therefore works closely with its CTR memory allocator to align the memory blocks. To reload the byte code in memory Citrine 're-swizzles' the pointers according to addressbook entries stored in the header. It seems this technique is called 'pointer-swizzling', when I searched for more info on 'C-swizzling' I found out it has a different meaning as well, oops.. :) lol

from citrine.

Related Issues (20)

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.