On 2010-06-08, at 11:36 PM, chevalma@iro.umontreal.ca wrote:
Sure, you can both study/translate the Scheme code to JS. I can give a short presentation on the general format of x86 code. The code is general purpose (i.e. no dependencies with other stuff and easy to adapt to any back-end).
We'd both like to see that. Perhaps you could present it during the group meeting on Friday, if you have time to prepare something by then. Otherwise, maybe next week.
Next week is better for me.
But please tell me what you think about my proposal regarding namespaces ;)
As I said the abc_xyz style has advantages over the abc.xyz style, and we can migrate from one to the other as the need arises. A quick test with v8 using this code:
var mem = { f: function (x) { return (x<2) ? 1 : mem.f(x-1)+mem.f(x-2); } };
function f(x) { return (x<2) ? 1 : f(x-1)+f(x-2); }
print(mem.f(40));
shows that the abc_xyz style is about twice as fast as the abc.xyz style. And v8 is not exactly a naive compiler...
Marc