3 ms·
I'm looking forward to it; being able to utilize C and C++ libraries directly from Clojure is something that I could see being pretty valuable. I've been debat
by tombert 2y ago
I'm looking forward to it; being able to utilize C and C++ libraries directly from Clojure is something that I could see being pretty valuable.
I've been debating trying my hand at making a simple game engine...it would be great if I could use a Lisp to do it.
- lelanthran 2y agoYou can use lisp with almost native C support, if you use ecl or gcl.
- guenthert 2y agoecl and gcl compile to C. That's fine, but not necessary to merely use C libraries; for that you need a C foreign function interface (FFI), which most surviving CL compilers offer. C++ is more of a challenge, hence the Clasp project.
- beepbooptheory 2y agoI feel like Clasp has huge game development potential but has gravitated towards science just because that's where it came from. Like surely one could use it to get good godot bindings for example, but I haven't seen stuff like that around.
- lelanthran 2y ago> ecl and gcl compile to C. That's fine, but not necessary to merely use C libraries; for that you need a C foreign function interface (FFI) Last time I checked, they also allowed literal C code inline in Lisp programs. That's a bit more than the other Lisps which offer FFI.
- 2mlWQbCK 2y agoDid you look at Janet? Of course there are many other embeddable LISPs, but I think in particular Janet is a good, light, (subset of) Clojure-like language. It is built into TIC-80 by default, making it already useful for (small) games. https://janet-lang.org/ https://janet-lang.org/ https://tic80.com/ https://tic80.com/