[Haskell-beginners] DSL for Android development
sean at objitsu.com
Mon Jun 27 20:52:02 CEST 2011
On 27/06/11 18:47, Mike Meyer wrote:
> On Mon, 27 Jun 2011 15:04:55 +0100
> Sean Charles<sean at objitsu.com> wrote:
>> As a yet to be published iPhone hacker, now somewhat saddened by the
>> AppStore bouncers, I've turned to Android. I have a lot of Java and J2ME
>> experience but only eight months with Haskell. I hate java. The JVM is
>> awesome. Clojure is wish-fulfillment for Android right now.
> There are other choices. Have you looked into Scala or Groovy?
Yes. I learned them both about two years ago having at that point become
thoroughly peeved with "Java the language" and looking for other things.
I've kind of settled with Clojure if people want me to produce Java
applications purely out of personal choice as I know LISP and it felt
>> So... where would be a good place to start with a DSL that could produce
>> Java code as its output? This is new to me! I've written simple lexers
>> and parsers and I know the ropes on that front but I don't know haskell
>> well enough yet to know how to go about it. I am thinking that I'd need
>> to create data types for the major classes, or maybe not, if i can
>> produce my own abstraction that generated multiple classes in the output
>> etc and so i descend into confusion about where to start!
> This seems like an odd approach.
Only if you consider my complete ignorance of DSL-s and how to 'do
them'. LMAO. This would be a personal 100% green-field venture,
ground-breaking, new territory, pioneering never done it before kind
of venture for me, to learn new tricks and things.
>> I did consider writing a "true" language that will code-generate
>> java instead of a DSL, that's still in my mind too.
> If by this, you mean generating JVM byte codes directly, I'd be
> interested in why this is a second choice behind generating Java?
> Generating JVM shouldn't be noticeably harder, should result in better
> code, can be moved to Android, and is the path taken by other
> languages running on the JVM.
> Sorry I can't help directly - but I'm also interested in Android
> development and hate Java (and find the infrastructure around it
I hadn't considered generating byte-codes!
I've used Jasmin in the past and I actually own a copy of the JVM book
from way back.
Now *that* would be interesting although Dalvik is slightly different in
what it accepts as byte codes I hear.
Strewth, the possibilities abound!
More information about the Beginners