News for hackers. Stuff that matters.
Re:LispY C by jlas on Thursday May 12, 2016 @10:25PM (#11688229)
> Because LISP is expressive and C is fast and I wanted the best of both worlds is the short answer.

I'm not sure how well known it is, but some Lisps can be statically compiled to machine code.

But one thing I've wondered about is how good can it get? Are there any benchmarks for Lisp vs. C?

Re:LispY C by dreamcompiler on Friday May 13, 2016 @12:41AM (#11688673)
Some Lisps? Almost all Common Lisps compile to native machine code. Which is why CL programs tend to run orders of magnitude faster than e.g. Python programs. (But they're still typically slower than C because of runtime memory allocation and typetag checking.)
Re:LispY C by agumonkey on Friday May 13, 2016 @01:19AM (#11688779)
Talking about speed, someone put this online http://www.nexoid.at/tmp/scheme-benchmark-r7rs.html
Re:LispY C by eggy on Friday May 13, 2016 @01:25AM (#11688790)
Chez Scheme (the compiled version vs. Petite Chez) figures high on those lists, and it was just opensourced by Cisco. I used to use Gambit-C, and I still like it, but Chez is fast.
Re:LispY C by agumonkey on Friday May 13, 2016 @02:19AM (#11688919)
It is and regularly way above the others. I had to hold on my fanaticism.
Re:LispY C by eggy on Friday May 13, 2016 @03:40AM (#11689149)
I am playing with Eduardo Cavazos's libraries with Chez [1], and particularly the port of xspringies. Great fun considering as he points out that the mass-spring calcs are all taking place in scheme. It runs fine on my 2-3 year old notebook.

C was a third language for me in the day, and I like Lisps, so this Lispy-C thing is going to eat my afternoon up!

[1] https://github.com/dharmatech?tab=repositories

Re:LispY C by groovy2shoes on Friday May 13, 2016 @09:55PM (#11694251)
That would be ecraven (who hangs out in #scheme on Freenode). See also: https://github.com/ecraven/r7rs-benchmarks
Re:LispY C by girvo on Thursday May 12, 2016 @11:21PM (#11688430)
For example: https://www.call-cc.org/

That's a full Scheme that compiles to C. It's quite nice, too!

Re:LispY C by Flow on Friday May 13, 2016 @03:07AM (#11689069)
It's a fine compiler for sure, but have you seen the generated C output? It's based on Henry Baker's Cheney-on-the-MTA compilation strategy.

https://wiki.call-cc.org/chicken-compilation-process