Sounds promising ... I'll give it a shot. Thanks Daniel.
Regards,
Kashyap

On Mon, May 12, 2014 at 4:41 PM, Daniel Barlow <d...@telent.net> wrote:

> On 12 May 2014 10:40, C K Kashyap <ckkash...@gmail.com> wrote:
> > I finally got my robotic vehicle working using raspberry pi. I was
> hoping to
> > make it do tricks using the clojure repl - however, I found that repl
> took
> > well over 2 minutes to start. Is that normal or are folks seeing better
> > performance?
>
> I haven't tried it on a Pi, but it's consistent with what I see when I
> start a lein repl on my android phone (inside a debian chroot using a
> regular linux jvm).  One problem you may be seeing is that leiningen
> starts a jvm and your app starts a jvm, and in a RAM-limited
> environment that means a lot of paging.
>
> What I did is
> 1) created a namespace myapp.nrepl which calls
> (clojure.tools.nrepl.server/start-server :port 9990)
>
> 2) invoke the app with
>
>   $ lein trampoline run -m myapp.nrepl
>
> 3) connect to it from some other machine
>
>   $ lein repl :connect myphone.local:9990
>
> This means there's only one JVM running at a time on the phone (or in
> your case, pi) and reduces the startup time on my phone from something
> arounf 2 minutes to something around 40 seconds.  Which is still Too
> Long but not quite as Much Too Long
>
> Playing with clojure-metal and clojure-c are both on my "TO DO,
> EVENTUALLY" list but I have more than enough to keep me occupied for
> the time being already, so not any time soon
>
> [ With Actual Code!
> https://github.com/telent/defone/blob/master/defone/start.sh
> https://github.com/telent/defone/blob/master/defone/src/defone/nrepl.clj
> ]
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to