Welcome, Guest. Please login or register.

Author Topic: Java VM for AOS4  (Read 5510 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline tonywTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 553
    • Show only replies by tonyw
Java VM for AOS4
« on: November 25, 2002, 10:41:27 AM »
If and when AOS 5 ever happens, we will get intent and the Tao JVM (which runs like lightning). However, until then, would a port of a JVM be A Good Thing?

I ask because the Kaffe JVM already has an Amiga port (68k) and could be ported to AOS4 without too much trouble. I realise that Kaffe is not the be all and end all of JVMs, but then neither is Personal Java (what we'll get from Tao's JVM).

IB 2.3 has a Javascript interpreter, I believe, so is a JVM worth the trouble?

Yes, I am volunteering. I have the tools here, but little experience in Java itself, so it won't be trivial. But even if it takes some months to get it going on AOS 4, it might be worth it.

What thoughts?

tony
 

  • Guest
Re: Java VM for AOS4
« Reply #1 on: November 25, 2002, 10:52:37 AM »
I have 4 years of experience in Java Programming.   May I help you?
 

Offline Eric_Z

  • Full Member
  • ***
  • Join Date: Sep 2002
  • Posts: 154
    • Show only replies by Eric_Z
Re: Java VM for AOS4
« Reply #2 on: November 25, 2002, 11:01:51 AM »
@tonyw

The more tools whe get for OS4 the better, no.

I hope everything will  run along smothly if you decide to take on this project.
 :-)
 

Offline Kay

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 623
    • Show only replies by Kay
    • http://www.stud.ntnu.no/~kayare
Re: Java VM for AOS4
« Reply #3 on: November 25, 2002, 11:05:51 AM »
Well, I for one would welcome a proper Java implementation for AmigaOS. I use Java quite a lot, as it is the programming language I need for university work. Already I have been forced write: a simulator for a round-robin scheduler, a simulator for a cached virtual file handler, the logic core and file-IO of a monopoly game, and the server portion of a network MUD game. And every time I've needed to do something with the code, I've had to take the 20+ minute hike down to the university. Java for Amiga is something I've wanted for a long time. :-)

The Tao JVM is currently scheduled for the unspecified future, so I wouldn't worry about it making your work redundant too soon.

Kay
 

Offline gnarly

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 351
    • Show only replies by gnarly
    • http://thinkdrastic.net/
Re: Java VM for AOS4
« Reply #4 on: November 25, 2002, 11:07:11 AM »
Quote

IB 2.3 has a Javascript interpreter, I believe, so is a JVM worth the trouble?


Whats this got to do with Java? The two are completely different things :-)

Quote

Yes, I am volunteering. I have the tools here, but little experience in Java itself, so it won't be trivial. But even if it takes some months to get it going on AOS 4, it might be worth it.


I reckon you should go for it!

It might be a good idea to see if you can port the latest version of Kaffe though - i'm not sure when the AmigaOS port was last updated.
Cheers,

Olly
Think Drastic
 

Offline tonywTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 553
    • Show only replies by tonyw
Re: Java VM for AOS4
« Reply #5 on: November 25, 2002, 11:11:22 AM »
Thanks, Occie. I don't know whether I'll take on the task yet. I've had a look at the archive and there is a lot of code with machine-dependent stuff like CPU register sets, etc. Also there is a lot of (68k) assembler code in there. I think the best bet would be to get it going in 68k emulation first, then go for the PPC native version. (It's one of the JVMs in C, others are written in Java or C++). I remember getting it going many years ago on the Ami.

I'l take it on if it can do some good for the platform. But unless there is some expression of interest, I won't bother. Frankly, I'm not sure that it's worth it.

tony

Edit for gnarly:
The latest version is 1.0.7, posted in July this year, so it's fairly recent.
 

Offline trgse

  • Full Member
  • ***
  • Join Date: Jul 2002
  • Posts: 150
    • Show only replies by trgse
    • http://hem.fyristorg.com/TRG/
Re: Java VM for AOS4
« Reply #6 on: November 25, 2002, 11:34:25 AM »
I don't think the latest amiga version of Kaffe is/was
the 1.0.7 I think it was 1.0.3 (at least that was working on the amiga, and 1.0.3 was only so-so at that time).

unfortunately I think kaffe needs ixemul so currently
a OS4 native version looks slim.

and I would also suggest going for the PPC version
directly if you can (the ixemul reason) since otherwise you are still stuck with doing that later on and it won't be easier then (albeit you will have learned a lot about kaffe by then :-) )

if you are also thinking about making a awt kinda thing there is several open-source projects that deals with that kind of things.
MacOS X rulez!

Quad Mac Rulez!
 

Offline gnarly

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 351
    • Show only replies by gnarly
    • http://thinkdrastic.net/
Re: Java VM for AOS4
« Reply #7 on: November 25, 2002, 11:34:28 AM »
Just a thought, if there is a version available for Linux-PPC, might it be an idea to port that, rather than the m68k version?
Cheers,

Olly
Think Drastic
 

Offline tonywTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 553
    • Show only replies by tonyw
Re: Java VM for AOS4
« Reply #8 on: November 25, 2002, 11:54:48 AM »
1) The 1.0.7 tarball contains all the versions.
2) Yes, there is a Linux PPC version in the tarball, as well as the AmigaOS version, and all the others.

I think that it would be easier to port an AmigaOS version to AOS 4 than a Linux PPC version, even with the ixemul library problem. I think 68k emul is the way to start. Later I could take parts of the Linux PPC version for the PPC native version (if it gets that far).

