[Haskell-cafe] Review request for my baby steps towards a platform independent interactive graphics using VNC

2010-11-04 Thread C K Kashyap
Hi, I started with the implementation of a VNC server library intended to be used as a library for rendering graphics and interacting with the user(mouse/keyboard). I'd appreciate it very much if I could get some feedback on my approach to binary parsing and Haskellism. Also, any

Re: [Haskell-cafe] [ANNOUNCE] csound-expression - csound combinator library

2010-11-04 Thread Erik de Castro Lopo
Anton Kholomiov wrote: I'm glad to announce csound combinator library. It features liberation from id-style csound code, haskore-like composition structures, type-safe composable opcodes and simple instrument interface (no interface at all, instrument is just a function from some note

Re: [Haskell-cafe] Haskell is a scripting language inspired by Python.

2010-11-04 Thread Yves Parès
Nice. It is true that Python picked up some elements of Haskell, but now both languages are mature enough so that features can go both ways. It's called The *Ultimate* Computer Language Guide, and it's on the internets, so it must be correct, right? Wooow, it's barely 9 a.m. in France, it's

Re: [Haskell-cafe] Haskell is a scripting language inspired by Python.

2010-11-04 Thread Stephen Tetley
My familiarity with Python is a bit rusty, but the influence of Haskell might be over-stated. Type classes have gone from Haskell to Clean, Mercury (others?), and monads have gone to F# but otherwise the functional features of the current crop Python, Ruby etc. are not much different to what has

RE: [Haskell-cafe] Are newtypes optimised and how much?

2010-11-04 Thread Simon Peyton-Jones
| The exact syntax is a problem (as usual). We have the technology now. The | question is how important it is. | | I think extending the syntax for contexts would be sufficient: | Write a ~~ b for a can be converted to b by wrapping / unwrapping | newtypes, which is a conservative

Re: [Haskell-cafe] [ANNOUNCE] csound-expression - csound combinator library

2010-11-04 Thread C K Kashyap
Hi Erik, This looks very interesting and seems to have quite comprehensive reference documentation. Unfortunately there doesn't seem to be any examples. Would it be possible to add some examples? Even trivial ones would be useful to get people started. Erik The examples at the bottom of

Re: [Haskell-cafe] Is Curry alive?

2010-11-04 Thread Sebastian Fischer
On Nov 4, 2010, at 2:07 PM, wren ng thornton wrote: Besides, it's simple enough to just use the MonadLogic class and switch between concrete types, if you need to test performance. You may even try to use only `MonadPlus` to get more instances. The only instances of `MonadLogic` are

[Haskell-cafe] [issue1002] darcs support for ohloh: call for help

2010-11-04 Thread Simon Michael
Many of us are interested, and Ohloh is interested, in getting ohloh.net to support darcs repositories directly. It doesn't look hard to get good-enough support working; it just requires hacking 10 or so simple, well-organised ruby files. I've made a start on github[1], and set up a

[Haskell-cafe] Re: darcs support for ohloh: call for help

