Showing posts with label scala. Show all posts
Showing posts with label scala. Show all posts

Wednesday, May 30, 2012

Scala Programming for Android


I have followed the tutorial at Scala and Android with Scala 2.7.3 final. The resulting Android App works but even the most basic application takes several minutes (!) to compile and needs 900 kb compressed, which is a show stopper for mobile applications. Additionally, the IDE runs out of memory every now and then. I assume dex is not made for big libraries like the scala-library.

Wednesday, May 16, 2012

Numerical library for Scala


I'm looking for a library to do numerical computing in Scala (or Java, although something that can use scala functions would be way nicer!) with at least the following capabilities:

Wednesday, April 25, 2012

Migrating from Maven to SBT


As you know, SBT is compatible with Maven in some way -- SBT recognizes simple Maven POMs and can use dependencies and repositories specified in them. However, SBT wiki says that, if inline dependency is specified in SBT project definition, POM will be ignored (so using both in this case is impossible):

Sunday, April 22, 2012

Creating Android apps without Java


I'd like to start creating Android apps but I don't like Java. I read that scala can be used to do it. Are there another option?(Clojure?)

Tuesday, April 17, 2012

Is using scala on android worth it? Is there a lot of overhead? Problems?


I was thinking of building an app on android with Scala instead of the regular Java (or the equivalent I guess). Is it worth it? Any problems and unnecessary headaches?

Monday, April 16, 2012

"eval” in Scala


Can Scala be used to script a Java application?



I need to load a piece of Scala code from Java, set up an execution scope for it (data exposed by the host application), evaluate it and retrieve a result object from it.

Is it possible for Scala to have reified generics without changing the JVM?


I've recently started learning Scala and was disappointed (but not surprised) that their generics are also implemented via type erasure.

Tuesday, April 3, 2012

Targeting Android with Scala 2.8 Trunk builds


The definitive reference for using Scala on android seems to be here: http://www.scala-lang.org/node/160

Android without Java


After doing the whole "enterprise" programming for a while, I'm seriously disillusioned by the language itself and always feel quite hampered if I have to go back to it. The project size of your average Android app isn't too intimidating and the libraries are actually quite nice regarding their coding style, but if I could avoid Java, I'd certainly do.

Tuesday, February 21, 2012

Instantiate a type based on json and metadata using lift-json


I would like to deserialise Scala case classes that have been serialised using lift-json. The problem I am having is, I don't know how to invoke the generic method extractOpt[A] method below: