News for hackers. Stuff that matters.
Re:Typesafe raises $14M to commercialize Scala by typetheoristic on Wednesday August 22, 2012 @09:09AM (#4417142)
So I get downvoted for pointing out the hubris of naming your company TypeSafe when your language isn't?
Re:Typesafe raises $14M to commercialize Scala by nirvdrum on Wednesday August 22, 2012 @10:15AM (#4417418)
I'm guessing you got downvoted because it's a silly point to make. Companies have stupid names all the time. No investor is going to care about that.
Re:Typesafe raises $14M to commercialize Scala by typetheoristic on Wednesday August 22, 2012 @11:39AM (#4417889)
There are stupid names and there are misleading names.
Re:Typesafe raises $14M to commercialize Scala by thebluesky on Wednesday August 22, 2012 @12:30PM (#4418184)
There are nitpickers and Nitpickers with a capital N.
Re:Typesafe raises $14M to commercialize Scala by sixbrx on Wednesday August 22, 2012 @09:22AM (#4417183)
I didn't downvote but it's probably because details are needed for the assertion.
Re:Typesafe raises $14M to commercialize Scala by typetheoristic on Wednesday August 22, 2012 @09:28AM (#4417202)
This has come up plenty of times on Hacker News with plenty of examples. modersky generally just writes it off as being "harmful" to the community and other nonsense to avoid the issue. Harmful to his valuation is more like it.
Re:Typesafe raises $14M to commercialize Scala by seanmcdirmid on Wednesday August 22, 2012 @09:58AM (#4417341)
Static (and even dynamic) type safety is always a shade of gray vs. a black and white thing. A language that is 100% type safe is a language that doesn't do very much (...or requires a theorem prover). Scala is very pragmatic in that regard.
Re:Typesafe raises $14M to commercialize Scala by typetheoristic on Wednesday August 22, 2012 @11:39AM (#4417880)
I'm not sure what world you're living in, but Haskell and ML seem to offer some measure of type safety and are also quite practical. Sure there is unsafePerformIO. But the problem is with Scala you don't even need to use unsafe language features to get an unexpected class cast exception. Given that you worked on Scala I'm rather surprised you don't know about this already.
Re:Typesafe raises $14M to commercialize Scala by seanmcdirmid on Wednesday August 22, 2012 @12:10PM (#4418074)
Could you be more specific? Is the compiler promising more than it can deliver, or are you saying the compiler could check something but simply doesn't?

You can have 100% type safety in a straight jacket, but scala pushes what it tries to type check to an extreme limit; "safe" but then also not as conservative as Haskell or ML. I see scala as the c++ of statically typed languages, filling that niche where you need more from your managed language and are willing to take a leap, but this is controversial and a personal opinion.

Re:Typesafe raises $14M to commercialize Scala by SourPatch on Wednesday August 22, 2012 @02:14PM (#4418740)
Do you have an example of code that will throw an unexpected ClassCastException?
Re:Typesafe raises $14M to commercialize Scala by pkolaczk on Thursday August 23, 2012 @04:32AM (#4421438)
I never, ever had a ClassCastException in Scala that I wasn't warned about by the compiler. Maybe in theory you are right. But what counts is practice.
Re:Typesafe raises $14M to commercialize Scala by eli_gottlieb on Wednesday August 22, 2012 @11:08AM (#4417703)
Scala is type-safe, but type-safe with escape hatches (which every good language has sometimes, when the programmer knows the truth of theorems the type-checker can't prove). It also has an undecidable type system, but then, so does half of everything nowadays.
Re:Typesafe raises $14M to commercialize Scala by typetheoristic on Wednesday August 22, 2012 @11:37AM (#4417870)
It isn't even about "escape hatches". There are programs that can be written without any special language features that will cause class cast exceptions. Please do your research.
Re:Typesafe raises $14M to commercialize Scala by pkolaczk on Thursday August 23, 2012 @04:34AM (#4421442)
Perhaps there are, but in over 20000 lines of Scala code I haven't encountered any. So this is a non-issue in practice.
Re:Typesafe raises $14M to commercialize Scala by eli_gottlieb on Thursday August 23, 2012 @10:16AM (#4422458)
Could you show one?