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-16 20:08

>>58
You still need to (mod N) interned strings to fit them in an N-slot hash table, which can absolutely cause collisions, though?

And I don't really get the caching argument against hash tables—if you use open addressing or coalesced hashing, all hash entries are located in a single contiguous block of memory, which should have the exact same hashing characteristics as a vector, unless the wasted space and pseudorandom distribution within it is that significant.

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