Writing a minimal Lua implementation with a virtual machine from scratch in Rust

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • piccolo

    An experimental stackless Lua VM implemented in pure Rust (by kyren)

  • threaded-code-benchmark

    A demonstration of ways to implement 'threaded code,' a technique used in Forth and in virtual machines like the JVM.

  • You have to call the function. This adds a new stack frame, which then is closed when the function concludes. I posted a benchmark of various techniques of VM implementation here today. Just calling the function will always be the slowest due to the work the processor has to do for each instruction.

    https://github.com/shadowofneptune/threaded-code-benchmark

    Basically, you're better off with a massive switch statement, even if it's ugly in terms of program organization.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • mal

    mal - Make a Lisp

  • No questions (yet) but I found this a really good post. I'm a Rust newbie and I've coincidentally just started working through 'Crafting Interpreters' using Rust as my implementation language. Some of your code has helped clarify things in my mind.

    My actual long-term goal is to build a VM in Rust and then use this to re-do the Make A Lisp project [0]. I did this a couple of years ago using C# and felt vaguely uneasy that I was using C# to do the heavy lifting associated with garbage collection, etc.

    [0] https://github.com/kanaka/mal

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts