Author Topic: Java on the TI-Nspire?  (Read 33882 times)

0 Members and 1 Guest are viewing this topic.

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Java on the TI-Nspire?
« on: January 16, 2011, 05:55:59 pm »
I've discovered that the TI-Nspire's CPU supports a feature called Jazelle which allows Java code to be partially interpreted by hardware, making it significantly faster than it would be with a plain interpreter. Obviously, the 90MB Java runtime environment is never going to fit on the Nspire, but I wonder if it might be practical to port something like J2ME. It seems a shame to let that hardware go to waste ;)

Here's a little test program, that uses Jazelle to calculate 2+2 (impressive, huh? ;D)
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Java on the TI-Nspire?
« Reply #1 on: January 16, 2011, 06:05:46 pm »
This looks pretty interesting!

Now that I kinda know Java in preparation for AP Computer Science, I guess I would be interested in trying this! :)

Great find, Goplat! :D


Offline bsl

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 157
  • Rating: +14/-0
    • View Profile
Re: Java on the TI-Nspire?
« Reply #2 on: January 16, 2011, 08:20:09 pm »
Nice find Goplat !!!!
I was looking into that possibility a year ago before Ndless came out.
I though I read in the ARM docs somewhere that Jazelle was superceded with something else -
that could run byte code from other interpreted languages - its been a while
I have to go over the documentation again.
EDIT: Jazelle's successor : ThumbEE
« Last Edit: January 16, 2011, 08:43:52 pm by bsl »

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: Java on the TI-Nspire?
« Reply #3 on: January 16, 2011, 10:05:20 pm »
and yet no .NET support for .NET programmers like me :(

other than that,, nice find

SirCmpwn

  • Guest
Re: Java on the TI-Nspire?
« Reply #4 on: January 16, 2011, 10:23:31 pm »
I've been thinking about how hard it would be to port Mono, so just wait a bit :)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Java on the TI-Nspire?
« Reply #5 on: January 16, 2011, 11:30:12 pm »
Well, about the JRE size issue, there is an SD host on the bottom dock port, so we might get another 32 GB added to that :w00t:

Unfortunately, this doesn't mean minecraft :P
« Last Edit: January 16, 2011, 11:30:27 pm by willrandship »

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Java on the TI-Nspire?
« Reply #6 on: January 17, 2011, 01:26:17 am »
Hmm if only TI made calcs with x86 procs, then we would have minecraft :P

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Java on the TI-Nspire?
« Reply #7 on: January 17, 2011, 08:51:52 am »
A minecraft clone could be doable using a raycaster, but the maps would have to be quite small.
Also, I dont think the architecture of the processor matters-Java was designed so it could be ported to (almost) any system.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Java on the TI-Nspire?
« Reply #8 on: January 17, 2011, 08:54:54 am »
A minecraft clone could be doable using a raycaster, but the maps would have to be quite small.
Also, I dont think the architecture of the processor matters-Java was designed so it could be ported to (almost) any system.

And there is already a nice raycaster, right? Oh wait, it's not Java. But I think Mark (creator of ndoom) used premade code for doom, so premade code of MineCraft would be possible?

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Java on the TI-Nspire?
« Reply #9 on: January 17, 2011, 09:08:26 am »
Is minecraft open source? If not, then no.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Java on the TI-Nspire?
« Reply #10 on: January 17, 2011, 09:09:14 am »
Is minecraft open source? If not, then no.

Yeah, I forgot that.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: Java on the TI-Nspire?
« Reply #11 on: January 17, 2011, 09:37:08 am »
No,  I meant doing it from scratch, as the PC version takes up waaaaaaaaay too much memory to fit on the nspire. I got an out of memory error once on a computer with 2GB ram and nothing else running.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Java on the TI-Nspire?
« Reply #12 on: January 17, 2011, 12:30:18 pm »
A simple version of Java? That'd be really awesome!

Plus we don't have to worry about networking or any of that stuff, so you could get the JRE nice and small :D




Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Java on the TI-Nspire?
« Reply #13 on: January 17, 2011, 02:46:06 pm »
This is brilliant!
I thought Jazelle was disabled on the TI-Nspire.
Ndless.me with the finest TI-Nspire programs

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Java on the TI-Nspire?
« Reply #14 on: January 17, 2011, 03:10:48 pm »
But so was third party coding in general :P until you came along :)