CTCP COLOR is a CTCP ACTION-like CTCP, but instead of providing a different message style, it provides different colors.
Let:
X-DELIM ::= '\x01'
SPACE ::= ' '
# This makefile is so we can extract some #define's from the C library, as LuaJIT has no way of exposing those #define's. | |
# Just run `make liolib.lua`. | |
LIOLIBC= int SEXIO_IOFBF = _IOFBF; \ | |
int SEXIO_IOLBF = _IOLBF; \ | |
int SEXIO_IONBF = _IONBF; \ | |
int SEXIO_SEEK_SET = SEEK_SET; \ | |
int SEXIO_SEEK_CUR = SEEK_CUR; \ | |
int SEXIO_SEEK_END = SEEK_END; |
Unicode (UTF-8) is the leading character encoding being used in computers today. However, a few factors hinder its adoption:
So we shall define an ISA that replaces Unicode. Meet UISA!
ROT13-UTF-8 is a semi-backwards-compatible encoding for text data.
ROT13-UTF-8 replaces the characters represented by bytes 0x41-0x4D, 0x4E-0x5A and 0x61-0x6D, 0x6E-0x7A in UTF-8 with characters U+004E-U+005A, U+0041-U+004D and U+006E- U+007A, U+0061-U+006D, respectively.
-- This Lua stack may be faster than the vararg stack, since it does less copies. Haven't benchmarked it yet. | |
-- However, it can't hold as many elements (13 000 ish elements on my machine, vs uh, 100 000 or more with varargs?). | |
local function callstack() | |
local function f(v) | |
local op, nv = coroutine.yield() | |
while true do | |
if op == "push" then | |
op, nv = coroutine.yield(f(nv)) | |
elseif op == "pop" then |
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Version: 0.2
Authors: Check Commit Log.
Rationale