Hi,
http://happs.org/ has some Javascript visible as plain text. It looks
like some tags are missing in the page...
I hope that's the right website, because it turned up first on my
Google search happs with a nice description too.
--
Vimal
to mentor for GSoC 2009? (Assuming Haskell
would be on the list of mentoring organisations, although I have no
reason to doubt it wouldn't.)
Thanks,
Regards,
--
Vimal
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
(a descriptor) that you can
identify. bind() creates an identity for the socket so that
applications outside can refer to it (using ip:port); it also enables
the kernel to pass the received data to your application. sendto()
doesn't require that identity.
--
Vimal
for the video! How long before the video comes up on the website?
--
Vimal
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
that can be used to solve the
above problems? I guess once you come up with the algorithms,
translating it into Haskell shouldnt be much of a problem.
--
Vimal
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
a
course on Language Translators, say).
--
Vimal
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
be
a project that Haskell might help me beautifully model and execute.
I would like to have some opinion on the complexity of the project
ideas that I have in mind.
Thanks,
--
Vimal
Indian Institute of Technology Madras
Chennai
India
___
Haskell-Cafe mailing
Data/Array/Base.hs:391:23: Not in scope: `Arr.numElements'
Data/Array/Base.hs:1067:35:
Not in scope: `ArrST.numElementsSTArray'
Data/Array/Base.hs:1079:51:
Not in scope: `ArrST.numElementsSTArray'
I had the same problem with ghc-6.6.
It works with ghc-6.8.2.
--
Vimal
Hi,
Thanks for the info.
Vimal wrote:
What is the difference between In-Reply-To and References?
There was a time In-Reply-To was for emails and References was for Usenet.
My friend wrote a parser for Haskell-cafe messages from the mailman
archives as suggested.
He told that there were
to reconstruct the tree...
And looks like this post has gone on a tangent :D
Vimal
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
And looks like this post has gone on a tangent :D
Vimal
And looks like this _thread_ has gone on a tangent :)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
]
/forum
as XML.
However, I find that that the messages (in haskell-cafe/usenet)
themselves aren't organized in this fashion.
I would like to know if there is any way in which I can get the
archives in this fashion.
Thanks,
--
~Vimal
RLE :)
encode = map (length head) . group
decode = concatMap
On 25/11/2007, Maurício [EMAIL PROTECTED] wrote:
Hi,
I'm trying to pretty-print (with Text
. PrettyPrint . HughesPJ) a set of peg solitaire
boards. No matter what I try, I always get this:
00#
00#
#00
000
000
000
000 : 00#
00#
meaningful places as possible,
but it doesnt work :(
I have sat with the code for a long time, and yet I am not able to
come up with a convincing reason as to why it doesnt work. For
somegraphs, it even hangs and gives a stack overflow exception!
Any help appreciated. Thanks,
Vimal
of the spanning tree (through backtracking). You probably said that, but
I have probably missed that posting.
Okay, I want a DFS Spanning tree.
Vimal
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell
on paper and see if it works out.
References:
[1]: www.cse.ogi.edu/~jl/Papers/dfs.ps
Do you have any thoughts on this?
Thanks,
--
~Vimal
RLE :)
encode = map (length head) . group
decode = concatMap (uncurry replicate)
___
Haskell-Cafe mailing list
Haskell
The really amazing thing about the IO Monad in Haskell is that
there *isn't* any magic going on. An level of understanding
adequate for using the I/O and State monads stuff (that is,
adequate for practically anything analogous to what you might
do in another language) goes like this:[...]
a functional pearl, with an example' and
was quite impressed by it. But the actual modelling might be slightly
tricky here, and I am yet to start off with it.
Many thanks for your patience,
Cheers,
--
~Vimal
IIT Madras
RLE :)
encode = map (length head) . group
decode = concatMap (uncurry replicate
Cool! Lots of opinion. Let me consider them one by one:
@Neil:
This is where you went wrong. I know none of this stuff and am
perfectly happy with IO in Haskell. Read
@Andrew:
This probably works quite well for mainstream programming languages
(since they're all so similar), but is unlikely to work at all for
Haskell (since, as far as I know, no other programming language on Earth
is remotely like it - Miranda excluded). Even Lisp and Erland are
nothing
In my opinion (other may think differently) it is not a good idea to
learn IO by starting with trying to grasp the theoretical foundation for
monads. In the beginning you should just view the IO monad as Haskell's
way of doing imperative IO stuff. When you feel comfortable with Haskell
IO,
I think you have got a very good point in your mail that I overlooked
all along ... Why was Haskell created? is a question that I havent
tried looking for a answer :)
I also agree about this, so I started looking for small projects on which to
cut my teeth and really learn the basic concepts in
Hi all,
I was surprised to find out that the following piece of code:
length [1..] 10
isnt lazily evaluated! I wouldnt expect this to be a bug, but
in this case, shouldnt the computation end when the length function
evaluation goes something like:
10 + length [11..]
?
--
-- Vimal
Wow, half an hour, about 7 replies :) I dont know which one to quote!
Okay. So, why is GHC finding it difficult to conclude that
length is always 0? Suppose I define length like:
length [] = 0
length (x:xs) = 1 + length xs
Hmm, well, I think the fact that we, as humans, expecting GHC
to infer
From the wiki:
If you write it, you force Haskell to create all list nodes. ...
Alright.
Now, lets look at the definition again:
length [] = 0
length (x:xs) = 1 + length xs
We see that the value of *x* isnt needed at all. So, why does GHC
allocate so much memory creating all those *x*s?
Prelude 10 + length (replicate maxBound 'a')
-2147483639
Ah, nice example!
If you note, this doesnt allocate memory at all! Very less footprint!
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
is
necessary; don't remember the title, however.
Thanks for the info! I willl check it out soon!
~Vimal
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
on that :D
Cheers
--
-- Vimal
Department of Computer Science and Engineering
Indian Institute of Technology Madras
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
a - getLine
b - getLine
let la = to_int (words a);
lb = to_int (words b); in
print (prod la lb)
main = do
t - getLine
loop (read t) doit
END OF CODE
I would love to see if there is any improvement that can be done, to
the code ...
Thanks!
Vimal
@Donald:
Thanks for the link.
prod = sum . zipWith (*)
This is the slow part. Prelude.read ist really slow.
Futhermore use the recusion pattern again:
to_int = map read
What is n used for?
@Lutz:
Those are some nice tricks... Thanks!
Now, the 'n' is for getting the number of numbers in
On 8/9/07, Brent Yorgey [EMAIL PROTECTED] wrote:
On 8/9/07, Chaddaï Fouché [EMAIL PROTECTED] wrote:
I get Wrong answer with the following code for the same problem...
Is there something strange in this code :
This problem description is not worded very well. You have to figure out
the
on the fact that it was a multiple of 2 ...
(or 3? Which one comes first?)
This happens in a different order than what would be expected
generally in a sieve :-)
So, the question is, does this improve efficiency?
-- Vimal
___
Haskell-Cafe mailing list
argument to hold good for something like this:
primes n = sieve (take n [2..])
sieve (p:xs) = p : sieve [x | x - xs, x `mod` p 0]
print (primes 1000)
-- Vimal
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo
primes n = sieve (take n [2..])
sieve (p:xs) = p : sieve [x | x - xs, x `mod` p 0]
print (primes 1000)
-- Vimal
But as we can see, this obviously doesn't *take* 1000 primes,
:-)
-- Vimal
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
+ few techniques
to help with the backtrack, after modeling Sudoku as a contraint
satisfaction problem.
You can write a backtracking algorithm that is at least as fast as DLX :-)
-- Vimal
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http
35 matches
Mail list logo