<div dir="ltr">Son-of-a-gun, that did fix it.  Apparently, my imagination is a little short.<div><br></div><div>Thanks!</div><div><br></div><div>Blake</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 9:58 AM, Blake McBride <span dir="ltr"><<a href="mailto:blake@mcbride.name" target="_blank">blake@mcbride.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I will try that, but the commands I did removed ALL built files.  I can't imagine what make from-scratch could do extra.  I will try it.<div>Thanks.</div><div><div class="h5"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 9:48 AM, Francois Magnan <span dir="ltr"><<a href="mailto:magnan@categoricaldesign.com" target="_blank">magnan@categoricaldesign.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Yes, you need more…<div><br></div><div>Replace “make” in your workflow by “<span style="font-family:Monaco;font-size:10px">make from-scratch</span><font face="Monaco" size="1">”</font></div><span><font color="#888888"><div><span style="font-family:Monaco;font-size:10px"><br></span></div><div><span style="font-family:Monaco;font-size:10px">Francois</span></div></font></span><div><div><div><span style="font-family:Monaco;font-size:10px"><br></span></div><div><div><blockquote type="cite"><div>On Feb 3, 2015, at 10:33 AM, Blake McBride <<a href="mailto:blake@mcbride.name" target="_blank">blake@mcbride.name</a>> wrote:</div><br><div><div dir="ltr"><span style="font-size:12.8000001907349px">Actually, I did:</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">git pull</div><div style="font-size:12.8000001907349px">rm -rf *</div><div style="font-size:12.8000001907349px">git checkout --force</div><div style="font-size:12.8000001907349px">./configure --enable-single-host<br></div><div style="font-size:12.8000001907349px">make</div><div style="font-size:12.8000001907349px">sudo rm -rf  /usr/local/Gambit-C</div><div style="font-size:12.8000001907349px">sudo make install</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Do I need more?</div><div style="font-size:12.8000001907349px"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 9:26 AM, Francois Magnan <span dir="ltr"><<a href="mailto:magnan@categoricaldesign.com" target="_blank">magnan@categoricaldesign.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi.<div><br></div><div>Gambit build is a complex thing but it is managed wisely by the makefile if you use the right target. You cannot do just a “git pull; make”… </div><div>After you pull the latest version do a :</div><div><br></div><div>> make from-scratch</div><div><br></div><div>Then u will have a gambit built with the new feature Marc has just added for you.</div><div><br></div><div>Hope this helps.</div><div>Francois</div><div><br></div><div> <br><div><blockquote type="cite"><div><div><div>On Feb 3, 2015, at 10:13 AM, Blake McBride <<a href="mailto:blake@mcbride.name" target="_blank">blake@mcbride.name</a>> wrote:</div><br></div></div><div><div><div><div dir="ltr">I did a git pull and rebuilt everything.  Same error.  Note that node doesn't have a "print" function.<div><br></div><div>Thanks.</div><div><br></div><div>Blake<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 2, 2015 at 8:26 AM, Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You have to pull the latest version from the github repo.<br>
<span><font color="#888888"><br>
Marc<br>
</font></span><div><div><br>
> On Feb 1, 2015, at 11:35 PM, Blake McBride <<a href="mailto:blake@mcbride.name" target="_blank">blake@mcbride.name</a>> wrote:<br>
><br>
> Here is the result of your example:<br>
><br>
> $ gsc -c -target js f1.scm<br>
> $ node f1.js<br>
><br>
> /home/blake/gambit/f1.js:448<br>
>   print(obj);<br>
>   ^<br>
> ReferenceError: print is not defined<br>
>     at gambit_println (/home/blake/gambit/f1.js:448:3)<br>
>     at gambit_bb1_println (/home/blake/gambit/f1.js:323:3)<br>
>     at gambit_trampoline (/home/blake/gambit/f1.js:348:10)<br>
>     at Object.<anonymous> (/home/blake/gambit/f1.js:688:1)<br>
>     at Module._compile (module.js:456:26)<br>
>     at Object.Module._extensions..js (module.js:474:10)<br>
>     at Module.load (module.js:356:32)<br>
>     at Function.Module._load (module.js:312:12)<br>
>     at Function.Module.runMain (module.js:497:10)<br>
>     at startup (node.js:119:16)<br>
> $<br>
><br>
><br>
> In any case, here is a simple example and instructions on how to run the code in a JS shell and in the browser.  If you want to use non-primitive predefined Scheme library functions (such as equal?, append, map, write, etc) you will need to look into univ-lib .  The goal is to have all of this neatly packaged in gsc so that one invocation of gsc will do all that is necessary.  One issue is linking… should the .js file contain all of the application code including Scheme libraries, or should it contain just the code for the compiled file (so that it can be dynamically loaded by the web page)?  Both should be supported with an appropriate compile flag.<br>
><br>
> Marc<br>
><br>
><br>
> ;; File: fib.scm<br>
> ;;<br>
> ;; compile with: gsc -c -target js fib.scm<br>
> ;;<br>
> ;; execute with: d8 fib.js<br>
> ;;<br>
> ;; or use it in an HTML page like this:<br>
> ;;<br>
> ;; <!DOCTYPE html><br>
> ;; <html><br>
> ;; <head><br>
> ;;     <title>fib</title><br>
> ;;     <script type="text/javascript"><br>
> ;;         function print(x) { console.log(x); }<br>
> ;;     </script><br>
> ;;     <script type="text/javascript" src="fib.js"></script><br>
> ;; </head><br>
> ;; <body></body><br>
> ;; </html><br>
><br>
> (declare<br>
>   (standard-bindings)<br>
>   (extended-bindings)<br>
>   (not safe)<br>
>   (fixnum)<br>
>   (block)<br>
> )<br>
><br>
> (define (fib n)<br>
><br>
>   (define (fib n)<br>
>     (if (< n 2)<br>
>         n<br>
>         (+ (fib (- n 1))<br>
>            (fib (- n 2)))))<br>
><br>
>   (fib n))<br>
><br>
> (define start (real-time-milliseconds))<br>
><br>
> (println (fib 30))<br>
><br>
> (define end (real-time-milliseconds))<br>
><br>
> (println (- end start))<br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div></div></div></div></div>
_______________________________________________<br>Gambit-list mailing list<br><a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a><br><a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div></div>
_______________________________________________<br>Gambit-list mailing list<br><a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a><br><a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div>