On Mon, Feb 8, 2010 at 5:16 PM, John Meacham j...@repetae.net wrote:
On Tue, Feb 09, 2010 at 10:42:26AM +1000, Tony Morris wrote:
I expect others have forethought and perhaps even experimented with such
a language. Are there any dangers to be wary of that undo the entire
endeavour?
There
inside the body of the first lambda, so
according to the article, seq reduces to weak head normal form, not hnf...
Hi,
Try:
Prelude Debug.Trace (f 0) `seq` ()
\x
\y
y
2
x
()
--
Thanks!
Marcin Kosiba
signature.asc
Description: This is a digitally signed message part
released an experimental STM-supporing C++ compiler[4]).
It is also true, that as the number of cores in cpus grows, STM will become
more attractive.
Thanks!
Marcin Kosiba
[1]http://en.wikipedia.org/wiki/Software_transactional_memory#Implementation_issues
[2]when a long-lived transaction
. The last thing I'd do is blame it on ghc/ghci, but as always -- such
a possibility exists.
Thanks!
Marcin Kosiba
[1] http://www.haskell.org/ghc/docs/latest/html/users_guide/ghci-debugger.html
___
Haskell-Cafe mailing list
Haskell-Cafe
/fixed issue. I'm using ghc
6.10.3,
bzlib 0.5.0.0. If this is something new then I'll try to come up with a small
program which demonstrates the problem.
--
Marcin Kosiba
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman
System.Mem.performGC just before allocating the memory.
I've already worked around the problem.
--
Marcin Kosiba
signature.asc
Description: This is a digitally signed message part.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org
= execStateT mapMLAs (List [])
where
mapMLAs = sequence_ $ map mapMLA lst
mapMLA x = (lift $ fn x) = put
--
Marcin Kosiba
signature.asc
Description: This is a digitally signed message part.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
this worked to a certain extent, composability was a problem,
because
any sub-procedure which used yield (and thus was an iterator) required being
called in a rather inelegant way.
Thanks!
Marcin Kosiba
signature.asc
Description: This is a digitally signed message part
On Thursday 09 July 2009, you wrote:
2009/7/9 Marcin Kosiba marcin.kos...@gmail.com:
I thought I'll go the smart way and rely on the Python yield construct
to do a CPS transformation of my code.
While this worked to a certain extent, composability was a
problem, because any sub
On Friday 10 July 2009, Gleb Alexeyev wrote:
Marcin Kosiba wrote:
Hi,
To illustrate what I meant I'm attaching two examples. In example_1.py
I've written code the way I think would be elegant (but it doesn't work).
In example_2.py I've written code so that it works, but it isn't
how to correctly specify the pthread library for this?
Hi,
Try:
ghc --make Installer.hs -static -optl-static -optl-pthread
If that doesn't work, you can always do a ghc -v, find the command it uses for
linking, modify it and run it manually.
Thanks!
Marcin Kosiba
.
--
Thanks!
Marcin Kosiba
signature.asc
Description: This is a digitally signed message part.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
of simulation you'd like to write.
--
Thanks!
Marcin Kosiba
signature.asc
Description: This is a digitally signed message part.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
://monadicheadaches.blogspot.com/2008/01/python-25s-iterators-in-haskell-sort-of.html,
the unified concurrency model and Control.Coroutine, but couldn't get the
behavior I was going for.
Thanks!
Marcin Kosiba
signature.asc
Description: This is a digitally signed message part
On Thursday 12 March 2009, you wrote:
2009/3/12 Marcin Kosiba marcin.kos...@gmail.com:
Hi,
I'm doing a bit of research into mobility models and I'm currently
exploring implementation language choices for the simulator
(*snip*)
The simulation algorithm requires expressing
On Friday 13 March 2009, you wrote:
2009/3/13 Marcin Kosiba marcin.kos...@gmail.com:
On Thursday 12 March 2009, you wrote:
2009/3/12 Marcin Kosiba marcin.kos...@gmail.com:
Hi,
I'm doing a bit of research into mobility models and I'm
currently exploring implementation language
On Friday 13 March 2009, Cristiano Paris wrote:
2009/3/13 Marcin Kosiba marcin.kos...@gmail.com:
...
Threading the state is not the problem. Maybe this will help:
what I have now:
fsm world state = case state of
first -
do_stuff_one
(move_up, succ state)
second
On Friday 13 March 2009, Cristiano Paris wrote:
2009/3/13 Marcin Kosiba marcin.kos...@gmail.com:
Hi,
I've already checked those out. I tried using your yield
implementation and while it works, I couldn't get it to work with the
state monad.
So while:
data RecPair a b
(-) (x-z) zs) - y (IH, a = x, b = z)
= (foldl (-) x (z:zs)) - y (R)
The trick is to formulate the inductive hypothesis with enough generality,
so you have strong foundations to build on.
--
Pozdrawiam,
Marcin Kosiba
signature.asc
Description: This is a digitally
;)
Unfortunately, GHC lacks certain optimizations to make efficient code when
using CMonad, so instead of C speed you get low speed.
I mean as a proof-of-concept this is cool, but if your primary concern is
performance then I think you're barking up the wrong tree with this.
Cheers!
Marcin Kosiba
,
longfunctionnameswhichareapaintoreadandespeciallywrite are a bug and should
be treated and fixed by the owner of that code, not by the user.
If very function names are that much of a problem to you consider a wrapper
library.
--
Cheers!
Marcin Kosiba
signature.asc
Description: This is a digitally signed
21 matches
Mail list logo