embedded-scripting-languages
prudence
Our great sponsors
embedded-scripting-languages | prudence | |
---|---|---|
11 | 3 | |
1,209 | 13 | |
- | - | |
8.1 | 4.6 | |
9 days ago | 3 months ago | |
HTML | ||
- | Apache License 2.0 |
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.
embedded-scripting-languages
-
Steel – An embedded scheme interpreter in Rust
Hopefully the linked README provides a general overview (I know I need to write some more documentation!), but Steel is an implementation of the scheme programming language (not entirely compliant yet, but aiming for R5RS and R7RS compliance). It can be used as a standalone language via the interpreter/repl (like Python or Racket), or it can be embedded inside applications, like Lua. There are hundreds (thousands, probably) of embeddable languages, each with their own flavor - see a list compiled here for example https://github.com/dbohdan/embedded-scripting-languages
Use cases are generally for either configuration, scripting, or plugins - so scripting in games, or adding extensions to your text editor without having to use FFI or RPC + serializing a bunch of data. The advantage it has over using dynamic libraries (in general) is it runs in the same process, and can access the internal data structures directly without a lot of ceremony involved. The downside is typically is not as fast as native code unless a JIT is involved.
Javascript is an example of an embedded scripting, where the browser is the host application.
-
Lua: The Little Language That Could
> There is a huge opportunity, IMO, for more players here.
There are quite a few embeddable scripting languages [1]. I think these days it's less common to embed a language mostly because there are good high-level languages that applications can be predominantly written in.
- Ask HN: Embeddable Value-Oriented Languages?
-
Simple statically typed language with value semantics?
I'm not a huge fan of Lua but I think it is at least way more popular and better on every measure than TCL. There are plenty of other better less well-known options too: Rhai, Wren, AngelScript, Starlark (for some use cases), etc. There's a good list here.
- Language Interpreter for Coding Game
-
Choosing scripting extension - need advice
or perhaps use one of this list (depending on who's writing the configuration): https://github.com/dbohdan/embedded-scripting-languages
- Ana is a Python, PHP, and C inspired dynamically typed scripting language
-
How to implement an in-game programming language?
https://github.com/dbohdan/embedded-scripting-languages (coincidentally, from a user whose name I recognize from the Tcl wiki)
prudence
-
Choosing scripting extension - need advice
If you're interested, I have another project in which I use TypeScript (tsc) to compile to JavaScript/Common-JS that is compatible with goja. It works really well.
-
Show me your REST APIs 😊
I have attempted to create such a framework, Prudence, for the general use case of data-backend-based web applications and APIs. It does a lot of the heavy lifting of keeping server-side caches and client-side caches consistent, though you will need to design your resource well to reap the benefits.
What are some alternatives?
Ark - ArkScript is a small, fast, functional and scripting language for C++ projects
goapp - An opinionated guideline to structure & develop a Go web application/service
grule-rule-engine - Rule engine implementation in Golang
there - ⚡️ Robust Web Framework to build Go Services
wasmer-go - 🐹🕸️ WebAssembly runtime for Go
ntfy - Send push notifications to your phone or desktop using PUT/POST
goMirror - Web remote control, written in Go
starlight - a go wrapper for google's starlark embedded python language
Rhai - Rhai - An embedded scripting language for Rust.
ana
otto - A JavaScript interpreter in Go (golang)
flirt - Automatic version selector for LÖVE