Commit Graph
2398 Commits
Author SHA1 Message Date
Nigel Tao 1f424b2ea7 Propagate const-values to idents of consts 2020-04-16 09:37:05 +10:00
Nigel Tao 9f6c40246f Simplify cgen of empty functions 2020-04-16 09:34:50 +10:00
Nigel Tao e39f3cbf42 Redo Wuffs structs' quirk bool fields 2020-04-14 23:03:18 +10:00
Nigel Tao 532e18c4a5 Add colons to const syntax 2020-04-14 14:57:30 +10:00
Nigel Tao 80071730a3 Add std/json CLASS_XXX constants 2020-04-13 16:06:16 +10:00
Nigel Tao 74871344f0 Capitalize Wuffs const names 2020-04-13 15:52:36 +10:00
Nigel Tao 623811086f Add example/README.md 2020-04-12 21:13:42 +10:00
Nigel Tao 4bc42db1d3 Add set_quirk_enabled interface methods 2020-04-12 20:53:54 +10:00
Nigel Tao 873c6b400a Add alloc functions 2020-04-12 20:34:33 +10:00
Nigel Tao f7ea462c00 Fix human-readable vmajor when out of base38 range 2020-04-10 22:44:13 +10:00
Nigel Tao 492ee61391 Add doc/note link from base38-etc.md to tokens.md 2020-04-10 22:00:04 +10:00
Nigel Tao 335819f90e Fix some doc/note/tokens.md typos 2020-04-10 21:24:43 +10:00
Nigel Tao 6612d90ca2 Re-write bit ranges in the docs 2020-04-09 22:29:45 +10:00
Nigel Tao 496e88b6c5 Remove wuffs_base__token__link_prev 2020-04-09 22:11:08 +10:00
Nigel Tao 2ef3999d6d Remove use of wuffs_base__token__link_prev 2020-04-09 17:24:39 +10:00
Nigel Tao 478d1b817c Add doc/note/tokens.md 2020-04-08 23:31:18 +10:00
Nigel Tao df3acfbb21 Clarify std/json quirk_allow_backslash_x semantics 2020-04-08 11:08:01 +10:00
Nigel Tao d83bd8d036 Add std/json quirk_allow_ascii_control_codes 2020-04-07 17:50:47 +10:00
Nigel Tao 6f67bbc4b2 Add std/json quirk_allow_backslash_new_line 2020-04-07 17:24:31 +10:00
Nigel Tao 2db72dabe5 Re-assign JSON quirk numbers 2020-04-07 17:17:54 +10:00
Nigel Tao b5d6f8d038 Have example/jsonfindptrs check unpaired keys 2020-04-06 20:57:40 +10:00
Nigel Tao 345f1aa060 Remove jsonfindptrs unnecessary curly braces 2020-04-05 22:10:37 +10:00
Nigel Tao 88a449e3d7 Add perf comment to json.decoder.decode_string 2020-04-04 11:41:09 +11:00
Nigel Tao 695a72a37c Roll back 'factor out json.decoder.decode_string'
See the previous commit for the rationale.
2020-04-04 11:32:35 +11:00
Nigel Tao 86d3b89f9a Factor out json.decoder.decode_string
This commit will soon be followed by a rollback, but it is committed
anyway so that we can refer to these numbers in the git log.

name                                    old speed     new speed     delta

wuffs_json_decode_1k/clang5             607MB/s ± 0%  543MB/s ± 1%  -10.68%  (p=0.008 n=5+5)
wuffs_json_decode_21k_formatted/clang5  330MB/s ± 2%  320MB/s ± 3%     ~     (p=0.056 n=5+5)
wuffs_json_decode_26k_compact/clang5    468MB/s ± 2%  434MB/s ± 1%   -7.26%  (p=0.008 n=5+5)
wuffs_json_decode_217k_stringy/clang5   391MB/s ± 1%  363MB/s ± 0%   -7.03%  (p=0.008 n=5+5)

