Re: Current status of Clojure on Android?

2013-02-21 Thread BJG145
I've been trying to figure out how to get started with Clojure on Android, 
and I'm thinking of using LibGDX. 

http://code.google.com/p/libgdx/

I've just been looking at a game called Bounce Away which was written 
almost entirely in Clojure with LibGDX. (Released in December.)

https://play.google.com/store/apps/details?id=com.friendlyvillagers.ballzhl=en

I'd like to use Eclipse/CCW, but as a newbie I haven't been able to find 
much info on getting started with Clojure/Android/LibGDX. There's a couple 
of posts here about Maven and dependencies...

http://code.google.com/p/libgdx/issues/detail?id=1118
http://code.google.com/p/libgdx/wiki/MavenProjectSetup

...but I can't make much of it. I'd be glad of any hints in the right 
direction.

On Monday, November 26, 2012 9:28:13 PM UTC, John Gabriele wrote:

 Hi, 

 What is the current status of Clojure on Android? That is, for 
 creating Android apps in Clojure. 

 I found this http://dev.clojure.org/display/design/Android+Support , 
 but it appears to have been last-updated Feb 2011. 

 What are currently the main limitations in creating and running 
 Clojure programs on Android? (Does some limited subset of Clojure 
 work? Does the bytecode that Clojure produces run on Dalvik?) 

 Is it currently possible to write your Android app in Java but then 
 call out to app code written in Clojure? 

 Thanks! 
 ---John 


-- 
-- 
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/groups/opt_out.




Re: Current status of Clojure on Android?

2013-02-21 Thread BJG145


 Also: https://groups.google.com/forum/?fromgroups#!forum/clojure-android


(Ah, only just noticed thatI'll start there...) 

-- 
-- 
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/groups/opt_out.




Re: Current status of Clojure on Android?

2013-01-22 Thread MC Andre


 I wrote a wrapper for the Apache Cordova (Phonegap) API recently, so that 
 it could be used with ClojureScript. I got Hello World, etc up and running 
 without much fuss. There are however two issues:

 1. Also a slow start-up time, since Phonegap already has resources to 
 load, and then a large JavaScript file on top of it. On a subpar device, 
 this wait was several seconds.

 2. Using Phonegap itself feels very second-class, especially with regard 
 to the complex Android app lifecycle, things like Intents, and so on.

 That said, if are basically building a webapp that just needs some access 
 to still inexistent APIs like camera, battery, compass etc, and you are 
 targeting better, recent-gen hardware, it (Phonegap) could be a nice 
 option. I'll also put the wrapper online soon.


Since Clojure runs on the JVM, why do we need ClojureScript and PhoneGap at 
all?

-- 
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

Re: Current status of Clojure on Android?

2013-01-22 Thread Timothy Baldridge
 Since Clojure runs on the JVM, why do we need ClojureScript and PhoneGap
at all?

Mostly because Android doesn't run a true JVM. Dalvik is different enough
from a true JVM that Oracle tried to sue Google over it.

Ugly details are here:
http://www.antforge.org/blog/2011/04/27/daneel-difference-between-java-and-dalvik

Timothy


On Tue, Jan 22, 2013 at 10:41 AM, MC Andre andrew.penneba...@gmail.comwrote:


 I wrote a wrapper for the Apache Cordova (Phonegap) API recently, so that
 it could be used with ClojureScript. I got Hello World, etc up and running
 without much fuss. There are however two issues:

 1. Also a slow start-up time, since Phonegap already has resources to
 load, and then a large JavaScript file on top of it. On a subpar device,
 this wait was several seconds.

 2. Using Phonegap itself feels very second-class, especially with regard
 to the complex Android app lifecycle, things like Intents, and so on.

 That said, if are basically building a webapp that just needs some access
 to still inexistent APIs like camera, battery, compass etc, and you are
 targeting better, recent-gen hardware, it (Phonegap) could be a nice
 option. I'll also put the wrapper online soon.


 Since Clojure runs on the JVM, why do we need ClojureScript and PhoneGap
 at all?

 --
 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




-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)

-- 
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

Re: Current status of Clojure on Android?

