Duncan Coutts [EMAIL PROTECTED] writes:
Perhaps I misunderstood but I think Alexey means that he wants to
accumulate several different histograms (ie different arrays) but to
only make one pass over the input data.
This is precicely my problem, too.
The form of accumArray does not make
There is actually a real wealth of material on generalizing
I/O on your site -- it's definitely something I will be ever
more interested in.
Now that I think about it, I can remember a time where a
program that did a lot of stuff with Amazon would mysteriously
run out of file
I think Haskell is not nice to write general purpouse libraries
that could be easily and completly wrapped by other languages.
You can wrap gtk, sqlite3, gsl, opengl etc., but you can't write
python bindings for Data.Graph.
But, then, if you claim there's nothing else Haskell can't do,
what do
--- On Tue, 11/11/08, Dave Tapley [EMAIL PROTECTED] wrote:
So I should clarify I'm not a troll and do see
the Haskell light. But
one thing I can never answer when preaching to others is
what does
Haskell not do well?
'Hard' real-time applications? I don't know that there couldn't be a
HI,
I want to efficiently parse a large collections of files.
The files are in the format :
example title
TITLE
author name
AUTHOR
some lines with summary here
SUMMARY
the real text
TEXT
a list of links
LINKS
I want to use ByteString here, but which library should I use to
parse ? attoparsec
Jules Bean [EMAIL PROTECTED] wrote:
GHC's scheduler lacks any hard timeliness guarantees.
This is probably not a fundamental problem with haskell. It's a
problem with the compiler/RTS which we happen to be using.
Actually, I would say it is much worse than that. It is not merely a
Pieter Laeremans wrote:
fileParser :: Parser Content
fileParser = do
title - manyTill getInput (string . pack \nTITLE\n)
author - manyTill getInput (string. pack \nTITLE\n)
return Content title author ...
But this doesn't work.
getInput does not consume any input
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Nov 11, 2008, at 10:45 AM, Colin Paul Adams wrote:
Is there a way to call Haskell code from other languages? I have
looked on
the wiki, and as far as I can see, it only talks about the other way
round (when Haskell is the main program).
Quoth Colin Paul Adams [EMAIL PROTECTED]:
| Is there a way to call Haskell code from other languages? I have looked on
| the wiki, and as far as I can see, it only talks about the other way
| round (when Haskell is the main program).
There sure is a way to call from other languages - cf. foreign
Malcolm Wallace wrote:
Jules Bean [EMAIL PROTECTED] wrote:
GHC's scheduler lacks any hard timeliness guarantees.
This is probably not a fundamental problem with haskell. It's a
problem with the compiler/RTS which we happen to be using.
Actually, I would say it is much worse than that. It
Hi
The one way to test this is to benchmark, everything else will just be
peoples random guesses.
As for my random guess, eval should be significantly faster than peval
in Hugs, and probably slightly faster than peval in GHC. I don't see why
you think peval is efficient - monads /= efficiency,
You can hire one Haskell programmer instead of 1,2,3... programmers in
your favorite imperative language.
On Tue, Nov 11, 2008 at 12:32 PM, Arnar Birgisson [EMAIL PROTECTED] wrote:
Hi all,
On Tue, Nov 11, 2008 at 11:38, Dave Tapley [EMAIL PROTECTED] wrote:
Usually I'll avoid then question
Hi all,
when I try to install curl (needed for hxt) using cabal install curl I
alwas get the following error message:
Resolving dependencies...
'curl-1.3.2.1' is cached.
Configuring curl-1.3.2.1...
cabal: Error: some packages failed to install:
curl-1.3.2.1 failed during the configure step.
Hi all,
On Tue, Nov 11, 2008 at 11:38, Dave Tapley [EMAIL PROTECTED] wrote:
Usually I'll avoid then question and explain that it is a 'complete'
language and we do have more than enough libraries to make it useful and
productive. But I'd be keen to know if people have any anecdotes,
ideally
On Tue, 2008-11-11 at 17:09 +, Colin Paul Adams wrote:
Jake == Jake Mcarthur [EMAIL PROTECTED] writes:
Jake Actually, that's not the whole story. I didn't realize until
Jake I sent it. There does exist good documentation for this, I
Jake promise.
Good. Let me know where
huschi:
Hi all,
when I try to install curl (needed for hxt) using cabal install curl I
alwas get the following error message:
Resolving dependencies...
'curl-1.3.2.1' is cached.
Configuring curl-1.3.2.1...
cabal: Error: some packages failed to install:
curl-1.3.2.1 failed during the
On Tue, Nov 11, 2008 at 14:37, Krasimir Angelov [EMAIL PROTECTED] wrote:
You can hire one Haskell programmer instead of 1,2,3... programmers in
your favorite imperative language.
That's assuming I can find a Haskell programmer in the first place.
Also, he/she has to be good to replace 10 other
Hello Colin,
Tuesday, November 11, 2008, 8:09:09 PM, you wrote:
If I want to call Haskell (and I do, perhaps) from another
garbage-collected language (Eiffel, in particular) using C as the
mutually understood language, am I not going to run into big problems?
of course not. there will be two
Hello cafe,
I've hit a bit of a monadic snag here...
I'm scanning a big file, building a table of statistics. I end up with something
like
IO (IntMap (IOUArray Int Double))
Once I've read in the whole file and built my statistics, I don't need any more
updates, so I'd like to do something like
chad.scherrer:
Hello cafe,
I've hit a bit of a monadic snag here...
I'm scanning a big file, building a table of statistics. I end up with
something like
IO (IntMap (IOUArray Int Double))
Once I've read in the whole file and built my statistics, I don't need
any more updates, so I'd
On Tue, Nov 11, 2008 at 12:35:05PM -0600, Derek Elkins wrote:
On Tue, 2008-11-11 at 17:09 +, Colin Paul Adams wrote:
Jake == Jake Mcarthur [EMAIL PROTECTED] writes:
Jake Actually, that's not the whole story. I didn't realize until
Jake I sent it. There does exist good
On Tue, 2008-11-11 at 10:49 -0800, Don Stewart wrote:
curl-1.3.2.1 failed during the configure step. The exception was:
sh: runGenProcess: does not exist (No such file or directory)
I don't know what to do here. Can anybody help me please?
I'm using the brand new GHC 6.10.1 on
colin:
Is there a way to call Haskell code from other languages? I have looked on
the wiki, and as far as I can see, it only talks about the other way
round (when Haskell is the main program).
http://haskell.org/haskellwiki/Calling_Haskell_from_C
Cheers,
Don
Don Stewart dons at galois.com writes:
Hmm. So you'd need to construct a new IntMap, made by fmap'ping
unsafeFreeze over each element of the old map.
I guess if we had a Traversable instance for Data.IntMap things would be just
fine. Would this be a bad thing in any way?
Chad
colin:
Jake == Jake Mcarthur [EMAIL PROTECTED] writes:
Jake Actually, that's not the whole story. I didn't realize until
Jake I sent it. There does exist good documentation for this, I
Jake promise.
Good. Let me know where it is when you track it down.
The link you pointed
I too have noticed insidious bugs in GHC run-time when communicating
with another process via a pipe. I tried to use runInteractiveProcess;
it worked -- up to file sizes of about 300Kb.
Yeah, I seem to be running into similar strange problems,
so I'll be definitely checking out your code.
Hi everyone
So I should clarify I'm not a troll and do see the Haskell light. But
one thing I can never answer when preaching to others is what does
Haskell not do well?
Usually I'll avoid then question and explain that it is a 'complete'
language and we do have more than enough libraries to
Actually, one language you mention there *is* worse than the others
for writing wrappable library code: C++. Admittedly, they've got a
Python interface now via boost, but the main problem with writing
wrappable C++ code is the template system and the inheritence systems
getting in the way.
Dominic Steinitz [EMAIL PROTECTED] wrote:
Is there a way of allowing someone to use
AESKey in a type signature but not allow them to declare new
instances?
I was going to suggest you export the class abstractly, that is, without
its methods, so no-one could externally create an instance. But
John == John Goerzen [EMAIL PROTECTED] writes:
Read the FFI Report. It is relatively readable and
comprehensive. http://www.cse.unsw.edu.au/~chak/haskell/ffi/
And yes, you will have to use C as an intermediary, though you
may not have to actually write any C. You
Seems that boolean splicing in haskell templates in ghc 6.10.1 does not
work correctly. If you do:
$((\b - [| b |]) True)
you get the error:
Can't find interface-file declaration for data constructor GHC.Base.True
Probable cause: bug in .hi-boot file, or inconsistent .hi file
Use
Hello Chad,
Tuesday, November 11, 2008, 10:23:09 PM, you wrote:
using unsafeFreeze. I'm getting stuck here, since the IntMap library is not so
monad-friendly.
Data.Hashtable is
--
Best regards,
Bulatmailto:[EMAIL PROTECTED]
On Tue, Nov 11, 2008 at 07:39:53PM +, Chad Scherrer wrote:
Don Stewart dons at galois.com writes:
Hmm. So you'd need to construct a new IntMap, made by fmap'ping
unsafeFreeze over each element of the old map.
I guess if we had a Traversable instance for Data.IntMap things would be just
Hugo Pacheco wrote:
it is however. the same happened to me.
you just need to run
cabal install pcre-light --extra-include-dirs=/opt/local/include
--extra-lib-dirs=/opt/local/lib
My location is /opt/local, since I installed pcre via macports
sudo port install pcre
Alternatively:
Bulat wrote:
Hello Chad,
Tuesday, November 11, 2008, 10:23:09 PM, you wrote:
using unsafeFreeze. I'm getting stuck here, since the
IntMap library
is not so monad-friendly.
Data.Hashtable is
Well, I need mutable update for a while... after that, I prefer a pure
interface, which is
I'm trying to update FreshLib
http://homepages.inf.ed.ac.uk/jcheney/programs/freshlib/ to work
with the current GHC version.
Now it works fine in GHCi, but trying to compile with ghc --make gives
this result:
[1 of 5] Compiling NominalBase ( NominalBase.hs, NominalBase.o )
Loading package
2008/11/11 Benjamin L. Russell [EMAIL PROTECTED]:
Haskell's corresponding link should probably be (somewhat
facetiously):
download :: Click - HaskellCompiler
download GHC
parse error (possibly incorrect indentation)
___
Haskell-Cafe mailing list
Is there a way to call Haskell code from other languages? I have looked on
the wiki, and as far as I can see, it only talks about the other way
round (when Haskell is the main program).
--
Colin Adams
Preston Lancashire
___
Haskell-Cafe mailing list
Hello Max,
Tuesday, November 11, 2008, 11:50:28 PM, you wrote:
btw, i made here some time ago proposal about pure hashtables
implented over a pure arrays (via accumArray operaion). may be it is
somewhat helpful for you
using unsafeFreeze. I'm getting stuck here, since the
IntMap library
Hello Mauricio,
Tuesday, November 11, 2008, 2:26:21 PM, you wrote:
imho, Haskell isn't worse here than any other compiled language - C++,
ML, Eiffel and beter tnan Java or C#.every language has its own object
model and GC. the only ay is to provide C-typed interfaces between
languages (or use
Hello Jefferson,
Tuesday, November 11, 2008, 4:12:40 PM, you wrote:
may be i doesn't understand something but why c#, java, delphi, visual
basic, perl, python, ruby or even ml better than c++?
symbol names in C++ are easily predictable with wrapper using extern
C. i think that you just not
On Tue, 11 Nov 2008, Jefferson Heard wrote:
Actually, one language you mention there *is* worse than the others
for writing wrappable library code: C++. Admittedly, they've got a
Python interface now via boost, but the main problem with writing
wrappable C++ code is the template system and
Hello Thomas,
I see this is a proposal for a partial implementation of #1673 (
http://hackage.haskell.org/trac/ghc/ticket/1673). Maybe it would be good if
the remaining syntax (associated datatypes and type families) would also be
defined and implemented in TH. Or maybe there isn't much demand
consalus:
On Tue, Nov 11, 2008 at 2:38 AM, Dave Tapley [EMAIL PROTECTED] wrote:
Hi everyone
So I should clarify I'm not a troll and do see the Haskell light. But
one thing I can never answer when preaching to others is what does
Haskell not do well?
Usually I'll avoid then question
bulat.ziganshin:
Hello Max,
Tuesday, November 11, 2008, 11:50:28 PM, you wrote:
btw, i made here some time ago proposal about pure hashtables
implented over a pure arrays (via accumArray operaion). may be it is
somewhat helpful for you
Did you end up implementing this?
-- Don
I needed to to define multiuser web workflows in the most transparent way. I
wondered if a state monad could transparently bring automatic checkpointing
of each action and automatic resume after failure. In this way a long living
computation could be expressed in a single monadic computation.
When installing package haskell-src-exts via cabal install, I get the error
Language/Haskell/Exts/Syntax.hs:102:7:
Could not find module `Data.Data':
it is a member of package base, which is hidden
However, when manually installing
runhaskell Setup.hs configure/build/install
It works
Jake == Jake Mcarthur [EMAIL PROTECTED] writes:
Jake Actually, that's not the whole story. I didn't realize until
Jake I sent it. There does exist good documentation for this, I
Jake promise.
Good. Let me know where it is when you track it down.
The link you pointed me too doesn't
Hello Don,
Wednesday, November 12, 2008, 12:51:33 AM, you wrote:
btw, i made here some time ago proposal about pure hashtables
Did you end up implementing this?
yes, i have published here all the 10 lines of implementation :)))
citing letter to you:
actually, writing HT module from scratch
bulat.ziganshin:
Hello Don,
Wednesday, November 12, 2008, 12:51:33 AM, you wrote:
btw, i made here some time ago proposal about pure hashtables
Did you end up implementing this?
yes, i have published here all the 10 lines of implementation :)))
citing letter to you:
actually,
Hello Don,
Wednesday, November 12, 2008, 12:51:10 AM, you wrote:
Do you have an example of a mutable state/ IO bound application, like,
hmm, a window manager or a revision control system or a file system...?
not I/O, but IO :)
btw, i use C++ for speed-critical code (compression encryprion)
On Tue, Nov 11, 2008 at 1:51 PM, Don Stewart [EMAIL PROTECTED] wrote:
consalus:
On Tue, Nov 11, 2008 at 2:38 AM, Dave Tapley [EMAIL PROTECTED] wrote:
Hi everyone
So I should clarify I'm not a troll and do see the Haskell light. But
one thing I can never answer when preaching to others is
Dave Tapley wrote:
Hi everyone
So I should clarify I'm not a troll and do see the Haskell light. But
one thing I can never answer when preaching to others is what does
Haskell not do well?
Usually I'll avoid then question and explain that it is a 'complete'
language and we do have more than
On Tue, 2008-11-11 at 18:49 +0100, Peter Padawitz wrote:
At first a type of arithmetic expressions and its generic evaluator:
data Expr = Con Int | Var String | Sum [Expr] | Prod [Expr] | Expr :-
Expr |
Int :* Expr | Expr :^ Int
data ExprAlg a = ExprAlg {con :: Int - a, var ::
consalus:
On Tue, Nov 11, 2008 at 1:51 PM, Don Stewart [EMAIL PROTECTED] wrote:
consalus:
On Tue, Nov 11, 2008 at 2:38 AM, Dave Tapley [EMAIL PROTECTED] wrote:
Hi everyone
So I should clarify I'm not a troll and do see the Haskell light. But
one thing I can never answer when
Hello Don,
Wednesday, November 12, 2008, 1:21:18 AM, you wrote:
If this structure is useful, you should release it on Hackage.
You've not tested the performance though, I imagine, versus
say, hasing into an IntMap?
you know that making all these things need a time. sorry, ATM i
think that my
Has there been any progress in getting ghc set up for porting to non
x86/unix/windows platforms? Can it generate ropi code? It would also
be nice to be able to compile to C that rvct/arm tools can compile in
thumb mode. Its whats stopping me from trying to use it for mobile
development.
Hi Bit,
On Mon, Nov 10, 2008 at 03:05:23PM +0200, Bit Connor wrote:
First I tried the binary version ghc-6.10.1-i386-unknown-linux.tar.bz2
and I very quickly get this error:
$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
On Tue, 11 Nov 2008 11:54:57 +0100, Thomas Schilling
[EMAIL PROTECTED] wrote:
I think you hit bug http://hackage.haskell.org/trac/ghc/ticket/2747,
which is an accounting bug in the garbage collector and goes away when
you trigger more garbage collections (which -hc does, I think).
Please file
At first a type of arithmetic expressions and its generic evaluator:
data Expr = Con Int | Var String | Sum [Expr] | Prod [Expr] | Expr :-
Expr |
Int :* Expr | Expr :^ Int
data ExprAlg a = ExprAlg {con :: Int - a, var :: String - a, sum_ ::
[a] - a,
prod :: [a] - a, sub
Don Stewart dons at galois.com writes:
Hmm. So you'd need to construct a new IntMap, made by fmap'ping
unsafeFreeze over each element of the old map.
For now I'll just do
IntMap.map (unsafePerformIO . unsafeFreeze)
Hopefully this won't come back to bite me
Thanks!
Chad
Kyle, I would say that most apps don't actually require that you write
a mutation heavy inner loop. They can be written either way, and
Haskell gives you the facility to do both. Even my field, which is
visualization can be written either way. I write with a mutation
heavy inner loop myself,
As an aside, my present problem really seems to be fixed -- I
am able to move files of more than 2MB from one process to
another within my Haskell program. In my program, I take the
input file, turn it into a ByteString, pass it to process one,
capture the result as a ByteString, pass it
On Tue, Nov 11, 2008 at 14:46, Henning Thielemann
[EMAIL PROTECTED] wrote:
SWIG helps wrapping C++ libraries by providing C wrappers to C++ functions.
However, as far as I know, templates cannot be wrapped as they are, but only
instances of templates. Thus there is no wrapper to STL.
Maybe my
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Actually, that's not the whole story. I didn't realize until I sent
it. There does exist good documentation for this, I promise.
- - Jake
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)
Do you have an example of a mutable state/ IO bound application, like,
hmm, a window manager or a revision control system or a file system...?
If you're looking for a challenge, how about this one (there used to
be lots of Haskellers into this game, any of you still around?-):
Hi again,
On Tue, Nov 11, 2008 at 11:38, Dave Tapley [EMAIL PROTECTED] wrote:
So I should clarify I'm not a troll and do see the Haskell light. But
one thing I can never answer when preaching to others is what does
Haskell not do well?
C does extremely well when you want to write low level
2008/11/11 Hugo Pacheco [EMAIL PROTECTED]:
When installing package haskell-src-exts via cabal install, I get the error
Language/Haskell/Exts/Syntax.hs:102:7:
Could not find module `Data.Data':
it is a member of package base, which is hidden
However, when manually installing
I had a proof of concept lying around a couple of years ago in which a
big complicated Ada program called a big complicated Haskell program
and vice versa. The tricky bit from memory was making it link, and
satisfying their rumtime initialisation requirements. No explicit C
was required
Dave Tapley wrote:
Hi everyone
So I should clarify I'm not a troll and do see the Haskell light. But
one thing I can never answer when preaching to others is what does
Haskell not do well?
Usually I'll avoid then question and explain that it is a 'complete'
language and we do have more than
I haven't found multitrack audio recording applications written in
Haskell. These are usually written in C++ using Jack audio or ASIO.
This probably means that it is not a good idea to write real time
audio applications in Haskell at the moment.
So, probably avoid writing applications that use a
At Tue, 11 Nov 2008 22:41:48 -0500,
sam lee wrote:
I haven't found multitrack audio recording applications written in
Haskell. These are usually written in C++ using Jack audio or ASIO.
This probably means that it is not a good idea to write real time
audio applications in Haskell at the
On 11 nov 2008, at 11:38, Dave Tapley wrote:
Usually I'll avoid then question and explain that it is a 'complete'
language and we do have more than enough libraries to make it useful
and
productive. But I'd be keen to know if people have any anecdotes,
ideally ones which can subsequently be
73 matches
Mail list logo