152 karma · joined Sep 25, 2009 (17y ago) · 72 submissions
comment 8y ago · link · parent
f: () -> SomeType
which can be called via: f ()
There are examples of this in the Gluon book (http://gluon-lang.org/book/syntax-and-semantics.html). There are no syntax-related difficulties at all here. This is also how it's done in OCaml and related languages.(Note: This is (basically) useless in Haskell, since laziness makes this have the same semantics as a constant:
f :: SomeType
But since Gluon is strict, there's a pretty important difference between the two.)comment 9y ago · link · parent
comment 9y ago · link · parent
The difference isn't that FPGAs don't operate on analog voltages deep down (who said they don't?). The difference is in the set of tools and tolerances they give you, and in that sense FPGAs are only an analog coprocessor in the sense that a car can, technically, be used as a sailboat.
comment 9y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
Many people like to pretend that there's some platonic, right form of language. Splitting an infinitive is wrong, ending a clause with a preposition is wrong, using pronouns in the accusative case as a subject (“Me and her do this”) or a predicate nominative (“It's me”) is wrong. This attitude reflects the same stubborn insistence on being right instead of pragmatic. The reality is that language changes over time and is defined by usage, so Those arguing that a common usage is incorrect are wrong by definition.
comment 15y ago · link · parent
My issue is with the use of monads in particular, and I think my comment pretty well communicates that it's solely about that. I don't think it conveys a false impression about Roy as a whole at all.
Your statement that my comment "can at best be seen as attention-seeking behavior and at worst as an underhanded FUD tactic to turn people off the project" is just absolutely ridiculous. I have nothing against the project Roy, and I wish it nothing but success. Why would I possibly have any motivation to use underhanded FUD tactics to turn people off the project? And I don't even know what to say to your accusation of attention-seeking behavior. In what world is initiating a productive discussion about an important issue, and not in a self-promoting way at all, "attention-seeking behavior"? Get off your high horse.
comment 15y ago · link · parent
However, if you'll take a look at the example monad code, the bind and return methods themselves use side effects. I think that speaks for itself.
comment 15y ago · link · parent
Especially when that language has unrestricted side effects and the example code using the monad syntax uses those side effects, completely obviating the need for, and in fact rendering useless, monads as used in the example.
This is cargo cult programming at its worst. Including monad sugar because it's the thing to do, without even understanding what monads are or why they're useful. This is quite clear from the "tracing monad" example code. This "tracing monad" is like the Writer monad, stripped of all utility and sense.
What drove you to unleash this horror on the programming masses, Moggi? Why have you cursed us so?
comment 15y ago · link · parent
comment 15y ago · link · parent
And it looks like Qi's type system is optional. If your only definition of type system power is Turing completeness, then sure, it's powerful, but it can't accomplish the same kinds of verification as Agda, etc.
comment 15y ago · link · parent
Conal Elliott has a good blog post about it. http://conal.net/blog/posts/everything-is-a-function-in-hask...