Comment

Comment by IshKebab

1. This is much easier to embed in Rust projects than Lua.

2. Doesn't make the mistake of 1-based indexing.

3. Generally much more modern and nicer language than Lua.

The reasons I've found not to use it:

1. Very slow - even slower than Python! Of course often this won't matter but it would be nice if it was fast.

2. No support for type annotations.

I've used it before for a config file, and it worked well there. I think if I wanted anything much more complex though I would just embed V8. Then you get a language that everyone already knows and very good type annotations.

I don't think "ecosystem" really matters much for embeddable languages like this. You app is the ecosystem.

parent IshKebab 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton