Search lua-l
This index contains 143,604 documents and
1,774,497 keywords. Last update on
2023-03-08 .
- 31. Re: Reading & writing an array of numeric data (score: 230)
- Author: Juergen Fuhrmann <fuhrmann@...>
- Date: Fri, 12 Mar 2004 15:54:56 +0100 (CET)
- Hi, This becomes interesting for me: when I read with dofile, the array data several times are in main memory: 1) when I read the chunk (this could be modified, though) 2) in the bytecode 3) in the
- 32. Re: 1-based indexing in Lua (score: 227)
- Author: Albert Chan <albertmcchan@...>
- Date: Sat, 31 Mar 2018 11:32:05 -0400
- My last post responded to the wrong comment ... Sorry You can use lua table with arbitrary base by using the hash part: local T = {[0]=0, 1} -- 0-based critical table Above is actual code of my prim
- 33. Re: 1-based indexing in Lua (score: 227)
- Author: Doug Gale <doug16k@...>
- Date: Sat, 31 Mar 2018 08:24:04 -0400
- ?... ?I hate one-based indexing?. It adds a ton of confusion when embedding lua into a native programming language project, and tarnishes what I'd consider to be a fantastically good language otherw
- 34. Re: 1-based indexing in Lua (score: 227)
- Author: Andrew Gierth <andrew@...>
- Date: Thu, 29 Mar 2018 12:28:09 +0100
- Not so; even if you disregard COBOL (which is still pretty widely used), I would bet that SQL (which also uses 1-based array indexes) is much more commonly used than Lua. -- Andrew.
- 35. Re: LuaJIT 1.1.5 table indexing performance with various key types (score: 227)
- Author: Gary Bringhurst <garyb@...>
- Date: Wed, 19 Aug 2009 15:03:50 -0600
- Cool. That's a very enlightening answer. Thanks Mike. -gary Gary Bringhurst wrote: I've been timing table accesses under LuaJIT using various key types in a very simple tight loop. Positive integers
- 36. Re: LuaJIT 1.1.5 table indexing performance with various key types (score: 227)
- Author: Mike Pall <mikelu-0908@...>
- Date: Wed, 19 Aug 2009 22:40:19 +0200
- Your benchmark is flawed in several ways: - Quite a bit of the runtime is used by calling random(). ==> You're not only measuring what you intended to measure. - The size of the created tables is too
- 37. Lua 5.4-work1 with first class arrays (implementation & benchmarks) (score: 225)
- Author: Petri Häkkinen <petrih3@...>
- Date: Thu, 22 Mar 2018 11:17:57 +0200
- Hello, I've been burning some midnight oil lately. Anyway, here are the results of my experiment with adding arrays to Lua. The experiment demonstrates significant performance increase in some cases,
- 38. Re: What is a Lua string? (Was: String indexing again) (score: 225)
- Author: Axel Kittenberger <axkibe@...>
- Date: Tue, 21 Dec 2010 11:31:10 +0100
- http://www.lua.org/source/5.1/lstring.c.html Lua strings are technically an array (or sequence) of (char)s, That way they are also accessed binary from files: http://www.lua.org/source/5.1/liolib.c.h
- 39. Re: 1-based indexing in Lua or the one without zero (score: 220)
- Author: Viacheslav Usov <via.usov@...>
- Date: Tue, 24 Apr 2018 18:37:12 +0200
- On Tue, Apr 24, 2018 at 10:24 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote: > I grew up as a programmer in a time when there were only three languages: FORTRAN, COBOL and Assembler. [...] > We wrote
- 40. Re: 1-based indexing in Lua (score: 220)
- Author: Albert Chan <albertmcchan@...>
- Date: Sat, 31 Mar 2018 11:02:03 -0400
- You can use lua table with arbitrary base by using the hash part: local k = {[0]=0, 1} -- 0-based table Above is actual code of my primepi.lua (line 20) Doing it in 1-based array is messy and slower
Search by
Namazu v2.0.21