User loginNavigation |
archivesPMD with CLOS-style Method CombinationHello All, Now, as near as I can tell, there haven't been any whitepapers written on the subject of combining PMD with Method Combinations, so I thought I'd ask you guys: Have you heard of anything like this? Even if you haven't, are there any pitfalls or oppertunties that you might be able to point out regarding this? Thanks, Edit: corrected ommision of the word "out". On Mixing Static Typing, Dynamic Typing and Values
In the Cat language I found it neccessary to have primitives which have embedded values. For example
store#N would place the value on the top of the main stack into the Nth position in the auxiliary stack. There are currently a couple of other primitives like this.
Upon examination, this syntax yields a limitation: you can't use an expression in place of N. For example: When I step back and look at this differently, I am embedding compile-time expressions between angled brackets (lt; and >). This makes the language specification more complex because the semantics for compile-time code are necessarily different from those of run-time code. This leads me to ask the question, shouldn't I allow compile-time or type expressions to be expressed using precisely the same syntax as the rest of the language? In other words why not place types on the stack, and if a type-expression can be resolved at compile-time, then let the compiler do so. The only problem that I can see is that some expressions are not resolvable at compile-time, but this would simply lead to dynamic type expressions. I can see people potentially getting confused about what expressions can be evaluated at compile-time, and which ones are evaluated at run-time, but does it really matter? It seems to me at this point that freely intermixing static and dynamic typing and evaluation is the right thing to do, but I'd like some feedback and other points of view. Revisiting Google's MapReduceGoogle's MapReduce Programming Model -- Revisited. Ralf Lämmel.
This is a fun example of type-directed exploration and prototyping, and pokes some gentle fun of Google's (ab)use of standard terminology. It's neat to get a glimpse into the programming process of a very experienced Haskell programmer. (From the forums.) By Matt Hellige at 2006-08-09 21:18 | Fun | Functional | Software Engineering | 7 comments | other blogs | 22196 reads
|
Browse archivesActive forum topics |
Recent comments
22 weeks 1 hour ago
22 weeks 5 hours ago
22 weeks 5 hours ago
44 weeks 1 day ago
48 weeks 3 days ago
50 weeks 13 hours ago
50 weeks 13 hours ago
1 year 4 days ago
1 year 5 weeks ago
1 year 5 weeks ago