HNHacker News
TopNewBestAskShowJobs

thebluesky

234 karma · joined January 12, 2012

submissionscomments
thebluesky··on Typesafe raises $14M to commercialize Scala
Glad to see this. As a longtime Java developer I've found Scala has made coding for the JVM fun again.
thebluesky··on Atomic Scala
Glad to see Bruce Eckel involved. It's interesting to see just how many Scala books have been cranked out in the last 6-12 months or are currently in progress.
thebluesky··on Atomic Scala
Seems he forgot the link. Another excellent book for learning Scala is Scala for the Impatient. The first 9 chapters are free: http://horstmann.com/scala/
thebluesky··on Rob Pike: The Best Programming Advice I Ever Got.
I also found that interesting, but not a big surprise since he is one of the co-authors of go...
thebluesky··on Hate Java? Maybe you should hate the industries stuck in the 50's.
You'll get similar results for most benchmarks. Languages such as Ruby/Perl/Python are consistently slower than Java. There's no such thing as a perfect benchmark, but I've found the language shootout page to be a pretty accurate reflection of what I've observed in practice.
thebluesky··on Hate Java? Maybe you should hate the industries stuck in the 50's.
Figuring our how core libraries such as the collections framework work is pretty easy if you get a good book like Scala for the Impatient.
thebluesky··on Hate Java? Maybe you should hate the industries stuck in the 50's.
Yeah that seems to happen if you leave type aware highlighting enabled. Seems to work well with that switched off.
thebluesky··on Hate Java? Maybe you should hate the industries stuck in the 50's.
If it took you hours to get hello world working perhaps you should consider going back to school?
thebluesky··on Hate Java? Maybe you should hate the industries stuck in the 50's.
Java has been pretty fast since it used a JIT circa 1998. The main reason it got a bad rap was that it needed tens of MB of memory for basic apps. This means that folks with their Pentium I's and II's with 64MB RAM perceived Java as slow since basic apps would swap like crazy. A few years later J(2)EE app servers (notoriously heavyweight) made heavy use of many many layers of abstraction resulting in poor performance. These two events have unfairly tainted Java's reputation.

The JVM has improved performance by developing more advanced garbage collectors and profiling JIT compilers over the years to the point where it is the JVM is the fastest managed runtime out there. http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...

Short version is that Java tends to take a lot of memory and a fair while to start up, but once it gets going it's very fast. A bit like comparing a Boeing to a small sports car. The sports car will drive you to the shop around the corner very fast. The Boeing will take a long time to prepare for takeoff, but once it gets going will leave the sports car behind in the dust.

thebluesky··on Hate Java? Maybe you should hate the industries stuck in the 50's.
There isn't an IDE with a scala plugin that fully supports scala

IntelliJ provides an excellent free scala plugin. What have you been using?

thebluesky··on Hate Java? Maybe you should hate the industries stuck in the 50's.
High school students all over the world are quite happy to write Java code like that without any issues.
thebluesky··on Hate Java? Maybe you should hate the industries stuck in the 50's.
Java is slow ... It scalability is a joke. I've worked as a Java contractor at a number of places and what a PERL/PHP/Python solution can get done in 5 boxes, it takes Java 30-40 boxes. This is NOT an exagerration.

Hard to believe this one is still getting wheeled out in 2012. Java is MASSIVELY faster than Perl/Ruby/Python: http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...

I've seen over and over how Java code is at the very least an order of magnitude faster than a solution in a scripting language.

BTW the correct spelling is "exaggeration"

thebluesky··on Hate Java? Maybe you should hate the industries stuck in the 50's.
For a language that will "never be mainstream" it seems to be picking up steam pretty fast. We're very happy with it. Sensibly written Scala code is much easier to read than Java, and that's coming from someone who has been using Java for a long long time.
thebluesky··on Steve Yegge: Notes from the Mystery Machine Bus
Tumblr and Twitter don't strike me as a particularly conservative audience. Quite the opposite.
thebluesky··on Steve Yegge: Notes from the Mystery Machine Bus
...except that most of the features you mention are in Scala in some for or another, yet he classifies Scala as "hardcore conservative"
thebluesky··on Steve Yegge: Notes from the Mystery Machine Bus
Yegge: http://www.urbandictionary.com/define.php?term=Yegge

"A measurement of length of a piece of writing, particularly when indicating a length excessive for the genre. A Yegge is approximately 4000 words or 25 kilobytes.

Named for well known programmer and technical blogger Steve Yegge, whose blog up to about 2009 was notorious for entries of approximately 1 or 2 Yegges in length, vastly exceeding the typical length of blog entries in the genre."

