Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 281. number question (score: 44)
- Author: "Ralf HECKHAUSEN" <RHeckhau@...>
- Date: Mon, 17 Apr 2000 15:20:24 +0200
- We want to run Lua on an machine without floating-point-unit and basically only need integer numbers. How much effort is it to switch the number type to long instead of double? Is it possible to have
- 282. RE: about the new version (score: 44)
- Author: Jim Mathies <Jim@...>
- Date: Fri, 7 Apr 2000 12:30:46 -0400
- wow. We will soon (by Easter?) release a new (alpha) version of Lua. The big change is that Lua now is completely reentrant. The state is passed around as an extra parameter, so that there are no glo
- 283. about the new version (score: 44)
- Author: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 07 Apr 2000 15:34:38 -0300
- We will soon (by Easter?) release a new (alpha) version of Lua. The big change is that Lua now is completely reentrant. The state is passed around as an extra parameter, so that there are no global v
- 284. Re: I'd give my right arm for a continue statement (score: 43)
- Author: Dirk Laurie <dpl@...>
- Date: Thu, 27 Jan 2011 22:04:25 +0200
- You don't need that second colon. Since do, break and end are keywords, do:foo, break:foo and end:foo can't be ambiguous. Spaces around the first colon could be optional. Some might argue that they i
- 285. Re: I'd give my right arm for a continue statement (score: 43)
- Author: Hans van der Meer <H.vanderMeer@...>
- Date: Thu, 27 Jan 2011 18:05:23 +0100
-
- 286. Re: Loose sandbox (score: 43)
- Author: "Ruan Kendall" <shearwater+lua@...>
- Date: Thu, 17 Jul 2008 10:25:37 +0100
- I'm currently working on a similar trick in my project, though I don't copy the whole of _G for efficiency reasons, if nothing else. Instead, I create a clean environment, and give it a metatable tha
- 287. Re: Problem with string.format in lua 5.0 & 5.1 (score: 43)
- Author: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 15 Dec 2005 17:02:54 -0200
- No... This is not a bug, but an improvement. Follows the significant part from lstrlib.c (for 5.1). (luaconf.h should change according to previous message.) -- Roberto /* maximum size of each format
- 288. Re: labels (score: 43)
- Author: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 16 Jun 2000 19:22:33 -0300 (EST)
- [listproc chokes on any message that has a line starting with Version :-( Messages with PGP SIGNATUREs, for instance. Please, turn this off before posting to lua-l. --lhf] 2000-06-16-16:16:11 Luiz He
- 289. Re: [FUN] CodeGolf: solve equation x^x=C (score: 42)
- Author: Philippe Verdy <verdy_p@...>
- Date: Thu, 27 Jun 2019 01:22:38 +0200
- Le mer. 26 juin 2019 à 22:47, Egor Skriptunoff <egor.skriptunoff@gmail.com> a écrit : Global variable "C" contains numeric value > 15.5 The solution of math equation x^x=C must be printed. Your code
- 290. Re: 'table' as fallback for tables (score: 42)
- Author: Jay <jayvmithani@...>
- Date: Mon, 27 Jun 2016 21:51:16 -0400
- What if the __len value of the metatable of a table was used as the value of the length and tables have a default metatable that causes `t.n` to trigger __len, essentially making it the same as `#t`?
- 291. Re: Debug embedded Lua (score: 42)
- Author: Scott Shumaker <sshumaker@...>
- Date: Wed, 15 Feb 2012 14:29:24 -0800
- I put together a cross-platform lua debugger with an HTML GUI powered by node.js just last week. I'm using it to debug Lua on embedded devices (android, iphone). At some point, I'd love to open-sourc
- 292. Re: problem with string.format %d and very large integers (score: 42)
- Author: Lorenzo Donati <lorenzodonatibz@...>
- Date: Fri, 29 Jul 2011 13:47:18 +0200
- 2500000000 -2147483648 This works fine in 5.2: Lua 5.2.0 Copyright (C) 1994-2011 Lua.org, PUC-Rio big=2500000000 =string.format('%d', big) 2500000000 Now this is interesting: I tried to understand ls
- 293. Re: Plea for the support of unicode escape sequences (score: 42)
- Author: Edgar Toernig <froese@...>
- Date: Tue, 28 Jun 2011 21:47:52 +0200
- I originally implemented it for the 5.2-rc and had to modify it slightly for 5.1. It got a little larger as 5.1 has no readhexaesc. As a bonus you get hex-escapes, too. Here you go: diff --git a/src/
- 294. Re: Minimizing repeatable statements with out LuaMacro (score: 42)
- Author: Philippe Lhoste <PhiLho@...>
- Date: Mon, 20 Jun 2011 13:29:26 +0200
- local ops = { ['>'] = function (w, n) return w > n end, ['>='] = function (w, n) return w >= n end, ['<'] = function (w, n) return w < n end, ['<='] = function (w, n) return w <= n end, ['=='] = func
- 295. Re: LuaJIT2 performance for number crunching (score: 42)
- Author: Mike Pall <mikelu-1102@...>
- Date: Sat, 19 Feb 2011 17:11:51 +0100
- Fixed implementation attached. Much faster. --Mike $(include 'ode-defs.lua.in') -- These are the differences of fifth and fourth order coefficients -- for error estimation */ local function rkf45_evo
- 296. Re: Writing an image format (score: 42)
- Author: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 26 Oct 2010 20:26:16 -0200
- The simplest format is the Netpbm family of formats: http://en.wikipedia.org/wiki/Netpbm_format Easy to generate from Lua. Here's a Lua program for generating a gray-scale picture of the Mandelbrot
- 297. Re: PATCH: fixes bug with calling garbage collector from custom lua_Alloc (score: 42)
- Author: "Robert G. Jakabosky" <bobby@...>
- Date: Tue, 6 May 2008 03:05:37 -0700
- Updated patch 'emergency_gc-5.1.3.patch' attached. Also I have started a wiki page for this patch: http://lua-users.org/wiki/EmergencyGarbageCollector That page has a link to the latest patch and tes
- 298. Re: every scope as lua table element (was Tagged loops) (score: 42)
- Author: Karel Tuma <ktuma@...>
- Date: Thu, 2 Nov 2006 01:37:43 +0100
- hi, i'm biased from BASIC :-) i'd prefer 'switch' statement for that. sounds better, this is already partially doable using token filter. translating the '<while> <cond> do <body> end' tokens into 'a
- 299. PATCH: hex numbers and bit ops (score: 42)
- Author: Mike Pall <mikelu-0509@...>
- Date: Sun, 4 Sep 2005 23:52:39 +0200
- Hi, this is a patch relative to Lua 5.1 alpha: - The lexer now parses hex numbers (e.g. 0x1234 == 4660). - luaO_str2d has a fallback for non C99 compliant systems (used by tonumber() and by the lexer
- 300. Adding support for hexadecimal escape sequences in strings (score: 42)
- Author: Doug Rogers <rogers@...>
- Date: Tue, 6 Jan 2004 11:27:30 -0500
- Many years ago I *thought* I posted a source patch to allow hexadecimal escape sequences in Lua character strings, in hopes that it would be included into future versions. I was unable to find that p
Search by
Namazu v2.0.21