<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>nya.place</title>
    <link>https://nya.place/</link>
    <description>I build tools for Second Life and write about scripting in SLua.</description>
    <language>en</language>
    <atom:link href="https://nya.place/rss.xml" rel="self" type="application/rss+xml" />
    <lastBuildDate>Wed, 30 Sep 2026 00:00:00 GMT</lastBuildDate>
    <item>
      <title>Do it at build time</title>
      <link>https://nya.place/posts/build-time</link>
      <guid isPermaLink="true">https://nya.place/posts/build-time</guid>
      <pubDate>Wed, 30 Sep 2026 00:00:00 GMT</pubDate>
      <description>A metatable keeps field names in the running script. TypeScript can check them at build time and emit plain positions instead. For 100 buffer records, that&apos;s 4% of the script&apos;s memory rather than 11%, with reads about 12 times as fast.</description>
      <category>typescript</category>
      <category>slua</category>
      <category>build</category>
    </item>
    <item>
      <title>What does named access cost?</title>
      <link>https://nya.place/posts/compact-objects</link>
      <guid isPermaLink="true">https://nya.place/posts/compact-objects</guid>
      <pubDate>Tue, 29 Sep 2026 00:00:00 GMT</pubDate>
      <description>A shared metatable lets code read arrays and buffers by field name. In the test, 100 records use about 43% of the script&apos;s memory with named fields, or 11% as buffers with names.</description>
      <category>slua</category>
      <category>memory</category>
      <category>metatables</category>
    </item>
    <item>
      <title>Size lists before they round up</title>
      <link>https://nya.place/posts/table-capacity</link>
      <guid isPermaLink="true">https://nya.place/posts/table-capacity</guid>
      <pubDate>Sun, 27 Sep 2026 00:00:00 GMT</pubDate>
      <description>An appended 285-entry list in SLua uses 384 slots at 16 bytes each. I test when table.create saves memory and how to size my HUD&apos;s paint lists.</description>
      <category>slua</category>
      <category>luau</category>
      <category>memory</category>
    </item>
    <item>
      <title>Pack records before they fill linkset data</title>
      <link>https://nya.place/posts/pack-records</link>
      <guid isPermaLink="true">https://nya.place/posts/pack-records</guid>
      <pubDate>Fri, 25 Sep 2026 00:00:00 GMT</pubDate>
      <description>For this 14-field test record, linkset data holds about 660 JSON objects or 6,000 packed buffers. Compare storage savings with script memory and code costs.</description>
      <category>slua</category>
      <category>memory</category>
      <category>data</category>
    </item>
  </channel>
</rss>
