News for hackers. Stuff that matters.
Re:Why don't they implement Python and Ruby on the web brows... by nupark2 on Friday December 16, 2011 @03:59PM (#3362295)
Your concerns seem ill-founded given that these are solved problems. There are working implementations of low-barrier cross-language compatibility, today, for both the JVM and the CLR.

Here's one example; Rhino provides pretty seamless bridging from JavaScript to Java:

https://developer.mozilla.org/en/Scripting_Java

I've used it to run user-supplied JS inside the JVM.

PHP is pretty easy too:

http://quercus.caucho.com/quercus-3.1/doc/quercus.xtp#JavaPH...

Scala is even more lightweight here:

http://www.codecommit.com/blog/java/interop-between-java-and...

Bear in mind that these are all for the JVM, which wasn't even designed with the intention of being a general-purpose multi-language VM.

Re:Why don't they implement Python and Ruby on the web brows... by MatthewPhillips on Friday December 16, 2011 @04:12PM (#3362349)
> I've used it to run user-supplied JS inside the JVM.

Have you used Java libraries in JS or vice-versa? That's the problem the parent is referring to.

Re:Why don't they implement Python and Ruby on the web brows... by nupark2 on Friday December 16, 2011 @04:23PM (#3362396)
Both directions. There are impedance mismatches, of course, but it's nothing like the doomsday scenario he's claiming.
Re:Why don't they implement Python and Ruby on the web brows... by MatthewPhillips on Friday December 16, 2011 @04:10PM (#3362342)
I can't speak to the JVM, but I know for a fact that some CLR languages have incompatibilities (C# and F# specifically).
Re:Why don't they implement Python and Ruby on the web brows... by maratd on Friday December 16, 2011 @04:39PM (#3362442)
> Your concerns seem ill-founded given that these are solved problems.

Then solve the problem I put before you.

It's an easy one. I want to pass a modified Date object with stored procedures that modify the value based on geolocation. I want to pass it from a Javascript function to PHP/Java/whatever. Make it work. Please.

Re:Why don't they implement Python and Ruby on the web brows... by nupark2 on Friday December 16, 2011 @05:13PM (#3362580)
First of all, it's difficult to engage with your productively, as you're particularly confrontational.

That said, if you give me some example code, I'll demonstrate its use in a JavaScript/Java hybrid implementation when I have some spare moments.