[r6rs-discuss] [Formal] "#! /usr/bin/env" is not "portable." It's Unix-specific.

Per Bothner per at bothner.com
Wed Nov 15 14:21:51 EST 2006


MichaelL at frogware.com wrote:
> Because some Schemes take a while to get up and running. The Java Schemes, 
> for example, have to get Java up and running.

You inpired me to measure this.  On my Dell E1405 mid-end (these days)
laptop, starting java+kawa, and then defining and calling a trivial
function takes about 0.6 seconds, once things are in the VM cache:

$ time (for i in 1 2 3 4 5 6 7 8 9 10 ; do \
 > java kawa.repl -e "(define (foo) $i) (display (foo))";\
 > done)
12345678910
real    0m6.069s
user    0m5.295s
sys     0m0.445s

I.e. not a lot of time by itself, but if starting Java is done multiple
times in a shell script or by a server, then you want a fix for this.

(That is why Java-based web servers use "servlets".)
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/



More information about the r6rs-discuss mailing list