2012-11-28 Thread Herwig Hochleitner
2012/11/27 John Gabriele jmg3...@gmail.com

 Hm. I need to read up on what the dex is, and why one would want to dex
 it. :)


Dex is the utility transforming java byte code to dalvik executable
bytecode, that can run on android. It's written in java so can be applied
to itself.
I remember a blog article some time ago, but I can't seem to find it now.

2012/11/27 Curtis Gagliardi gagliardi.cur...@gmail.com

 How do you use clojurescript on android?


I'm using HTML5 and CSS in an embedded WebView.

-- 
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

Re: Current status of Clojure on Android?

2012-11-28 Thread Murphy McMahon
I wrote a wrapper for the Apache Cordova (Phonegap) API recently, so that
it could be used with ClojureScript. I got Hello World, etc up and running
without much fuss. There are however two issues:

1. Also a slow start-up time, since Phonegap already has resources to load,
and then a large JavaScript file on top of it. On a subpar device, this
wait was several seconds.

2. Using Phonegap itself feels very second-class, especially with regard to
the complex Android app lifecycle, things like Intents, and so on.

That said, if are basically building a webapp that just needs some access
to still inexistent APIs like camera, battery, compass etc, and you are
targeting better, recent-gen hardware, it (Phonegap) could be a nice
option. I'll also put the wrapper online soon.


On Wed, Nov 28, 2012 at 10:54 AM, Herwig Hochleitner hhochleit...@gmail.com
 wrote:

 2012/11/27 John Gabriele jmg3...@gmail.com

 Hm. I need to read up on what the dex is, and why one would want to dex
 it. :)


 Dex is the utility transforming java byte code to dalvik executable
 bytecode, that can run on android. It's written in java so can be applied
 to itself.
 I remember a blog article some time ago, but I can't seem to find it now.

 2012/11/27 Curtis Gagliardi gagliardi.cur...@gmail.com

 How do you use clojurescript on android?


 I'm using HTML5 and CSS in an embedded WebView.

 --
 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 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

Re: Current status of Clojure on Android?

2012-11-27 Thread Cesar Pinera
I put together some notes and hints on how to share Clojure functions with
an Android app in Java for the Portland Clojure meetup.

https://github.com/cesarpinera/TargetAndroid

Clojure is hard on the device's resources, particularly memory. Also,
there's somethings that don't work terribly well with Dalvik, such as
concurrency. Still, it works. I would definitely not consider it for a real
world product, though.



On Mon, Nov 26, 2012 at 1:28 PM, John Gabriele jmg3...@gmail.com wrote:

 Hi,

 What is the current status of Clojure on Android? That is, for
 creating Android apps in Clojure.

 I found this http://dev.clojure.org/display/design/Android+Support ,
 but it appears to have been last-updated Feb 2011.

 What are currently the main limitations in creating and running
 Clojure programs on Android? (Does some limited subset of Clojure
 work? Does the bytecode that Clojure produces run on Dalvik?)

 Is it currently possible to write your Android app in Java but then
 call out to app code written in Clojure?

 Thanks!
 ---John

 --
 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 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

Re: Current status of Clojure on Android?

2012-11-27 Thread John Gabriele
On Monday, November 26, 2012 9:14:07 PM UTC-5, Herwig Hochleitner wrote:

 2012/11/26 John Gabriele jmg...@gmail.com javascript:

 What are currently the main limitations in creating and running
 Clojure programs on Android? (Does some limited subset of Clojure
 work? Does the bytecode that Clojure produces run on Dalvik?)


 Clojure on Android is alive and well as far as I'm aware. I'm not 
 currently using it, but last time I checked, even eval, hence the REPL 
 worked. 
 Mr. Solano Gómez pulled that off by dexing the dex utility for use on 
 android.


Hm. I need to read up on what the dex is, and why one would want to dex it. 
:)
 

 Also: https://groups.google.com/forum/?fromgroups#!forum/clojure-android


Oooh, thanks. Did not know about that group.

---John
 

-- 
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

Re: Current status of Clojure on Android?

