Live data from Hacker News

LispY C

github.com

1–10 of 45 posts

Re: LispY C

#4
post #2

So crazy it might just work.

I'd be surprised if something exactly like this but more mature and with a lot more questionable legacy design decisions doesn't already exist.

Re: LispY C

#6
post #4
post #2

So crazy it might just work.

I'd be surprised if something exactly like this but more mature and with a lot more questionable legacy design decisions doesn't already exist.

There's L++: https://bitbucket.org/ktg/l

And, for people who refuse to let go of curly braces, there's this shameless plug: https://github.com/eudoxia0/cmacro

Re: LispY C

#7
> 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

#8
I feel like besides powerful macro generation, the other big selling point of a lisp is that you can dynamically generate code at runtime, either by providing hooks into the compiler itself or by running the generated code through an interpreter. This project doesn't seem to do that at all. Does anyone know of any similar projects that do?

Re: LispY C

#9
post #7

> 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?

http://benchmarksgame.alioth.debian.org/u64q/compare.php?lan...

Re: LispY C

#10
post #7

> 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?

For example: https://www.call-cc.org/

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

Post reply on HN