Skip to content

Commit

Permalink
Update simdjson to 3.11.3 (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
FourierTransformer authored Dec 20, 2024
1 parent d2dd6a3 commit cac02fa
Show file tree
Hide file tree
Showing 5 changed files with 17,793 additions and 13,063 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

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.

Current simdjson version: 3.10.1
Current simdjson version: 3.11.3

## Installation
If all the requirements are met, lua-simdjson can be install via luarocks with:
Expand Down
42 changes: 42 additions & 0 deletions lua-simdjson-0.0.6-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package="lua-simdjson"
version="0.0.6-1"
source = {
url = "git://github.com/FourierTransformer/lua-simdjson",
tag = "0.0.6"
}
description = {
summary = "This is a simple Lua binding for simdjson",
detailed = [[
This is a c++ binding to simdjson for parsing JSON very quickly.
]],
homepage = "https://github.com/FourierTransformer/lua-simdjson",
license = "Apache-2.0"
}
dependencies = {
"lua >= 5.1, < 5.5"
}
build = {
type = "make",
build_variables = {
CFLAGS="$(CFLAGS)",
LIBFLAG="$(LIBFLAG)",
LUA_BINDIR="$(LUA_BINDIR)",
LUA_INCDIR="$(LUA_INCDIR)",
LUA="$(LUA)",
},
install_variables = {
INST_PREFIX="$(PREFIX)",
INST_BINDIR="$(BINDIR)",
INST_LIBDIR="$(LIBDIR)",
INST_LUADIR="$(LUADIR)",
INST_CONFDIR="$(CONFDIR)",
},
platforms = {
windows = {
build_variables = {
LUA_LIBDIR="$(LUA_LIBDIR)",
LUALIB="$(LUALIB)",
}
}
}
}
5 changes: 1 addition & 4 deletions src/luasimdjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "luasimdjson.h"

#define LUA_SIMDJSON_NAME "simdjson"
#define LUA_SIMDJSON_VERSION "0.0.5"
#define LUA_SIMDJSON_VERSION "0.0.6"

using namespace simdjson;

Expand Down Expand Up @@ -124,9 +124,6 @@ void convert_ondemand_element_to_table(lua_State *L, T& element) {
// calling is_null().value() will trigger an exception if the value is invalid
if (element.is_null().value()) {
lua_pushlightuserdata(L, NULL);
} else {
// workaround for simdjson 3.10.1
throw simdjson_error(INCORRECT_TYPE);
}
break;
}
Expand Down
Loading

0 comments on commit cac02fa

Please sign in to comment.