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

Pages: 1-

VM aimed at statically typed code

Name: Anonymous 2015-05-30 14:04

I want my future game to execute scripts (written in my own small language) which are to be distributed in compiled form. Also, I can infer types for all variables, so I think it will make sense to choose a VM tailored for static code execution.

I do not want to distribute the compiler to compile the scripts on the fly, and I also do not want to have much hassle building scripts for all supported platforms.

Desired properties:

* execute statically typed code
* while having a ``dynamic'' type
* easy support for string operations: concatenation, substring slices (start offset, length),
* easy support for lists and hashes that map strings to ``dynamic'' values
* good hassle-free FFI as the scripts are going to use library functions I provide in the C code
* open source of course

Preferred properties:

* JIT

VMs I have looked into:

* CLR - microsoft shit, bloated, do not want
* JVM - same shit, annoying to distribute
* Parrot - hard to compile to, no static typing
* CPython - no static typing, slow,
* PyPy - slow,
* LuaJIT - no static typing
* LLVM - incredibly hard to use

I lean towards compiling to LLVM bitcode though. What would you choose?

Name: Anonymous 2015-05-30 14:36

* execute statically typed code
* while having a ``dynamic'' type

kill yourself my man

Name: Anonymous 2015-05-30 17:38

Name: Anonymous 2015-05-30 18:00

>>3
PHP? No thank you!

Name: Anonymous 2015-05-30 18:03

VM aimed at my anus

Name: Anonymous 2015-05-30 22:02

>>2
Dynamic type is great when you deal with heterogeneous dictionaries and lists. And you deal with them often, because it convenient. (if not, you are an idiot)

Name: >>1 2015-05-30 22:06

>>3
Thank you! I shall look into these VMs.

Name: Anonymous 2015-05-30 22:07

>>6
no, you're an idiot..

Name: Anonymous 2015-05-30 23:16

And I want a pinku bento box. How about we want in one hand and shit in the other and see which hand glad up faster.

Name: Anonymous 2015-05-31 0:04

* easy support for string operations: concatenation, substring slices (start offset, length),
VAX.

Name: Anonymous 2015-06-14 16:32

>>11
VAX.
DUBS.

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