May 18, 2007 Re: Deadlock presentation outcome | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tom S | On 5/17/07, Tom S <h3r3tic@remove.mat.uni.torun.pl> wrote: > That's a valid point, but by heavy I also meant that it's slower than Lua. > Lua itself isn't very pretty, but I've recently stumbled across this: > http://metalua.luaforge.net/ and it seems really interesting. And Lua[1] can be even faster, if you use LuaJIT[2] instead. I believe one could use Psyco[3] for Python, which is also a JIT compiler. What are your issues with the Lua syntax? There are patches[4] to make it more C-ish, as in adding /* */ and // style comments, and C operators instead of "and", "or", etc. But then you can no longer call it Lua. I doubt you would be able to call Metalua-ized code Lua either :-) [1] http://lua.org/ [2] http://luajit.luaforge.net/ [3] http://psyco.sourceforge.net/ [4] http://lua-users.org/wiki/LuaPowerPatches -- Anders |
May 18, 2007 Re: Deadlock presentation outcome | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anders Bergh | Anders Bergh wrote: > What are your issues with the Lua syntax? Not enough curly braces, array indices starting from 1, same syntax for slot creation as for slot updates, also the fact that slots are global by default, are the first things that come to my head :> Anyway, thanks for the links :) -- Tomasz Stachowiak http://h3.team0xf.com/ h3/h3r3tic on #D freenode |
May 19, 2007 Re: Deadlock presentation outcome | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tom S | "Tom S" <h3r3tic@remove.mat.uni.torun.pl> wrote in message news:f2knpe$r2$1@digitalmars.com... > Anders Bergh wrote: >> What are your issues with the Lua syntax? > > Not enough curly braces, array indices starting from 1, same syntax for slot creation as for slot updates, also the fact that slots are global by default, are the first things that come to my head :> > > Anyway, thanks for the links :) Try MiniD ;) Curly braces, arrays starting from 0 (and a separate array type at that), and no accidental setting of globals unless you really manage to eff something up. (but slot creation and update are still the same, for tables at least.) |
May 19, 2007 Re: Deadlock presentation outcome | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | "Bill Baxter" <dnewsgroup@billbaxter.com> wrote in message news:f2b1i8$2hbn$1@digitalmars.com... > If you don't like the syntax, well that's another issue. I go back and forth between D and Python (and C++) a lot and don't find it to be too much of a problem. I do tend to forget to type semi-colons for a while when I switch back to D, though. I also switch between Python and D, but I have the problem that when I switch back to Python I forget : and puts ; all over the place :) |
Copyright © 1999-2021 by the D Language Foundation