On Fri Mar  9 02:44 2012, Rostislav Svoboda wrote:
> On 8 March 2012 11:14, Jim - FooBar(); <jimpil1...@gmail.com> wrote:
> > There is a clojure repl for android...
> 
> Jim, my goal is to be able to write android apps in clojure. But to
> develop an app in clojure on a PC is pain: The android emulator eats a
> lot of memory and takes minutes to start, 'ant debug install' takes
> about 1 minute to complete. The JVM (1.7.0_03-b04) running this
> command crashes quite regularly. In short: a continuous development is
> simply impossible.

If that is what you're trying to accomplish, perhaps a slightly
different approach would be helpful.  While developing the Clojure REPL,
I included a copy of the VimClojure server as part of the app.  When the
app starts, I would have it start the server, which would listen on a
TCP port on the phone/emulator.  I then used adb to forward a port from
the computer to the VimClojure port on the device.

As a result, I would be able to send expressions from my editor, Vim, to
the device, which would compile and reload them.  This does require my
fork of Clojure, as the standard Clojure cannot do dynamic compilation
on Android.

It was still slow in comparison to doing compilation on the computer, a
few seconds or so.  However, that's a huge improvement over the standard
compile/redeploy cycle using the standard tools.

I don't know what kind of editor/development environment you prefer, but
a similar approach where you embed a REPL in your application may be the
best for you.  The main drawback to this approach is that you will
probably want to remove some of these development dependencies for a
released version of the app.

I hope this helps.

Sincerely,

Daniel


> 
> So I bought myself a shiny new phone to eliminate some of these
> obstacles and I'm trying to set up a decent development environment on
> the android. In the 1st step I want to connect from the PC to the
> android (over telnet or ssh) and launch the clojure REPL from a bash
> running on the android. But as I wrote in the prev post the 'java -jar
> clojure-${ver}.dex.jar clojure.main' doesn't work.
> 
> regards
> 
> Bost
> 
> -- 
> 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

Attachment: signature.asc
Description: Digital signature

Reply via email to