Re: [Haskell-cafe] List of numbers to list of ranges

2010-12-23 Thread Martin Erwig

All the previous solutions seem to assume that the list of numbers is already 
sorted. In cases where this assumption cannot be made, an alternative solution 
is to simply insert the numbers into a diet.

eecs.oregonstate.edu/~erwig/papers/abstracts.html#JFP98
eecs.oregonstate.edu/~erwig/diet


--
Martin


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell and scripting

2010-05-03 Thread Martin Erwig

On May 3, 2010, at 3:45 PM, Limestraël wrote:

> Thank you all, that's very interesting.
> 
> Martin, I've started reading the paper, I like the way you think about what a 
> scripting language should provide ("traceability, error handling and a type 
> system").
> But, hold me if I'm wrong, but at no moment in the paper you made you own 
> language? It's a EDSL, not a DSL,

That's correct. We have defined a DSEL, but in my view this is still a DSL; the 
"E" only refers to a specific way of implementing it.

> so I don't see where is the scripting, since the program will always have to 
> be recompiled, won't it?

I may have misunderstood your goals and what you mean by "scripting". Our DSEL 
is intended to be used for expressing all kinds of scripting tasks.


--
Martin


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Haskell and scripting

2010-05-03 Thread Martin Erwig
One of my students has worked on scripting approach in Haskell:

http://web.engr.oregonstate.edu/~erwig/papers/abstracts.html#SLE09

-- 
Martin 


On May 3, 2010, at 9:51 AM, Limestraël wrote:

> Hello Café,
> 
> I don't know if you know conky. It's a well-known open-source system monitor 
> (a software that displays information on the desktop, like CPU frequency, 
> disk usage, network rate, etc.).
> It is quite good, but it's very descriptive, and even if you can call shell 
> commands it's clearly not made for being scripted.
> What I would do is to make a similar system monitor, which base would be 
> compiled Haskell code, but that would be scriptable with some DSL, or already 
> existing interpreted language.
> I've thought about a Lisp/Scheme language, since those languages are 
> functional, dynamically typed and simple (so enable a quick scripting) and 
> I'm not very keen on making my own DSL
> 
> What I would like to know is:
> 1) If you have other solutions
> 2) How do haskellers usually script their applications
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] FGL up for adoption

2010-04-24 Thread Martin Erwig
Dear FGL users and contributors,

The FGL seeks a new home. I don't really have the time anymore to maintain the 
FGL and add new components at a level that it deserves. I am therefore looking 
for someone (or a group of people) who would be interested in taking over the 
maintenance and future development.

Anybody interested?


Thanks,
Martin


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe