46bc8055c449ac0d8e65f232360582e92ab23405
Replace the monolithic CODE_CALL instruction with ten distinct opcodes CODE_CALL_0 through CODE_CALL_10 to encode argument count directly in the bytecode. Update the VM interpreter to extract numArgs from the opcode offset and adjust stack indexing to retrieve the receiver relative to arguments. Change the Primitive function pointer typedef to accept a Value* array and numArgs parameter, and update all existing primitives (metaclass_new, num_abs, string_count) to the new signature. Add a new string_contains primitive and register it in the VM initialization.
Description
Highly customized version of the wren programming language. It has all the modules that you would expect in a std library including http, websockets, sqlite3 and jinja-like templating engine. The idea is to make it suitable for web development.
22 MiB
Languages
HTML
50%
C
22.2%
PHP
13.4%
C++
6%
Makefile
2.9%
Other
5.5%