From: Aaron W. Hsu on 14 Jun 2010 20:12 fortunatus wrote: > The only point to discuss would be that Scheme - in the R5 version of > the spec at least - doesn't have standard way to specify type data > unless I am mistaken. Therefore you will find that Scheme compilers > add their own syntax for it. Again we are led to a moot point. One of the points of something like Chez Scheme is that it compiles standard Scheme, without additional static typing -- which, personally, I find rather annoying -- into code that is often quite competitive with C code if not faster. More specifically, there is nothing inherently slow about the Scheme language. While there are some things that are inherently expensive, they are not more expensive than the equivalent constructs in C by nature. Scheme can be compiled into very fast code, without resorting to tricks like type declarations, and there are real life compilers out there which do this. I've heard it said, it is easy to beat C compilers for fast code, it's just hard to beat them at benchmarks written for C. That is, do the same type of things as what Scheme gives you, such as lots of dynamic allocation and resizing, higher order functions, and closures, and you won't find C faster. Benchmarks to compare C with Scheme often don't compare the things Scheme is good at, but focus only on the static things that C was designed for. Aaron W. Hsu
From: Grant Edwards on 14 Jun 2010 23:10 On 2010-06-15, Aaron W. Hsu <arcfide(a)sacrideo.us> wrote: > I've heard it said, it is easy to beat C compilers for fast code, it's > just hard to beat them at benchmarks written for C. That is, do the same > type of things as what Scheme gives you, such as lots of dynamic > allocation and resizing, higher order functions, and closures, and you > won't find C faster. I don't know about that... It's hard to beat the speed of a program that segfaults immediately. ;) It's hardly fair if you're going to demand that the C program actually works correctly. -- Grant
From: Captain Obvious on 15 Jun 2010 03:40 b> I am looking for expert opinions Are you a new gavino or something like that?
From: Tim Bradshaw on 15 Jun 2010 05:00 On 2010-06-15 08:40:01 +0100, Captain Obvious said: > Are you a new gavino or something like that? I think there is an infinite supply of them.
From: Norbert_Paul on 15 Jun 2010 06:03 Tim Bradshaw wrote: > On 2010-06-15 08:40:01 +0100, Captain Obvious said: > >> Are you a new gavino or something like that? > > I think there is an infinite supply of them. Maybe (equalp bolega gavino) but not eq. Note the disclaimer which is untypical for the original gavino.
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: Simple hack to get $600 to your home. Next: Re-use constructor from superclass |