Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Embedded scripting languages

Name: Anonymous 2014-11-06 8:40

What scripting language would you embed to a program? The performance would not be main issue, since the compiled part of the program would worry about that.

The scripting language would call many functions written in C, C++, or whatever lang that can compile C-like functions (so there needs to be some kind of easy to use FFI).

I thought about options here:
- Lua
- Scheme (tinyscheme or whatever)
- Something else?

Now, what would /prog/ use, and why? ("Read SICP" is not a valid answer here)

Name: Anonymous 2014-11-09 0:09

>>37
A "Javashit clone"? I'm not sure if you actually ever used Lua or Ecmascript before, or just shitposting.

fuck this stupid thread

Name: Anonymous 2014-11-09 18:20

>>36
Is there any reason to use regular Lua instead of LuaJIT? They have the same C API, don't they?
LuaJIT supports Lua's C API, but it also has its own FFI that drastically simplifies calling in and out of C (no wrappers, just ffi.cdef "void whatever(void);" and you're off) and allows you to directly use C types with good (JIT compiled) performance.

>>37
Do you really think Javascript is a better programming language than Lua? Don't you have some websites to be apping?

>>40
Are you saying Common Lisp and Scheme are shitty?
Everything but tables and functions compares by value in Lua (strings are interned so that strings with the same contents are only stored once, so a pointer comparison is all that is needed for them). Most of the time, a cheap comparison of pointers for identity of is more useful for complex objects than an expensive deep comparison, so it makes sense to reflect that in the syntax.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List