I wanted to do but seems not easy. The gfxlib2 we could use the opengl render, I think, since we don’t have X11. We could treat Haiku as a Unix to minimize the works. The compiler could be the easy part, but the rtlib is not. I don’t know anything about development on Haiku yet.
Please have a look into this:
We need to create a new src/rtlib/haiku and port the code above for FreeBSD to Haiku.
This needs an Haiku experts. I’m just a hobbyist liked to hack. These low level stuffs are beyond my ability. Anyone interested?
I don’t know much more than you about those graphics libraries but I’m writing a Yab to C++ trans-piler. Would something like Yab satisfy your programming needs?
Does Yab means Yabasic? I prefer FreeBASIC because it has OOP support. FreeBASIC also compiles into a standalone binary. Yabasic seems to be interpreted even though it was said that you could bind the interpreter into the script to create an executable.
Native executables are on the way. My transpiler is an export engine to C++ syntax so you won’t need the interpreter any more for binding. However, in order to make nonstructured commands work (like “on n gosub”), the possibility of OOP is not there.
i try to use freebasic with dosbox in haiku-os,but failed.
and it can not configure and make install clean from the source.
then, is there another language for layman with haiku?
Yab is interpreted. I started to write a Yab to C++ transpiler until it looked like nobody would use it. The code it generates is not pretty. If completed, it could support all but maybe 2 or 3 commands that require the interpreter.
yab is like any basic, it is interpreted. use #!yab as the first line of code and set the file to executable. then one only needs to double-click like any other program to have it run. Look at the example code to see how well yab integrates with Haiku.