<?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: Finally dabbling in Mata</title>
	<atom:link href="http://enoriver.net/index.php/2009/03/09/finally-dabbling-in-mata/feed/" rel="self" type="application/rss+xml" />
	<link>http://enoriver.net/index.php/2009/03/09/finally-dabbling-in-mata/</link>
	<description>computing for fun and profit</description>
	<lastBuildDate>Mon, 25 Feb 2013 21:41:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Gabi Huiber</title>
		<link>http://enoriver.net/index.php/2009/03/09/finally-dabbling-in-mata/comment-page-1/#comment-1771</link>
		<dc:creator>Gabi Huiber</dc:creator>
		<pubDate>Fri, 18 Sep 2009 14:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://enoriver.net/?p=601#comment-1771</guid>
		<description><![CDATA[Hi James. Better late than never. Thank you for the clarifications. I hope to see you around here again.]]></description>
		<content:encoded><![CDATA[<p>Hi James. Better late than never. Thank you for the clarifications. I hope to see you around here again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://enoriver.net/index.php/2009/03/09/finally-dabbling-in-mata/comment-page-1/#comment-1760</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 18 Sep 2009 05:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://enoriver.net/?p=601#comment-1760</guid>
		<description><![CDATA[A little late, really, but for the sake of posterity ... 

&gt;  Functions that return values must be declared as being of the same type as the value returned. [...] The arguments of mymulti() are two matrices of real numbers. They too need to be declared as such.

This is not strictly true. Stata is very forgiving in this respect, so that manually specifying return/argument types is not necessary. Doing so is a good idea---it documents the function and permits optimizations---but you could just as correctly write &quot;function mymulti(A, B) {&quot;.

&gt; Stata syntax is interpreted. This makes it easy to use and write code in, but slower to run than a compiled alternative would be. Mata offers such an alternative.

This is true as far as it goes, but I&#039;m a little uncomfortable with it. Bytecode isn&#039;t machine code; it&#039;s still interpreted. I don&#039;t know how extensive the optimizations Mata does at compile time, but a priori there&#039;s a fair chance that compiling to bytecode beforehand won&#039;t make much of a difference. Java, for instance, has a relatively unsophisticated compiler, leaving real optimziations for runtime---leaving the byte-compilation step until runtime really wouldn&#039;t be that big a deal.

(Python is this way. There is no explicit compilation step; the first time a file is executed it is compiled to bytecode, which is then run.)

That isn&#039;t to say byte-compiling won&#039;t make a huge difference in Mata! I haven&#039;t done enough to notice. But there&#039;s nothing inherent in byte compilation that would make it so.]]></description>
		<content:encoded><![CDATA[<p>A little late, really, but for the sake of posterity ... </p>
<p>&gt;  Functions that return values must be declared as being of the same type as the value returned. [...] The arguments of mymulti() are two matrices of real numbers. They too need to be declared as such.</p>
<p>This is not strictly true. Stata is very forgiving in this respect, so that manually specifying return/argument types is not necessary. Doing so is a good idea---it documents the function and permits optimizations---but you could just as correctly write "function mymulti(A, B) {".</p>
<p>&gt; Stata syntax is interpreted. This makes it easy to use and write code in, but slower to run than a compiled alternative would be. Mata offers such an alternative.</p>
<p>This is true as far as it goes, but I'm a little uncomfortable with it. Bytecode isn't machine code; it's still interpreted. I don't know how extensive the optimizations Mata does at compile time, but a priori there's a fair chance that compiling to bytecode beforehand won't make much of a difference. Java, for instance, has a relatively unsophisticated compiler, leaving real optimziations for runtime---leaving the byte-compilation step until runtime really wouldn't be that big a deal.</p>
<p>(Python is this way. There is no explicit compilation step; the first time a file is executed it is compiled to bytecode, which is then run.)</p>
<p>That isn't to say byte-compiling won't make a huge difference in Mata! I haven't done enough to notice. But there's nothing inherent in byte compilation that would make it so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Putting your Mata functions to work &#124; A Stata Mind</title>
		<link>http://enoriver.net/index.php/2009/03/09/finally-dabbling-in-mata/comment-page-1/#comment-367</link>
		<dc:creator>Putting your Mata functions to work &#124; A Stata Mind</dc:creator>
		<pubDate>Tue, 10 Mar 2009 18:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://enoriver.net/?p=601#comment-367</guid>
		<description><![CDATA[[...] interactive mode, a Mata function like mymulti() is called simply [...]]]></description>
		<content:encoded><![CDATA[<p>[...] interactive mode, a Mata function like mymulti() is called simply [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernd</title>
		<link>http://enoriver.net/index.php/2009/03/09/finally-dabbling-in-mata/comment-page-1/#comment-358</link>
		<dc:creator>Bernd</dc:creator>
		<pubDate>Tue, 10 Mar 2009 05:16:41 +0000</pubDate>
		<guid isPermaLink="false">http://enoriver.net/?p=601#comment-358</guid>
		<description><![CDATA[Nice post! Even I&#039;m more used to R, it&#039;s good to know how things work in Stata/Mata.]]></description>
		<content:encoded><![CDATA[<p>Nice post! Even I'm more used to R, it's good to know how things work in Stata/Mata.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
