www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Programming Be with D

reply Vince Weber <Vince_member pathlink.com> writes:
Anyone heard of or gotten involved with the older BeOS or the new open-sorce
HAIKU evolution?  I'm wondering at the prospects of utilizing D with HAIKU.  I
know nothing of D as of yet, or C++ for that matter, which HAIKU
(http://haiku-os.org/learn.php) is based on.  I'm going to begin developing for
the project as my skill allows, and am looking for advice on what direction to
turn in terms of languages.  D looks promising!

Would D be an ample and adequate alternative to programming for the BeOS
classes? What are the pitfalls I may encounter?  Advantages?

For a brief tutorial on the BeOS classes, etc. look here:

http://gravity24hr.com/anon/ProgrammingtheBeOperatingSystem.pdf

Please take a look!

Thanks!

~Vince
Jul 15 2004
next sibling parent J C Calvarese <jcc7 cox.net> writes:
Vince Weber wrote:
 Anyone heard of or gotten involved with the older BeOS or the new open-sorce
 HAIKU evolution?  I'm wondering at the prospects of utilizing D with HAIKU.  I
 know nothing of D as of yet, or C++ for that matter, which HAIKU
 (http://haiku-os.org/learn.php) is based on.  I'm going to begin developing for
 the project as my skill allows, and am looking for advice on what direction to
 turn in terms of languages.  D looks promising!
 
 Would D be an ample and adequate alternative to programming for the BeOS
 classes? What are the pitfalls I may encounter?  Advantages?
 
 For a brief tutorial on the BeOS classes, etc. look here:
 
 http://gravity24hr.com/anon/ProgrammingtheBeOperatingSystem.pdf
 
 Please take a look!
 
 Thanks!
 
 ~Vince
The topic of using BeOS has been mentioned in the D community previously. I've pasted some excerpts of posts from Matt (a/k/a "me") that might be help. From http://www.digitalmars.com/drn-bin/wwwnews?D.gnu/701: I'd love to port the D gcc compiler to BeOS for intel, but unfortunately BeOS uses gcc2.95. Because the whole OS is C++ based, gcc3.x is a pointless thing to have (and no one has really attempted to get it working for the OS), and so gcc2.95 is what we're stuck at. Just to put me out of my misery, how completely impossible would a 2.95 port be? TIA Matt From http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/4745: Okay, so I've ported DLI (latest version I could source on the 'Net) to BeOS (well Zeta RC3, but same difference.) This was no mean feat as there is some funky Linux specific code in it, I also struggled slightly with compilers (as BeOS has a limited set of options.) Phobos is a static lib rather than a shared one (as this didn't want to work - getting Phobos to compile at all meant a lot of hoop jumping and the eventual abandoning of aged makefiles..) ... -- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/
Jul 15 2004
prev sibling parent "me" <memsom interalpha.co.uk> writes:
Sorry, been on vacation, so I missed this...

 Anyone heard of or gotten involved with the older BeOS or the new
open-sorce
 HAIKU evolution?  I'm wondering at the prospects of utilizing D with
HAIKU. I
 know nothing of D as of yet, or C++ for that matter, which HAIKU
 (http://haiku-os.org/learn.php) is based on.  I'm going to begin
developing for
 the project as my skill allows, and am looking for advice on what
direction to
 turn in terms of languages.  D looks promising!
I ported DLI to BeOS (Zeta) and it works. This gives you an extremely outdated D compiler. I'm not sure how useful it really is ;-) I'm waiting on the gcc3 port that Ahwaychih is working on. When that stabilises we could probably build gdc.
 Would D be an ample and adequate alternative to programming for the BeOS
 classes? What are the pitfalls I may encounter?  Advantages?
Well, C++ is not compatible with D, and so you'd not be able to use any BeOS GUI API. You'd be in the same position as the FreePascal people. The whole GUI would need to be wrapped or repackaged in C. Not a small task, believe me. I've attempted it twice before ;-) Matt
Jul 16 2004