<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000066">
On 2/20/12 3:38 AM, Robert Virding wrote:
<blockquote cite="mid:aea670d2-54a4-4dbc-9334-cd60e9c74e30@knuth"
type="cite">
<pre wrap="">
I have given some more comments in <a class="moz-txt-link-freetext" href="http://news.ycombinator.com/item?id=3610332">http://news.ycombinator.com/item?id=3610332</a> .
Suggestions are welcome.
</pre>
</blockquote>
>> Re ycombinator: <br>
<br>
>> "Lua is a nice, small, relatively clean language."<br>
<br>
I experience Lua as very magic, in the non-least surprising sense. <br>
<br>
It can be so overloaded that it can be hard to guess what a simple
bit of Lua code really does. Which is maybe not ideal for an DSL<br>
<br>
Since __metatable is on the TODO list, maybe Luerl hasn't yet run
into those waters.<br>
<br>
I'd expect challenges there because the magic stems from Lua's
formidable small- & cleanness -- or maybe Erlang turns out a
marvelous fit. Certainly a very exciting side of the experiment.<br>
<br>
>> "However, the interface between Erlang and Lua in luerl is
definitely faster so for smaller amounts of work it may be better."<br>
<br>
This is a very exciting point - and all it needs for an answer to
the 'practical use' question. I'm anxious to see how you will
eventually implement the tables.<br>
<br>
To go for speed, wouldn't you have to make a choice based on table
size? Isn't there an absolute threshold where lists and trees just
become to expensive to 'udate'? I measured structures once and the
cost of flat vs deep structures' mutations was as expected [1]. <br>
<br>
Is it known lore from when on ets are more performant than, say,
trees?<br>
<br>
The table structure in Lua has been endlessly debated on the Lua
list. Good thing you are probably striving for a true image rather
than a 'better' Lua. The temptations would be endless.<br>
<br>
However, if you were to restrict yourself to a version that e.g.
leaves metatables out, it would not really be Lua, but as a DSL
still very useful. Maybe -- even more so.<br>
<br>
Henning<br>
<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://www.eonblast.com/blog/cost-of-mutation/">http://www.eonblast.com/blog/cost-of-mutation/</a><br>
<br>
</body>
</html>