tonic
Generic-C-DataStructures
Our great sponsors
tonic | Generic-C-DataStructures | |
---|---|---|
2 | 3 | |
13 | 1 | |
- | - | |
9.1 | 4.3 | |
over 2 years ago | over 2 years ago | |
Rust | C | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tonic
-
How to handle unknown identifiers when parsing?
Yeah, I'd go with this too. I handle this in Tonic by doing a hoisting pass that just birngs all function definitions to the top of the AST. https://github.com/ryangjchandler/tonic/blob/main/src/passes/mod.rs
-
November 2021 monthly "What are you working on?" thread
I'm getting https://github.com/ryangjchandler/tonic ready for Advent of Code. Hoping to have it ready to complete all challenges.
Generic-C-DataStructures
-
15+ year programming willing to help
Hi, I graduated with Chemical engineering and left a dead end job late last year in oil sector. I kind of dabbled in programming on and off for the 7 years before that, learning bits and pieces of C, swift, iOS development, C++, machine learning, even algorithms and data structures; but nothing really “took off”. I used to mainly code simple engineering calculators. But there’s only so many engineering calculators the world needs and so since December last year I started studying CS “properly” - I did SICP and I learnt the basics of interpreters, assembly and compilers. I wanted to gain more experience with C before I did systems so I wrote generic data structures in C, even implemented a subset of Scheme in C .
-
November 2021 monthly "What are you working on?" thread
Started making a generic data structures library in C for subsequently using them to implement a basic Scheme interpreter. link
-
Yet another "Generic Data Structures in C" post
So I was just lurking on this subreddit that I found a really good link for a get-down-to-business tutorial on C: Yale CPSC 223 notes, and I finally understood macros. I was going through Crafting Interpreters where the author was using Java's generic hash tables and I got this motivation for implementing my own generic symbol table implementation in C. I wrote macros for ordinary BSTs and Sedgewick's Left Leaning Red Black trees (translating from his recursive Java implementation). In the process, I also learnt (and used) Clang's Address Sanitizer and Leak detection features to remove memory leaks.
What are some alternatives?
RustScript2 - RustScript is a functional scripting language with as much relation to Rust as Javascript has to Java.
aussieplusplus - Programming language from down under
skybison - A fork of Instagram's experimental performance oriented greenfield implementation of Python. It features small objects; a moving GC; hidden classes; bytecode inline caching; type-specialized bytecode; an experimental template JIT.
CSCMIC - Learning to make a Scheme interpreter in C
protea - An in-progress programming language inspired by JavaScript.
Cwerg - The best C-like language that can be implemented in 10kLOC.
lockdown - Lockdown is a general-purpose programming language that combines the positive characteristics of both "strongly-typed" and "dynamic" languages, giving the developer the choice about when and how these should be used.