Skip to content

Commit cac02fa

Browse files
Update simdjson to 3.11.3 (#95)
1 parent d2dd6a3 commit cac02fa

File tree

5 files changed

+17793
-13063
lines changed

5 files changed

+17793
-13063
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
A basic Lua binding to [simdjson](https://simdjson.org). The simdjson library is an incredibly fast JSON parser that uses SIMD instructions and fancy algorithms to parse JSON very quickly. It's been tested with LuaJIT 2.0/2.1 and Lua 5.1, 5.2, 5.3, and 5.4 on linux/osx/windows. It has a general parsing mode and a lazy mode that uses a JSON pointer.
55

6-
Current simdjson version: 3.10.1
6+
Current simdjson version: 3.11.3
77

88
## Installation
99
If all the requirements are met, lua-simdjson can be install via luarocks with:

lua-simdjson-0.0.6-1.rockspec

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package="lua-simdjson"
2+
version="0.0.6-1"
3+
source = {
4+
url = "git://github.com/FourierTransformer/lua-simdjson",
5+
tag = "0.0.6"
6+
}
7+
description = {
8+
summary = "This is a simple Lua binding for simdjson",
9+
detailed = [[
10+
This is a c++ binding to simdjson for parsing JSON very quickly.
11+
]],
12+
homepage = "https://github.com/FourierTransformer/lua-simdjson",
13+
license = "Apache-2.0"
14+
}
15+
dependencies = {
16+
"lua >= 5.1, < 5.5"
17+
}
18+
build = {
19+
type = "make",
20+
build_variables = {
21+
CFLAGS="$(CFLAGS)",
22+
LIBFLAG="$(LIBFLAG)",
23+
LUA_BINDIR="$(LUA_BINDIR)",
24+
LUA_INCDIR="$(LUA_INCDIR)",
25+
LUA="$(LUA)",
26+
},
27+
install_variables = {
28+
INST_PREFIX="$(PREFIX)",
29+
INST_BINDIR="$(BINDIR)",
30+
INST_LIBDIR="$(LIBDIR)",
31+
INST_LUADIR="$(LUADIR)",
32+
INST_CONFDIR="$(CONFDIR)",
33+
},
34+
platforms = {
35+
windows = {
36+
build_variables = {
37+
LUA_LIBDIR="$(LUA_LIBDIR)",
38+
LUALIB="$(LUALIB)",
39+
}
40+
}
41+
}
42+
}

src/luasimdjson.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "luasimdjson.h"
1616

1717
#define LUA_SIMDJSON_NAME "simdjson"
18-
#define LUA_SIMDJSON_VERSION "0.0.5"
18+
#define LUA_SIMDJSON_VERSION "0.0.6"
1919

2020
using namespace simdjson;
2121

@@ -124,9 +124,6 @@ void convert_ondemand_element_to_table(lua_State *L, T& element) {
124124
// calling is_null().value() will trigger an exception if the value is invalid
125125
if (element.is_null().value()) {
126126
lua_pushlightuserdata(L, NULL);
127-
} else {
128-
// workaround for simdjson 3.10.1
129-
throw simdjson_error(INCORRECT_TYPE);
130127
}
131128
break;
132129
}

0 commit comments

Comments
 (0)