Yes, after racket –l setup, things are very fast to start up on the phones now. In fact, it is so much faster to start than Chibi, that is a reason to switch all by itself.
Thanks, everyone! From: William Hatch [mailto:[email protected]] Sent: Tuesday, September 15, 2015 10:40 AM To: Matthew Flatt; John Carmack Cc: Racket Users Subject: Re: [racket-users] Startup times In my arch Linux chroot environment on my nexus 4 a hello world program in racket/base runs in .37 seconds, and strace reports 95% of time spent in read. So I bet you'll get something in that ballpark after raco setup. On September 14, 2015 7:47:20 PM MDT, Matthew Flatt <[email protected]<mailto:[email protected]>> wrote: Unfortunately, `raco make` may go wrong if its own implementation is not compiled. You probably want `raco setup` or (equivalently) `racket -l setup`, which should be fast if it's just a matter of updating file timestamps. At Mon, 14 Sep 2015 20:20:39 -0500, Robby Findler wrote: If you run "raco make -v cmdline2.rkt" you will see output if .zo compilation is happening. Robby On Mon, Sep 14, 2015 at 8:16 PM, John Carmack <[email protected]<mailto:[email protected]>> wrote: No strace on Android, unfortunately. From: Marc Burns [mailto:[email protected]] Sent: Monday, September 14, 2015 8:10 PM To: John Carmack Cc: Racket Users Subject: Re: [racket-users] Startup times Here’s the result of `strace -c -f -- racket -l racket/base` for Racket 6.1.1.8<https://urldefense.proofpoint.com/v1/url?u=http://6.1.1.8&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=Kjg6LltY9QjkipKooaVldA%3D%3D%0A&m=Wy0opR%2FC6i4dGkOl4%2BWs595vJLpUEmCUZ7CcgVkP6bA%3D%0A&s=08b1c16bc2f60178f10b9d43947854d7462783fd52571acd4ab28bdd9b8dfb5b> on my Linux workstation: % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 99.08 0.004000 571 7 nanosleep 0.92 0.000037 0 236 read 0.00 0.000000 0 103 23 open 0.00 0.000000 0 79 close … Does it look similar on the Note 4? On Sep 14, 2015, at 9:00 PM, Marc Burns <[email protected]<mailto:[email protected]>> wrote: Set the environment variable PLTSTDERR=debug to get more verbose output. Startup involves traversing all the bytecode files that comprise the base environment. How fast is filesystem access on the Note 4 compared to PC? You could use strace to find the latency on different system calls made during startup. On Sep 14, 2015, at 8:55 PM, John Carmack <[email protected]<mailto:[email protected]>> wrote: I am experimenting with running racket natively on Android to compare with my current embedded Chibi scheme implementation. It would be convenient to just leave racket as a separate process and communicate over sockets/pipes so it exactly mimics my remote development case. The startup time to run a trivial console program is very long. A one line program with #lang racket/base takes over seven seconds: root@trlte:/mnt/shell/emulated/0/Oculus/racket/bin # time ./racket cmdline2.rkt cmdline2.rkt < line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 0m7.96s real 0m7.04s user 0m0.65s system My first test, which still had the default #lang racket, took almost a minute to start: root@trlte:/mnt/shell/emulated/0/Oculus/racket/bin # time ./racket cmdline.rkt cmdline.rkt < line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 0m54.16s real 0m48.68s user 0m4.83s system On a PC, it only takes a fraction of a second. This was on a Note 4, which should not be 100x slower than a PC. Could it not be using the compiled library bytecode somehow? I didn’t see any command line options for verbose output on startup, is there any way to force some extra information? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout<https://urldefense.proofpoint.com/v1/url?u=https://groups.google.com/d/optout&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=Kjg6LltY9QjkipKooaVldA%3D%3D%0A&m=Wy0opR%2FC6i4dGkOl4%2BWs595vJLpUEmCUZ7CcgVkP6bA%3D%0A&s=e40b7e5080913f127034118928b791013810604ba97c5729a465cfac8a6810dc>. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout<https://urldefense.proofpoint.com/v1/url?u=https://groups.google.com/d/optout&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=Kjg6LltY9QjkipKooaVldA%3D%3D%0A&m=Wy0opR%2FC6i4dGkOl4%2BWs595vJLpUEmCUZ7CcgVkP6bA%3D%0A&s=e40b7e5080913f127034118928b791013810604ba97c5729a465cfac8a6810dc>. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout<https://urldefense.proofpoint.com/v1/url?u=https://groups.google.com/d/optout&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=Kjg6LltY9QjkipKooaVldA%3D%3D%0A&m=Wy0opR%2FC6i4dGkOl4%2BWs595vJLpUEmCUZ7CcgVkP6bA%3D%0A&s=e40b7e5080913f127034118928b791013810604ba97c5729a465cfac8a6810dc>. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout<https://urldefense.proofpoint.com/v1/url?u=https://groups.google.com/d/optout&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=Kjg6LltY9QjkipKooaVldA%3D%3D%0A&m=Wy0opR%2FC6i4dGkOl4%2BWs595vJLpUEmCUZ7CcgVkP6bA%3D%0A&s=e40b7e5080913f127034118928b791013810604ba97c5729a465cfac8a6810dc>. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

