lua-users home
lua-l archive

Search lua-l

This index contains 143,615 documents and 1,774,615 keywords. Last update on 2023-03-09 .

Query: [How to search]

Display: Description: Sort by:

Results:

References: [ break: 4996 ] [ n: 11587 ]

Total 1026 documents matching your query.

181. Re: I'd give my right arm for a continue statement (score: 67)
Author: David Greenspan <dgreenspan@...>
Date: Thu, 27 Jan 2011 09:35:17 -0800
182. Re: Lua 5.1 man pages (score: 67)
Author: Ico Doornekamp <lua@...>
Date: Thu, 14 Oct 2010 10:49:50 +0200
It is a quick hack that was not ment for publication, I'm not proud of it: fd_out = nil function w(...) fd_out:write(string.format(...) .. "\n") end fd = io.open("manual.html") html = fd:read("*a") f
183. Re: Problem with sieve.lua test program (score: 67)
Author: Wim Couwenberg <w.couwenberg@...>
Date: Tue, 05 Apr 2005 21:13:47 +0200
I just tried to run the sieve.lua test program (sieve of Eratosthenes via coroutines) It runs fine with N=1000 but exits prematurely on larger args. Maybe a bit OT but it can be instructive to benchm
184. RE: Extending Lua in C, was RE: External modules (score: 67)
Author: "Brownsword, Andrew" <brownsword@...>
Date: Mon, 18 Nov 2002 11:20:47 -0800
While I agree that Lua is simple and easy to modify, doing so means that you need to reapply or reimplement the modifications everytime the Lua team revs their code. With other code modules this gets
185. Extending Lua in C, was RE: External modules (score: 67)
Author: "Nick Trout" <ntrout@...>
Date: Fri, 15 Nov 2002 19:06:43 -0800
I believe Reuben Thomas suggested extending Lua using "metaprogramming" and componentising Lua quite some time ago. In addition a few have suggested componentising the garbage collection area of Lua
186. Re: a new proposal for environments (score: 66)
Author: "Juris Kalnins" <juris@...>
Date: Mon, 01 Mar 2010 10:01:16 +0200
2) Any global name <var> (that is, a variable name without a visible declaration) is changed to _ENV.<var>. This change is syntactic, meaning that _ENV refers to whatever _ENV is visible at that poi
187. command line evaluator (score: 65)
Author: Luiz Henrique de Figueiredo <lhf@...>
Date: Thu, 21 Jan 2010 08:47:17 -0200
In a long recent thread, someone mentioned possible interpretations for a line such as print a b 23 This reminded me of an experiment I did with using Lua for evaluating command lines, for which full
188. RE: Implementation of Lua and direct/context threaded code (score: 65)
Author: "Grellier, Thierry" <t-grellier@...>
Date: Mon, 29 May 2006 19:45:46 +0200
Ok I missed the thread, because searching with "direct threaded" keywords. Well 3% gain... I wasn't expecting much for the reasons you mentioned, but, but I still think this is little effort to suppo
189. Re: [FUN] CodeGolf: solve equation x^x=C (score: 64)
Author: Gé Weijers <ge@...>
Date: Wed, 26 Jun 2019 16:51:21 -0700
or just skip that entirely and s=load'p,n=...return p==n and n or s(n,(C/p+n)/2)' but probably too long still. -- -- Gé
190. Re: [FUN] CodeGolf: solve equation x^x=C (score: 64)
Author: "Soni \"They/Them\" L." <fakedme@...>
Date: Wed, 26 Jun 2019 20:41:28 -0300
Le mer. 26 juin 2019 à 22:47, Egor Skriptunoff <egor.skriptunoff@gmail.com <mailto:egor.skriptunoff@gmail.com>> a écrit : Global variable "C" contains numeric value > 15.5 The solution of math equati
191. LPEG strange code (score: 64)
Author: Domingo Alvarez Duarte <mingodad@...>
Date: Wed, 10 Jan 2018 09:32:00 +0100
Hello ! I'm trying to port lpeg 1.0.1 to another scripting language and doing so I'm going through almost all lpeg code and of course I'm making several mistakes while porting. But on one of many seg
192. Re: Running Lua from within a Window Program (score: 64)
Author: "Christian N." <cn00@...>
Date: Wed, 21 Sep 2016 12:42:37 +0200
Am 21.09.2016 um 12:15 schrieb Jerome Vuarand: C runtimes are not just a bunch of clean C functions using only stack memory. Some might expect their main wrapper to have been called to initialize som
193. Re: [ANN] Lua 5.3.1 (final) now available (score: 64)
Author: Tom N Harris <whoopdedo@...>
Date: Fri, 19 Jun 2015 17:45:18 -0400
The description isn't even strictly correct. Not only expressions are printed. "math.random();" is a statement that is printed. (Because of course it's not checking if the input is an expression but
194. Re: [ANN] Lua 5.3.1 (rc1) now available (score: 64)
Author: Tom N Harris <whoopdedo@...>
Date: Thu, 04 Jun 2015 03:43:30 -0400
I had a random thought recently about the possibility of storing single character strings entirely in a TValue. Or up to 3/7 characters depending on word size. On the other hand, you've got yet anoth
195. Re: Bug in 5.3 ipairs(), or feature? (score: 64)
Author: Tom N Harris <telliamed@...>
Date: Thu, 05 Mar 2015 02:18:28 -0500
Which also "accidentally" works if you use pairs instead. -- tom <telliamed@whoopdedo.org>
196. Re: Proposal: Trailing comma in function calls (score: 64)
Author: Tom N Harris <telliamed@...>
Date: Thu, 05 Jun 2014 00:56:37 -0400
Of course. But if the lines were reversed you'd have a problem. I'm sure everyone knows not to trust `_` as a rvalue and explicitly writes `nil`. If `_` were reserved as a placeholder name then as a
197. Re: io:lines() and \0 (score: 64)
Author: Tom N Harris <telliamed@...>
Date: Fri, 21 Feb 2014 03:06:49 -0500
That may be the case, but trying to read such an encoding will get you in trouble because the CR+NL is represent in 16-bit characters also. So a line would be terminated with the bytes (in little-end
198. Re: LuaJIT2 performance for number crunching (score: 64)
Author: Francesco Abbate <francesco.bbt@...>
Date: Thu, 24 Feb 2011 21:57:08 +0100
Hi all, I have some new very interesting results. I've implemented a pure Lua adaptive integration routine for numerical integration, the QAG routine. I've made an adaptation of the same routine impl
199. Re: Lua interpreter compiled in Javascript (score: 64)
Author: Tom N Harris <telliamed@...>
Date: Sat, 27 Nov 2010 19:56:02 -0500
http://syntensity.com/static/lua.html do local a=1 for b in function(_,c)a,c=c,c+a return c end,a,0 do print(b) if b>1000 then break end end end /bin/this.program: (error object is not a string) -- -
200. Re: [ANN] Lua 5.2.0 (work1) now available (score: 64)
Author: Tom N Harris <telliamed@...>
Date: Mon, 11 Jan 2010 17:21:31 -0500
// S> table lua_getfield(L, LUA_ENVIRONINDEX, "pairs"); lua_insert(L, -2); lua_call(L, 1, 3); // S> key table iterator int iter = lua_gettop(L); do { lua_pushvalue(L, iter-2); lua_pushvalue(L, iter-1

Search by Namazu v2.0.21