Proposal: libcuberite
#11
(01-14-2017, 05:01 AM)sphinxc0re Wrote: Sounds like a good project. I guess it is totally possible to write bindings for any other language.

Thanks.

What I'm looking for is to be able to compile cuberite as a C++ library that I could dynamically load it into my system using dlopen.  From Common Lisp I could then create cuberite C++ classes and call cuberite functions to set things up. Then I would create a main loop and call a cuberite function to step the world forward one time step.   Since Clasp generates compiled native code using LLVM the main loop could include a lot of Common Lisp code to drive the game. 

Here's a demo I put together yesterday where I expose a small part of the Bullet physics engine and set up and run a little simulation.
https://github.com/drmeister/demo-bullet

I'd like to do something like that with cuberite.   It would be a great teaching tool for kids because they could load up the system and then start modifying the behavior of animals and writing code to build structures within the world.

I can deal with the bindings - that's my forte.  Clasp has a C++ template library that semi-automatically creates bindings.  It also exposes the Clang C++ compiler front end so I have access to the C++ AST from Common Lisp.  I can slurp up the cuberite C++ API and automatically create bindings.

I think "libcuberite" is what I'm looking for.   I'm thinking to take out the main function and link everything as a library.
Reply
Thanks given by:


Messages In This Thread
Proposal: libcuberite - by sphinxc0re - 01-03-2017, 11:25 PM
RE: Proposal: libcuberite - by NiLSPACE - 01-03-2017, 11:54 PM
RE: Proposal: libcuberite - by sphinxc0re - 01-04-2017, 02:26 AM
RE: Proposal: libcuberite - by xoft - 01-04-2017, 04:35 AM
RE: Proposal: libcuberite - by ShadowCone - 01-05-2017, 05:43 AM
RE: Proposal: libcuberite - by drmeister - 01-14-2017, 04:54 AM
RE: Proposal: libcuberite - by sphinxc0re - 01-14-2017, 05:01 AM
RE: Proposal: libcuberite - by drmeister - 01-17-2017, 04:00 PM
RE: Proposal: libcuberite - by xoft - 01-14-2017, 08:16 PM
RE: Proposal: libcuberite - by yangm97 - 01-17-2017, 02:26 AM
RE: Proposal: libcuberite - by xoft - 01-17-2017, 04:13 AM
RE: Proposal: libcuberite - by xoft - 01-17-2017, 07:29 PM
RE: Proposal: libcuberite - by LogicParrot - 01-17-2017, 07:35 PM
RE: Proposal: libcuberite - by xoft - 01-17-2017, 08:07 PM
RE: Proposal: libcuberite - by LogicParrot - 01-18-2017, 01:20 AM
RE: Proposal: libcuberite - by drmeister - 01-18-2017, 01:34 AM
RE: Proposal: libcuberite - by sphinxc0re - 01-17-2017, 08:15 PM
RE: Proposal: libcuberite - by yangm97 - 01-18-2017, 12:26 AM
RE: Proposal: libcuberite - by HelenaKitty - 02-28-2017, 07:53 AM
RE: Proposal: libcuberite - by ShadowCone - 03-01-2017, 10:25 AM
RE: Proposal: libcuberite - by HelenaKitty - 03-01-2017, 06:53 PM



Users browsing this thread: 5 Guest(s)