BeBits Information Developer Central Submit Application Your Account Web Links Contact Us
BeBits
ooc language
Talkback
 Go back to the ooc language page
 Post a new Talkback comment!
Done =)
 By amoswenger - Posted on June 7, 2009 - 10:21:38   (#23181)
 Current version when comment was posted: 0.1
Yay! So now the good news: I tried again on qemu with a bigger image and 1024RAM for the VM, and I compiled boehm-gc (v7.1, last alpha) with the command:

CFLAGS="-D__BEOS__" ./configure --build=i586-pc-haiku --prefix=/boot/develop --includedir=/boot/develop/headers

Then

make && make install

And it installed fine =) Then I copied gc-7.1alpha3/.libs/libgc.a to ooc/libs/haiku/ and I managed to compile a non-trivial ooc example (in examples/oo-tests/) with:

gcc scannerTest.c io/*.c text/*.c ../../libs/haiku/libgc.a -std=c99 -o scannerTest

And then ./scannerTest runs fine and prints the expected output!

So to sum it up: the reference implementation of the compiler in Java won't run without a JRE, of course, and to that respect, you/we should follow the work of these guys: http://www.haiku-os.org/news/2008-01-03/new_java_for_haiku_team_formed

As for ooc, I have begun a second implementation of ooc in ooc itself: it won't be useable before a few months' work, but it's good news anyway.

Progress
 By amoswenger - Posted on June 7, 2009 - 08:06:23   (#23180)
 Current version when comment was posted: 0.1
So, here's a little update on the ooc on BeOS front.

Haiku (june 2nd, pre-alpha, gcc4 build) crashes too much on VirtualBox for me to do anything useful with it. It's real stable on qemu (even with kqemu) but I couldn't get it to compile boehm-gc (which is non-optional for ooc at the moment), ie. the configuration scripts works fine but blocks at the end, when "Executing default commands". I'll try again today.

I also installed Haiku to a partition from a raw image (dd if=alpha-haiku-gcc4.image of=/dev/sda6 && ./makebootabletiny /dev/sda6) and rebooted, attempting to run it natively. It blocks at the fourth icon (the disk-like icon). I'm not quite sure what's the cause of the problem yet, if I could find out how to turn on verbose output when booting, it would be cool.

I also downloaded the whole subversion trunk & buildtools, and I built the latest Haiku directly on my partition, but same problem as with the raw image (blocks on fourth icon).

So now I'm trying to figure out how to cross-compile on Linux with the freshly-built Haiku buildtools (ie. make, gcc4, etc.), but no luck there either for now (gcc complains with "execvp: file not found 'cc1'")

As always I'd appreciate any help, I'm really new to Haiku, but as you can see, I'm trying really hard ;)

Bug reported
 By amoswenger - Posted on June 4, 2009 - 04:49:26   (#23178)
 Current version when comment was posted: 0.1
This is now officially the first bug on launchpad =)

https://bugs.launchpad.net/ooc-language/+bug/383490

Re: and then?
 By amoswenger - Posted on June 4, 2009 - 04:40:19   (#23177)
 Current version when comment was posted: 0.1
And then I have downloaded the latest Haiku VMWare image overnight. While I'm really busy those days, I'll try to find some time between today and tomorrow and try to compile the tests on it (by the way, I downloaded the gcc4 build, is it the most used or are people still mostly using 2.95?)

I understand the "sounding bitter" thing, and I know there's a lot of abuse here. Anyway that turns out, I'm not disappearing and if there are no successful results with ooc on BeOS/Zeta/Haiku (mostly Haiku though), either from my efforts or from users here (I'd really appreciate it), then you can always contact me (my username is hyperlinked to my e-mail address).

I'd also like to point out that it wouldn't be very consistent for me to just "disappear" if I want to support alternative OSes like the BeOS-family/BSD-family/etc. And I'd like to remind everyone: this is an open-source project, no profit is made in any way, I just like to work on it.

and then?
 By umccullough - Posted on June 3, 2009 - 18:28:55   (#23176)
 Current version when comment was posted: 0.1
You've made an interesting leap there - because it *might* compile on BeOS, it's ok to post it on a site dedicated to distributing BeOS software...interesting.

You clearly have not ever tested it on BeOS... Excuse me for sounding bitter, but there has been a lot of abuse of bebits.com in the past where people post unrelated software here.

If a BeOS port never surfaces, I'm guessing you'll never come back to remove this.

Re: Mistaken
 By amoswenger - Posted on June 3, 2009 - 16:13:55   (#23175)
 Current version when comment was posted: 0.1
Again, this is not true.

I am sad to hear that there is no working java implementation on BeOS. But that doesn't invalidate ooc's presence on bebits at all.

Java is the language in which the first (draft) implementation of the ooc *source-to-source* compiler is written. This source-to-source compiler produces C source code, which is then compiled with gcc, along with the ooc libraries, which are all translated to C also. Thus, an application can surely be compiled on BeOS.

The presence of ooc on BeBits allows to increase its exposure to BeOS users, because I wish to maintain the ooc runtime libraries as portable as possible. A base of test users on BeOS would be great, as I have not the time/resources to test it myself: but I do answer on bug reports left on launchpad: https://bugs.launchpad.net/ooc-language including bugs related to portability. E.g. if something in the ooc sdk is particularly tied to Linux (the platform I'm primary developing on), I'd like you BeOS users to tell me, and why not, send a patch.

You have to understand that it's not spam at all. I wish to give every Operating System a chance to be a first class citizen in ooc. I see that BeOS was left behind concerning Java, and it is not something I'd like to see with ooc.

In a few weeks, when I have some free time again (exams), I will begin to re-implement the ooc compiler in the ooc language. That means that there will no longer be the need to have *at all* a Java runtime environment to compile any ooc program.

I'd like to point out again that even in the current state of things, ooc is still interesting for testing on the BeOS platform. The first phase (translation from .ooc source to .c source) needs Java but the second phase (compilation of .c source to executables/modules by gcc, for example) is perfectly possible (and since BeOS seems to be quite POSIX, there should be only few things to adjust).

If you have more questions, refer to the development website on google code, or ask it here, I'll try to answer as accurately as possible. Though, please try to be more informed and less aggressive: I understand there is much spam here on BeBits, but ooc is not. Again, I'm here for all your questions.

Mistaken
 By umccullough - Posted on June 1, 2009 - 20:39:30   (#23174)
 Current version when comment was posted: 0.1
This is basically bebits spam.

BeOS has no functioning java port available. Please don't post completely worthless non-beos/zeta/haiku software here.

Built for BeOS? GTK?
 By amoswenger - Posted on May 29, 2009 - 12:02:35   (#23171)
 Current version when comment was posted: 0.1
GTK is just an example of one library that can be used from the ooc programming language.

The current implementation of the compiler is in Java. From what I saw, there is at least Java 1.4 on BeOS, so it's probably doable. And again, the C code generated from the ooc compiler is supposedly portable, so compilable on BeOS by gcc, for example =)

For BeOS/Haiku
 By ModeenF - Posted on May 29, 2009 - 02:51:12   (#23170)
 Current version when comment was posted: 0.1
Are it built for BeOS/Haiku? We don't have GTK so what can we use?

 
BeGroovy
  Recent Downloads  -  N/A
Total Downloads  -  N/A
Total Views  -  N/A
User Ratings  -  N/A
  Class Libraries
Dev. Languages
Tool Kits
1.  BePodder - 9.80
2.  QEMU - 9.68
3.  ScummVM - 9.57
4.  Jukebox - 9.44
5.  Haiku AGP busm... - 9.35
6.  cpu_fix - 9.31
7.  vim6 - 9.31
8.  VNCServer - 9.30
9.  Beezer - 9.26
10.  HandBrake - 9.25
1.  Ati Radeon G... - 32,875
2.  BeOS 5 Perso... - 32,448
3.  Realtek RTL8... - 20,353
4.  Ensoniq Audi... - 17,690
5.  USB Joystick... - 16,552
6.  BePDF - 15,348
7.  ATI Rage 128... - 13,355
8.  S3 Trio 64 v... - 10,305
9.  VLC Media Pla... - 9,559
10.  DOSBox - 9,464
You are not logged in.
 Login

 
Unless otherwise noted, everything is copyright © 1999-2011 Haikuware. All Rights Reserved.
For more legal trivia, take a gander at our
Legal Stuff page and our Privacy Statement.