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.

301. Re: A stable sort (score: 41)
Author: Eike Decker <zet23t@...>
Date: Wed, 8 May 2013 22:14:01 +0200
2013/5/8 Dirk Laurie <dirk.laurie@gmail.com> 2013/5/8 Eike Decker <zet23t@googlemail.com>: And wrong.          local pos = a          while a <= e1 and b <= e2 do             local va,vb = arr[a], ar
302. Re: Update to Wiki refused (score: 41)
Author: John Belmonte <john@...>
Date: Wed, 4 Jan 2012 08:27:09 -0700
I just spent about 45 minutes reworking the LuaPowerPatches page, and at the end of it, I get "Sorry, your change was not accepted". As I made a smaller change to the power patches archive page in th
303. Update to Wiki refused (score: 41)
Author: Reuben Thomas <rrt@...>
Date: Wed, 4 Jan 2012 13:51:21 +0000
I just spent about 45 minutes reworking the LuaPowerPatches page, and at the end of it, I get "Sorry, your change was not accepted". As I made a smaller change to the power patches archive page in th
304. PATCH: string.gsub substitution table (score: 41)
Author: Mike Pall <mikelu-0510@...>
Date: Sat, 15 Oct 2005 18:14:10 +0200
Hi, it seems to be a common idiom to use string.gsub in combination with a substitution table. Currently this requires adding a trivial function every time: local subst = { foo = "abc", bar = "xyz" }
305. lua thread sample does not run (score: 41)
Author: Jun OKAJIMA <okajima@...>
Date: Mon, 22 Aug 2005 23:06:34 +0900
Anybody can help? I dont understand why this fails, 46 local connections = {} 57 socket.select(connections) although $ lua works. Why? -- Okajima. -- I have another problem with threading. this code
306. lua thread sample does not run (score: 41)
Author: Jun OKAJIMA <okajima@...>
Date: Sat, 20 Aug 2005 15:02:05 +0900
I have another problem with threading. this code comes from http://www.lua.org/pil/9.4.html and it fails in select(). the interpreter binary is from Debian sid which has no thread func. -- Okajima, J
307. Multiple Scripts, Pausing, Threads, and Persistant Variables (score: 41)
Author: Dave Bollinger <DBollinger@...>
Date: Mon, 20 Mar 2000 20:39:36 -0500
First, search the message archive or e-group list for previous posts by Bret Mogilefsky - he posted some interesting ideas on modifying the Lua internals to do this. Otherwise, I think the answer is
308. Lua5.3.0-work2: math.random and max integer (score: 40)
Author: cyril Romain <c.romain@...>
Date: Sun, 06 Apr 2014 12:12:37 +0200
Hi, In Lua5.3.0-work2 math.random does not support the max integer value. A range larger than the max integer is also not supported [1]. Reading Lua source code that's something new in lmathlib.c due
309. Re: Lua 5.2 string formatting check fails when using integers (score: 40)
Author: Markus Willhelm Schmid <willhelm.schmid@...>
Date: Fri, 13 Apr 2012 10:55:01 -0700
You are right. This is how I ended up solving it (note the LUA_NUMBER_INTEGER define): case 'd': case 'i': { lua_Number n = luaL_checknumber(L, arg); luaL_argcheck(L, (MIN_INTFRM - 1) < n && n < (MA
310. Re: [ANN] LuaJIT-2.0.0-beta2 (score: 40)
Author: Mike Pall <mikelu-0911@...>
Date: Tue, 10 Nov 2009 04:06:06 +0100
Oops, that must be Snow Leopard? Sorry, but most of my changes for OSX are guesswork, because I don't have an OSX machine. Looks like something is wrong with the MACH-O/DWARF2 frame unwind info. That
311. [PATCH] Patch to lua.c to ignore LUA_INIT and set LUA_PATH & LUA_CPATH to default values (score: 40)
Author: Reuben Thomas <rrt@...>
Date: Thu, 15 Nov 2007 18:14:02 -0200 (BRST)
Attached is a simple patch to lua.c that adds a switch -t (think Perl) to ignore LUA_INIT and set the _PATH variables to their built-in defaults. Unlike Perl's -t, there's no general taint support, b
312. Re: Declared UpValues, change to Parser. [also Re: explicit mode] (score: 39)
Author: Duane Leslie <parakleta@...>
Date: Thu, 12 May 2016 10:22:47 +1000
The discussion about explicit mode made me realise that I have overlooked a use case with my explicit upvalues patch. Specifically the case where you may want to disable the global environment but st
313. Re: rotating ASCII donut (score: 38)
Author: elves <elves@...>
Date: Thu, 24 Feb 2022 00:41:24 +0000
When I converted the C version without trig functions to lua, it ran more slowly than the original. do local io=io.write local i,j,k local z,b={},{} local a=".,-~:;=!*#$@"local A=0.0 local sin=math.s
314. Re: rotating ASCII donut (score: 38)
Author: Andrew Starks <andrew@...>
Date: Wed, 23 Feb 2022 12:20:29 -0600
-- Get your CIX on route 109.123.97.120 -- Andrew Starks 612 840 2939 andrew@starksfam.org
315. Re: Upcoming changes in Lua 5.4 (score: 38)
Author: "Soni \"They/Them\" L." <fakedme@...>
Date: Sun, 21 Jan 2018 13:10:35 -0200
One thing I am curious about, Roberto, is the creation of tables to hold the vargs. Won't this add significant overhead for the table allocations vs just leaving the vargs on the stack? That was the
316. Re: Output pagination (score: 38)
Author: Luiz Henrique de Figueiredo <lhf@...>
Date: Wed, 19 Apr 2017 13:03:41 -0300
Try the code below. Adjust d to your needs. Use q to quit, f to page forward, b to page backward, enter to see the next line -- page.lua -- usage: lua page.lua file function page(file) local f,err =
317. Re: on the cost of non-blocking LuaSockets (score: 38)
Author: William Ahern <william@...>
Date: Thu, 11 Dec 2014 17:18:58 -0800
The thundering herd problem still exists except under very narrow conditions. In particular it's only fixed where at least one thread is already blocking on a read or accept call (i.e. not polling).
318. Re: Building recursive argument lists in a shorter way? (score: 38)
Author: Rena <hyperhacker@...>
Date: Mon, 23 Sep 2013 17:17:12 -0400
I have many setter methods that handle properties that represent an inventory of one or more objects of the same class (to borrow from OOP). So that I don't need to write a "set_prop" and "set_props"
319. Re: [ANN] LuaJIT-2.0.0-beta8 (score: 38)
Author: Mike Pall <mikelu-1106@...>
Date: Thu, 23 Jun 2011 21:00:42 +0200
For the bytecode I'm already delta-encoding most values and use a couple of other tricks to reduce their range. So the majority of values for the ULEB128 encoding fit into 0-127 and only need a singl
320. LuaJIT 2.0.0-beta4 segfault crash on x64 (score: 38)
Author: Arseny Vakhrushev <arseny.vakhrushev@...>
Date: Fri, 23 Apr 2010 02:58:42 +0400
Title: LuaJIT 2.0.0-beta4 segfault crash on x64 Hello everyone, I've been playing around for a while to get my project linked with LuaJIT for testings. The library compliled without any problems, and

Search by Namazu v2.0.21