Hacker News new | ask | show | jobs
by gunn 3764 days ago
http://crystal-lang.org/ might be a good fit for you then. Or http://nim-lang.org/ if you're flexible on syntax.
2 comments

Those languages are too big, so I might as well use Ruby or the Node environment when I need a full-featured language with lots of libraries. I'd like something dead simple that I can statically link into my C programs, with a syntax I can completely explain to someone in 15 minutes. I currently use duktape/Coffeescript or Lua/Moonscript for that, since hosting it in C is about ~5 lines of boilerplate code.

Edit: Does anyone know of any other languages similar to the syntax of Coffeescript and Moonscript?

http://elixir-lang.org/ looks quite similar, although it is functional (and backed by the Erlang VM BEAM).
I am working on a language with goals similar to this which is much farther along though still not quite ready for practical use. For example, there it does not currently have a C API. It is written in Rust so it shouldn't be to difficult to provide once I feel it is usable.

https://github.com/Marwes/embed_lang

Wow this is the first I'm seeing of Nim. Goodbye, Sunday! Where did this come from...
Nim is really underrated.