User loginNavigation |
archivesdoing letrec with lambdasHi there, I promise this isn't a homework assignment of some sort, but it sure feels like it should be.... I'm working on a pet language of mine, which I'm building up from a hopefully minimal intermediate language very similar to lambda-calculus. In order to map proper (potentially mutual) tail-recursion onto the lower-level implementation mechanics, I realized that I need to be able to do the moral equivalent of a letrec, but, since this's just a kernel-intermediate language, I want to avoid syntactic sugaring until higher-level intermediate forms instead, and would strongly prefer to not introduce a one-off level of complexity to hack this up. Doing "let" with lambdas is trivial enough that even I understand it, but I've gone 'round the proverbial mulberry bush with letrec, and to no avail. Would someone either have a quick answer as to how this's done, or else know of a link to a site/paper/discussion where folks do this? This really can't be as hard as it seems.... Thanks! Scala programming job in Odersky's lab in Lausanne, SwitzerlandInteresting Job notice on SEWORLD, the Software Engineering email list: Excerpt: Project link: (Disclaimer: I no connection with any of these groups, whatsoever. It just looked interesting.) By jlaw at 2008-09-04 06:24 | LtU Forum | login or register to post comments | other blogs | 6539 reads
Stock exchanges: language design aspectThis post is marginally on topic, touching social and economical sides of language design. Recently I discovered to myself that orders for stock exchanges are little programs written in little language. Orders historically started out as very simple agents - like "buy X units of Y for Z$". These agents would then be executed by exchange (in this simplest case, matching equal buys with sells). I found it very intriguing that exchange orders are not (usually publicly) presented as programs. Could it be that one venue to educate general public about languages and semantics is via articles about stock exchanges? :) So the question: is anyone aware of any research for "better" orders language and/or "better" execution semantics for them ("better" being any of more intuitive/efficient/expressive/transparent)? |
Browse archivesActive forum topics |
Recent comments
22 weeks 2 days ago
22 weeks 2 days ago
22 weeks 2 days ago
44 weeks 3 days ago
48 weeks 5 days ago
50 weeks 2 days ago
50 weeks 2 days ago
1 year 6 days ago
1 year 5 weeks ago
1 year 5 weeks ago