Re: [pro] Lisp and DSLs

2011-07-22 Thread Didier Verna
Thank you all very much for the feedback. I guess I have a lot to read for the holidays now... -- Resistance is futile. You will be jazzimilated. Scientific site: http://www.lrde.epita.fr/~didier Music (Jazz) site: http://www.didierverna.com ___

Re: [pro] Lisp and DSLs

2011-07-22 Thread Ben Hyde
Is there an excel-hater's mailing list we could move this discussion to. :) ps - Is it possible to open the slime inspector on a stack frame or frames? ___ pro mailing list pro@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinf

Re: [pro] Lisp and DSLs

2011-07-22 Thread raito
Or at least learn the difference between a spreadsheet and a database... I see too many spreadsheets used as databases. Neil Gilmore ra...@raito.com Quoting "Thomas M. Hermann" : If people are going to rely on Excel to the extent that they do, I wish they'd at least learn VBA. _

Re: [pro] Lisp and DSLs

2011-07-22 Thread Daniel Weinreb
If you have people making messy spreadsheets that are hard to maintain, you might want to look at this. I have not used it myself: http://www.modelsheetsoft.com But it's from Howard Cannon, Symbolics co-founder and main inventor of Flavors, an ancestor of CLOS. -- Dan On Fri, Jul 22, 2011 at 9

Re: [pro] Lisp and DSLs

2011-07-22 Thread Thomas M. Hermann
(1+ *) I am knee-deep daily in one of those communities. Time and time again, I request that people send me the raw text files of data as opposed to poorly importing them into an Excel spreadsheet. Or, I'll get some spreadsheet "analysis" that contains brittle calculations that require lots of han

Re: [pro] Lisp and DSLs

2011-07-22 Thread Vsevolod Dyomkin
Speaking of XML, there's another good example of a special-purpose DSL, designed for efficient processing of OSM map data, described here: http://swizard.livejournal.com/142027.html (text in Russian). On Wed, Jul 20, 2011 at 4:32 PM, Didier Verna wrote: > > Dear friends, > > I'm starting to wri

Re: [pro] Lisp and DSLs

