POV-Ray : Newsgroups : povray.off-topic : Emacs : Re: Emacs Server Time
29 Sep 2024 16:11:02 EDT (-0400)
  Re: Emacs  
From: nemesis
Date: 16 Apr 2009 11:57:52
Message: <49e75580@news.povray.org>
Warp escreveu:
> nemesis <nam### [at] nospam-gmailcom> wrote:
>> Ah, nothing more fake than programming in assembly disguised in your fav 
>> programming language... :P
> 
>   OTOH haskell, at least when using ghc, is nothing more than a wrapper
> around C, so when you write a haskell program you are *really* writing
> a C program, just with some fancy features.
> 
>   Nothing more fake than claiming a language is about as fast as C, when
> in fact it's *compiled as C*, in the first place.

It's not wrappers like PHP and other scripting language do, merely 
calling predefined C wrappers for every high level constructs you have: 
  GHC and others actually generate and reduce those wrappers on-the-fly 
from the compiled program.  Many Scheme compilers also employ C as backend.

A compiler is merely a program that translates from language A to 
language B and there's nothing wrong with using C as the B target.  You 
leverage from a good performant cross-platform compiler available 
everywhere and can focus on how to best translate it to a single 
language rather than having to deal with low-level machine specifics. 
And you can program in a language with far more convenient and higher 
level abstractions.

That said, as Andrew noted, GHC has had a native code generator for a 
long while now.

-- 
a game sig: http://tinyurl.com/d3rxz9


Post a reply to this message

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