Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

embedding CL in a C++ based runtime

Name: Anonymous 2016-05-23 5:29

so im trying to make my own AAA game in the only language that's worthwhile, CL. I was looking for directx libraries in CL and came up wit some half baked github repo that wouldn't even compile, so now I'm here, dick in hand, trying to make my own CFFI bindings, but this all seems extremely tedious. is it possible to embed something like SBCL in a C++ runtime and have it work flawlessly on Windows? any tips? I don't want to resort to using Chickenshit Scheme or Chibi, but I know those would work easier. YHBT

Name: Anonymous 2016-05-23 6:45

Don't both with CL. Don't go with Chicken or Chibi either, they're not ideal. At the end of the day, you're going to have to write your own libraries, so you might as well start with a light-weight Small Scheme implementation.

You shouldn't be using Scheme for low-level rendering. Do that all in C/C++. It's better to expose your highest-level game-logic and entity abstractions to Scheme instead.

Name: Anonymous 2016-05-23 10:06

ECL is made for joining CL and C, and Clasp is made to join CL and C++. I have no clue about Windows, because nobody actually willfully uses that shit.

Name: Anonymous 2016-05-23 13:45

ECL can be embedded into C or C++ program.
I wrote program that would generate bindings for c++ library by inlining c++ in ecl, never completed it but I think it might be easiest way to do it even though compiling it might be bit more annoying. I have had lot of troubles with ecl and cffi.

For cl there are already bindings for opengl and sdl2/allegro so it might be easier to just them. There is also https://github.com/BradWBeer/clinch but I have no idea if it works.

If you want to make a game it might be easier to use some already existing engine like ogre which cl has some kind of bindings for https://github.com/aerique/okra. There is some project on github that provides C api for irrilich which might be easier to make cl bindings for than some c++ library.

Name: Anonymous 2016-05-23 17:58

>>2
He can use reduced version of Scheme, that maps directly to C/C++.

Don't change these.
Name: Email:
Entire Thread Thread List