Hacker News new | ask | show | jobs
by felipemnoa 2177 days ago
Since we are sharing: I've spent the last couple of years, on and off, building a physics engine from scratch. Pretty hard considering I'm not a mechanical engineer. Lots of fun though.
1 comments

Excellent! You should do a "Show HN," when you are done.

What language are you using? What is your destination platform?

UPDATE: I just looked at your HN handle. Questions answered. Good show!

>>What language are you using?

Java

>>What is your destination platform?

Mac, Windows, iPhone, Android

I have not run Java on iPhone (that I know of). Do you know if it will pass the App Store review?
I'm first transcoding the Java code into Objective-C code with a Java to Objective-C transcoder that I wrote for fun. Google has their own Java To Objective-C transcoder, though I've never used it.
Cool. I wrote a Pascal-to-C++ transcriber in the late 1980s. It was mostly done with RegEx, on a command line.

What a nightmare.

You have cool hobbies.

Awesome! Thanks.
I think Apple removed their restrictions on programming languages long ago. If you can get it to run on the platform, you can use it, AFAIK.
No. Apple doesn't natively support Java on iOS, but there is an app called Pico[0], that supposedly acts like a Java IDE.

It doesn't seem to be a particularly popular program, but it's the only one I've seen that does it.

I don't know if this[1] ever bore fruit.

The transcoder Java->ObjC isn't a bad idea. The languages have a lot of similarities.

[0] https://apps.apple.com/in/app/pico-compiler-java-compiler-jd...

[1] https://www.infoworld.com/article/3407781/a-plan-to-bring-ja...

Enough that Apple offered Cocoa bindings in it for a while!