2012-11-27 Thread John Gabriele
On Tuesday, November 27, 2012 12:46:44 PM UTC-5, César Piñera wrote:

 I put together some notes and hints on how to share Clojure functions with 
 an Android app in Java for the Portland Clojure meetup. 

 https://github.com/cesarpinera/TargetAndroid

 This looks great. Thanks, César.
 

 Clojure is hard on the device's resources, particularly memory. Also, 
 there's somethings that don't work terribly well with Dalvik, such as 
 concurrency. Still, it works. I would definitely not consider it for a real 
 world product, though.

 I see. Thanks again for the info.

---John

-- 
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

Re: Current status of Clojure on Android?

2012-11-27 Thread Curtis Gagliardi
How do you use clojurescript on android?  SL4A?  How does it compare to a 
native app?  I'm looking to try to write an android app but want to avoid 
java, but it sounds like clojure isn't really ready for production on 
android.

On Monday, November 26, 2012 8:14:07 PM UTC-6, Herwig Hochleitner wrote:

 2012/11/26 John Gabriele jmg...@gmail.com javascript:

 What are currently the main limitations in creating and running
 Clojure programs on Android? (Does some limited subset of Clojure
 work? Does the bytecode that Clojure produces run on Dalvik?)


 Clojure on Android is alive and well as far as I'm aware. I'm not 
 currently using it, but last time I checked, even eval, hence the REPL 
 worked. 
 Mr. Solano Gómez pulled that off by dexing the dex utility for use on 
 android.

 The main drawback is startup time, which is a couple of seconds on my 
 Galaxy Nexus.

 Therefore, and because of portability, I write my current android project 
 in ClojureScript.
  

 Is it currently possible to write your Android app in Java but then
 call out to app code written in Clojure?


 Same as with Clojure on the JVM. Google's work to making Dalvik compliant 
 really pays off. 

 Also: https://groups.google.com/forum/?fromgroups#!forum/clojure-android
  

-- 
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

Re: Current status of Clojure on Android?

2012-11-27 Thread Paul deGrandis
Curtis,

I have successful built a ClojureScript app that uses SL4A (Rhino).  The 
startup time is an issue, the performance isn't great but is acceptable.  
If you're just prototyping something or need a tool for in-house use - this 
is one alternative.
Given the work and efforts that Cesar highlighted, you might be better off 
with straight Clojure.

Depending on the requirements of your app, you might also consider an HTML5 
client-side application, and rely upon CSS functionality for graphical 
support.  This would free you from Java, enable you to use ClojureScript, 
and comes with a lot of tooling support (and flexibility).

Regards,
Paul

-- 
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

Current status of Clojure on Android?

2012-11-26 Thread John Gabriele
Hi,

What is the current status of Clojure on Android? That is, for
creating Android apps in Clojure.

I found this http://dev.clojure.org/display/design/Android+Support ,
but it appears to have been last-updated Feb 2011.

What are currently the main limitations in creating and running
Clojure programs on Android? (Does some limited subset of Clojure
work? Does the bytecode that Clojure produces run on Dalvik?)

Is it currently possible to write your Android app in Java but then
call out to app code written in Clojure?

Thanks!
---John

-- 
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


Re: Current status of Clojure on Android?

2012-11-26 Thread Herwig Hochleitner
2012/11/26 John Gabriele jmg3...@gmail.com

 What are currently the main limitations in creating and running
 Clojure programs on Android? (Does some limited subset of Clojure
 work? Does the bytecode that Clojure produces run on Dalvik?)


Clojure on Android is alive and well as far as I'm aware. I'm not currently
using it, but last time I checked, even eval, hence the REPL worked.
Mr. Solano Gómez pulled that off by dexing the dex utility for use on
android.

The main drawback is startup time, which is a couple of seconds on my
Galaxy Nexus.

Therefore, and because of portability, I write my current android project
in ClojureScript.


 Is it currently possible to write your Android app in Java but then
 call out to app code written in Clojure?


Same as with Clojure on the JVM. Google's work to making Dalvik compliant
really pays off.

Also: https://groups.google.com/forum/?fromgroups#!forum/clojure-android

-- 
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