Re: [ANN] True 1.0 - Smallest Lua module ever
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] True 1.0 - Smallest Lua module ever
- From: "Soni L." <fakedme@...>
- Date: 2017年2月21日 11:01:03 -0300
On 21/02/17 01:30 AM, Derek Bailey wrote:
The 'true.lua' file still takes a non-zero and non-trivial size on
disk due to the inode structure.
(http://stackoverflow.com/questions/3618820/how-many-bytes-per-inodes)
Thus the following is smaller module with your same requirements:
package.loaded['true']=true
assert(require'true' == true)
Not saying what I have cannot be smaller, but don't make absolute
statements that aren't true.
And any non-empty Lua module file still takes more size on disk than
true.lua.
The point is to have it as a separate file/an external module, in which
case my statements are true.
Derek
On Mon, Feb 20, 2017 at 5:31 PM, Martin <eden_martin_fuhrspam@gmx.de
<mailto:eden_martin_fuhrspam@gmx.de>> wrote:
On 02/20/2017 06:05 AM, Soni L. wrote:
> True is a simple module that evaluates to true. It is also the
smallest
> Lua module ever.
>
> Repo: https://bitbucket.org/TeamSoni/true
<https://bitbucket.org/TeamSoni/true>
>
> Features:
> - Smallest Lua module possible.
> - It's true!
>
> Usage:
>
> assert(require "true" == true)
>
Nice. You won smallest lua module contest!
But where is license, readme, usage example, self-tests via standalone
test system, inlined docs in source, external docs, training course
videos and product site? You can't just release source these days!
-- Martin
--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.