Giter VIP home page Giter VIP logo

Comments (3)

nlfiedler avatar nlfiedler commented on August 28, 2024

Look at the Java byte code format [1] for ideas, although Java byte code seems a bit low level. Basically, the primitive expressions in Scheme need to have corresponding byte codes, while nearly everything else is derived from those primitive expressions. The built-in procedures for the various types will continue to be implemented in Go for sake of performance.

Consider the impact this may have on the (read) and (eval) procedures; perhaps eval would perform JIT compilation to byte code.

Consider writing the compiled byte code to a file to avoid compiling the same code repeatedly. See the Java class file format for ideas [2].

[1] http://en.wikipedia.org/wiki/Java_bytecode
[2] http://en.wikipedia.org/wiki/Java_class_file

from bakeneko.

nlfiedler avatar nlfiedler commented on August 28, 2024

Using Eli Bendersky's "bob" [1] Scheme compiler/interpreter written in Python (ignoring the C++ version for now) as a guide for implementing the equivalent in Go.

[1] https://github.com/eliben/bobscheme

from bakeneko.

nlfiedler avatar nlfiedler commented on August 28, 2024

Fixed in commit cdbc261.

from bakeneko.

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.