Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 81. Re: Lightweight syntax: a dissident view (score: 18)
- Author: Mark Hamburg <mark@...>
- Date: Sat, 27 Nov 2010 10:16:51 -0800
- Or to put a more focused point on this discussion but stepping away from syntactic specificities: Should functions (or some functions) be as well supported syntactically as tables? What would be gain
- 82. Re: Lightweight syntax: a dissident view (score: 18)
- Author: steve donovan <steve.j.donovan@...>
- Date: Sat, 27 Nov 2010 15:54:13 +0200
- In particular, lexical macros are more restricted than actual syntax patches, due to the limited look-ahead. So \x(expr) and lambda (x)(expr) are both straightforward, because it's easy to find out w
- 83. Re: Lightweight syntax: a dissident view (score: 297)
- Author: Luis Carvalho <lexcarvalho@...>
- Date: Sat, 27 Nov 2010 07:35:23 -0500
- <snip> I'm also very fond of this notation but, for an argument similar to yours, would prefer \x,y,z.(x*y+z) --> function (x, y, z) return x * y + z end since it's more formal in a different contex
- 84. Re: Re: Re: Lightweight syntax: a dissident view (score: 297)
- Author: Luis Carvalho <lexcarvalho@...>
- Date: Wed, 24 Nov 2010 11:07:51 -0500
- Second option; actually, what I was proposing was more like lambda `(' [par] `)' exp but to avoid the ambiguity we could add a final token lambda `(' [parlist] `)' explist end albeit with a marginal
- 85. Re: Re: Re: Lightweight syntax: a dissident view (score: 26)
- Author: Axel Kittenberger <axkibe@...>
- Date: Wed, 24 Nov 2010 13:29:04 +0100
- hmm also some uses not claerly defined, not nice: myfunc(lambda(x) x, x) is this: myfunc(function(x) return x, x end) or myfunc(function(x) return x end, x) ?
- 86. Re: Re: Re: Lightweight syntax: a dissident view (score: 297)
- Author: Luis Carvalho <lexcarvalho@...>
- Date: Wed, 24 Nov 2010 07:11:43 -0500
- <snip> <snip> Sorry for jumping in late and following the discussion closely, but what about not allowing statements and having something like below? lambda `(' [parlist] `)' explist I think this wou
- 87. Re: Userdata finalization order (score: 297)
- Author: Luis Carvalho <lexcarvalho@...>
- Date: Tue, 19 Oct 2010 18:26:25 -0400
- <snip> I think you should consider following Wesley and others's advice. Here's my advice, also along the lines (sorry for the pun) of what was proposed: - Use an environment for your plot objects an
- 88. Re: Load large amount of data fast (score: 297)
- Author: Luis Carvalho <lexcarvalho@...>
- Date: Sun, 17 Oct 2010 10:35:12 -0400
- Ok, you'd get a constant table overflow. Simple modification: local chunker = function (s) return assert(loadstring("return " .. s))() end local load_huge_table_list = function (filename) local resu
- 89. Re: Load large amount of data fast (score: 18)
- Author: Alexander Gladysh <agladysh@...>
- Date: Sun, 17 Oct 2010 04:26:08 +0400
- There is a limit of constants per chunk, you'll hit it. Alexander.
- 90. Re: Load large amount of data fast (score: 297)
- Author: Luis Carvalho <lexcarvalho@...>
- Date: Sat, 16 Oct 2010 19:47:17 -0400
- <snip> I'm almost sure I'm missing something here, but since each line is a table, is there anything wrong with this? local load_huge_table_list = function (filename) local f = assert(io.open(filena
- 91. Re: again: problem with weak table and finalized objects (score: 297)
- Author: Luis Carvalho <lexcarvalho@...>
- Date: Sun, 29 Aug 2010 19:23:49 -0400
- <snip> <snip> My mistake; I meant: for window, plot in pairs(weaktable) do if not window.isdone() then -- do what you want to do with window end end Cheers, Luis -- Computers are useless. They
- 92. Re: again: problem with weak table and finalized objects (score: 26)
- Author: Francesco Abbate <francesco.bbt@...>
- Date: Sun, 29 Aug 2010 18:44:22 +0200
- 2010/8/29 Luis Carvalho <lexcarvalho@gmail.com>: Hi Luis, I think that what you are suggesting is not correct because if the object have been finalized by Lua any access to read any flag is a potenti
- 93. Re: again: problem with weak table and finalized objects (score: 289)
- Author: Luis Carvalho <lexcarvalho@...>
- Date: Sun, 29 Aug 2010 09:39:53 -0400
- Hi Francesco, <snip> If I understand correctly your problem is not that the entries in your table are not collected when they're finalized, but that you're accessing already finalized windows. One wo
- 94. Re: existing Lua library for graphs? (score: 18)
- Author: Valerio Schiavoni <valerio.schiavoni@...>
- Date: Wed, 21 Jul 2010 13:58:06 +0200
- That would be nice..even because I also own a copy of that book (i just didn't read it yet). In the meanwhile, I've also found the luagraph project which provides some basic graph tools. http://luafo
- 95. Re: existing Lua library for graphs? (score: 18)
- Author: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 21 Jul 2010 08:53:47 -0300
- See Lua Implementations of Common Data Structures by Matthew M. Burke in Lua Programming Gems, Unfortunately, the link in the Gems page does not lead to the code: http://bluedino.net/writings/luads-
- 96. Re: 2-d Array (score: 18)
- Author: Christoph Schreiber <luky0711@...>
- Date: Sat, 1 May 2010 15:11:53 +0000 (GMT)
- Thanks, but I think I'll use the solution you used in your numlua-library (numlua.luaforge.net). It's much cleaner and much more efficient than mine :-).
- 97. Re: 2-d Array (score: 297)
- Author: Luis Carvalho <lexcarvalho@...>
- Date: Fri, 30 Apr 2010 19:38:18 -0400
- Yes. You can use the userdatum environment to cache the rows: // Warning: untested! int get(lua_State* L) // exported method { type* self = static_cast<T>(luaL_checkudata(L, index, TYPEID); lua_Integ
- 98. Re: best way to add field to userdata? (score: 297)
- Author: Luis Carvalho <lexcarvalho@...>
- Date: Thu, 22 Apr 2010 10:02:56 -0400
- <snip> <snip> You could use the userdatum environment as proxy: -- image.lua local env = debug.getfenv local u = newproxy(true) local mt = getmetatable(u) local class = { resize = function (o, x, y)
- 99. Re: Read ieee-754-2008 four-byte floating-point number from binary file? (score: 18)
- Author: Tim Channon <tc@...>
- Date: Sat, 17 Apr 2010 01:26:29 +0100
- Binary data published by RSS is literally read using struct and the result is eg. http://daedalearth.files.wordpress.com/2010/04/channel_tlt_tb_anom_v03_2_201003.png?w=480&h=360 Apart from plotting,
- 100. Re: Read ieee-754-2008 four-byte floating-point number from binary file? (score: 43)
- Author: maxxedout@...
- Date: Mon, 12 Apr 2010 00:22:31 +0000 (UTC)
- lpack looks perfect, thanks!
Search by
Namazu v2.0.21