[nem-en] language shootout: cheap-concurrency
Micky Latowicki
biosap at gmail.com
Mon May 7 07:21:13 CEST 2007
Hi all.
I've implemented the cheap-concurrency benchmark in Nemerle. It's 15 times
faster than the c# implementation, because I use plain closures to implement
the threads (rather than native threads which the c# version does).
I'm rather new to Nemerle,
and would be glad to receive any feedback on this, particularly
suggestions for improvement.
If I'm reinventing some wheel here (except for yield, which I chose to
reinvent) - let me know.
Also, I submit this for inclusion in trunk/snippets/shootout (I don't have
commit access myself).
A note about yield: At first I tried doing this with yield, but I gave up on
that, because apparently yield can't be used from within a closure - I found
that too limiting. Happily, it's always possible to use explicit closures.
Cheers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070507/93c92a78/attachment.html
More information about the devel-en
mailing list