|
|
Invisible wrote:
> What is "Jotto"?
It's a word game, http://en.wikipedia.org/wiki/Jotto
Not unlike the "Mastermind" game, if you've ever played that.
I find it helpful as a first program because you have a bunch of things
you need to do - prompt for and take input, remember previous guesses,
store new words in a database or file somewhere, etc.
> Oh, it's trivial to get the compiler to write a parser for Haskell
> literals too. But the problem [in this case] is that the Haskell
> expressions are rather verbose and wordy, which makes it hard to type
> out non-trivial example expressions and so forth.
I think the Haskell expressions are probably longer than the Erlang
expressions would be because you're carrying the type around.
> Without knowing Erlang well enough, I couldn't speculate. It looks to me
> light it ought to work, but hey...
I was just after whether it was a strange logic error or something. It
works, it's just really slow, but the memory usage doesn't keep
climbing. (I can see it GCing every few seconds, but it doesn't grow out
of bounds and start paging or anything.)
Maybe I just haven't initialized the memory management to take advantage
of enough memory to cut down the GCs.
Or maybe the file parsing stuff actually is written in Erlang, in which
case it really *is* that slow.
The program to go thru and pick every 20'th word and write it out after
reading it all in to memory in Tcl was faster by far than simply reading
in the trimmed list in Erlang. Which is a bit worrysome, if I expect to
be using this for production systems.
--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where's that?"
"It's the Age of Channelwood."
"We should go there on vacation some time."
Post a reply to this message
|
|