Friday, January 5. 20075 Things a Ruby developer needs to know about ScalaComments
Display comments as
(Linear | Threaded)
So, how does one distribute a Scala program? Do you have to include a scala.jar along with your own jar?
Yes. Scala runs on top of the JVM, so one needs a JVM (1.4 or 1.5) and the scala.jar file.
Hi David,
I've been looking at Scala a lot lately. I downloaded it and I can run the "hello world" example just fine. What now? The Scala by Example book is confusing as hell, it starts out with all these weird terms I don't know, and I've used OCaml and Lisp before.
Warren,
Ted Neward has a great blog post here: http://blogs.tedneward.com/2006/03/05/Scala+Pt+3+Everythings+An+Object.aspx Also, there has been a bunch of chatter on the Scala lists about "Thinking in Scala" and I expect that there will be better tutorials soon. Thanks, David
Reading further in to the Scala book, once you get to Chapter 4 it's much smoother sailing.
Scala seems to have fast numerical performance, based on the Computer Language Shootout benchmarks I've seen. Is that the case in your opinion? Is memory use ever a problem?
Scala compiles down to Java bytecode. Because it's not doing anything wacky (like using reflection to invoke methods), it's going to be as fast as Java.
Memory utilization seems to be comparable to Java as well. I wrote a Textile parser in Scala and can generate 100,000 XHTML representations of all the textile examples on Hobix's page in 18 seconds (including start-up time.) That's pretty good performance.
Hate to keep bothering you, but could you answer my question I posted on the Scala mailing list? http://article.gmane.org/gmane.comp.lang.scala/3439
Thanks a ton.
Warren, I bought Programming in Scala by Martin Odersky http://www.artima.com/shop/forsale and must say that thi sbook is aimed to beginners, very interesting and easy to read.
I don't think regexp is really that big of a differentiator. I agree that regexp is important, having published on that topic, however, I've also met many a programmer who didn't even know what regexp meant.
Regexp is really important for quick scripting jobs, a task that Scala is unsuited for anyway.
On the other hand the regexp support in Ruby is not complete (features like look-behind are missing, not to mention that it doesn't really work with Unicode) ... and since Scala uses Java's regexp classes for that, it has those missing features.
I find Scala very good for scripting except for calling out to OS tasks.
"I find that chaining and currying functions is more maintainable and easier to debug than meta-programming in Ruby."
I assume that you by "currying" mean partial application? They are very different things.
Where can I find more info about bnf style expressions? E.g. what is it called in scala lingo?
Parser Combinators. http://www.scala-lang.org/docu/files/api/scala/util/parsing/combinator$package.html
"... ugly, repeat, repeat, repeat yourself ..."
For developers who do legacy development and maintenance, explict types are more like "... document, document, document your code ..." Peace -stephan -- Stephan Schmidt :: stephan@reposita.org Reposita Open Source - Monitor your software development http://www.reposita.org Blog at http://stephan.reposita.org - No signal. No noise.
And you can do explicit types in Scala. What you don't need is to beat the developer over the head with them, several times, in the same line.
Scala is a hybrid Object-Oriented/Functional Programming language on the JVM. When I heard that Twitter was using Scala, I was curious and started collecting all the sites and articles to learn scala programming. If you are interested check the link below for the big list I have gathered (more than 200 sites) for learning scala programming.
http://markthispage.blogspot.com/2009/06/more-than-100-sites-to-study-scala.html |
David PollakCalendar
QuicksearchCategoriesBlog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||
A while ago Jeremy Miller posted about C# futures . In response to his own thoughts on what might be
Tracked: Jan 07, 10:16