Skip to content

Instantly share code, notes, and snippets.

View Siapran's full-sized avatar
🐁

Katherine Miller Siapran

🐁
View GitHub Profile
Testing for nb_args = 1
time lua varlen_pack.lua 1
real 0m2,291s
user 0m2,283s
sys 0m0,000s
time lua varlen_select.lua 1
real 0m0,626s
-- varlen_pack.lua
local unpack = unpack
local pack = table.pack
local function varlen(...)
return pack(...).n
end
local test = {}
for i=1,arg[1] do
test[i] = i
-- varlen_pack.lua
local unpack = unpack
local pack = table.pack
local function varlen(...)
return #pack(...)
end
local test = {}
for i=1,arg[1] do
test[i] = i
Testing for nb_args = 1
time lua varlen_pack.lua 1
real 0m2,403s
user 0m2,400s
sys 0m0,000s
time lua varlen_select.lua 1
real 0m0,626s
siapran@pc-vlb-0163:~/Programming/C++/JSON_Config$ make
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/home/siapran/Programming/C++/JSON_Config'
"make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux/json_config
make[2]: Entering directory '/home/siapran/Programming/C++/JSON_Config'
mkdir -p build/Debug/GNU-Linux
rm -f "build/Debug/GNU-Linux/Config.o.d"
g++ -c -g -MMD -MP -MF "build/Debug/GNU-Linux/Config.o.d" -o build/Debug/GNU-Linux/Config.o Config.cpp
mkdir -p build/Debug/GNU-Linux
rm -f "build/Debug/GNU-Linux/ErrnoException.o.d"
siapran@pc-vlb-0163:~/Programming/C++/JSON_Config$ make
"make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/home/siapran/Programming/C++/JSON_Config'
"make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux/json_config
make[2]: Entering directory '/home/siapran/Programming/C++/JSON_Config'
mkdir -p build/Debug/GNU-Linux
rm -f "build/Debug/GNU-Linux/Config.o.d"
g++ -c -g -MMD -MP -MF "build/Debug/GNU-Linux/Config.o.d" -o build/Debug/GNU-Linux/Config.o Config.cpp
mkdir -p build/Debug/GNU-Linux
rm -f "build/Debug/GNU-Linux/ErrnoException.o.d"
[ ] => Available
[X] => Taken
[?] => Reserved/Unsure
[ ] 2064: Read Only Memories
[ ] 7 Grand Steps
[ ] A Boy and His Blob
[ ] A Story About My Uncle
[ ] A Virus Named Tom
[ ] Abyss Odyssey
siapran@pc-vlb-0163:~/Programming/C++/JSONTest$ g++-4.9.3 --version
g++-4.9.3 (GCC) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
siapran@pc-vlb-0163:~/Programming/C++/JSONTest$ g++-4.9.3 -std=c++98 main.cpp -o main
In file included from ArduinoJson/src/ArduinoJson/JsonArray.hpp:13:0,
from ArduinoJson/src/ArduinoJson.hpp:11,
from ArduinoJson/src/ArduinoJson.h:10,
siapran@pc-vlb-0163:~/Programming/C++/JSONTest$ git clone https://github.com/bblanchon/ArduinoJson.git
Cloning into 'ArduinoJson'...
remote: Counting objects: 8927, done.
remote: Compressing objects: 100% (131/131), done.
remote: Total 8927 (delta 50), reused 0 (delta 0), pack-reused 8794
Receiving objects: 100% (8927/8927), 2.91 MiB | 537.00 KiB/s, done.
Resolving deltas: 100% (6073/6073), done.
siapran@pc-vlb-0163:~/Programming/C++/JSONTest$ g++ -std=c++98 main.cpp -o main
In file included from ArduinoJson/src/ArduinoJson/JsonArray.hpp:13:0,
from ArduinoJson/src/ArduinoJson.hpp:11,
$ g++ -std=c++98 main.cpp -o main
In file included from main.cpp:1:0:
ArduinoJson.h:513:39: error: ‘IsBaseOf’ is not a member of ‘ArduinoJson::TypeTraits’
typename TypeTraits::EnableIf<TypeTraits::IsBaseOf<
^~~~~~~~~~
ArduinoJson.h:513:39: error: ‘IsBaseOf’ is not a member of ‘ArduinoJson::TypeTraits’
ArduinoJson.h:514:44: error: ‘RemoveReference’ in namespace ‘ArduinoJson::TypeTraits’ does not name a template type
std::istream, typename TypeTraits::RemoveReference<
^~~~~~~~~~~~~~~
ArduinoJson.h:514:59: error: expected template-argument before ‘<’ token