Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Java on the Apple2 and C64

10 views
Skip to first unread message

Oliver Schmidt

unread,
Aug 7, 2007, 6:32:03 PM8/7/07
to
Hi,

I successfully ported the NanoVM (www.harbaum.org/till/nanovm/) to the
cc65 toolchain (www.cc65.org).

It's a very minimalistic Java implementation written in portable C.
The binary built with cc65 is only 16kB.

The NanoVM source is available via anonymous CVS access at
SourceForge.net (sourceforge.net/projects/nanovm/).

To allow you easy access I created a zip file
(www.jantzer-schmidt.de/nanovm-cc65.zip) containing:

1. The tool necessary to convert .class files into an .nvm file to be
loaded by the NanoVM in case you want to create your own Java
programs.

2. An Apple2 .dsk image file containing the NanoVM binary together
with some samples. Type 'EXEC <TXT File> to run one of the sample Java
programs.

3. A C64 .d64 image file containing the NanoVM binary together with
some samples. Type 'RUN:REM <NVM File> to run one of the sample Java
programs.

The source of the sample Java programs can be viewed via CVS
repository browsing
(nanovm.cvs.sourceforge.net/nanovm/nanovm/java/examples/).

Best, Oliver

Polymorph

unread,
Aug 7, 2007, 7:46:29 PM8/7/07
to


Wow! Great work Oliver. I'm going to have a play with this
tonight. :-)

cheers,
-p

Mark Smith

unread,
Aug 8, 2007, 5:23:54 AM8/8/07
to
Cool! Will grab that and have looksie!

But I have to ask ... any idea as to when Contiki 2.x for the C64 will
be ready and workable ? :-)

Mark

Glenn Holmer

unread,
Aug 8, 2007, 7:34:36 AM8/8/07
to
Mark Smith wrote:

> But I have to ask ... any idea as to when Contiki 2.x for the C64 will
> be ready and workable ? :-)

You can follow developments on the mailing list:

https://lists.sourceforge.net/lists/listinfo/contiki-developers

The prevailing opinion seems to be that it would be a better idea to fork
version 1.

--
Glenn Holmer (Q-Link: ShadowM)
http://www.lyonlabs.org/commodore/c64.html

aiia...@gmail.com

unread,
Aug 8, 2007, 5:35:32 PM8/8/07
to
On Aug 7, 3:32 pm, ol...@web.de (Oliver Schmidt) wrote:
> It's a very minimalistic Java implementation written in portable C.
> The binary built with cc65 is only 16kB.


What do you plan on doing with it?

Rich

larwe

unread,
Aug 9, 2007, 12:59:41 PM8/9/07
to
On Aug 8, 5:35 pm, aiiad...@gmail.com wrote:

> > It's a very minimalistic Java implementation written in portable C.
>

> What do you plan on doing with it?

Tsk, you've totally missed the point...

iAN CooG

unread,
Aug 9, 2007, 2:27:52 PM8/9/07
to

Ok, I missed it too, can you please show us what is the point, apart that
"it can be done"?
quicksort.nvm seems slow as if made in basic. I don't find it useful in any
manner.

--
-=[]=--- iAN CooG/HokutoForce ---=[]=-


larwe

unread,
Aug 9, 2007, 2:44:05 PM8/9/07
to
On Aug 9, 2:27 pm, "iAN CooG" <ianc...@despammed.com> wrote:

> >>> It's a very minimalistic Java implementation written in portable C.
>
> >> What do you plan on doing with it?
>
> > Tsk, you've totally missed the point...
>
> Ok, I missed it too, can you please show us what is the point, apart that
> "it can be done"?

That WAS my point :) Putting a JVM on a C64 is one of those things
that one does either as a computer science term project, or to show
that it can be done. The latter seems to apply in this case.

Leif Bloomquist

unread,
Aug 9, 2007, 3:28:48 PM8/9/07
to
"iAN CooG" <ian...@despammed.com> wrote in message
news:I0Jui.83553$%k.22...@twister2.libero.it...

> Ok, I missed it too, can you please show us what is the point, apart that
> "it can be done"?

Why do we do *anything* on the old 8-bits? Anything we do as part of this
hobby (apart from preservation) could be done much, much easier on modern
PCs.

I think the Japanese art of Chindogo captures it nicely:

"Chindogu is the Japanese art of inventing ingenious everyday gadgets that,
on the face of it, seem like an ideal solution to a particular problem.
However, Chindogu has a distinctive feature: anyone actually attempting to
use one of these inventions, would find that it causes so many new problems,
or such significant social embarrassment, that effectively it has no utility
whatsoever. Thus, Chindogu are sometimes described as 'unuseless' - that is,
they cannot be regarded as 'useless' in an absolute sense, since they do
actually solve a problem; however, in practical terms, they cannot
positively be called 'useful'."

