[gambit-list] Problem building univ-lib for JS

Blake McBride blake at mcbride.name
Tue Feb 10 18:09:25 EST 2015


I updated (last update was a few days ago) and it now works.  There are two
issues, however, as follows:

1.  The resulting JavaScript file on a two line program is 5.7 MB.  Is this
correct?

2.  How can several scheme files be compiled independently and then linked
(combined)?

Thanks!

Blake


On Tue, Feb 10, 2015 at 11:16 AM, Marc Feeley <feeley at iro.umontreal.ca>
wrote:

>
> > On Feb 10, 2015, at 10:30 AM, Blake McBride <blake at mcbride.name> wrote:
> >
> > Would really appreciate some help with this.  I'd really like to
> document and use the system but I am stuck.
> >
> > Thanks.
> >
> > Blake
>
> I’m not sure what version of Gambit and univ-lib you are using, but there
> was a change in the naming convention in the generated code.  Initially
> “Gambit_” was used to prefix all generated names, but this did not work out
> well for languages where an initial capital letter is used for classes.  So
> in more recent version of Gambit, “gambit_” is used for global variables
> and functions, and “Gambit_” is used for classes.
>
> So you should call gambit_js2scm(…) instead of Gambit_js2scm(…).
>
> Marc
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20150210/299fc7de/attachment.htm>


More information about the Gambit-list mailing list