News for hackers. Stuff that matters.
Re:Beating the Arc Challenge in Haskell by derefr on Saturday December 19, 2009 @07:15PM (#1005453)
If the compiler is part of the runtime (i.e. an interpreter that compiles expressions in order to evaluate them), and then the type checker is part of the compiler, even eval should be able to throw type errors. What, then, is the problem?
Re:Beating the Arc Challenge in Haskell by fauigerzigerk on Sunday December 20, 2009 @04:15AM (#1005960)
The problem is that the type error occurs at runtime, which is exactly what static type checking is supposed to prevent in the first place.
Re:Beating the Arc Challenge in Haskell by derefr on Sunday December 20, 2009 @06:54PM (#1006815)
It depends on what you mean by "runtime." If you're creating a new datatype, is that really "at runtime," or are you just talking to the compiler interactively?

To put it another way: metaprogramming might have effects at runtime, but not the kind of effects that change depending on what the runtime does. Metaprogramming should be deterministic for your program to be considered to be "in production."

Re:Beating the Arc Challenge in Haskell by baguasquirrel on Sunday December 20, 2009 @12:00AM (#1005754)
It's not a statically typed language like Haskell anymore?