News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_SRS

Another way to get JAVA on the CPC ?

Started by SRS, 21:03, 20 October 17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SRS

After my interest in brining javagrinder to the CPC, which "slept in" last year, I found another nice one for the ... C64 (urg) ...

https://mzattera.github.io/b2fJ/

But as no one seems to use javagrinder for CPC, there seems to be not much reason to put effort into this one, aye ...

AMSDOS

Only because I haven't seen a Javagrinder for the CPC, all I could find was a Red Link on the Cross Development CPCWiki page, Fractal Coding - koch Curve, Michael Kohn - java grinder site (no Link in CPC version) & the 4th page which Google said maybe Harmful to my computer.

But my Java is practically non existant, and all my coding is done on an old PC, which is still running fine on XP. I guess if you could get the thing running Online along with Tutorial, I'd check it out.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

SRS

#2
 :)

This is the start page with instructions: https://www.mikekohn.net/micro/java_grinder.php

There are the sources / build instructions: https://github.com/mikeakohn/java_grinder

You  need cygwin for it (as cpctelera does) on Win-PC.

And to get a feeling about CPC Version: https://github.com/mikeakohn/java_grinder/tree/master/samples/cpc

Which looks like: http://www.cpcwiki.eu/forum/programming/java-grinder/msg124263/#msg124263

AMSDOS

How ironic I should post in that javagrinder thread.

I remember talking about that Quite BASIC website, though I didn't know where or when, though that's where I said it would be good if it were Online, not much different from my response above.   :-[
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

mr_lou

I am fairly certain that I am one of the biggest Java enthusiasts on this forum. At least I doubt anyone here will praise it more than me. Any language that lets me code once and run the exact same file on many platforms is awesome. Like the way my "8-bit Memoirs" project runs on both PlayStation 3 + 4 and Xbox One + standard Blu-ray players + your PC - all from the exact same disc or ISO. And how my phone apps can run on basically any phone out there (except iPhone, because Apple). And how my desktop stuff runs on both Linux, Windows and Mac, again from the exact same jar. It was awesome when we switched servers at work from Windows based to Linux based - and my small utilities still ran without problems because I'd coded them with Java.

But all that being said, I gotta admit I don't see the point in having a JVM on the CPC, apart from it being a bit fun of course.
What would have been nice for the CPC instead, was a compiler that would let me compile my Java source into a CPC executable.  :)

I actually tried starting up something along those lines once. I called it sMIDP2lib, and the idea was to be able to copy 90% of your JavaME source into a SDCC project on the CPC. There's some info about it here on the CPCwiki. http://www.cpcwiki.eu/index.php/SMIDP2lib_for_SDCC
Although most people (as usual) kept saying it couldn't be done, we actually got pretty far. I could definitely see it happening, but the interest just wasn't there, and shortly after CPCtelera was released, and then sMIDP2lib died.
Today I think it would probably be a better idea to create Java classes for CPCtelera.

funkheld

#5
--------------------------
Which looks like: http://www.cpcwiki.eu/forum/programming/java-grinder/msg124263/#msg124263
-------------------------------


the start for the cpc and a functioning program is poorly described here.


Bryce

Although Java on a CPC sounds good, I can't think of anywhere it would be useful. How about Python for the CPC, that would have uses :)

Bryce.

zhulien

JavaGrinder is certainly interesting. 


The way forward of programming on CPC?  Java?  As possible as it likely is, it is likely as inefficient as tokenized BASIC.  If JavaGrinder or a JVM was able to use CPC memory in an effective way (all of it, not a little of it) and have libraries available for most hardware, i can see something good from it.  Personally, I liked VB5/VB6 before (so have most of the crosscompiler for z80 already coded) - and reworked some of the ideas into the JavaScript compiler for z80.  JavaScript has the added benefit of being able to run in a browser, and given the right library structure and a canvas, the same logic and output can run in the browser as on a CPC.  But... I don't want a JavaScript compiler to also just see 32kb or 40kb of memory - it must see it all (I have 576kb usually, but I also am playing with Toto's 1mb and Zaxon's 4mb expansions).  Ideally a compiler on a CPC would have full support of this memory.  Perhaps classes can be compiled to a limited 16kb per class - but cross class calls could then be far calls.  If all classes are byte aligned to 256bytes - then we even can store those far calls in 16 bits - that could give us an environment to completely replace BASIC or CP/M and have full hardware support - seems not a lot of interest so far - so soldiering on is soldiering on... but slowly.  CPC also is internet enabled now - so there is no excuse to to treat the internet as part of a CPC - we also have Raspberry PI's stuck to the CPC and just awaiting to be another slave of the CPC.  The internet was actually created for CPCs right :D

Powered by SMFPacks Menu Editor Mod