| |
Topic |
Replies |
Author |
Last Post |
|
Programming in a natural order
Whenever I'm doing the same thing over and over, a little background thread in my brain starts to wonder if there's a better way. Sometimes I tell it to shut up and let me code, other times I listen. In this case it took me a long time to listen, so it must have been pretty persistent. The first time I noticed it was while writing some lisp...
|
0
|
Ricky Clarkson
|
Jun 26, 2008 6:29 AM
|
|
A Cross-Language Generics Trick - Java, Scala and C#
Given a Pair<T, U> type in Java, Scala or C#, such as Map.Entry, Tuple2 or KeyValuePair respectively, you can construct type-checked variadic heterogenous containers that you can write general methods to operate on. Let's write a Pair interface for Java and C#:interface Pair<T, U> { T _1(); T _2(); } For Scala we'll use Tuple2,...
|
0
|
Ricky Clarkson
|
Jun 24, 2008 6:30 PM
|
|
Lambda in the Sun
Announcing the creation of Southern California Functional Programmers (SoCalFP), a group for people in LA, Orange County, and San Diego to meet in person and/or virtually to discuss, debate, present, and learn about functional programming concepts and techniques in various languages.You might ask, "why a functional programming group in Southern...
|
0
|
David Bernard
|
Jun 23, 2008 1:49 PM
|
|
What does I/O bound really mean?
There's a lot of old folk wisdom out there that justifies the use slow languages and runtimes on the basis that the impact on performance doesn't matter. Here's a sampling of them: Most applications are I/O bound so the performance of the programming language doesn't matter The database does all the heavy lifting, so performance of the...
|
0
|
Erik Engbrecht
|
Jun 18, 2008 9:38 PM
|
|
Scala Light... A Java successor?
Upon reading on a few forums in Artima, I detected a desire for both a fuller Java and a simpler Scala. A fuller Java to have things like type inference and more functional style constructs. A simpler Scala to be have an easier specification, both for the mind and for the IDE.What do you think would be more appropriate to help Java developers...
|
0
|
Jeff Heon
|
Jun 17, 2008 11:51 AM
|
|
A simple Java FP list map
Following on the comments I received on my previous entry about doing a bit of Java functional programming style, I made a very simple class to map a list. I'm following the style of what I have seen in the apache collections utilities. See previous post.First note that I am doing it without generics, so for some this would be old style Java...
|
0
|
Jeff Heon
|
Jun 10, 2008 7:40 PM
|
|
Parsing Performance of Scala for NetBeans
I'm re-considering the indexing mechanism of Scala for NetBeans. The indexing is used to store meta-info of parsed templates/methods etc, for auto-completion and document/source offsets searching. Currently, the parsing phases include lexer, syntax and semantic analysis, not include type inference and type check. With a basic performance...
|
0
|
Caoyuan Deng
|
Jun 10, 2008 1:57 PM
|
|
The Scala Influence
A while ago, Frank Sommers asked the following:How Has Functional Programming Influenced Your Coding Style?If wish I could have replied something then, but I was just starting to learn Scala, and I couldn't.Now, I'm still just at the beginning of grokking FP, but I can write about how it almost influenced a bit of Java code I had to write the...
|
2
|
Jeff Heon
|
Jun 10, 2008 6:21 AM
|
|
Edit distance in Scala
How handy.I was just looking for a way to highlight differences between 2 strings for my Behavior-Driven Development library, specs. And reading the excellent Algorithm Design Manual. Intuitively, I was thinking that there was a better way to show string differences than the one used in jUnit:Expected kit<t&gt;en but was...
|
0
|
Eric Torreborre
|
Jun 8, 2008 7:54 PM
|
|
Testing without setup and tearDown
In the most recent release of ScalaTest, I've placed some guidelines in the documentation for how to avoid the use of <code>var</code>s in testing code. In this post I include those guidelines and ask for feedback.
|
0
|
Bill Venners
|
Jun 2, 2008 11:03 PM
|
|
Bundled Latest Scala Runtime to Scala for NetBeans
I just bundled latest Scala runtime to Scala for NetBeans, the version is 2.7.1.final, this brings two things: First, you do not need to set SCALA_HOME any more to get whole plugins working. But, you can still set SCALA_HOME to specifying the target Scala version, if so, you should also need to download and unzip source jars to $SCALA_HOME/src;...
|
0
|
Caoyuan Deng
|
May 27, 2008 1:18 AM
|
|
My Scala-presentation is now online
Yesterday I held this Scala presentation at Javaforum in Gothenburg. About 140 persons attended the evening seminar. All in all I think my presentation went pretty well, but Niclas Nilsson pointed out afterwards that I got the definition of Duck Typing wrong. I have corrected this in my S5 slides, which are in Swedish. I'm releasing my...
|
0
|
Mats Henricson
|
May 22, 2008 3:12 AM
|
|
Scala: A conversation starter
Yesterday was the first Scala lift off conference, and I found myself in the middle of conversations I would have never expected. The most unexpected conversation of all—during an encounter between Bayesian probabilists and category theorists—had more to do with quantum mechanics than it had to do with Scala. It was nonetheless...
|
0
|
David Bernard
|
May 11, 2008 9:36 PM
|
|
Scala for NetBeans Screenshot#12: Better Completion with More Types Inferred
Well, the type inference work is not so easy, but anyway, I've got a bit more progress, at least, the chained member call can now be correctly inferred in a lot of cases. It's some level as Tor's JavaScript for NetBeans now. First, let's create a val "node", which is a "scala.xml.Node" Then, input '.' to invoke completion, as I know which type...
|
0
|
Caoyuan Deng
|
May 9, 2008 3:18 AM
|
|
Which Programming Language J. Gosling Would Use Now, Except Java?
According to Adam Bien's blog from JavaOne During a meeting in the Community Corner (java.net booth) with James Gosling, a participant asked an interesting question: "Which Programming Language would you use *now* on top of JVM, except Java?". The answer was surprisingly fast and very clear: - Scala. I think Fortress will also be a very good...
|
0
|
Caoyuan Deng
|
May 8, 2008 1:18 PM
|
|