POV-Ray : Newsgroups : povray.off-topic : Enter the compiler : Re: Enter the compiler Server Time
6 Oct 2024 07:02:47 EDT (-0400)
  Re: Enter the compiler  
From: scott
Date: 4 Mar 2015 04:45:30
Message: <54f6d43a$1@news.povray.org>
> In the category of "nobody cares, but I'm going to write about it
> anyway"... A few months back I started building a Haskell to JavaScript
> "compiler". (I say "compiler" since the thing was far too incomplete to
> be described as a *real* compiler; more like a mere compiler back-end.)
> That has lain dormant for a while now, but I've just embarked upon
> writing a Haskell to C# compiler.

An interesting read, so it turns out you are actually quite good at C# 
programming then :-) I bet you not many applicants for *any* programming 
jobs could manage what you've described here.

> So that's easy enough. Similarly, point #6 says that I can write
>
>    distance :: Point -> Int
>    distance (Point x y) = sqrt (x*x + y*y)
>
> Again, an obvious C# analogue is
>
>    int distance(Point p)
>    {
>      return p.X*p.X + p.Y*p.Y;
>    }

I think you're missing something there :-)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.