Get the latest tech news

Optimizing Lua string literals to save 400 bytes


This is a guest post by Yuki about some tricks we use for Lua code compression in our shared ComputerCraft pet project. I’ve written about how we adapted bzip2 for this purpose earlier; this story is an installment that takes place in the same context. If you want to read more stuff from her, here’s an Atom feed and the blog.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of bytes

bytes

Photo of Lua string literals

Lua string literals

Photo of Optimizing Lua

Optimizing Lua

Related news:

News photo

Can you build a recognizable World Map in under 500 bytes?

News photo

WriteUp: 16 Bytes of x86 that turn Matrix rain into sound

News photo

Copy Fail: 732 Bytes to Root on Every Major Linux Distribution