User loginNavigation |
archivesOverloading in a statically typed functional languageI am working on a statically typed functional array language that would benefit greatly from operator overloading. I originally wanted to use something as elegant as type classes, but they don't mesh well with multiple meanings for the same operator (matrix * matrix, matrix * vector, scalar * matrix, etc... multiplication). I've looked at multiparameter type classes (with functional dependencies) but I think that approach would clutter up an already complicated language and create too much cognitive overhead for potential users. I've also looked at Furuse's work with G'Caml, which is thus far the most promising technique I've seen. Unfortunately, the complicated type signatures might be a deal breaker. I'm writing my language with current Matlab users in mind and I don't think they would tolerate deciphering the messy derived generic types that seem to crop up for even simple functions. Can anyone suggest any other mechanisms for implementing operator overloading? trying to see forum+frontpage posts in orderi haven't found a way to list all pages posted in e.g. chronological order; i can either get the forums list, or i can scroll through the front page. is there such a view? if not, might it be some day something somebody who knows drupal could enable? :) April 1st special: The War of the WorldsConrad Barski has posted a sneak peak from his upcoming Lisp textbook/comic: Land of Lisp. The first slides may seem unrelated, but boy does the message sting when you reach the ending... FPers will be quick to note, of course, that this being April Fools' Day the whole thing is a joke and we can all go back to Haskell... By Ehud Lamm at 2008-04-02 00:34 | Critiques | Fun | Functional | 31 comments | other blogs | 11572 reads
|
Browse archivesActive forum topics |