on 6/26/03 7:55 AM David N. Welton wrote:

> Hi guys, I saw this:
> 
> http://www.jcp.org/en/jsr/detail?id=223
> 
>         The specification may include a Java API that can be used,
>         possibly through JNI, by an scripting language engine to
>         access the desired Java objects.
> 
> Can anyone give us a more concrete description of what this is really
> about?

>From where I stand, it looks like the JSP folks changed gears in their
marketing engine. Now they want to make it easy to move millions of PHP
folks into the J2EE.

> It looks interesting, because... hey, who wouldn't want to associate
> with a million dollar marketing machine:-)

Yeah, that's exactly how they are going fishing for new market
opportunities, so you wait for them instead of doing your own stuff and
you get locked into their politics.

I heard rumors that PHP5 might be (partially) compiled into bytecode,
with JNI hooks to existing php libraries, or, on the other hand, use JNI
hooks to access the servlet API exposed objects.

btw, our good old Sam Ruby showed it's already possible both hooking
from java to php or from php to java. Code is already into PHP and there
was a time where you could write an XSP page for Cocoon using PHP as a
scripting language (but nobody cared and the code died)

At the end, I will not be surprised if this turns out to be yet another
JSP-like political compromise between vendors, with no technological
value associated to it.

[note: I was part of the JSP JSR and asked to be removed exactly because
I couldn't stand their political-driven design attitude.]

Sorry to sound cynical or rain on the party, but I lost hope in the JCP
(or all committee-driven design, for that matter) a long time ago and
it's simply getting worse.

My point is: you can hook to java *right* now, if you care (look at
Sam's code in PHP if you want to see how). JNI is there and it's all you
need.

It is true that a *common* native abstraction for hooking into
scriptable java objects would make it much easier to hook different
scripting languages to the java platform (today, you have to do
everything by hand for every language you hook), but then again, it's
nothing that is not already possible.

Hope this helps.

-- 
Stefano.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to