wuffs_json_decode_1k/gcc7               715MB/s ± 0%  583MB/s ± 0%  -18.38%  (p=0.016 n=5+4)
wuffs_json_decode_21k_formatted/gcc7    403MB/s ± 0%  350MB/s ± 0%  -12.94%  (p=0.016 n=5+4)
wuffs_json_decode_26k_compact/gcc7      534MB/s ± 0%  420MB/s ± 1%  -21.41%  (p=0.008 n=5+5)
wuffs_json_decode_217k_stringy/gcc7     435MB/s ± 0%  359MB/s ± 0%  -17.44%  (p=0.008 n=5+5)
2020-04-04 11:32:35 +11:00
Nigel Tao 721190afff Have example C++ program check for -std=c++11 2020-04-03 22:25:21 +11:00
Nigel Tao 2db88dd98e Fix -Wshadow warnings 2020-04-03 22:13:56 +11:00
Nigel Tao 1a1f36ce13 Disable clang's -Wunreachable-code warning 2020-04-03 21:57:49 +11:00
Nigel Tao ecd3285567 Simplify a std/json while as an if 2020-04-03 12:35:18 +11:00
Nigel Tao 161fa6ae4a Ban continue in a double-curly while loop 2020-04-03 12:23:57 +11:00
Nigel Tao b791b441ef Improve error message for unreachable code 2020-04-03 10:58:04 +11:00
Nigel Tao e5c86ec191 Let an unbroken "while true" terminate a block 2020-04-03 10:46:05 +11:00
Nigel Tao 4a89913a9b Ban duplicate loop labels 2020-04-03 10:33:05 +11:00
Nigel Tao ee23f8b3d9 Move loop/jump matching from check to parse 2020-04-03 10:26:35 +11:00
Nigel Tao 94440cf6ff Rename example/json* -o flag 2020-04-02 22:28:24 +11:00
Nigel Tao 64dbd00b07 Rename wuffs_base__make_etc_buffer_{read,writ}er 2020-04-02 22:21:36 +11:00
Nigel Tao 3fe3f84106 Add double-curly blocks 2020-04-02 21:56:53 +11:00
Nigel Tao 4cfc367a9b Factor out an ast.Terminates function 2020-04-02 17:32:37 +11:00
Nigel Tao 57fe5d95f6 Re-order some token.ID numbers 2020-04-02 17:18:43 +11:00
Nigel Tao f2536b2be6 Re-format built-in method signatures' constants 2020-04-02 12:37:09 +11:00
Nigel Tao f515dc0848 Rename io_writer.write_fast_etc 2020-04-02 12:32:40 +11:00
Nigel Tao 3456f39f9d Rename token_writer.write_fast_token 2020-04-02 12:26:57 +11:00
Nigel Tao 293b3c7812 Remove unused token_writer.write_token method 2020-04-02 12:15:50 +11:00
Nigel Tao 3385efa7fd Update token debug format for extended tokens 2020-04-02 12:10:10 +11:00
Nigel Tao 462f86675d Add an "extended token" concept 2020-04-02 11:20:45 +11:00
Nigel Tao 7d684f94ae Update hello-wuffs-c/README.md for previous commit 2020-04-01 11:26:44 +11:00
Nigel Tao 1f0bf016e7 Fix hello-wuffs-c for recent language changes 2020-04-01 09:03:11 +11:00
Nigel Tao d9d022b2df Fix std/json test/bench naming convention typos 2020-03-31 22:49:19 +11:00
Nigel Tao ac8f4d0c3a Add Leo Neat to CONTRIBUTORS
"Google Inc." is already in AUTHORS.
2020-03-31 22:44:26 +11:00
Nigel Tao 9dd8002224 Merge pull request #27 from Leo-Neat/master
Add CIFuzz
2020-03-31 22:41:41 +11:00