1. C Libraries/Wrappers
- Posted by Icy_Viking Oct 31, 2019
- 1302 views
Hello all,
Just wondering if there are any useful C librares that can be in wrapped for Euphoria that I haven't already done so. Also, when the next release has supports for structs, would it be easier or possible to wrap CPlusPlus libraries?
2. Re: C Libraries/Wrappers
- Posted by ghaberek (admin) Nov 01, 2019
- 1281 views
Also, when the next release has supports for structs, would it be easier or possible to wrap CPlusPlus libraries?
Unfortunately, the ability to interface with C++ goes well beyond structs. If that were the only boundary, we could be doing it today with manual peek/poke calls.
You'll have to contend with compiler-specific name mangling and other ABI differences like class constructors, polymorphism, exceptions, and so on.
Here's an article on how the D language accomplishes this: Interfacing to C++. They have to make a few assumptions and concessions, and even then they already have a compatible OOP syntax that mirrors C++ directly.
Matt had made some headway with doing this manually in the earliest versions of wxEuphoria, but he eventually moved to a more maintainable shim library approach instead.
-Greg
3. Re: C Libraries/Wrappers
- Posted by Icy_Viking Nov 01, 2019
- 1263 views
Also, when the next release has supports for structs, would it be easier or possible to wrap CPlusPlus libraries?
Unfortunately, the ability to interface with C++ goes well beyond structs. If that were the only boundary, we could be doing it today with manual peek/poke calls.
You'll have to contend with compiler-specific name mangling and other ABI differences like class constructors, polymorphism, exceptions, and so on.
Here's an article on how the D language accomplishes this: Interfacing to C++. They have to make a few assumptions and concessions, and even then they already have a compatible OOP syntax that mirrors C++ directly.
Matt had made some headway with doing this manually in the earliest versions of wxEuphoria, but he eventually moved to a more maintainable shim library approach instead.
-Greg
Ah I see. Well at least with the basic Euphoria struct to be coming with the next version, it should be wrapper to wrap basic C structs and modify some existing Euphoria wrappers like SDL and SFML.
4. Re: C Libraries/Wrappers
- Posted by Bhupen1277 Nov 01, 2019
- 1205 views
Hello all,
Just wondering if there are any useful C librares that can be in wrapped for Euphoria that I haven't already done so. Also, when the next release has supports for structs, would it be easier or possible to wrap CPlusPlus libraries?
Please be satisfied with C libraries. You are doing an excellent job with them.
5. Re: C Libraries/Wrappers
- Posted by Icy_Viking Nov 01, 2019
- 1212 views
Hello all,
Just wondering if there are any useful C librares that can be in wrapped for Euphoria that I haven't already done so. Also, when the next release has supports for structs, would it be easier or possible to wrap CPlusPlus libraries?
Please be satisfied with C libraries. You are doing an excellent job with them.
Thank you Bhupen1277, I was just wondering if there was other libraries I could work on. I currently work on the ones I have already made. I also update them when a update for current library becomes available.
6. Re: C Libraries/Wrappers
- Posted by Bhupen1277 Nov 03, 2019
- 1252 views
Hello all,
Just wondering if there are any useful C librares that can be in wrapped for Euphoria that I haven't already done so. Also, when the next release has supports for structs, would it be easier or possible to wrap CPlusPlus libraries?
Please be satisfied with C libraries. You are doing an excellent job with them.
Thank you Bhupen1277, I was just wondering if there was other libraries I could work on. I currently work on the ones I have already made. I also update them when a update for current library becomes available.
eSpeak text to speech http://espeak.sourceforge.net/