Rinzwind wrote: Mon Mar 28, 2022 4:00 am
Haiku uses a (by a quick look of it, nice) C++ framework for their OS API. PB does not play nicely with a C++ based API. It would need C bindings for everything which messes up the nice Haiku object model. Or something like dynamic object calling. Think CocoaMessage (that one sends ObjectiveC messages to objects): ugly and most times hopefully hidden in your PB helper functions. I guess it is possible, but I do not see it happening since Haiku has no marketshare and purely interesting for alternative OS lovers. Still, go check Haiku out
Yes, that is all true. That being said, I was thinking of using a Haiku Qt backend as a low difficulty initial porting effort (and it wouldn't be that much different from the Linux Qt backend?) as indeed the C++ native API will be a challenge to support.
There have been several Haiku users complaining about Haiku being "C++ only" for now when it comes to GUI programming, and the lack of a simple language to create GUI applications (there id yab basic, but it is an interpreter, not a compiler).
Although the community is not (yet?) big, that would be a good way for Purebasic to fill that gap (event if it is only Qt backend for now as its Haiku theme make it almost undiscernable from the native theme).