<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A Language-Agnostic Java?</title>
	<atom:link href="http://benramsey.com/archives/a-language-agnostic-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://benramsey.com/archives/a-language-agnostic-java/</link>
	<description>PHP and Other Techno-babble</description>
	<lastBuildDate>Wed, 04 Aug 2010 14:29:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ben Ramsey</title>
		<link>http://benramsey.com/archives/a-language-agnostic-java/comment-page-1/#comment-224</link>
		<dc:creator>Ben Ramsey</dc:creator>
		<pubDate>Fri, 07 Jan 2005 16:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.benramsey.com/2004/12/21/a-language-agnostic-java/#comment-224</guid>
		<description>Java is much like C++. It gets compiled to bytecode and executed the same way. PHP is much different. It is an &lt;a href=&quot;http://en.wikipedia.org/wiki/Interpreted_language&quot;&gt;interpreted language&lt;/a&gt; (like Perl, Python, Ruby, etc.) and only gets compiled at run-time by the interpreter.

Running any of these languages through a single VM means writing an interpreter that converts the language (PHP, Python, etc.) into either the VM&#039;s assembly code or &lt;a href=&quot;http://en.wikipedia.org/wiki/Intermediate_code_generation&quot;&gt;intermediate code&lt;/a&gt; -- in either case it&#039;s something that the VM can natively understand. Then, the VM compiles that to bytecode either for later execution or immediate execution.

So, in a sense, the answer to your question is &quot;yes.&quot;</description>
		<content:encoded><![CDATA[<p>Java is much like C++. It gets compiled to bytecode and executed the same way. PHP is much different. It is an <a href="http://en.wikipedia.org/wiki/Interpreted_language">interpreted language</a> (like Perl, Python, Ruby, etc.) and only gets compiled at run-time by the interpreter.</p>
<p>Running any of these languages through a single VM means writing an interpreter that converts the language (PHP, Python, etc.) into either the VM&#8217;s assembly code or <a href="http://en.wikipedia.org/wiki/Intermediate_code_generation">intermediate code</a>&#8212;in either case it&#8217;s something that the VM can natively understand. Then, the VM compiles that to bytecode either for later execution or immediate execution.</p>
<p>So, in a sense, the answer to your question is &#8220;yes.&#8221; </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Lively</title>
		<link>http://benramsey.com/archives/a-language-agnostic-java/comment-page-1/#comment-168</link>
		<dc:creator>Mike Lively</dc:creator>
		<pubDate>Wed, 29 Dec 2004 16:30:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.benramsey.com/2004/12/21/a-language-agnostic-java/#comment-168</guid>
		<description>Bear with me, I am not too familiar with java, I grew up with C++. From what I understand of the language is that the written code gets compiled into bytcodes...alot like PHP I guess. So what I am asking is would you beable to compile PHP or Python or any of these other languages into the bytecode? I&#039;m guessing not  based on what I have read so far. Like I said, not too familiar with the scene just looking to becmoe that way.</description>
		<content:encoded><![CDATA[<p>Bear with me, I am not too familiar with java, I grew up with C++. From what I understand of the language is that the written code gets compiled into bytcodes&#8230;alot like PHP I guess. So what I am asking is would you beable to compile PHP or Python or any of these other languages into the bytecode? I&#8217;m guessing not  based on what I have read so far. Like I said, not too familiar with the scene just looking to becmoe that way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Reilly</title>
		<link>http://benramsey.com/archives/a-language-agnostic-java/comment-page-1/#comment-166</link>
		<dc:creator>Patrick Reilly</dc:creator>
		<pubDate>Thu, 23 Dec 2004 13:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.benramsey.com/2004/12/21/a-language-agnostic-java/#comment-166</guid>
		<description>PHP can integrate with Java, which means that it can be used as the scripting language for activating Java logic, just as much as JSP can. Unlike JSP, however, PHP also integrates with other component models, such as Microsoft&#039;s COM, and adding support for new object models is extremely easy. This means PHP&#039;s extensibility is infinite. JSP, on the other hand, is completely dependent on Java.

It would be really nice to see this work in both directions... go Sun!</description>
		<content:encoded><![CDATA[<p>PHP can integrate with Java, which means that it can be used as the scripting language for activating Java logic, just as much as JSP can. Unlike JSP, however, PHP also integrates with other component models, such as Microsoft&#8217;s COM, and adding support for new object models is extremely easy. This means PHP&#8217;s extensibility is infinite. JSP, on the other hand, is completely dependent on Java.</p>
<p>It would be really nice to see this work in both directions&#8230; go Sun!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Ramsey</title>
		<link>http://benramsey.com/archives/a-language-agnostic-java/comment-page-1/#comment-163</link>
		<dc:creator>Ben Ramsey</dc:creator>
		<pubDate>Wed, 22 Dec 2004 18:56:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.benramsey.com/2004/12/21/a-language-agnostic-java/#comment-163</guid>
		<description>Matthew&#039;s right. You would still need the interpreter/compiler for the language installed. That compiler would process the language so that it could run through the VM. I suppose, however, that the popular languages would come packaged with the installer for the VM, giving users the option to install those languages they want to use or just to install all of them by default.</description>
		<content:encoded><![CDATA[<p>Matthew&#8217;s right. You would still need the interpreter/compiler for the language installed. That compiler would process the language so that it could run through the VM. I suppose, however, that the popular languages would come packaged with the installer for the VM, giving users the option to install those languages they want to use or just to install all of them by default.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Weier O'Phinney</title>
		<link>http://benramsey.com/archives/a-language-agnostic-java/comment-page-1/#comment-162</link>
		<dc:creator>Matthew Weier O'Phinney</dc:creator>
		<pubDate>Wed, 22 Dec 2004 12:48:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.benramsey.com/2004/12/21/a-language-agnostic-java/#comment-162</guid>
		<description>Lewis -- You would still need each language installed on the machine/server in question. The idea is more that each language would be able to utilize constructs from the other languages present in the virtual machine. Thus, if perl and PHP are both present, PHP would have access to perl objects and vice versa. 

Another benefit of the system is that the developer would target the virtual machine, not the OS; this would make the application portable cross-platform without needing to do anything special in the language itself.</description>
		<content:encoded><![CDATA[<p>Lewis&#8212;You would still need each language installed on the machine/server in question. The idea is more that each language would be able to utilize constructs from the other languages present in the virtual machine. Thus, if perl and PHP are both present, PHP would have access to perl objects and vice versa. </p>
<p>Another benefit of the system is that the developer would target the virtual machine, not the OS; this would make the application portable cross-platform without needing to do anything special in the language itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lewis Franklin</title>
		<link>http://benramsey.com/archives/a-language-agnostic-java/comment-page-1/#comment-160</link>
		<dc:creator>Lewis Franklin</dc:creator>
		<pubDate>Wed, 22 Dec 2004 06:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.benramsey.com/2004/12/21/a-language-agnostic-java/#comment-160</guid>
		<description>So would the idea be that code written in PHP/Python/Perl be able to run on any computer that has JVM installed? This would be nice for WIndows users since they are more likely to have Java installed than any other scripting language...</description>
		<content:encoded><![CDATA[<p>So would the idea be that code written in PHP/Python/Perl be able to run on any computer that has JVM installed? This would be nice for WIndows users since they are more likely to have Java installed than any other scripting language&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
