Earlier quoted context omitted.
Talking about speed, someone put this online http://www.nexoid.at/tmp/scheme-benchmark-r7rs.html
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.
LispY C
21–30 of 45 posts
Re: LispY C
#22Clasp is not quite the same, but it can work seamlessly, and compiles to machine code using an LLVM backend [1]. It was created to facilitate using all of the scientific libs in C++ by a chemistry professor for the creation of molecules [2]. It's a big codebase. I'll have to look at LispY C, since on first impression it seems smaller, and I like C! [1] https://github.com/drmeister/clasp [2] https://github.com/drmeist…
Re: LispY C
#23I 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
#24> 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!
Re: LispY C
#25Why replace "struct" with "class"? These are completely different things. >.>
I don't see where you get that. There is a struct function. That said, the only difference between a struct and a class is that struct member defaults to public, and class members default to private.
In C++ land, this would be true.
C doesn't let you write methods within structs. C structs don't even have inheritance. No virtual table is generated. There is no single-dispatch mechanism.
Re: LispY C
#26Clasp is not quite the same, but it can work seamlessly, and compiles to machine code using an LLVM backend [1]. It was created to facilitate using all of the scientific libs in C++ by a chemistry professor for the creation of molecules [2]. It's a big codebase. I'll have to look at LispY C, since on first impression it seems smaller, and I like C! [1] https://github.com/drmeister/clasp [2] https://github.com/drmeist…
Clasp is an implementation of Common Lisp, a standard language and not a self-designed lisp as in the case of Lisp/C.
Re: LispY C
#27Earlier quoted context omitted.
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.
It is and regularly way above the others. I had to hold on my fanaticism.
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!
Re: LispY C
#28Re: LispY C
#29So 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.