[Haskell-cafe] Re. I miss OO

2009-11-25 Thread Philippos Apolinarius
My experience with objects comes from Common List, Clean, Hasekell and Nice.  In all these languages, the function behavior is determined by many objects.  I think that this is more powerful and clear than the Java way.  In Nice one can see the superiority of type-driven behavior over the Java dot

[Haskell-cafe] Haskell as an alternative to Java

2009-11-18 Thread Philippos Apolinarius
I wonder whether the Haskell community tryed to reproduce the study Lisp as an alternative to Java,  by Ron Garret / Erann Gat. However, since that study was reproduced in almost every other language (with a fair amount of cheating going on, I believe :-), I am sure that there is a Haskell

Re: [Haskell-cafe] Problem with JHC

2009-11-13 Thread Philippos Apolinarius
@haskell.org Received: Friday, November 13, 2009, 4:04 AM On Wed, Nov 11, 2009 at 01:26:03PM -0800, Philippos Apolinarius wrote: Ops, the paste is wrong, but the bug is real. I mean, if I try to run the program with the right input, the program aborts in the same place, with the same error message

Re: [Haskell-cafe] Problem with JHC

2009-11-11 Thread Philippos Apolinarius
] Opinion about JHC To: haskell-cafe@haskell.org Received: Wednesday, November 11, 2009, 1:37 AM On Tue, Nov 10, 2009 at 07:41:54PM -0800, Philippos Apolinarius wrote: I discovered a Haskell compiler that generates very small and fast code. In fact, it beats Clean. It has the following properties

Re: [Haskell-cafe] Problem with JHC

2009-11-11 Thread Philippos Apolinarius
Lessa felipe.le...@gmail.com wrote: From: Felipe Lessa felipe.le...@gmail.com Subject: Re: [Haskell-cafe] Problem with JHC To: haskell-cafe@haskell.org Received: Wednesday, November 11, 2009, 6:23 AM On Wed, Nov 11, 2009 at 04:32:05AM -0800, Philippos Apolinarius wrote: data Op

Re: [Haskell-cafe] Medical Instruments - Jason

2009-11-11 Thread Philippos Apolinarius
* msg); #ifdef __cplusplus } /* extern C */ #endif #endif --- On Tue, 11/10/09, Jason Dusek jason.du...@gmail.com wrote: From: Jason Dusek jason.du...@gmail.com Subject: Re: [Haskell-cafe] Help Haskell driving Medical Instruments To: Philippos Apolinarius phi50...@yahoo.ca Cc: Haskell Cafe

Re: [Haskell-cafe] Problem with JHC

2009-11-11 Thread Philippos Apolinarius
: Ross Mellgren rmm-hask...@z.odi.ac Subject: Re: [Haskell-cafe] Problem with JHC To: Philippos Apolinarius phi50...@yahoo.ca Cc: Felipe Lessa felipe.le...@gmail.com, haskell-cafe@haskell.org Received: Wednesday, November 11, 2009, 9:52 AM According to the paste you gave for the JHC test run: Here

Re: [Haskell-cafe] Opinion about JHC

2009-11-11 Thread Philippos Apolinarius
at 07:41:54PM -0800, Philippos Apolinarius wrote: I discovered a Haskell compiler that generates very small and fast code. In fact, it beats Clean. It has the following properties: Excellent. that was my goal ;) 1 --- One can cross-compile programs easily. For instance, here is how I generated

Re: [Haskell-cafe] Help Haskell driving Medical Instruments

2009-11-10 Thread Philippos Apolinarius
\sensorstemper.exe 4 D:\ghc\sensorstemper.exe unable to set comport cfg settings 4 --- On Mon, 11/9/09, Jason Dusek jason.du...@gmail.com wrote: From: Jason Dusek jason.du...@gmail.com Subject: Re: [Haskell-cafe] Help Haskell driving Medical Instruments To: Philippos Apolinarius phi50...@yahoo.ca Cc: Haskell

[Haskell-cafe] Opinion about JHC

2009-11-10 Thread Philippos Apolinarius
I discovered a Haskell compiler that generates very small and fast code. In fact, it beats Clean. It has the following properties: 1 --- One can cross-compile programs easily. For instance, here is how I generated code for Windows: jhc --cross -mwin32 genetic.hs -o genetic 2 -- It seems to be

[Haskell-cafe] Help Haskell driving Medical Instruments

2009-11-09 Thread Philippos Apolinarius
Recently, I received as gift medical instruments designed by one of my father former students. There is a description of these instruments on my web page. Here is the address: http://www.discenda.org/med/ By the way, I am not that guy that appears in a picture wearing emg sensors. That said,

Re: [Haskell-cafe] Small Japi binding for GHC

2009-11-08 Thread Philippos Apolinarius
: Ketil Malde ke...@malde.org Subject: Re: [Haskell-cafe] Small Japi binding for GHC To: haskell-cafe@haskell.org Received: Sunday, November 8, 2009, 2:02 AM Philippos Apolinarius phi50...@yahoo.ca writes: So, I searched for JAPI bindings for Haskell. The only library I found was something called

[Haskell-cafe] Cabal

