Re: Hashing and comparing of arrays
- From: Helge Jensen <helge.jensen@xxxxxxx>
- Date: Fri, 21 Apr 2006 21:44:26 +0200
Ole Nielsby wrote:
Anyway, this is a C# NG and I'm getting off-topic...
taking it a little further OT ;)
BTW, when porting F# to C#, did you rewrite into "procedural"
style, or did you do it the functional way? Do you find C# useable
for functional programming?
(Years ago, I involved myself in a rather heated discussion
about tail call flattening in this NG. The C# compiler's lack
of support for this killed my first attempt of porting my
language to .NET. When I uttered my dissatisfaction whith
this, I was flooded with arguments against supporting it, and
when I tore some of these arguments apart, things got hot.
Anyway, I think a better functional programming support
in C# might help bridge the gap between procedural and
functional programming.)
MS C++ 7.0 has *excellent* tail call optimizations. During a course on
partial evaluation a while back I did three implementations of an
interpreter for a simple virtual machine:
- procedural, while ( true ) process next instruction
- tail-recursive via an accumulator
- CPS-style
The compiled code for the three ran at *almost* the same speed! I was
especially impressed with the CPS-rewrites done by the optimizer.
My hand-in is at http://slog.dk/svn/home/jensen/PEIOOL/ex4/ex4.pdf, and
you can browse around http://slog.dk/svn/home/jensen/PEIOOL/ex4/ if you
like.
--
Helge Jensen
mailto:helge.jensen@xxxxxxx
sip:helge.jensen@xxxxxxx
-=> Sebastian cover-music: http://ungdomshus.nu <=-
.
- Follow-Ups:
- Re: Hashing and comparing of arrays
- From: Ole Nielsby
- Re: Hashing and comparing of arrays
- References:
- Hashing and comparing of arrays
- From: Ole Nielsby
- Re: Hashing and comparing of arrays
- From: Helge Jensen
- Re: Hashing and comparing of arrays
- From: Ole Nielsby
- Re: Hashing and comparing of arrays
- From: Lucian Wischik
- Re: Hashing and comparing of arrays
- From: Ole Nielsby
- Hashing and comparing of arrays
- Prev by Date: Re: Regex: Could this pattern be more efficient?
- Next by Date: Re: Port Scan - Socket Connect
- Previous by thread: Re: Hashing and comparing of arrays
- Next by thread: Re: Hashing and comparing of arrays
- Index(es):
Relevant Pages
|