Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 301. Re: Question on replacing macros with static inline functions (score: 10)
- Author: Lorenzo Donati <lorenzodonatibz@...>
- Date: Tue, 15 Nov 2022 18:57:31 +0100
- That's Interesting. Out of curiosity, could you disclose which kind of systems are you talking about and whether they are just legacy systems or something that is actively developed (from the manufac
- 302. Re: Question on replacing macros with static inline functions (score: 10)
- Author: Wilfred Nilsen <realtimelogic@...>
- Date: Tue, 15 Nov 2022 15:58:34 +0100
- Yes, it is absolutely necessary to keep Lua C89 compatible. We work with embedded systems and many environments use old C89 compilers. -Wilfred Hi, Roberto, I was thinking, is it really worth the has
- 303. Re: Question on replacing macros with static inline functions (score: 10)
- Author: Lorenzo Donati <lorenzodonatibz@...>
- Date: Tue, 15 Nov 2022 15:47:25 +0100
- Hi, Roberto, I was thinking, is it really worth the hassle to keep Lua compatible with C89 nowadays? Shouldn't it be moved to C99, whose features would help make the code clearer and more maintainabl
- 304. Re: table.concat is inefficient for very long strings (score: 10)
- Author: Gé Weijers <ge@...>
- Date: Wed, 20 Jul 2022 10:49:49 -0700
- On Mon, Jul 18, 2022 at 4:27 AM Egor Skriptunoff <egor.skriptunoff@gmail.com> wrote: I expect table.concat to act wisely: it should calculate the result string length, allocate its memory and fill it
- 305. Re: Feature request : More lightuserdata types (score: 10)
- Author: "Soni \"They/Them\" L." <fakedme@...>
- Date: Tue, 22 Feb 2022 10:38:54 -0300
- You probably want a full userdata to avoid UB. LU aren't collected, so you can't know if it's still alive or not/when to free it/etc. "Optimizations" like these are a security nightmare.
- 306. Re: Feature request : More lightuserdata types (score: 10)
- Author: ?? Cloud Wu <cloudwu@...>
- Date: Tue, 22 Feb 2022 21:24:42 +0800
- Flyer31 Test <flyer31@googlemail.com>?2022?2?22? ??20:50??? Why don't you just use "normal c userdata", if you want metafunctions? (I assume that in this case your userdata quite sure is anyway someh
- 307. Re: Bug modulo operator on negative numbers (score: 10)
- Author: Viacheslav Usov <via.usov@...>
- Date: Wed, 18 Aug 2021 10:37:43 +0200
- This is wrong, and it is actually the same rule. I made a mistake here: Obviously (-2) * (-2) + 2 = 6, not 3. The correct operation is 3 div -2 = -1 (rem 1) so that (-1) * (-2) + 1 = 3. Thus the Fort
- 308. Re: Bug when parsing the value of math.mininteger (score: 10)
- Author: Lux Lang <luxlisp@...>
- Date: Fri, 12 Feb 2021 20:38:23 -0400
- This is a caused by the fact that the lexer, as is the case in many other languages, does not actually recognize negative numbers. So -9223372036854775808 is not lexed as a single token, but as two
- 309. Re: Bug when parsing the value of math.mininteger (score: 10)
- Author: Jonathan Goble <jcgoble3@...>
- Date: Fri, 12 Feb 2021 19:32:33 -0500
- This is a caused by the fact that the lexer, as is the case in many other languages, does not actually recognize negative numbers. So -9223372036854775808 is not lexed as a single token, but as two t
- 310. [ANN] hererocks 0.23.0 (score: 10)
- Author: Hisham <h@...>
- Date: Tue, 15 Dec 2020 16:38:56 -0300
- Hi, Announcing version 0.23.0 of hererocks, a Python script for fetching and installing Lua, LuaJIT and LuaRocks: https://github.com/luarocks/hererocks The main function of hererocks is creating an i
- 311. Re: How to comprehend that Lua automatically removes whatever is in the stack below the results after the function returned? (score: 10)
- Author: Eretnek Hippi Messiás <hippi777@...>
- Date: Sat, 26 Sep 2020 12:49:41 +0000
- hi all! :) ??? sunshilong: 1st: get a fake `nil`, if too obvious, then jump to "2nd:" :D so lets say `NULL={}` or ``` NULL=setmetatable( {}, { __newindex=function() end, __metatable=true}) ``` or `NU
- 312. Re: How to comprehend that Lua automatically removes whatever is in the stack below the results after the function returned? (score: 10)
- Author: Gé Weijers <ge@...>
- Date: Thu, 24 Sep 2020 06:34:26 -0700
- On Wed, Sep 23, 2020, 11:56 bel <bel2125@gmail.com> wrote: > Growing an object requires copying, which can't be done in constant time. Most CPUs can copy very quickly but it's still an O(n) operation
- 313. Re: How to comprehend that Lua automatically removes whatever is in the stack below the results after the function returned? (score: 10)
- Author: Philippe Verdy <verdyp@...>
- Date: Wed, 23 Sep 2020 21:15:06 +0200
- I do agree, and modern allocators already use pools of preallocated objects for common sizes, and maintain usage statistics to avoid freeing these pools too early. Le mer. 23 sept. 2020 à 20:56, bel
- 314. Re: How to comprehend that Lua automatically removes whatever is in the stack below the results after the function returned? (score: 10)
- Author: bel <bel2125@...>
- Date: Wed, 23 Sep 2020 20:56:03 +0200
- time. Most CPUs can copy very quickly but it's still an O(n) operation, however efficient you make the memory management. Even copying is only O(n) for a "larger" number of bytes n. For small n effe
- 315. Re: A tricky way to determine Lua version (updated) (score: 10)
- Author: Domingo Alvarez Duarte <mingodad@...>
- Date: Fri, 24 Jul 2020 08:22:32 +0200
- Hello Philippe ! Can you point out an implementation of the btree you describe preferably as a C library ? Cheers ! On 24/7/20 6:53, Philippe Verdy wrote: Anyway, in other applications outside Lua, I
- 316. [ANN] hererocks 0.22.0 - Lua/LuaRocks installation script (score: 10)
- Author: Hisham <h@...>
- Date: Fri, 10 Jul 2020 16:09:50 -0300
- Hi, Announcing version 0.22.0 of hererocks, a Python script for fetching and installing Lua, LuaJIT and LuaRocks: https://github.com/luarocks/hererocks The main function of hererocks is creating an i
- 317. Re: [ANN] Lua 5.4.0 ... struct with variable size array ... C90 support (score: 10)
- Author: Philippe Verdy <verdyp@...>
- Date: Sat, 16 May 2020 13:50:14 +0200
- No, they did not. malloc(3) states "The malloc() and calloc() functions return a pointer to the allocated memory, which is suitably aligned for any built-in type.". They MUST overalign. C malloc is
- 318. Re: what is the role of the `seed` field in the Lua global state? (score: 10)
- Author: ?? <cloudwu@...>
- Date: Thu, 12 Mar 2020 23:03:21 +0800
- I can use my own lua_Alloc to manage the memory addresses. For example, map a fixed virtual address space as the memory heap. On the other hand, avoiding to use userdata or functions as the key is e
- 319. Re: Looking for detailed documentation for WSAPI, Xavante. (score: 10)
- Author: "Pierre Chapuis" <catwell@...>
- Date: Sat, 15 Feb 2020 19:20:34 +0100
- On Sat, Feb 1, 2020, at 18:40, Pierre Chapuis wrote: I was a bit sad about that, having used Mercury in the past, so I forked it and fixed the issues so it works with the latest versions of its depen
- 320. Re: Blocking calls and module composability (score: 10)
- Author: Sean Conner <sean@...>
- Date: Sat, 25 Jan 2020 19:15:07 -0500
- It was thus said that the Great Archie Cobbs once stated: Hello. Don't worry--my reply is just as long, if not longer. And that's with snipping out parts I'm not directly replying to. The Lua call st
Search by
Namazu v2.0.21