User loginNavigation |
LtU ForumGoF get SIGPLAN awardACM SIGPLAN has given the 2005 Programming Languages Achievement Award to Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides, authors of Design Patterns. By Jim Apple at 2005-07-31 03:38 | LtU Forum | login or register to post comments | other blogs | 6646 reads
More on the "generics are evil" memeBruce Eckel, famous author of programming books Thinking in Java and Thinking in C++, writes some commentary about Arnold's article on generics (discussed here on LtU):
Here Eckel seems to agree with many opinions expressed in the previous discussion: that's not a problem with generics in general, but with the Java implementation. And he argues that it would be better if the language was designed with generics in mind in the first place, which I don't think anyone would disagree with. But the question is, how can we change the course of a moving train? It seems to be never easy. Can PL theory help the evolution of programming systems and not only their design? A question about subtypes inferenceHi I am looking for information on subtype inference. Consider a type system with a sub rule: E,C|- e:sigma C|-sigma :sigma' Here E is the type environment and C is the (initially empty) subtype constraint set. And a set of rules for infering constrainst from sigma:sigma' depending on the underlying type of sigma. (it is a structural type system). My question is, after my type inference assigns type sigma’ to e, how do I choose sigma’, as to find the correct underlying constraints. I looked and asked around. Some suggested using a copy of sigma, I find this odd because I don’t see why, and how this would produce the needed type constraints. I would be grateful for either a article explaining this matter or pointers to the underlying idea. R.K. BTW this is the article I’m working on CTM Author American University TourEdit: Woops, didn't realize that this news had already been posted! Guess I should read the front page once in a while...
By rhat at 2005-07-29 12:35 | LtU Forum | login or register to post comments | other blogs | 6223 reads
Language support for generating functions?We've got languages with support for iterators and lazy lists and other sequence oriented structures. Is there any language with built in support for generating functions? I don't have any immediate application in mind, I'm just curious as to what could be possible. ML without GCI'm in the mood to develop an ML like language for small microcontrollers :-) [Fun, crass] The Daily WTFIf LtU is the zenith of PL discussion, the nadir might be The Daily WTF (where Whiskey Tango Foxtrot decodes from the phonetic alphabet to a vulgar interrogative). A software engineering problem: how would functional programming solve it?Here is a simple software engineering problem that I have encountered the last few days. It's not something dramatic, but one that has made me stop development in search of elegant solutions. I am posting this here because I would like to see how functional programming languages would solve this problem. Here is the problem: I am writing a GUI toolkit that reuses the Win32 API wrapped up in a set of C++ classes (the reason is that there is no GUI library that completely hides Win32 will reusing it - existing libraries either follow Win32 logic (ala WxWidgets) or provide their own implementation (ala Qt/Swing)). As you may know, Win32 is not object-oriented, nor does it have a well thought out/consistent interface. For example, although the menu bar is a screen object, it is not a window: all there is is a bunch of functions for creating a menu, redrawing it, adding menu items etc. But I want to have menus and other non-window Win32 items as widgets in the toolkit, for consistency reasons. The problem lies in the organization of classes. I have 4 types of widgets:
The object-oriented design solutions would be:
So what I am asking is how functional programming languages solve an issue like the above, which is an issue of code organization/clarity/reuse/taxonomy. I can't seem to find a good object-oriented solution to the problem, nor any of my colleagues/friends can. So I am asking if other programming paradigms have a better solution for this problem. 4-color theorem The only correct, simple and elegant proof of The 4-color theorem is a well-known math problem Sincerely Dear Dr. Cui Shitai: Thank you for considering the Journal. Yours sincerely, Nick Wormald Dear professor Software Re-engineering Techniques and Reverse Engineering of Object-oriented Code ( Java language)I am working on this .... 1- Sofwtare Re-engineering Techniques THanks |
Browse archives
Active forum topics |
Recent comments
9 weeks 4 days ago
9 weeks 5 days ago
9 weeks 5 days ago
9 weeks 6 days ago
10 weeks 2 days ago
10 weeks 2 days ago
10 weeks 3 days ago
10 weeks 3 days ago
10 weeks 3 days ago
10 weeks 3 days ago