http://en.wikipedia.org/wiki/Chindogu

-Leif

--
Leif Bloomquist
leif(at)schemafactor(dot)com
http://home.ica.net/~leifb/

"Time flies like an arrow, just not towards me."


iAN CooG

unread,
Aug 9, 2007, 5:12:23 PM8/9/07
to
Leif Bloomquist <sp...@127.0.0.600> wrote:
> "iAN CooG" <ian...@despammed.com> wrote in message
> news:I0Jui.83553$%k.22...@twister2.libero.it...
>
>> Ok, I missed it too, can you please show us what is the point, apart
>> that "it can be done"?
>
> Why do we do *anything* on the old 8-bits?

Fun, especially, and I think Oliver had lots making this porting. The part
"It can be done and I can" is a common thought for coders.
I was only asking what was the point of a NanoVM on the C64, like the one
who asked "What do you plan on doing with it?
". I was just curious about what's the future of this project and his
possibile implementations.
If it will be included in some project as Contiki 1.3 (if someone will fork
1.2 to fix/extend it) it will be also useful in some way.
Else it will go directly to the "useless tools" compo of this year. :D

--
-=[]=--- iAN CooG/HokutoForce ---=[]=-

RAM = Rarely Adequate Memory


Michael J. Mahon

unread,
Aug 9, 2007, 5:26:02 PM8/9/07
to
Leif Bloomquist wrote:
> "iAN CooG" <ian...@despammed.com> wrote in message
> news:I0Jui.83553$%k.22...@twister2.libero.it...
>
>
>>Ok, I missed it too, can you please show us what is the point, apart that
>>"it can be done"?
>
>
> Why do we do *anything* on the old 8-bits? Anything we do as part of this
> hobby (apart from preservation) could be done much, much easier on modern
> PCs.
>
> I think the Japanese art of Chindogo captures it nicely:
>
> "Chindogu is the Japanese art of inventing ingenious everyday gadgets that,
> on the face of it, seem like an ideal solution to a particular problem.
> However, Chindogu has a distinctive feature: anyone actually attempting to
> use one of these inventions, would find that it causes so many new problems,
> or such significant social embarrassment, that effectively it has no utility
> whatsoever. Thus, Chindogu are sometimes described as 'unuseless' - that is,
> they cannot be regarded as 'useless' in an absolute sense, since they do
> actually solve a problem; however, in practical terms, they cannot
> positively be called 'useful'."
>
> http://en.wikipedia.org/wiki/Chindogu

Interesting parallel to Douglas Adams' riff on the "Serius Computer
Companies" products in Hitchhiker's Guide to the Galaxy:

<sloppy paraphrase from memory>

The Serius Computer Company's products are so difficult to use and so
filled with superficial bugs that no one ever finds their underlying
major design flaws that prevent them from working at all.

</sloppy paraphrase from memory>

-michael

NadaNet file server for Apple II computers!
Home page: http://members.aol.com/MJMahon/

"The wastebasket is our most important design
tool--and it's seriously underused."

Tristan Mumford

unread,
Aug 9, 2007, 6:04:40 PM8/9/07
to
larwe wrote:

To give me horrible nightmares?

Very good work though. I never would have expected anything Java within a
stone throw (or serial cable) of an 8-bitter.
--
-----> http://members.dodo.com.au/~izabellion1/tristan/index.html <-----
===== It's not pretty, it's not great, but it is mine. =====

Eric

unread,
Aug 9, 2007, 6:10:32 PM8/9/07
to
On Aug 7, 6:32 pm, ol...@web.de (Oliver Schmidt) wrote:
> Hi,
>
> I successfully ported the NanoVM (www.harbaum.org/till/nanovm/) to the
> cc65 toolchain (www.cc65.org).

Very nice! I translated some of the NanoVM docs to English in case
anyone is interested:

http://www.EricEngler.com/NanoVM.aspx

NanoVM was originally written to target the small Asuro robot where it
lives within a small AVR ATMega8 microcontroller. It is mostly written
in portable C, allowing people to port it to other platforms.

The Apple 2 is a giant platform for this small VM, so it should be
possible to write some cool programs with it.

And the cc65 small C compiler is also very cool, so the marriage of
these 2 platforms will give us a lot of new software to play with.

Eric

Andrew J. Kroll

unread,
Aug 11, 2007, 9:44:41 AM8/11/07
to

I'll try it on my //e, my //gs and my emulator that I wrote (Appleuni),
when I get the chance/if I remember to do so this week... and I'll let
you know what explodes. XD

0 new messages