Re:Meta Programming System Language Oriented Programming env...
by serichsen on Wednesday September 14, 2011 @06:32AM
(#2995623)
I have the impression that this is mainly a point-and-click GUI for an implementation of a quarter of Common Lisp.
To translate their calculator tutorial (http://www.jetbrains.com/mps/docs/tutorial.html), in Common Lisp you would write a little macro "define-calculator" that then lets you write something like this:
Re:Meta Programming System Language Oriented Programming env...
by agentultra on Wednesday September 14, 2011 @09:25AM
(#2996153)
This naturally leads to the idea of non-textual presentation of program code. A major benefit of this approach is that it eliminates the need for code parsing. Our solution is to have code always maintained in an Abstract Syntax Tree (AST), which consists of nodes with properties, children and references, and fully describes the program code.
So.. Common Lisp? I just read the article about the stupidity in file systems. In it the author laments the old adage about history repeating itself. He coins the anecdote, there are no new engineering problems, just new engineers solving old problems.
I can imagine this MPS product being incredibly useful... but we have had this technology for nearly 40 years in some for another of Lisp. And most Lispers would agree that extending the program language and semantics to the domain is a very productive way of writing reliable and maintainable software.
I am curious though what makes MPS superior exactly? Seems more complicated than Lisp, but I'm no MPS expert. Can anyone enlighten us?
Re:Meta Programming System Language Oriented Programming env...
by cyrus_ on Wednesday September 14, 2011 @02:07PM
(#2997262)
In what way is Common Lisp using "non-textual presentation of program code"? S-expressions are still textual. For example, you can't associate information with S-expressions that is not visible on the screen. And you can use much more natural syntax in MPS than in Lisp (not trying to start a tired old flame war.)
Re:Meta Programming System Language Oriented Programming env...
by agentultra on Wednesday September 14, 2011 @06:35PM
(#2998126)
S-Expression are in many regards the AST of a Lisp program. Macros create the high-level domain-specific semantics. If textual representation is important as well, you can write reader-macros. Lisp is really good at this sort of "meta-language programming."
It still seems to me that everyone, eventually, implements Lisp in one way or another (or at least some small part of it).
Re:Meta Programming System Language Oriented Programming env...
by jefffoster on Wednesday September 14, 2011 @08:52AM
(#2996032)
There's also Intentional software (http://intentionalsoftware.com/) who offer a similar product. It was hyped quite heavily a few years ago, but I've not heard much about Intentional Software's product or MPS.
Is anyone seriously using a language workbench tool? If so, what are you experiences with it?
To translate their calculator tutorial (http://www.jetbrains.com/mps/docs/tutorial.html), in Common Lisp you would write a little macro "define-calculator" that then lets you write something like this:
It would be based on some library (e.g. common-qt) that provides GUI primitives.So.. Common Lisp? I just read the article about the stupidity in file systems. In it the author laments the old adage about history repeating itself. He coins the anecdote, there are no new engineering problems, just new engineers solving old problems.
I can imagine this MPS product being incredibly useful... but we have had this technology for nearly 40 years in some for another of Lisp. And most Lispers would agree that extending the program language and semantics to the domain is a very productive way of writing reliable and maintainable software.
I am curious though what makes MPS superior exactly? Seems more complicated than Lisp, but I'm no MPS expert. Can anyone enlighten us?
It still seems to me that everyone, eventually, implements Lisp in one way or another (or at least some small part of it).
edit: grammar corrections
I remember in 2006-2007 I've tried MPS, back then it looked too complicated, I hope that now guys from JetBrains have improved the documentation.
Is anyone seriously using a language workbench tool? If so, what are you experiences with it?
http://www.jetbrains.com/youtrack/