Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: Goplat 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)
-
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
-
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
-
and yet no .NET support for .NET programmers like me :(
other than that,, nice find
-
I've been thinking about how hard it would be to port Mono, so just wait a bit :)
-
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
-
Hmm if only TI made calcs with x86 procs, then we would have minecraft :P
-
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.
-
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?
-
Is minecraft open source? If not, then no.
-
Is minecraft open source? If not, then no.
Yeah, I forgot that.
-
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.
-
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
-
This is brilliant!
I thought Jazelle was disabled on the TI-Nspire.
-
But so was third party coding in general :P until you came along :)
-
Java on the nSpire would we excelent! :D Heh although what would the advantages be over C compiling?
-
Java on the nSpire would we excelent! :D Heh although what would the advantages be over C compiling?
I think the only advantage is if you happen to love Java :P
-
Java does have all those handy built in libraries. Good for a lot of that graphical programming.
-
Woah nice Goplat! It would be nice to have something like Java on the Nspire, since a lot of people use it.
-
Hello,
I've working on a portable cldc JVM for some months now, part time of course.
Thanks to goplat, it will support jazelle on the nspire, now I know how to do that thanks to him. This was a known unknown, and now its a known known (sorry :D).
I have no release date since it's a big project and I'm busy, but I will let you know my progress here.
FYI, I can load classes from memory or file. When classes are in memory, I will be able to do XIP, ie, classes will not use more RAM if they're available from flash. The goal is to support the TI68K platform.
There is no JAR support for the moment, that's useless. I may add it in the future.
I'm working on threads, which means the stack and bytecode execution is not far away.
-
interesting, java on the nspire! My firend actually was bullshitting me earlier this week saying he had a friend who could already send compiled .class files from comp to calc (Nspire of course) and run right after comp compiling. Using TIconnect for the nspire non-84+ version: BS then. But one day, it won't be!
-
Very nice! :D
Also, I would be interested in seeing Python and a GUI lib on TI-Nspire too! ;)
(Or better yet, Linux if we can do it!)
-
A bit unrelated, but C++ on nspire would get me to buy one! :D
-
Hello,
I've working on a portable cldc JVM for some months now, part time of course.
Thanks to goplat, it will support jazelle on the nspire, now I know how to do that thanks to him. This was a known unknown, and now its a known known (sorry :D).
I have no release date since it's a big project and I'm busy, but I will let you know my progress here.
FYI, I can load classes from memory or file. When classes are in memory, I will be able to do XIP, ie, classes will not use more RAM if they're available from flash. The goal is to support the TI68K platform.
There is no JAR support for the moment, that's useless. I may add it in the future.
I'm working on threads, which means the stack and bytecode execution is not far away.
Are you porting an existing VM or writing one from scratch?
BTW, there's a bit more to using Jazelle than what I used in the little demo program. I'll post what I know on Hackspire soon.
-
Sounds promising Squalyl! Good luck!
-
There is some info on Jazelle this thread (http://www.gossamer-threads.com/lists/maemo/developers/24295), not sure how accurate/up-to-date it is.
-
i guess there's lots of advantages Java is newer. but also java is used on webplatforms as well as executable runtimes.
-
Don't forget everyone that Java compiles to bytecode, which is cross-compatible between ARM, x86, you name it. You just need the libraries (ie openGL() to get stuff to work.
-
Python would be great on the Nspire
-
much more doable than most, since it's both Open-source and scripted, not compiled
-
Speaking of alternative languages for the TI-Nspire, I have a folder on my Nspire named "Nterpret", which is the product of a promise I made about what I would do if I won the Axe contest and bought an Nspire.
-
So what is it?
-
A teaser :)
-
Goplat: it is a write from scratch. I don't know about performances yet, the goal is to understand the internals of a jvm.
So, instead of porting one, I made one, so that I control it, and I can make it suitable to embedded objects.
it will have the ability to run plain compiled .class files, also .jar, although they are not the most interesting format I know.
-
/me wonders if Sir wrote a new BASIC interpreter or something O.O
-
What? Did I hear my name?
-
If there was a new Basic interpreter for the nspire that would finally convince me to pay up $160 for one.
-
<.<
-
<.<
What? Did I hear my name?
I think some people want to know what Nterpret is
-
It's a pun.
-
Lol. Oh well, I guess we'll know one day anyway :P (unless parents strike)
-
I think he wrote a brainfuck interpreter...
-
No, but that's a good idea now that you mention it.
-
heh, I alreadyy think I know what you made. Either a C# or a Java interpriter. PLEASE BE A C# INTERPRITER!
-
Knowing he likes C# I wouldn't be surprised if that was the case, assuming such thing is possible on the Nspire.
-
It should be.... I hope... please?
-
C++ would be great to have(at least for me)
*ruler wonders if he has no interpreter
-
C is already possible for the nspire, isnt that enough? :P
-
Note: we should probably keep this topic related to Java, though. Maybe have a new topic for other language ideas? (I think there was one already, actually).
-
C is possible? How do you use it on the calc?
(Sorry if this is a stupid question)
-
err, there is a topic for that... anyone have a link?
-
You might want to check the C sub-forum on the forums as it has some info on how to get started with C programming for the TI-Nspire. Hopefully that helps.
-
I'm wondering if anyone is thinking about doing this...
Necropost! :P
-
renatose, I don't think anyone wants to invest the time necessary to get it to work. Jazelle is a good start, but it's nowhere near a functioning JVM and most of the hard stuff would still have to be written.
-
Couldn't something like Khavi be done for the Nspire or is Khavi specifically designed with SH3/4 processors in mind?
-
Khavi is specifically for SH3/SH4 processors, although there's no reason you couldn't do something like it for ARM. However, Jazelle would be slightly faster because it has hardware support for opcode interpretation, which Khavi has to do manually.
-
ok... cuz it'd be great to have all the .jar apps for J2ME working on the nspire.
-
Ah ok. Well it looks like it would be a lot of work definitively. just Khavi has been worked on for half a year, I think, and from the progress I saw (publicly), it didn't seem to be close to have reached a fully functional state yet.