Rasberry Pi stuff...

I dipped in to the Raspberry Pi forums to assist in a thread asking whether the device will support Java (thread here). tldr; I chimed in with my experiences of Java on ARM, concluding that it’s a PITA but could conceivably be solved if RPi and Oracle come to a licensing agreement with their embedded JRE6, which is first-class. Unfortunately I got flamed a bit and accused of being insulting/a troll/dick etc. I probably am an arrogant opinionated dick and I bet my posts look like it, but I think the point still stands: getting the Oracle JRE on there would be such a coup. As it is, looks like RPi is going to be stuck with Zero which is s-l-o-o-o-o-w and useless for anything, well, useful.

Wonder if we could somehow petition Oracle about releasing a license for the JRE on RPi?

Cas :slight_smile:

Hi

svartalf insulted you, he considers that as he is unable to write efficient code in Java, everybody is in the same case :frowning:

Do you speak about JavaSE For Embedded? Yes it is an excellent option but we might have to tinker OpenJDK if Oracle does not change the licensing of its JRE.

Yes, J2SE Embedded. OpenJDK already runs on the RPi but the problem is the performance is back where Java was in 1995. The Oracle one is as fast as the desktop more or less - quite amazing.

Cas :slight_smile:

I asked someone, who is a part of various teaching groups, specifically about Java on the Raspberry Pi. They said they indirectly knew the guy behind it, and that he wasn’t very interested in using Java, and had far more focus on other languages, such as Python.

But this was about 6 months ago.

If they are insults, or attacks, then I think both of you are pretty poor at them. Mostly I think the argument you got into is a storm in a tea cup. Svartalf is partly right, Java isn’t generally suitable for real-time systems. However he also far too extreme with his response.

The issue is that many lecturers are not interested in teaching pragmatic programming, which will get you by, or help your build good software. They want to teach programming principles, and computer science concepts.

For example when I was at university, I was taught concurrency programming using Occam-Pi. We were taught how to make highly concurrent programs, which spawned thousands of processes, but it turned out the VM we used was entirely single-threaded. All of the concurrency was fake (which was never mentioned until I asked).

One part I will pick up on, one of his examples is that Java couldn’t be used for a trading system, this is simply untrue. I used to work at a bank, on a trading system, during my placement year at uni, and even sat next to a guy who built an algorithmic trading system in Java. I know several people who work at various banks, some via uni, some through work, who use Java. Java is used heavily through out the finance industry, including parts of trading systems. They are also much more then just processing orders; there is a huge wealth of other systems tied in that they rely on. Many high-end trading systems supply Java bindings, such as most Fidessa products.

Indeed, I know Java is the weapon of choice for hi-freq trading systems. It’s even pretty useful in soft-realtime systems if you have a RT spec JVM. I wasn’t even trying to insult the guy, I just didn’t really understand why he was coming into a thread about Java to diss the damned thing. Classic troll behaviour and just muddying the waters.

But anyway: I did think that Java was actually a great choice of teaching aid, as it teaches a lot of great principles about programming without getting bogged down in compiler switches and dlls and makefiles, will get people jobs at the end of it, when it’s implemented properly it’s proper fast, and it’s a great language too. Ideal, in fact, for the RPi.

Cas :slight_smile:

If the Pi can run Python at anything close to acceptable speed, it can certainly handle a JVM. The org behind it isn’t interested in the Java language as an education target, and I can’t entirely disagree since you’re not going to be running Eclipse on the thing after all (or want to if you could). Requiring a more powerful host to tether to for dev would defeat the purpose of the machine as a standalone platform. Personally I think squeak would be more appropriate as a learning platform but it does have far less practical application than python.

The AllBinary Platform will run on Raspberry Pi using the following:

  • Native using Avian when you want native to keep the obvious Java haters away
  • OpenJDK when portability is preferred
  • Davilk when Android is installed

Problem solved for me.

I am not concerned about the performance of my 2d games or 3d games. As I already get 60 fps on even slower hardware.

If the Raspberry Pi did run Java, then I think they would also much more interested in tools like BlueJ or Greenfoot, then using ‘proper’ Java. It would be much easier for students to get to grips with.

That’s the last staw tberthel! Ignored!

Java hatred is pretty common especially among linux, C++ and game programmers -.-. I wish there would be a cure for this irrational behavior. It is like talking to apple disciples or windows haters. I hope Android and Minecraft help.
The not so serious java hate thread at the forum I primarily visit shows some java hatred you may encounter when trying to discuss with such a breed http://zfx.info/viewtopic.php?f=9&t=1240 (in German, but some “Java-Meme”-pics in english).

Android phones with minimal specs can run Java code with good performance. Don’t know any techincal aspect of Dalvik or don’t even have time to study that but it’s open source and run with ease.

Haters gonna hate, doesn’t cost me any sleep. You should see the way the python community treats Java. But as I said before, I don’t think it’s Java hatred so much as wanting to use a practical language that is also self-hosted on the device. You could run Java on the device, but not any practical IDE, and no one really wants to write it in vim or even jedit.

Relax and enjoy, it’s not a zero-sum game. :slight_smile:

I read the same kind of things in France (and I studied German ten years, I’m gonna read that).

Not sure why (or how!) you’d be running anything like Eclipse on the device… but the commandline and any normal reasonable editor would work on it just fine. I suspect even an IDE could be coaxed into running on it with a little trimming.

Still, I feel a little embarrassed for having risen to a troll now and look like a fool. I gave up Java evangelism a few years ago, not sure why I suddenly re-ignited it again over there briefly.

Cas :slight_smile:

does it need to be pre-installed? can’t you get a Java SE Embedded licence yourself and include it with an app that you distribute?

a portable puppygames console could be cool (a RPi pre-installed with all the puppygames on it, like a little arcade machine) :slight_smile:

hehe yeah don’t take it too seriously we have a “Jammer-Thread” with 79 pages and I think almost every post is about C++ problems :D. I think if Java would be popular for game programming there would be much less shattered hobbyist dreams and wasted debugging time :D.

That’d be nifty but it then rather depends on the OpenGL drivers… and the RPi is too short on RAM for our games without some fairly serious graphical mods too. I look forward to seeing what has become of it in about 3-4 years though when it should have approximately quadrupled in capability and remain the same price :slight_smile: (According to Moore’s law anyway, haha)

Cas :slight_smile:

http://www.indiegogo.com/AllBinary-Game-Console-1

I would be happy to work with him to make it happen, but it seems little interest is around for something like that. I will do it anyways just to have my own game console for 25$.

We should rather make some reverse engineering on Raspberry Pi and ship our own devices with JavaSE 6 For Embedded (if we succeed in convincing Oracle).

I suspect that when Jigsaw is done it will happen, but that could be 2-5 years down the road. So, I think that you won’t even need to convince them after Jigsaw, but you may need to wait 5 years.