On Saturday, August 15, 2015 at 9:37:21 AM UTC-4, Brian Adkins wrote:
> I received a Raspberry Pi 2 Model B yesterday, so naturally I wanted to get 
> Racket on it as soon as possible :)
> 
> I read somewhere that "Unix Source + Built Packages" was better than "Unix 
> Source", but since I've received performance improvements from building Ruby 
> from sources vs. installing a package, I wanted a "clean" build of Racket, so 
> I chose Unix Source.
> 
> After an hour or so, I gave up waiting on the build to complete and figured 
> I'd let it run overnight so it would be done in the morning. Well, it's been 
> building for over 10.5 hours now, and it's on the 
> "...math-doc/math/scribblings/math.scrbl" step. No idea what percent complete 
> that is. It's been building math.scrbl for over 30 minutes!
> 
> The Raspberry Pi has a 4 core CPU, so it pains me to see it pegged at only 
> 25% this whole time. Is it possible to build Racket from Unix Source in 
> parallel to get all 4 cores fired up?

Building from Source + Built Packages is definitely the way to go. Here are the 
timings:

configure => 1m4s
make -j 4 => 14m48s
make -j 4 install => 3m9s

So, a complete build in 19 minutes vs. an incomplete build in 10+ hours w/o 
pre-built packages!

I was able to fire up DrRacket - pretty slow given the power of the rPi, but it 
worked. I found this article on Racket on the rPi:

http://danielkvasnicka.tumblr.com/post/54741297421/racket-on-raspberry-pi-the-importance-of-being

I ran his little benchmark:

#lang racket

(let [[rng (range 1000000)]]
    (time (foldl + 0 (map * rng rng))))

I don't know if he mentions the model (he posted 2 years ago), but his time was 
12 seconds for Racket 5.3.4 w/ JIT. Mine ran in 7.3 seconds on a rPi 2 B w/ 
Racket 6.2.1.

As a comparison, I ran it on my Macbook Pro (Retina 15", mid 2014) 2.5 GHz i7 
in 0.5 seconds.

Once I create some cool little applications for the Raspberry Pi in Racket, 
I'll report back :)

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to