Aha, awesome.
For the sake of practical overview on this environment, to get a grasp of what it's like and how it behaves:
- What about Gambit's globals, are they JS variable references i.e. within JS' variable namespace, or does G. implement an internal by itself?
Is there any overlapping of [global] variable namespaces with JS?
For instance, refering to a global ABC in the Scheme code, what JS variable would that refer to.
How would you export a function from Scheme for ordinary JS to be able to call it, by some name?
Must any particular condition be met for a call from JS to Scm-JS code to be 'safe'?
To get and set JS-native hashtable values aka JS object properties from Scheme, how do you do that?
The keys would either be static (e.g. objectvariable.thisstaticname = newvalue;), or dynamic (e.g. var itsvalue = objectvariable[dynamickeyvalue];).
Invoking a JS-native function would be just as an ordinary Scheme function i.e. (functionvalue) right ?
- May you be about to implement more sophisticated Scheme functionality / runtime such as (in descending order of usefulness)
- The numeric tower? (at least the basic typehandling for the op and its storage format, someone else could fill in the actual procedures)
- Ports?
- Real hashtable? (i.e. implement its own make-tabe + accessors, or, would your take on this partiuclar one be that one would be equally well off using some ordinary JS library for it)
- U8vector?
- Would there be any native access to JS' language features:
- object instanation form i.e. new X(args);
- inline object creation form e.g. {key1: value1, key2: value2} etc
- regexps i.e. /regex here/
?
Thanks!
Mikael