Re: Creating and using a .DLL/.SO?
- Posted by mattlewis (admin) Dec 26, 2008
- 1104 views
How will this work when I want to load multiple dll/so files that have the same function names? For instance:
My basic idea is to create a system where the user can't even tell the difference between using an interpreted vs translated include file. There would probably be a runtime switch or something, and some magic that happens behind the scenes to merge the symbol table of your interpreted application and the translated includes so that from a usage point of view, there's really no difference, except that you get a faster application. I'd imagine that the standard library would be installed this way, so that you could use it out of the box.
If there were namespace conflicts, they'd be resolved the same way they are now. There are definitely a lot of details to be worked out, but I think it's possible to integrate translated and interpreted code in the same application.
Basically, the translated library would define some extra functions, where the application would ask for the symbols it makes visible to other code, and the parser would make appropriate entries for the symbol table. When you need to call a translated routine, it would mark that as special, and make a callback like call to it.
Matt