Implementing a Call Stack

This page summarizes the projects mentioned and recommended in the original post on /r/ProgrammingLanguages

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
  • interpreter

    A simple intepreter written in java.

  • Here you go: https://github.com/bamless/interpreter. Look at the interpret/memenv package. The implementation really couldn't be more simple: it is just a queue of frame objects. pushStackFrame is called when calling a function, and popStackFrame when hitting a return or a function end. The MemoryEnvironment is instantiated by the interpreter visitor so all parts of it have access to the memory. The variables themselves are kept in an hashmap inside each Frame. Not the most efficient way but fast enough for a tree walking interpreter

  • jstar

    A lightweight embeddable scripting language

  • Also, since you are willing to look at non-treewalk interpreters, you can take a look at this: https://github.com/bamless/jstar/blob/master/src/vm.h In this I use two parallel arrays, one for frames and one for variables. The frame contains the instruction pointer of the function and the address of the start of the activation record. Variables are stored packed inside the stack array and are accessed through indexing.

  • 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
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

  • VDrift: Cross-Platform Driving Simulation

    3 projects | news.ycombinator.com | 28 Dec 2023
  • Show HN: MicroTCP, a minimal TCP/IP stack

    3 projects | news.ycombinator.com | 31 Oct 2023
  • The Umka scripting language released: Now with closures, type switch statements and faster strings

    1 project | /r/programming | 20 Sep 2023
  • I developed a faster Ruby interpreter

    1 project | news.ycombinator.com | 10 May 2023
  • Wren is a small, fast, class-based concurrent scripting language

    4 projects | /r/programming | 28 Aug 2022