Difference between revisions of "Ser"

(Changing to redirect since it's deprecated and points to a specific other library.)
m
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
#REDIRECT [[bitser]]
+
Ser is a fast, robust, richly-featured table serialization library for Lua. It was specifically written to store configuration and save files for LÖVE games, but can be used anywhere.
 +
 
 +
{{notice|Since 2016-02-16, Ser is deprecated. The author will still fix reported bugs, but for new projects recommends [[bitser]] if you're using LuaJIT, and [[binser]] otherwise.}}
 +
 
 +
== Simple ==
 +
Ser is very simple and easy to use:
 +
 
 +
<source lang="lua">local serialize = require 'ser'
 +
 
 +
print(serialize({"Hello", world = true}))
 +
-- prints:
 +
-- return {"Hello", world = true}</source>
 +
 
 +
== Fast ==
 +
Using Serpent's benchmark code, Ser is 33% faster than Serpent.
 +
 
 +
== Robust ==
 +
Sometimes you have strange, non-euclidean geometries in your table constructions. It happens, I don't judge. Ser can deal with that, where some other serialization libraries cry "Iä! Iä! Cthulhu fhtagn!" and give up — or worse, silently produce incorrect data.
 +
 
 +
== Download ==
 +
Get Ser from its [http://github.com/gvx/Ser GitHub repositiory].
 +
 
 +
{{#set:LOVE Version=Any}}
 +
{{#set:Description=A fast, robust, richly-featured table serialisation library}}
 +
{{#set:License=MIT}}
 +
{{#set:Author=User:Robin}}
 +
[[Category:Libraries]]
 +
 
 +
== Other Languages ==
 +
{{i18n|Ser}}

Latest revision as of 00:41, 16 December 2019

Ser is a fast, robust, richly-featured table serialization library for Lua. It was specifically written to store configuration and save files for LÖVE games, but can be used anywhere.

O.png Since 2016-02-16, Ser is deprecated. The author will still fix reported bugs, but for new projects recommends bitser if you're using LuaJIT, and binser otherwise.  


Simple

Ser is very simple and easy to use:

local serialize = require 'ser'

print(serialize({"Hello", world = true}))
-- prints:
-- return {"Hello", world = true}

Fast

Using Serpent's benchmark code, Ser is 33% faster than Serpent.

Robust

Sometimes you have strange, non-euclidean geometries in your table constructions. It happens, I don't judge. Ser can deal with that, where some other serialization libraries cry "Iä! Iä! Cthulhu fhtagn!" and give up — or worse, silently produce incorrect data.

Download

Get Ser from its GitHub repositiory.

Other Languages