Skip to content

Instantly share code, notes, and snippets.

View stevelaz's full-sized avatar

Steve Lazaridis stevelaz

View GitHub Profile
@gnarfel
gnarfel / CiscoPhoneServices.php
Created October 6, 2015 04:18
A compact web app to handle the Services button on Cisco IP Phones attached to a CUCM.
<?php
/*
Anthony Fiumara
afiumara@syrdiocese.org
Written by Anthony Fiumara for the Roman Catholic Diocese of Syracuse, September 2015
Requires NO database or flat file system, all config is performed by editing the code
directly in the settings and menu definition sections. The syntax is basically nested
PHP arrays for most of the settings. If you're uncomfortable with this concept, I'd
@catwell
catwell / messagepack-in-lua.md
Created June 22, 2012 08:21
The state of MessagePack in Lua

The state of MessagePack in Lua

The new MessagePack website says that MessagePack for Lua is "coming soon". I thought it would be a good idea to make a quick recap on the state of MessagePack in Lua.

The historical implementation of MessagePack is mplua by Nobuyuki Kubota. It is the implementation linked from the MessagePack wiki. However, it is rather old (no updates for two years) and not very fast.

A bit less than a year ago I had to use MessagePack in LuaJIT and I wrote a FFI-based binding on the official C interface of MessagePack. I had to include a small C library that had to be compiled to wrap inline functions in the interface.

I did not like that design and it had performance issues in real use cases, mostly because I had to use calls that break the JIT mode in LuaJIT. I decided to re-implement MessagePack directly in LuaJIT with no calls to any