2009-11-08 Thread Philippos Apolinarius
I made small improvements in the Small Japi Binding, and asked how to make it available. I received a few private messages advising me to build and package the library using a tool called cabal. Since I have used installation tools for PLT, R  and LaTeX libraries, I thought cabal was something

[Haskell-cafe] Small Japi binding for GHC

2009-11-07 Thread Philippos Apolinarius
JAPI is by far my favorite GUI library.  Since every machine has Java RE installed, JAPI offers GUI with a very small footprint. Besides this, it is very easy to code, and delivers GUI programs that are hardly larger than console applications. I use Jorlano's version of JAPI, coded for Java 2,

Re: [Haskell-cafe] Arrays in Clean and Haskell

2009-11-04 Thread Philippos Apolinarius
Apolinarius phi50...@yahoo.ca Cc: haskell-cafe@haskell.org Received: Tuesday, November 3, 2009, 9:34 PM On Nov 3, 2009, at 7:38 PM, Philippos Apolinarius wrote: Brian wrote: Really, arrays in Haskell are the most @#!$! confusing thing in the world. Hi, Brian. I am having a great difficulty

Re: [Haskell-cafe] Arrays in Clean and Haskell

2009-11-04 Thread Philippos Apolinarius
and current time series. Even the numbers are in a strange format... So, one needs to parse the file. --- On Tue, 11/3/09, Jason Dusek jason.du...@gmail.com wrote: From: Jason Dusek jason.du...@gmail.com Subject: Re: [Haskell-cafe] Arrays in Clean and Haskell To: Philippos Apolinarius phi50

Re: [Haskell-cafe] Re: Best Editor In Windows

2009-11-03 Thread Philippos Apolinarius
I tryed it, and noticed that it is very slow, compared both with Emacs, TextPad, and Emerald. I tryed also leksah, but it is always complaining about something missing in Pango, although it works fine. Here is the error message (leksah.exe:1588): Pango-WARNING **: error opening config file

[Haskell-cafe] Gauss Elimination - More Clean2Haskell

2009-11-03 Thread Philippos Apolinarius
I am keeping with my project of translating programs from Clean to Haskell. As far as arrays go, I don't understand well how to use them in Haskell. Therefore, I will appreciate if somebody can find time to check the program below, and make suggestions to improve it. My Haskell program is about

Re: [Haskell-cafe] Arrays in Clean and Haskell

2009-11-03 Thread Philippos Apolinarius
Brian wrote: Really, arrays in Haskell are the most @#!$! confusing thing in the world. Hi, Brian. I am having a great difficulty with arrays in Haskell.  In the university where I study, functional programming is taught in Clean or in Haskell, depending on the professor who is teaching the

[Haskell-cafe] hSeek in Windows

2009-11-01 Thread Philippos Apolinarius
As many people guess, I am trying to port programs from Clean 1.3 to Haskell (and also to Clean 2.2, which is easier, but not much easier). Late Professor Wellesley wrote an interesting data base manager in Clean 1.3 that I would like to see in Haskell and Clean 2.2. However, when I tried to

Re: [Haskell-cafe] A 3 line program. Preprocessor?

2009-10-27 Thread Philippos Apolinarius
In a private email to Ketil Malde, I said that Ocaml programmers use the preprocessor to solve the problem of character encoding: ocamlopt -pp myfilter.exe myprogram.ml -o myoutput.exe I wonder whether a similar solution could be used with Haskell. I am new to Haskell, but I suppose that

[Haskell-cafe] A 3-line program that does not work

2009-10-24 Thread Philippos Apolinarius
I have a friend who is an architect. I asked her why she does not use Haskell, since she is fond of functional programming. She writes her scripts in Clean, and needs to compile them before using them to generate postscript diagrams. In Haskell, I told her, she could use runghc, and skip the

[Haskell-cafe] A 3 line program -- Reid, Don, Daniel

2009-10-24 Thread Philippos Apolinarius
from \LaTeX} \author{Philippos Apolinarius} \date{} \begin{document} \maketitle \input haskell.gen \input hask.ell % load \eval \eval{ hPutStrLn outh Hello, facade! } \eval{ hPutStrLn outh (show (fat 6)) } \haskell{  fat n | n1= 1  fat n= n*fat(n-1) } \end{document} In order to use

Re: [Haskell-cafe] Re: A 3 line program -- Mauricio

2009-10-24 Thread Philippos Apolinarius
} \author{Philippos Apolinarius} \date{} \begin{document} \maketitle \input haskell.gen \input hask.ell % load \eval \eval{ hPutStrLn outh Hello, fa\\c cade! } \eval{ hPutStrLn outh Il est l\\`a bas! } \eval{ hPutStrLn outh Raison d' \\^etre! } \eval{ hPutStrLn outh Votre toast, je peux vous

[Haskell-cafe] Problems with Haskell

2009-10-18 Thread Philippos Apolinarius
Before anything else, I want to point out that I have no intention to confront your community, or denigrate Haskell. A few days ago I answered an email from a Clean programmer on something related to Clean. He was worried that Clean team could give up its good work, and Clean could disappear;