2011-07-22 Thread Marco Antoniotti
+1 May I also say that there are entire scientific, financial, and accounting communities that should be barred from using Excel? Cheers -- MA On Jul 22, 2011, at 09:14 , Daniel Pezely wrote: > ... > Lessons learned: (a few more while I'm here) > > 1. Know your audience, and build for t

Re: [pro] Lisp and DSLs

2011-07-22 Thread Daniel Pezely
On Jul 20, 2011, at 6:32 AM, Didier Verna wrote: > Right now, I would like to know if any of you have DSL "pearls", nice > examples of DSLs that you have written in Lisp by using some of its > features in a clever or elegant way. I would also gladly accept any > point of view or comment on what's

Re: [pro] Lisp and DSLs

2011-07-21 Thread Alexander Repenning
XML, good point. XMLisp combines S-expressions and XML into X-expression via CLOS, MOP, Lisp reader and Lisp printer: - paper: http://www.cs.colorado.edu/~ralex/papers/PDF/X-expressions.pdf - code (all in one file) http://code.google.com/p/xmlisp/source/browse/trunk/XMLisp/sources/XMLisp/XMLisp.l

Re: [pro] Lisp and DSLs

2011-07-21 Thread Marco Antoniotti
Another cut example I did many years ago (showing my NYU colors) along the lines of what Pascal shows here is the "SETL syntax" in CL. I still have the code. Here is the stupid PRIMES (defun primes (max) [n in (range 3 max 2) such-that (not (exist m in (range 3 (min (1- n) (+ 2 (sqrt n)))

Re: [pro] Lisp and DSLs

2011-07-21 Thread Marco Antoniotti
Well, since we are talking about XML stuff, I have another shameless plug myself then :) http://within-parens.blogspot.com/2011/06/printing-xhtm.html All in all the pretty-printer is very nice, it'd be nice to have an agreed upon jazzed up version of CLOS dispatching. Cheers MA On J

Re: [pro] Lisp and DSLs

2011-07-20 Thread Pascal J. Bourguignon
Didier Verna writes: > Dear friends, http://groups.google.com/group/comp.lang.lisp/browse_frm/thread/0245342429c61800/f7966bf3df9f716c#f7966bf3df9f716c Notably, in this type of DSL, you'll note how you can mix Lisp expressions with expressions in the new languages, at several levels. @[Ical

Re: [pro] Lisp and DSLs

2011-07-20 Thread Steve Haflich
You might want to examine https://github.com/franzinc/net-xml-generatorwhich is (sort-of) a DSL for generating and pretty-printing XML. It uses reader macros and the pretty-printer so that XML elements can be freely intermixed and nested inside Lisp code. (Unlike HTML, XML has an unbounded set of t

Re: [pro] Lisp and DSLs

2011-07-20 Thread Alessio Stalla
On Wed, Jul 20, 2011 at 9:21 PM, Martin Cracauer wrote: > I find that people have a wrong impression of what it means to have a > domain specific language. > > For me, one of the greatest advantages of Lisp is literal data in > code.  I don't have to write a complicated parser for some external >

Re: [pro] Lisp and DSLs

2011-07-20 Thread Vsevolod Dyomkin
I like how Lisp allowed me to use almost without any change the spec of Redis to define its commands in cl-redis library ( https://github.com/vseloved/cl-redis/blob/master/commands.lisp). This gives, IMHO, the best possible decoupling from the implementation, which allows for easy refactoring of th

Re: [pro] Lisp and DSLs

2011-07-20 Thread Jean-Philippe Paradis
This is pretty tragic for me because I made and open-sourced a bunch of "pretty good" DSL's, unfortunately they're still not cleaned up and completely undocumented. Also, all the usage examples of them are buried in some big abortive undocumented proprietary project with lots of newb-code (most of

Re: [pro] Lisp and DSLs

2011-07-20 Thread Alessio Stalla
On Wed, Jul 20, 2011 at 3:32 PM, Didier Verna wrote: > >  Dear friends, > > I'm starting to write a chapter for an upcoming book on domain specific > languages. The chapter is called (tentatively): > > Extensible languages -- blurring the distinction between DSLs and GPLs > > GPL meaning General P

Re: [pro] Lisp and DSLs

2011-07-20 Thread Marco Antoniotti
Paul gave an excellent overview. I would also describe the ability of CL of "re-plumbing" itself (shameless plug: the DEFINER library :) ) and, of course, as a standard example from ages ago, Prolog-like languages and the slew of logic languages build on top of CL. cheers MA On Jul 20, 2011

Re: [pro] Lisp and DSLs

2011-07-20 Thread Paul Tarvydas
It seems to me that most people don't understand the rudiments of CL's ability for creating DSL's and live in the land of Blub. If you're going to discuss creation of DSLs, it might be an idea to first relate the aspects of CL using compiler terminology. Here are some random thoughts (not all a

Re: [pro] Lisp and DSLs

2011-07-20 Thread Alexander Repenning
We have been working on what we call domain oriented languages for some time ranging from the first visual programming language for the MIT programmable brick (later Mindstorms) http://www.cs.colorado.edu/~ralex/papers/PDF/VL95-LEGOsheets.pdf to AgentCubes (a 3D environment for end-users): htt

Re: [pro] Lisp and DSLs

2011-07-20 Thread Didier Verna
Peter Seibel wrote: > Is this whole book about DSLs? I'll be interested to see it. And glad > they're getting at least one Lisper. Yes. I'll let you know when the project is finalized. -- Resistance is futile. You will be jazzimilated. Scientific site: http://www.lrde.epita.fr/~didier Mus

Re: [pro] Lisp and DSLs

2011-07-20 Thread Peter Seibel
I think the chapter on binary data types in PCL is a reasonable example of a certain kind of DSL. Is this whole book about DSLs? I'll be interested to see it. And glad they're getting at least one Lisper. -Peter On Wed, Jul 20, 2011 at 6:32 AM, Didier Verna wrote: > >  Dear friends, > > I'm star

Re: [pro] Lisp and DSLs

2011-07-20 Thread Ryan Davis
Not sure if I'd call it a "pearl", but here's one data point. Hell, I'm not even sure if this counts as a DSL or not, most of what I know of DSLs comes from blog posts and ruby fanatics. I had a legacy electronic voting system (IIS/VBscript/SQL Server) and wrote some lisp to configure elections.

Re: [pro] Lisp and DSLs

2011-07-20 Thread Yakov Zaytsev
LOOP macro On Wed, Jul 20, 2011 at 6:32 AM, Didier Verna wrote: > > Dear friends, > > I'm starting to write a chapter for an upcoming book on domain specific > languages. The chapter is called (tentatively): > > Extensible languages -- blurring the distinction between DSLs and GPLs > > GPL mean

[pro] Lisp and DSLs

2011-07-20 Thread Didier Verna
Dear friends, I'm starting to write a chapter for an upcoming book on domain specific languages. The chapter is called (tentatively): Extensible languages -- blurring the distinction between DSLs and GPLs GPL meaning General Purpose Language in this context ;-) My intention is to demonstrat