2010-11-04 Thread Simon Michael
PS I forgot to describe: Ohloh (http://ohloh.net) provides useful metadata, stats, rankings etc. for free/open-source software projects, quite good for marketing and project management. Haskell projects and developers would benefit from this, but have long been excluded because it does not yet

Re: [Haskell-cafe] Reference for technique wanted

2010-11-04 Thread Claus Reinke
The bottom line is that - in logic programming languages, building a list by working on a pair of arguments representing a segment of the list is the NORMAL way to build a list; it's as fast as it gets, and the list is inspectable during construction. modulo usage patterns: e.g., mostly

Re: [Haskell-cafe] Haskell is a scripting language inspired by Python.

2010-11-04 Thread Malcolm Wallace
Did Haskell get significant whitespace from Python - doubtful as Python possibly wasn't visible enough at the time, but you never know. Whitespace is significant in almost every language: foo bar /= foobar. Using indentation for program structuring was introduced by Peter Landin in his

[Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Heinrich Apfelmus
Stephen Tetley wrote: Did Haskell get significant whitespace from Python - doubtful as Python possibly wasn't visible enough at the time, but you never know. Doesn't COBOL have significant layout anyway as an inspiration to both? As far as I am informed, Python got the significant whitespace

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-04 Thread Malcolm Wallace
ehm. I missed something and ghc api is well documented and stable ? There are other ways of adding Haskell as a scripting language - bundling ghc is not necessary. It is inacceptable for scripting language, faced to no-programmers. Such languages must be as plain and regular, as

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Stephen Tetley
Python is approximately as old as Python and most likely got indentation from ABC. Checking on Wikipedia, one of the ABC's creators was Lambert Meertens (famous for *-morphisms amongst other things) so there is a lineage going back to Algol and Peter Landin / ISWIM. PS. my fact-checking is a bit

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Stephen Tetley
On 4 November 2010 12:03, Stephen Tetley stephen.tet...@gmail.com wrote: Python is approximately as old as Python and most likely got indentation from ABC. Apologies that should read - as old as Haskell Obviously IDSWIM - (I _don't_ say what I mean).

[Haskell-cafe] Import proposal from Haskell'?

2010-11-04 Thread John Smith
Type-directed name resolution was proposed by SPJ for Haskell', but not for GHC. Is there any particular process for importing tickets from Haskell' to GHC? http://hackage.haskell.org/trac/haskell-prime/ticket/129 ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Jonathan Geddes
Regardless of which languages got which features for which other languages, Haskell is surely NOT a scripting language inspired by python... Also, it was my understanding that Python got list comprehensions straight from Haskell. Unless, of course, some of the pre-Haskells also had this feature.

Re: [Haskell-cafe] vector-space and standard API for vectors

2010-11-04 Thread Jacques Carette
On 02/11/2010 8:16 PM, Conal Elliott wrote: Vector (Complex a) is a vector with respect to both 'a' and 'Complex a'. Even worse, () is a vector w.r.t. *every* scalar type. Why is this bad? () is the canonical 0-dimensional vector space. 0-dimensional vector spaces are very useful because

Re: [Haskell-cafe] Non-hackage cabal source

2010-11-04 Thread Claus Reinke
remote-repo: myhackage:http://myhackage/packages However, when I try to unpack my package with cabal: $ cabal unpack MyPackage Downloading MyPackage-0.0.1... cabal: Failed to download http://myhackage/packages/package/MyPackage-0.0.1.tar.gz : ErrorMisc Unsucessful HTTP code: 404 Why is cabal

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Dupont Corentin
Hello, reading this thread a question came to me: Is there a way of automatically deriving programming languages ascendancy? Like biologist can determine the distance between two genotypes, and determine a hierarchy between species from that. Are you aware of researchs made in the field? On the

Re: [Haskell-cafe] vector-space and standard API for vectors

2010-11-04 Thread Daniel Fischer
On Thursday 04 November 2010 15:33:09, Jacques Carette wrote: On 02/11/2010 8:16 PM, Conal Elliott wrote: Vector (Complex a) is a vector with respect to both 'a' and 'Complex a'. Even worse, () is a vector w.r.t. *every* scalar type. Why is this bad? It's bad for making a type class

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread aditya siram
I'm no compiler writer but as a layperson I'd guess for that you'd at least need a program that could determine if two constructs are equivalent, the Haskell and Python list comprehension example from 2 emails ago. The only way I can think to do that is to parse some source in language X and see

Re: [Haskell-cafe] Haskell is a scripting language inspired by Python.

2010-11-04 Thread Mark Lentczner
On Nov 3, 2010, at 7:00 PM, Jonathan Geddes wrote: http://www.datarecoverylabs.com/ultimate-computer-language-guide.html It's called The *Ultimate* Computer Language Guide, and it's on the internets, so it must be correct, right? Wow! Did you read the rest of that page? It is so full of

[OT] Re: [Haskell-cafe] Haskell is a scripting language inspired by Python.

2010-11-04 Thread Jeremy O'Donoghue
On 4 November 2010 15:30, Mark Lentczner ma...@glyphic.com wrote: On Nov 3, 2010, at 7:00 PM, Jonathan Geddes wrote: http://www.datarecoverylabs.com/ultimate-computer-language-guide.html It's called The *Ultimate* Computer Language Guide, and it's on the internets, so it must be

Re: [OT] Re: [Haskell-cafe] Haskell is a scripting language inspired by Python.

2010-11-04 Thread Dan Doel
On Thursday 04 November 2010 12:12:51 pm Jeremy O'Donoghue wrote: Best laugh I've had in ages. Personal favourites are: The Forth one got me. I also like: OCaml: OCaml is an attempt to implement object-oriented syntax in Caml. It is related to SML. No mention of what Caml is, by the way.

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Stephen Tetley
ZF Expressions (aka list comprehensions) date to at least David Turner's KRC (St. Andrews Static Language) and Rod Burstall and John Darlington's Hope c.1980. Maybe they were present in NPL, the predecessor of Hope before that. The Hope paper nods to SETL as an influence. Without interviewing the

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread aditya siram
Not a city, but perhaps an island [1]. Sorry, it had to be done. -deech [1] http://en.wikipedia.org/wiki/Java On Thu, Nov 4, 2010 at 11:51 AM, Stephen Tetley stephen.tet...@gmail.comwrote: ZF Expressions (aka list comprehensions) date to at least David Turner's KRC (St. Andrews Static

[Haskell-cafe] Who manages http://hackage.haskell.org/trac/?

2010-11-04 Thread Peter Simons
Hi guys, a while ago, I created an account on Trac. Now, it seems that I've forgotten both the password and the e-mail address that I used at the time. I cannot log in, and I cannot make Trac send me the password either. Clearly, I need the help of a human being with administrator privileges to

[Haskell-cafe] Splittable random numbers

2010-11-04 Thread Simon Peyton-Jones
Hi Cafe A while back there was a threadhttp://www.mail-archive.com/haskell-cafe@haskell.org/msg79633.html about a good implementation of a (pseudo) random number generator with a good split operation. There's lots of material on generators that generate a linear sequence of random numbers,

[Haskell-cafe] How can I use MACID in my existing application?

2010-11-04 Thread Dupont Corentin
Hello, I'm wondering how can I use Happstack's MACID in my application without breaking everything. I have a monad like that: type Comm = StateT Communication IO type GameState a = StateT Game Comm a and many functions like: foo :: GameState () foo = do lift $ putComm some message to

[Haskell-cafe] Flagstone problem

2010-11-04 Thread michael rice
Hi, I've been looking at a flagstone problem, where no two adjacent n-tuples can be identical. I solved the problem with Icon using an array of stacks and was going to explore how to do it in Haskell when I saw another way to do it explained in the same text. Just count the ones between the zeros

Fwd: [Haskell-cafe] DSL libraries

2010-11-04 Thread Dupont Corentin
Nobody had the compilation messages I had? -- Forwarded message -- From: Dupont Corentin corentin.dup...@gmail.com Date: Tue, Nov 2, 2010 at 2:30 PM Subject: [Haskell-cafe] DSL libraries (Was: Map constructor in a DSL) To: steffen steffen.sier...@googlemail.com,

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-04 Thread Luke Palmer
On Thu, Nov 4, 2010 at 5:30 AM, Malcolm Wallace malcolm.wall...@me.com wrote: ehm. I missed something and ghc api is well documented and stable ? There are other ways of adding Haskell as a scripting language - bundling ghc is not necessary. Do tell. It is inacceptable for scripting

Re: [Haskell-cafe] DSL libraries

2010-11-04 Thread Sebastiaan Visser
Dupont, The `AwesomePrelude' (we apologize for this name) is a very experimental project that is not a workable library or executable at all. You can better consider it to be a `bunch of code' with some interesting ideas and some interesting potential. At least my branch[1] runs on my machine

Re: [Haskell-cafe] How can I use MACID in my existing application?

2010-11-04 Thread Alexander Solla
On Nov 4, 2010, at 10:48 AM, Dupont Corentin wrote: Hello, I'm wondering how can I use Happstack's MACID in my application without breaking everything. I have a monad like that: type Comm = StateT Communication IO ... Whereas MACID asks to use: type Update state = Ev (StateT state STM)

[Haskell-cafe] Re: Splittable random numbers

2010-11-04 Thread Ian Lynagh
On Thu, Nov 04, 2010 at 05:38:12PM +, Simon Peyton-Jones wrote: The generator uses crypto functions, Does that mean it couldn't be used in some countries? so it's probably more computationally expensive than common linear-sequence generators, but in exchange you get robust splitting.

Re: [Haskell-cafe] Splittable random numbers

2010-11-04 Thread Richard Senington
I might have a use for this, so I could give it a go. I'll have a look through this post in detail tomorrow morning. RS On 04/11/10 17:38, Simon Peyton-Jones wrote: Hi Cafe A while back there was a thread http://www.mail-archive.com/haskell-cafe@haskell.org/msg79633.html about a good

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-04 Thread Yves Parès
There are other ways of adding Haskell as a scripting language - bundling ghc is not necessary. Even the program which is to run the scripts is compiled with GHC? I am interested to know how you do that. 2010/11/4 Malcolm Wallace malcolm.wall...@me.com ehm. I missed something and ghc api is

Re: [Haskell-cafe] DSL libraries

2010-11-04 Thread Dupont Corentin
Hello, With your version it compiles. Thanks. Corentin On Thu, Nov 4, 2010 at 7:03 PM, Sebastiaan Visser s...@fvisser.nl wrote: Dupont, The `AwesomePrelude' (we apologize for this name) is a very experimental project that is not a workable library or executable at all. You can better

[Haskell-cafe] Re: Splittable random numbers

2010-11-04 Thread Tyson Whitehead
On November 4, 2010 13:38:12 Simon Peyton-Jones wrote: From: Gideon Yuval (Gideon Yuval) Sent: Wednesday, November 03, 2010 7:15 AM To: Simon Peyton-Jones; Burton Smith Cc: Tolga Acar Subject: RE: Random number generation As long as the key, and the non-counting part of the counter, are

[Haskell-cafe] Re: Splittable random numbers

2010-11-04 Thread Bryan O'Sullivan
On Thu, Nov 4, 2010 at 11:39 AM, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: Before we bother to do that I think it would be worth deciding what level of performance we are trying to achieve.  On my laptop (Core2 2.5Ghz) I generate 4MB of random values in less than 900ms (HashDRBG).  

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-04 Thread Malcolm Wallace
On 4 Nov 2010, at 17:52, Luke Palmer wrote: On Thu, Nov 4, 2010 at 5:30 AM, Malcolm Wallace malcolm.wall...@me.com wrote: ehm. I missed something and ghc api is well documented and stable ? There are other ways of adding Haskell as a scripting language - bundling ghc is not necessary.

[Haskell-cafe] call for a better timing method

2010-11-04 Thread Jiansen He
Hello, I want to write a timing method to test sub steps in my program. I tested my timing method as follows: = time.hs = import Data.Time time :: String - IO a - IO a time str a = do start - getCurrentTime v - a end - getCurrentTime let diff = diffUTCTime end start

Re: [Haskell-cafe] call for a better timing method

2010-11-04 Thread Johan Tibell
On Thu, Nov 4, 2010 at 8:09 PM, Jiansen He jianse...@googlemail.com wrote: Hello, I want to write a timing method to test sub steps in my program. Benchmarking is really tricky. I suggest you use the excellent Criterion benchmarking package: http://hackage.haskell.org/package/criterion

Re: [Haskell-cafe] What is simplest extension language to implement?

2010-11-04 Thread Permjacov Evgeniy
ehm. I missed something and ghc api is well documented and stable ? There are other ways of adding Haskell as a scripting language - bundling ghc is not necessary. I still have not found haskell interpreter, that is written in pure haskell and has good quality (i.e. stable, written in stable

[Haskell-cafe] Re: HDBC/ODBC using mysql appears broken...

2010-11-04 Thread John Goerzen
On 11/04/2010 01:39 PM, Neil Davies wrote: Hi I've been trying to get the hello world example below to work: main = do db- connectODBC connect'string get Tables db= print I wonder if you might try something other than getTables, which requires some metadata

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Andrew Coppin
On 04/11/2010 02:16 PM, Jonathan Geddes wrote: Regardless of which languages got which features for which other languages, Haskell is surely NOT a scripting language inspired by python... Affirmative. It's a full-scale programming language (although I gather folks do use it for scripting

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Alexander Solla
On Nov 4, 2010, at 9:51 AM, Stephen Tetley wrote: Without interviewing the people concerned its probably impossible to actually find out what influenced what - even though list comprehensions have a long history the designers of Python might have only seen them in Haskell so Python could well

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Henning Thielemann
On Thu, 4 Nov 2010, Andrew Coppin wrote: It's a full-scale programming language (although I gather folks do use it for scripting too), and while it may or may not contain features that are also in Python, it is manifestly /not/ inspired by Python. Clearly it was inspired my Miranda and the

Re: [Haskell-cafe] Re: Decoupling type classes (e.g. Applicative)?

2010-11-04 Thread Henning Thielemann
Sönke Hahn schrieb: I have been thinking for a while that it might be worth defining a Prelude2, which corrects the known problems with the Prelude. Over time, people could migrate to using Prelude2. It would probably take years to be widely adopted, but at least there would be light at the

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Ketil Malde
Andrew Coppin andrewcop...@btinternet.com writes: On a somewhat tangental note: It seems increadible to me that Haskell was invented in 1990, and Miranda way back in 1985. At the same time, Commodore Business Machines released the iconic Commodore 64 in 1982, It is amazing - although as you

[Haskell-cafe] Concurrency and ghc 6.12.3

2010-11-04 Thread Ketil Malde
Hi, On experimenting with concurrency, I got somewhat surprising result. I have a program ('flower') that reads an input file and generates one or more output files. As the different output files are independent, I construct one IO action for each output requested on the command line, and just

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Andrew Coppin
On 04/11/2010 08:17 PM, Henning Thielemann wrote: On Thu, 4 Nov 2010, Andrew Coppin wrote: On a somewhat tangental note: It seems increadible to me that Haskell was invented in 1990, and Miranda way back in 1985. At the same time, Commodore Business Machines released the iconic Commodore 64

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Andrew Coppin
On 04/11/2010 08:47 PM, Ketil Malde wrote: Andrew Coppinandrewcop...@btinternet.com writes: On a somewhat tangental note: It seems increadible to me that Haskell was invented in 1990, and Miranda way back in 1985. At the same time, Commodore Business Machines released the iconic Commodore 64

Re: [Haskell-cafe] Re: HDBC/ODBC using mysql appears broken...

2010-11-04 Thread John Goerzen
On 11/04/2010 04:03 PM, Neil Davies wrote: John simple queries seem to work fine. main = do db- connectODBC connect'string quickQuery db select serial from CPE_DEVICE []= print . take 3 describeTable db CPE_DEVICE I'm going to guess that the MySQL ODBC driver isn't implementing the

Re: [Haskell-cafe] Is Curry alive?

2010-11-04 Thread Gregory Crosswhite
On 11/02/2010 08:37 PM, wren ng thornton wrote: Indeed. If your program requires unification or constraint solving then logic programming or constraint programming[1] is the way to go. Would you be kind enough to give me or point me towards a good example of such a case? I've been trying to

Re: [Haskell-cafe] Unexpected results from ExitCode

2010-11-04 Thread Peter Schmitz
Dean, Thanks very much, that indeed worked. -- Peter On Wed, Nov 3, 2010 at 9:16 PM, Dean Herington heringtonla...@mindspring.com wrote: At 8:45 PM -0700 11/3/10, Peter Schmitz wrote: I have a program (test.hs):  module Main (main) where  import System.Exit  main :: IO ExitCode  main =

[Haskell-cafe] What's happening at the next Ed Lambda

2010-11-04 Thread Ollie Saunders
Hello everyone, I know the last meetup was a bit light on content so we've been working hard to make this month different. We've got, not one, but two talks for you: First up: Paul Richards will be talking about functional data structures. In particular, finger trees, which were only discovered

Re: [Haskell-cafe] Haskell is a scripting language inspired by Python.

2010-11-04 Thread Albert Y. C. Lai
On 10-11-03 10:00 PM, Jonathan Geddes wrote: It's called The *Ultimate* Computer Language Guide, and it's on the internets, so it must be correct, right? The correct conclusion: it's on the internets, so it must be LOL. I also invite you to play with my:

Re: [Haskell-cafe] Is let special?

2010-11-04 Thread Henning Thielemann
Max Bolingbroke schrieb: 2010/11/2 Günther Schmidt gue.schm...@web.de: I've been given a few hints over time when I asked question concerning DSLs but regretfully didn't follow them up. I think this is probably to do with observable sharing. The problem in DSLs is if you have: fact ::

Re: [Haskell-cafe] Haskell is a scripting language inspired by Python.

2010-11-04 Thread Richard O'Keefe
On 4/11/2010, at 9:08 PM, Stephen Tetley wrote: Did Haskell get significant whitespace from Python - doubtful as Python possibly wasn't visible enough at the time, but you never know. Python did not originate indentation-based syntax. Occam has it too. I first came across the idea in a

Re: [Haskell-cafe] Is let special?

2010-11-04 Thread Ryan Ingram
When you use arrows for your DSL, how do you avoid getting trapped by arr? It seems like it's hard to avoid people working arbitrary functions into your computation using it. -- ryan On Thu, Nov 4, 2010 at 2:46 PM, Henning Thielemann schlepp...@henning-thielemann.de wrote: Max Bolingbroke

Re: [Haskell-cafe] Haskell is a scripting language inspired by Python.

2010-11-04 Thread David Fox
On Thu, Nov 4, 2010 at 2:41 PM, Albert Y. C. Lai tre...@vex.net wrote: On 10-11-03 10:00 PM, Jonathan Geddes wrote: It's called The *Ultimate* Computer Language Guide, and it's on the internets, so it must be correct, right? The correct conclusion: it's on the internets, so it must be LOL.

Re: [Haskell-cafe] Is Curry alive?

2010-11-04 Thread Dan Doel
On Thursday 04 November 2010 5:13:23 pm Gregory Crosswhite wrote: On 11/02/2010 08:37 PM, wren ng thornton wrote: Indeed. If your program requires unification or constraint solving then logic programming or constraint programming[1] is the way to go. Would you be kind enough to give me

Re: [Haskell-cafe] Is let special?

2010-11-04 Thread Henning Thielemann
On Thu, 4 Nov 2010, Ryan Ingram wrote: When you use arrows for your DSL, how do you avoid getting trapped by arr? It seems like it's hard to avoid people working arbitrary functions into your computation using it. I use this for instance in synthesizer-llvm. Actually people can lift

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Lennart Augustsson
KRC, Miranda, and LML all predate Haskell and have list comprehensions. On Thu, Nov 4, 2010 at 3:16 PM, Jonathan Geddes geddes.jonat...@gmail.com wrote: Regardless of which languages got which features for which other languages, Haskell is surely NOT a scripting language inspired by python...

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Lennart Augustsson
It happened at various universities around the world. Look at the original Haskell committee and you'll get a good idea where. The smallest Haskell I know of is Gofer/Hugs; it originally ran on a 640k PCs. Before that languages like SASL and KRC ran on PDP-11 with 64k memory. None of these had a

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Gregory Crosswhite
On 11/04/2010 03:30 PM, Lennart Augustsson wrote: KRC, Miranda, and LML all predate Haskell and have list comprehensions. Just because those languages predate Haskell and have list comprehensions doesn't mean that they still couldn't have gotten the idea from Haskel!. After all, I fully

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Malcolm Wallace
On 4 Nov 2010, at 22:38, Lennart Augustsson wrote: The smallest bootstrapped Haskell compiler is NHC which (I think) runs in a few MB. Originally, it needed to be able to compile itself in the 2Mb available on Niklas's Amiga. Then he got an upgrade to 4Mb, so he started to become less

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Richard O'Keefe
On 5/11/2010, at 8:54 AM, Andrew Coppin wrote: Can you actually run something like Haskell with mere kilobytes of RAM? There was a Lisp for PDP-11s (64k). Henderson's LispKit ran on the Apple II, which was pretty small, and LispKit was basically a lazy Lisp. To that degree, yes you *can* run

Re: [Haskell-cafe] Is Curry alive?

2010-11-04 Thread Gregory Crosswhite
On 11/04/2010 03:06 PM, Dan Doel wrote: Implementing type inference can be very easy in a logic language, because most of the work in a non-logic language is implementing unification: http://muaddibspace.blogspot.com/2008/01/type-inference-for-simply-typed- lambda.html 3 lines of Prolog to

Re: [Haskell-cafe] Concurrency and ghc 6.12.3

2010-11-04 Thread Gregory Collins
Ketil Malde ke...@malde.org writes: I guess I should try this with GHC7, but is there reason to believe it will perform better? Yes -- there are huge GC and inlining improvements. In our (unreleased) new benchmarks, the Snap webserver is seeing 20-30% improvements out of the box. One thing

Re: [Haskell-cafe] Re: Haskell is a scripting language inspiredby Python.

2010-11-04 Thread Donn Cave
Quoth Andrew Coppin andrewcop...@btinternet.com, ... I didn't get to see the Amiga 600 until at least five or six years later than that. (It's actually news to me that the Amiga line is that old.) And I spent most of my time programming it in Pascal (or AMOS BASIC - but that's not really

[Haskell-cafe] Re: HSCurses - Hello World? (can't find much documentation)

2010-11-04 Thread Michael Forster
On Fri, Oct 22, 2010 at 17:09:52 EDT, Ari Rahikkala wrote: On Fri, Oct 22, 2010 at 11:18 PM, Anonymous Void byteasphyxia at gmail.com wrote: But since I've never seen how the HSCurses functions really integrate together, or any tutorials/examples (besides hsFishEx), I fear toying with it

[Haskell-cafe] ANNOUNCE: version 0.6 of monad-coroutine and SCC

2010-11-04 Thread Mario Blažević
Packages monad-coroutine and SCC have been upgraded to version 0.6 on Hackage. The monad-coroutine package exports a generic monad transformer Coroutine: Functor s = MonadTrans (Coroutine s). A Coroutine-transformed monad can suspend at any point, returning its resumption wrapped in the

Re: [Haskell-cafe] How can I use MACID in my existing application?

2010-11-04 Thread Jeremy Shaw
Hello, I added a brief section to the happstack crash course on using MACID: http://www.happstack.com/docs/crashcourse/HappstackState.html That should hopefully get you started. The example uses happstack state with happstack server. But there is really no connection between the two. Hope

[Haskell-cafe] status (Re: [issue1002] darcs support for ohloh)

2010-11-04 Thread Simon Michael
The status/how-to page has moved to a nicer url: http://etherpad.osuosl.org/ohloh-darcs-support 5 of the 10 ohloh darcs adapter test files are now passing. Come and help put us over the top. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] ANNOUNCE: coroutine-enumerator

2010-11-04 Thread Mario Blažević
The newly released coroutine-enumerator package can be used as a bridge between the enumerator and monad-coroutine packages. It provides two-way conversion functions between an Iteratee and an Await-suspending coroutine, and also between an Enumerator and a Yield-suspending coroutine. As a little

Re: [Haskell-cafe] Re: Haskell is a scripting language inspiredby Python.

2010-11-04 Thread Richard O'Keefe
On 5/11/2010, at 1:00 PM, Donn Cave wrote: I don't care about whether Python had any influence, but I'd sure like to stamp out the scripting language rumor. In this case it may be the Haskell community to blame. Google for Haskell script and you will find, for example, Learn you a Haskell for

Re: [Haskell-cafe] Re: Haskell is a scripting language inspiredby Python.

2010-11-04 Thread Luke Palmer
On Thu, Nov 4, 2010 at 6:00 PM, Donn Cave d...@avvanta.com wrote: I don't care about whether Python had any influence, but I'd sure like to stamp out the scripting language rumor. You all are talking about calling Haskell a scripting language like it's a bad thing. Coming from a Perl

Re: [Haskell-cafe] Re: HSCurses - Hello World? (can't find much documentation)

2010-11-04 Thread Jeff Wheeler
On Thu, Nov 4, 2010 at 10:16 PM, Michael Forster m...@sharedlogic.ca wrote: On Fri, Oct 22, 2010 at 17:09:52 EDT, Ari Rahikkala wrote: On Fri, Oct 22, 2010 at 11:18 PM, Anonymous Void byteasphyxia at gmail.com wrote: But since I've never seen how the HSCurses functions really integrate

Re: [Haskell-cafe] Re: Haskell is a scripting language inspired by Python.

2010-11-04 Thread Richard O'Keefe
On 5/11/2010, at 4:03 AM, Dupont Corentin wrote: Hello, reading this thread a question came to me: Is there a way of automatically deriving programming languages ascendancy? According to www.oed.com, ascendancy means The state or quality of being in the ascendant; [having] paramount