Better HN
topnewbestaskshowjobs
Log inSign up

trailfox

401 karma · joined Feb 20, 2013 (13y ago) · 183 submissions

Submissions

comment 12y ago · link · parent

> The comparison is that Scala is to Java what C++ is to C.

Which is pure opinion/speculation.

comment 12y ago · link · parent

I happen to find str: String much more readable than String str.

comment 12y ago · link · parent

I think you're confusing Scala and C++.

comment 12y ago · link · parent

In our experience Scala has been a superb alternative for large Java projects. Practical experience vs. your opinion/speculation?

comment 12y ago · link · parent

I use the defaults, and then set about removing all shortcuts from my desktop

comment 12y ago · link · parent

IntelliJ plugin download stats:

  Scala  883,000
  Kotlin  21,000

comment 12y ago · link · parent

I know, but the .NET CLR has lagged the JVM for years in terms of performance, but its a few years since I did a comparison...

comment 12y ago · link · parent

The most annoying thing about IntelliJ is the way it's keyboard shortcuts clash with virtually every keyboard shortcut of your average Linux distro. Other than that it's an awesome tool.

comment 12y ago · link · parent

Scala implement tail call optimization in the compiler. In general the JVM has always outperformed the CLR:

http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...

comment 12y ago · link · parent

Better performance? What are you basing that on?

comment 12y ago · link · parent

I would argue the exact opposite. Odersky has gone to great lengths to discourage overly defensive commentary and bashing of other languages:

http://www.scala-lang.org/old/node/12498

I don't think it's unreasonable to respond to a very poor quality blog post bashing Scala since it received very widespread publicity. The interesting story behind the story is the extreme enthusiasm with which Scala bashing posts are upvoted on various forums. It's highly unlikely that the majority of those voting have actually used Scala.

comment 12y ago · link · parent

I should also point out that it's a feature which I don't believe detracts from readability. It's pretty clear from looking at code which uses ST what it does. There are examples in this thread.

It's a feature that you will use directly maybe once a year when adding it to a library, but I then use that library (and indirectly that feature) virtually every day. YMMV but we've found it very useful.

comment 12y ago · link · parent

Removing structural typing wouldn't be an improvement to my mind. It's the sort of thing you use maybe once a year, but when you do it's extremely useful to have around. It's a bit like saying that removing the ternary conditional operator in Java would make a big difference to developers' lives.

comment 12y ago · link · parent

The quality of the original "1-star" blog post was extremely low. Odersky sums it up well with:

This week-end's edition is called "Scala - 1 Star - would not program again", and it's by someone who from reading his post seems to have written Scala all of two weeks after coming form Javascript. I think the interesting bit is not so much that these posts are written, but that they are upvoted so much.

I was also very surprised to see such a low-quality blog post being voted up with such enthusiasm on HN and elsewhere.

comment 12y ago · link · parent

C# has various options (see: http://stackoverflow.com/questions/671231/linq-nhibernate-al...)

The Scala equivalent is called Slick, and it's the only SQL DSL that approaching anything near widespread use. I fail to see how incomplete projects on GitHub which happen to be written in Scala are relevent to this discussion.

comment 12y ago · link · parent

C# does that too. It's called LINQ and it's very popular.

comment 12y ago · link · parent

That's pretty odd. What libraries were you using?

comment 12y ago · link · parent

* You might be better off using a pre-release snapshot of Java 8 as a better Java. You'll get closures, functional collections, and better type inference. I bet Eclipse and Intellij support it better too.*

You lose out on most of the features of Scala, and IntelliJ supports Scala very well.

comment 12y ago · link · parent

For an "academic exercise" it's getting used pretty widely by the likes of Twitter, Foursquare, Netflix etc.

comment 12y ago · link · parent

I would rather use almost anything else except the random DSL wasteland that is Scala

In my experience very little Scala code uses DSLs. Learning Scala isn't that tricky for anyone who knows Java, which is a pretty big pool.

comment 12y ago · link · parent

Kotlin hasn't even been released yet, and it looks just like Scala.

22.

Flagship Tablet Display Technology Shoot-Out(displaymate.com ↗)

1 points · by trailfox · 12y ago · discuss

comment 13y ago · link · parent

The tool doesn't include any of the c3 and i2 instance types yet.

comment 13y ago · link · parent

It does look very interesting. I was surprised to learn that it cross-compiles to C before being compiled. I'd be even more interested if there was an IntelliJ plugin for Nimrod.

comment 13y ago · link · parent

If I recall correctly Groovy was directly inspired by Python. I don't have a link, but I remember reading that the creator of Groovy was inspired after seeing a book on Python.

comment 13y ago · link · parent

It was a few months ago so I can't remember the queries. I tried a few to compare now and didn't notice much difference between the two with the examples I tested with.

comment 13y ago · link · parent

> How Redis+Memcached+Node.js+Go+MongoDB+MariaDB+postgres+Clojure helped my start-up scale (from 10 to 20 hits per day)

comment 13y ago · link · parent

> Why Go Is Better Than You And Everything You Own And Why It Always Will Be

comment 13y ago · link · parent

I can only pity those tasked with maintaining such systems.

comment 13y ago · link · parent

The search results of Bing seemed very similar to DDG. It seemed to do a mediocre job if figuring out the context of my search. Google seemed to figure out the question behind my query. With Bing the results seemed to feel more like a regular text search where it matched the words I was searching for to semi-random websites. Perhaps google has so much search traffic and they check which links people click on for different searches, so they are able to adapt to put more useful results closer to the top for a given query over time.
1234567