News for hackers. Stuff that matters.
Re:Swift vs. Go by catnaroek on Friday April 01, 2016 @05:14PM (#11408661)
“Strong” vs. “weak” doesn't mean anything at all. Let's stick to distinctions that actually make sense:

(0) Statically typed [e.g., Java] vs. not statically typed [e.g., Python].

(1) Dynamically typed [e.g., Java] vs. not dynamically typed [e.g., Haskell]. Yes, Java is both statically and dynamically typed.

(2) Safe for arbitrary resources [e.g., Rust] vs. only memory-safe [e.g., Python] vs. totally unsafe [e.g., Objective-C].

(3) Typeful [e.g., Haskell] vs. not typeful [e.g., Objective-C].

(4) Global [e.g., Standard ML] vs. local [e.g., Scala] vs. no type inference at all [e.g., Java].

(5) Reflective [e.g., Common Lisp] vs. not reflective [e.g. Rust].

(6) Fixed [e.g., Standard ML] vs. extensible on top of a fixed core [e.g., C++] vs. extensible and modifiable [e.g., Common Lisp].

Re:Swift vs. Go by dllthomas on Friday April 01, 2016 @08:26PM (#11409563)
This is a very good list.

With respect to Haskell and dynamic typing, I am curious whether you had considered Typeable and Data.Dynamic in your analysis (and, in general, your thoughts on how they relate to the distinction being made).

Re:Swift vs. Go by catnaroek on Friday April 01, 2016 @08:47PM (#11409642)
If I understand correctly, and I might be wrong, `Typeable` and `Data.Dynamic` require dedicated support from GHC, and couldn't possibly be implemented entirely as user libraries. This makes them core language features in my book. So the language specified in the Haskell Report isn't dynamically typed, but the GHC Haskell dialect is dynamically typed.
Re:Swift vs. Go by tome on Saturday April 02, 2016 @04:45AM (#11410782)
I believe the situation is that Dynamic only requires Typeable, and Typeable only requires unsafeCoerce plus the trust that bad instances are never created.
Re:Swift vs. Go by catnaroek on Saturday April 02, 2016 @05:39AM (#11410896)
> unsafeCoerce

GHC-specific implementation detail.

> the trust that bad instances are never created

The only way I can trust it is if the compiler enforces it, at which point it isn't “just a library feature”.

Re:Swift vs. Go by dllthomas on Friday April 01, 2016 @09:06PM (#11409709)
Ah, yes, report vs ghc is sometimes a very important distinction. Your assessment sounds correct.