But still I have to wonder, could anyone use it? How much of Kay's Uni work can she do on a limited VM? To quote Kaffe.org,
"Kaffe is not the best Java virtual machine for developing Java applications, as it lacks much in the way of documentation, compatibility, debugging/ profiling support, etc. If you are learning Java, or are looking for a complete Java development environment, you will probably be best served by using a "real" Java development environment (such as the JDK) . . ."

Kaffe probably won't enable you (or me) to access the online bank. You'll need the full metal jacket version for that.

tony
 

Offline gnarly

  • Sr. Member
  • ****
  • Join Date: Feb 2002
  • Posts: 351
    • Show only replies by gnarly
    • http://thinkdrastic.net/
Re: Java VM for AOS4
« Reply #9 on: November 25, 2002, 06:04:26 PM »
Quote

I think that it would be easier to port an AmigaOS version to AOS 4 than a Linux PPC version, even with the ixemul library problem. I think 68k emul is the way to start. Later I could take parts of the Linux PPC version for the PPC native version (if it gets that far).


It occurs to me that there really isnt a lot of point in going down this route - surely the AOS68k version should work anyway seeing as AOS4 is supposed to be binary compatible? Or is ixemul known to be AOS4 incompatible?

If you are going to do a port, surely a straight PPC one would be a much better place to start?

Quote
But still I have to wonder, could anyone use it? How much of Kay's Uni work can she do on a limited VM?


I see your point - but then maybe a limited VM is better than no VM at all?

P.S. - I dont need Java to access my online bank ;-)
Cheers,

Olly
Think Drastic
 

Offline Kay

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 623
    • Show only replies by Kay
    • http://www.stud.ntnu.no/~kayare
Re: Java VM for AOS4
« Reply #10 on: November 25, 2002, 06:37:13 PM »
> But still I have to wonder, could anyone use it? How much of Kay's Uni work can she do on a limited VM?

Make that: "How much work can HE do". "Kay" (as well as the variants "Kai" and "Kaj") is a male name in scandinavian countries (and in the "Lexx" series :-)). You're not the first to make the mistake, though, I still have nightmares after the letter from Vulcan addressed to "Ms. Kay Are Ulvestad". :nervous:

Anyway, to answer your question, I don't rightly know. How limited is the Kaffe VM? Most of the stuff I've done is command line based, so the GUI libraries wouldn't be all that essential to me. Besides, I guess that once there is a basic implementation, things can be added later on. And, as gnarly pointed out, a limited VM is better than no VM at all.

Kay
 

Offline ne_one

  • Full Member
  • ***
  • Join Date: Jul 2002
  • Posts: 207
    • Show only replies by ne_one
Re: Java VM for AOS4
« Reply #11 on: November 25, 2002, 07:15:12 PM »
@tonyw

"If and when AOS 5 ever happens, we will get intent and the Tao JVM (which runs like lightning). However, until then, would a port of a JVM be A Good Thing?"

Sounds like a pretty monumental task. I'd be inclined to contact Ben Herman's directly and solicit his feedback. I have heard that a PPC-native version of Tao's engine is already available so that would be the next logical step to consider rather than reinventing the wheel.

Are you itching to do a port of a JVM in particular or simply something worthwhile? There are definitely a lot of alternative projects. How about considering Navigator? If nothing else it would be valuable to do some profiling to assess the feasibility.
 

Offline ruben

  • Jr. Member
  • **
  • Join Date: Apr 2002
  • Posts: 71
    • Show only replies by ruben
    • http://www.kiritsugames.com
Re: Java VM for AOS4
« Reply #12 on: November 25, 2002, 09:41:14 PM »
A port of intent/DE would be a lot better, as that's the way they're going sooner or later. I agree with ne_one, you should get in touch with Hyperion or Amiga about this.
Ruben Monteiro
----------------------
Indie games blog
 

Offline Santa

  • Newbie
  • *
  • Join Date: Mar 2002
  • Posts: 29
    • Show only replies by Santa
Re: Java VM for AOS4
« Reply #13 on: November 25, 2002, 09:44:40 PM »
I wouldn't bother with Kaffe, as you can get the sourcecode for Java from Sun for the real thing. I downloaded it lately and - trust me - it's  huge.
Nevertheless, I want a port too. Being a software developper I'd have a go, but it's really a team effort.
I'm sure having an up-to-date JVM on AOS4 would open many doors for Amiga.
The Tao VM is fine for handhelds, but it's just not enough for the desktop, so porting of the J2SE would be important.
Have fun,
Santa
Amiga - because computers can be fun!
 

Offline tonywTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 553
    • Show only replies by tonyw
Re: Java VM for AOS4
« Reply #14 on: November 25, 2002, 10:13:00 PM »
@Kay: Sorry, old son, it's your avatar that looks feminine.

ne_one et al: No, I'm not looking for a big job. I know from 30+ years' programming experience how much work it would be to port the whole Sun implementation to a new platform.

However, the Kaffe implementation already exists, already runs on a 68k Amiga and might run on an AmigaOne out of the box. It might even be doable (NB: not 'easy') to make an AOS4 PPC-native version if the 68k version is a success.

And it would be a useful bootstrap for porting other, more thorough implementations to AOS4, like those written in Java.

Like most *nix ports, it relies on ixemul to work, the code itself is not changed from one platform to another. So there are a couple of challenges there, and it might give me something to do for the Kommunity.

(I can see myself in a couple of decades, in a nursing home with my old AmigaTwo laptop, shooing away the nurse because build #29158 is nearly complete)

tony