thebluesky··on Steve Yegge: Notes from the Mystery Machine Bus
It seems very subjective (and somewhat arbitrary) to assign labels of "conservative" or "liberal" to languages based largely on type safety. If this random blog post is taken as the definitive source of "conservative" vs "liberal" we get the following:

Twitter and Tumblr using Scala are "Hardcore conservative", while guys writing assembler for IBM mainframes are "Batshit liberal" ?

thebluesky··on Rust or Go? Which will rise?
Does anyone have any benchmark numbers for either?
thebluesky··on Go is boring
yeah free version supports Java SE, with a really nice Scala plugin for download via the plugin manager.
thebluesky··on Java for iPhone
Yeah, from the site it looks like they are running "true native applications", so probably using native UI widgets.
thebluesky··on Java for iPhone
Citation?
thebluesky··on Dart's plan to make it easier for you to build web apps
The inclusion of type information for method parameters makes for some pretty nice tooling. Check out the error checking and code completion at around 30:00
thebluesky··on .NET 4.5 includes new garbage collector enhancements for client and server apps
Another citation from 4 years ago for good measure: http://www.oracle.com/us/technologies/java/oracle-jrockit-re...
thebluesky··on .NET 4.5 includes new garbage collector enhancements for client and server apps
Fair point. Thanks for pointing that out.

> "While there are some great JVM GCs, I wouldn't walk away with the impression that the .NET folks are behind by any means. "

Can the .NET GC provide deterministic real-time collection pauses? e.g.:

http://www.oracle.com/us/technologies/java/oracle-jrockit-re...

thebluesky··on .NET 4.5 includes new garbage collector enhancements for client and server apps
> Perhaps you wanted to use a different link? This one says that it [ruby] is ~10 times slower [than C#]?

The link is correct. See the "code" section where Ruby has 2-3x less code. I won't disagree about Ruby being much slower than C# and Java. Ruby slow[er]ness has to do with it being dynamically typed, which also makes it expressive. If you are after something which is more expressive than C# and faster than C# see Scala on the JVM: http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...

thebluesky··on .NET 4.5 includes new garbage collector enhancements for client and server apps
The point my original post makes is that .NET having concurrent GC is not exactly groundbreaking. This doesn't have anything to do with the so-called expressiveness of C# relative to Ruby.

>The bytecode language is not standardized, and there is no standard assembler language for it

There is a formal spec here: http://docs.oracle.com/javase/specs/jvms/se7/jvms7.pdf

> New features to the JVM are only added when they are required for Java.

This is another false assumption: http://blog.headius.com/2008/09/first-taste-of-invokedynamic...

>I say it does rival [the expressiveness of] ruby, you say it doesn't, good discussion.

Not really, is more like a generally accepted fact. e.g. Ruby typically uses 2-3x less code than C# to do the same thing: http://shootout.alioth.debian.org/u64q/benchmark.php?test=al...

thebluesky··on .NET 4.5 includes new garbage collector enhancements for client and server apps
> built a multiple language oriented vm that enables language features so varied that even the standard java-like language C# rivals ruby and python in expression

Since the JVM happily runs Ruby, Groovy, Clojure, Python, Scala the point it moot. Aside from that C# does not rival Ruby in expressiveness.

thebluesky··on .NET 4.5 includes new garbage collector enhancements for client and server apps
The world has moved on to more advanced concurrent GC implementations. Citations above.
thebluesky··on .NET 4.5 includes new garbage collector enhancements for client and server apps
> "The new background server GC in the .NET Framework 4.5 offloads much of the GC work associated with a full blocking collection to dedicated background GC threads that can run concurrently with user code, resulting in much shorter (less noticeable) pauses. One customer reported a 70% decrease in GC pause times. "

Concurrent garbage collection. Not that impressive in 2012. Java has had concurrent GC for at least a decade:

JDK 1.2.2 Java had a switch for that in the late 90's already: -Xconcgc Use concurrent garbage collector (1.2.2_07+)

JDK 1.4.2 http://java.sun.com/docs/hotspot/gc1.4.2/#4.3.%20When%20to%2...

also: http://research.sun.com/techrep/2000/abstract-88.html

The world has moved on:

http://www.oracle.com/technetwork/java/javase/tech/g1-intro-...

http://researcher.watson.ibm.com/researcher/view_project_sub...

thebluesky··on Online course from the creator of Scala, starting this September
That is seriously impressive. How many universities get the creator of a language in to teach you how to use it?
← PreviousPage 3 of 6Next →