4 ms·
If it weren't for the oddness of the language, Lua would be a perfect fit. Near-C speeds, super flexible, no recompiles. You'd lose type safety compared to Rus
by switchbak 9y ago
If it weren't for the oddness of the language, Lua would be a perfect fit. Near-C speeds, super flexible, no recompiles.
You'd lose type safety compared to Rust, but they don't have that with JS now anyway.
I don't think the majority of the memory consumption is from JS though, moreso the embedded browser+DOM approach.
Edit: Blaming electron for bloat more than JS.
- pier25 9y ago> embedded browser+DOM And also Node.
- clnhlzmn 9y agoCheck out Textadept. It's an editor written largely in Lua.
- daurnimator 9y agoor Howl
- vvanders 9y agoI love Lua but VSCode is mostly written in TypeScript so you get a fair number type checks.
- flavio81 9y ago>If it weren't for the oddness of the language, Lua would be a perfect fit. Near-C speeds, super flexible, no recompiles. True. But there are also other dynamic languages that can go as fast as LuaJIT and of course faster than V8: Common Lisp and some Scheme implementations. Both are very elegant languages, moreso than Lua (which is very peculiar.) However, for the goals of an editor, my choice would be Free Pascal with Lazarus. It is already complete for cross-platform UI deployment. And compiled code is really fast.