5 ms·
Actors and the way Scala handles async is one of the reasons I wanted to get into using Scala on Android actually. The awkward way Android handles it is chock f
by yareally 13y ago
Actors and the way Scala handles async is one of the reasons I wanted to get into using Scala on Android actually. The awkward way Android handles it is chock full of Java boilerplate and Scala's way is just much more elegant.
Another feature that got my attention was the ability to have a SQL framework that handled things similar to LINQ. I haven't tried it much yet, but Squeryl[1] has looked promising for being a Scala equivalent. I may have to look into Akka more though as that will easily take care of async SQLite calls as well[2].
[1] http://squeryl.org/introduction.html http://squeryl.org/introduction.html
[2] http://www.gamlor.info/wordpress/2012/05/async-sql-and-akka/ http://www.gamlor.info/wordpress/2012/05/async-sql-and-akka/
- saryant 13y agoI used Squeryl in my thesis (admittedly a while ago) and Slick[1] on a more recent project. Like you, I had ample experience in LINQ and it's definitely the feature I missed most from C#. I'm a fan of Slick. I'm also looking forward to async SQL calls. I've been building some Akka-based projects for a client and both they and I have been thrilled with the results. They're a startup that's gaining traction and they brought me in to help with scalability. I won't go so far as to say that Akka is a magic bullet but it makes reasoning about scalability far easier, though in our case we're mostly dancing around the IO bottleneck. [1] http://slick.typesafe.com/ http://slick.typesafe.com/
- clhodapp 13y agoMy GSOC project for this year is an extension to for comprehensions to enable LINQ-like conciseness without LINQ's inflexibility. If it ends up being merged into the compiler proper (a pretty big if), it should really help to make writing complex queries a lot less painful.
- gtani 13y agoThat's excellent. 9 of 14 proposed projects were accepted http://www.scala-lang.org/gsoc2013 http://www.scala-lang.org/gsoc2013 http://www.google-melange.com/gsoc/projects/list/google/gsoc2013?ModPagespeed=noscript http://www.google-melange.com/gsoc/projects/list/google/gsoc... (type "scala team" in "Organization" box
- mynameisme 13y agoSqueryl doesn't allow you to drop down to raw SQL, so I'd suggest avoiding it.
- papsosouid 13y agoIt is also rather broken, and the author doesn't appear to care. I'd second the suggestion to avoid it.
- yareally 13y agoThat's a shame, on both accounts. It looks nice and the right way to abstract out SQL, but admittedly, I would not use it if it won't let you drop down to SQL for something that needs it.