ellie-idb / blocklandjs

BlocklandJS - a implementation of V8 in Blockland. Bad code included.
2 stars 0 forks source link

C++ API for external DLLs #33

Open ellie-idb opened 6 years ago

ellie-idb commented 6 years ago

After some thought, the API will

Any thoughts? I'm willing to get this in ASAP.

ellie-idb commented 6 years ago

Requires #32, so, should get that in first.

McTwist commented 6 years ago

Having a standardized initialization is a good way to go. Most uses the build in DLLMain or the like, but it's better to have some sort of init through the program itself as that ensures everything else is loaded properly.

I'm not sure that you should force the modmakers to link against other libraries unless they really need them. Also, it should be better to add some sort of "wrapper" that will give you basic functionality to talk to other libraries if needed. That is, a class/function/namespace that is in its own repo and included in every library that need to communicate with other libraries.

The last thing is that I believe that adding dynamic DLL support in this library would decrease the need for BLLoader.