Show HN: Cicada – a scripting language that integrates with C
23 points
2 hours ago
| 2 comments
| github.com
| HN
I wrote a lightweight scripting language that runs together with C. Specifically, it's a C library, you run it through a C function call, and it can callback your own C functions. Compiles to ~250 kB. No dependencies beyond the C standard library.

Key language features: * Uses aliases not pointers, so it's memory-safe * Arrays are N-dimensional and resizable * Runs scripts or its own 'shell' * Error trapping * Methods, inheritance, etc. * Customizable syntax

eps
10 minutes ago
[-]
What's the use case? Clearly, you made it with some specific use in mind, at least initially. What was it?
reply
smartmic
1 hour ago
[-]
Cool, I like these kinds of projects. When it comes to embedding a scripting language in C, there are already some excellent options: Notable ones are Janet, Guile, and Lua. Tcl is also worth considering. My personal favorite is still Janet[0]. Others?

[0]: https://janet-lang.org/

reply
forgotpwd16
48 minutes ago
[-]
Io is nice (Smalltalk/Self-like). A mostly comprehensive list: https://dbohdan.github.io/embedded-scripting-languages/
reply