Not logged in

Jsi is a JavaScript Interpreter which easily embeds into C applications adding:

In addition, there is support for function-parameters with types and default values, eg.

function foo (n:number, str:string=''):number { return n+str.length; }

Typed functions aid in developing and maintaining scripts, and simplify the creation of C-extensions.

For more details refer to the sidebar links and/or this list of selected topics:

Name Description
Amalgamation The fast way to add-in Jsi support: jsi.c
Debug Using the debuggers and directives
Functions Functions with argument types and/or defaults
Packages Packages for both javascript and binary
Modules Javascript modules
System Jsi built-in methods
Interp Context for javascript execution
Info Interpreter introspection
Filesystem File, Channel, Zvfs, exec, console, etc...
Websocket Websocket extension
Sqlite Sqlite database extension
MySql MySql database extension
Socket Socket (TCP and UDP) extension
Zvfs Zipping files and Zero Install application
Jsi-Lite C-code usable without an interpreter
Carray Simplified C structs to scripting and/or Sqlite
Extending Creating user defined C-extensions
Threads Threads and mutex
Profile Execution profile and code coverage
Syntax Jsi language syntax