Commit Graph
219 Commits
Author SHA1 Message Date
Nigel Tao b1e3a15c08 Add endwhile syntax 2020-02-22 13:11:02 +11:00
Nigel Tao c92c0f50e4 Have std/json decode null, false and true 2020-02-21 11:16:27 +11:00
Nigel Tao a8406927ef Add io_reader.is_closed 2020-02-19 12:22:00 +11:00
Nigel Tao e9aba8924a Add token_writer.write_fast_token 2020-02-12 21:45:06 +11:00
Nigel Tao 2f2ccdb696 Add token_writer.write_token 2020-02-11 13:31:13 +11:00
Nigel Tao 737e31ff3a Add tokens 2020-02-11 12:02:58 +11:00
Nigel Tao 22be1c0da0 Allow underscores in numeric constants 2020-02-08 17:20:32 +11:00
Nigel Tao 6ef3ffe6c8 Add io_reader.skip 2020-01-16 22:15:33 +11:00
Nigel Tao 09ed091fe3 Rename skip / copy_n_etc to skip32 / copy_n32_etc 2020-01-16 22:07:44 +11:00
Nigel Tao 1a791217de Add wuffs_base__pixel_blend type 2020-01-14 09:27:04 +11:00
Nigel Tao ea54c2ea11 Add syntax support for implementing interfaces 2020-01-09 15:45:29 +11:00
Nigel Tao 4f53f3101f Make wuffs_base__pixel_format a struct 2020-01-05 14:18:48 +11:00
Nigel Tao cb7e9e0ce9 Add a ~mod* operator 2019-11-12 21:30:45 +11:00
Nigel Tao e1091ec182 Re-order some token.ID numbers 2019-11-12 21:19:31 +11:00
Nigel Tao 5b4e3647c0 Reformat x:y as x: y 2019-10-12 21:21:39 +11:00
Nigel Tao a9ea63ff06 Rename [i:j] to [i .. j], the same as Rust 2019-10-12 21:14:18 +11:00
Nigel Tao 5d29c7df61 Remove unused token.IDDollar 2019-10-12 18:45:07 +11:00
Nigel Tao d501daddc3 Rename [i..j] to [i ..= j], the same as Rust 2019-10-12 18:40:53 +11:00
Nigel Tao 1c1ce9b19f Drop the unused ref and deref operators 2019-10-05 12:41:09 +10:00
Nigel Tao 392c8c544a Rename null_io_buffer etc to empty_io_buffer 2019-07-13 10:55:51 +10:00
Nigel Tao e477175fd2 Remove wuffs_base__global__null_io_buffer 2019-07-13 10:47:20 +10:00
Nigel Tao d7d2d9708e Remove some obsolete limit/mark I/O methods 2019-07-06 11:43:31 +10:00
Nigel Tao 9f7435c7b4 Add io_writer.history_available method
Also change copy_n_from_history to examine the buffer start instead of
the buffer mark.

name                                             old speed     new speed     delta

wuffs_deflate_decode_1k_full_init/clang5         151MB/s ± 0%  134MB/s ± 1%  -11.11%  (p=0.000 n=10+10)
wuffs_deflate_decode_1k_part_init/clang5         187MB/s ± 0%  162MB/s ± 1%  -13.11%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5        241MB/s ± 0%  220MB/s ± 0%   -8.76%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/clang5        248MB/s ± 0%  225MB/s ± 0%   -9.12%  (p=0.000 n=10+9)
wuffs_deflate_decode_100k_just_one_read/clang5   288MB/s ± 0%  270MB/s ± 0%   -6.16%  (p=0.000 n=10+10)
wuffs_deflate_decode_100k_many_big_reads/clang5  239MB/s ± 0%  225MB/s ± 0%   -5.84%  (p=0.000 n=10+10)

wuffs_deflate_decode_1k_full_init/gcc7           153MB/s ± 1%  151MB/s ± 1%   -1.13%  (p=0.000 n=10+9)
wuffs_deflate_decode_1k_part_init/gcc7           187MB/s ± 1%  186MB/s ± 1%     ~     (p=0.052 n=10+10)
wuffs_deflate_decode_10k_full_init/gcc7          261MB/s ± 0%  256MB/s ± 1%   -1.83%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/gcc7          269MB/s ± 1%  264MB/s ± 1%   -1.62%  (p=0.000 n=10+10)
wuffs_deflate_decode_100k_just_one_read/gcc7     313MB/s ± 0%  310MB/s ± 1%   -0.69%  (p=0.000 n=9+10)
wuffs_deflate_decode_100k_many_big_reads/gcc7    247MB/s ± 0%  247MB/s ± 0%     ~     (p=0.089 n=10+10)
2019-07-06 11:26:05 +10:00
Nigel Tao ff1e3c9c48 Add mark/since/count_since methods
name                                             old speed     new speed     delta

wuffs_deflate_decode_1k_full_init/clang5         149MB/s ± 0%  151MB/s ± 1%  +1.46%  (p=0.000 n=9+7)
wuffs_deflate_decode_1k_part_init/clang5         183MB/s ± 1%  188MB/s ± 2%  +2.40%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5        236MB/s ± 0%  242MB/s ± 1%  +2.56%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/clang5        243MB/s ± 0%  249MB/s ± 0%  +2.36%  (p=0.000 n=9+9)
wuffs_deflate_decode_100k_just_one_read/clang5   279MB/s ± 0%  288MB/s ± 1%  +3.28%  (p=0.000 n=9+8)
wuffs_deflate_decode_100k_many_big_reads/clang5  232MB/s ± 0%  240MB/s ± 1%  +3.76%  (p=0.000 n=9+9)

wuffs_deflate_decode_1k_full_init/gcc7           152MB/s ± 1%  152MB/s ± 1%    ~     (p=0.661 n=10+9)
wuffs_deflate_decode_1k_part_init/gcc7           188MB/s ± 0%  187MB/s ± 1%  -0.58%  (p=0.013 n=10+9)
wuffs_deflate_decode_10k_full_init/gcc7          260MB/s ± 0%  260MB/s ± 0%    ~     (p=0.393 n=10+10)
wuffs_deflate_decode_10k_part_init/gcc7          268MB/s ± 0%  268MB/s ± 0%    ~     (p=0.971 n=10+10)
wuffs_deflate_decode_100k_just_one_read/gcc7     312MB/s ± 1%  312MB/s ± 0%    ~     (p=0.720 n=10+9)
wuffs_deflate_decode_100k_many_big_reads/gcc7    247MB/s ± 1%  247MB/s ± 0%  -0.26%  (p=0.022 n=10+9)
2019-07-06 09:58:51 +10:00
Nigel Tao 3c86337cac Fix some more -Wconversion warnings 2019-04-07 16:04:30 +10:00
Nigel Tao ef7aa0d980 Rename "!=" to "<>"; "!" now only shows impurity 2019-03-02 14:51:32 +11:00
Nigel Tao 8794a586ac Add wuffs_foo__bar__initialize methods 2019-02-09 12:54:02 +11:00
Nigel Tao d1f1340d47 Add a nothing built-in literal 2019-02-03 14:01:19 +11:00
Nigel Tao 1af543866c Add an implicit coroutine_resumed variable 2019-01-13 11:41:58 +11:00
Nigel Tao 89c136ebe4 Add token.ID.IsCannotAssignTo 2019-01-13 11:15:17 +11:00
Nigel Tao b18209c7dd Re-order some token.ID numbers 2019-01-13 11:11:39 +11:00
Nigel Tao a954e9ad81 Insert implicit semi-colons after keywords 2018-12-29 13:17:21 +11:00
Nigel Tao d552f88738 Make Iterate contain Assign's not Var's 2018-12-27 10:35:27 +11:00
Nigel Tao 33a4557d98 Collect GIF's LZW data into larger batches
name                                    old speed     new speed     delta

wuffs_gif_decode_1k_bw/clang            224MB/s ± 1%  227MB/s ± 0%  +0.98%  (p=0.000 n=10+9)
wuffs_gif_decode_1k_color/clang         116MB/s ± 1%  118MB/s ± 1%  +2.26%  (p=0.000 n=10+10)
wuffs_gif_decode_10k_bgra/clang         541MB/s ± 0%  568MB/s ± 1%  +4.97%  (p=0.000 n=9+10)
wuffs_gif_decode_10k_indexed/clang      144MB/s ± 0%  152MB/s ± 0%  +5.61%  (p=0.000 n=9+10)
wuffs_gif_decode_100k_artificial/clang  438MB/s ± 1%  454MB/s ± 1%  +3.56%  (p=0.000 n=9+10)
wuffs_gif_decode_100k_realistic/clang   171MB/s ± 0%  179MB/s ± 0%  +4.64%  (p=0.000 n=8+10)
wuffs_gif_decode_1000k/clang            174MB/s ± 0%  180MB/s ± 0%  +3.90%  (p=0.000 n=9+10)
wuffs_gif_decode_anim_screencap/clang   897MB/s ± 1%  943MB/s ± 0%  +5.10%  (p=0.000 n=9+9)

wuffs_gif_decode_1k_bw/gcc              250MB/s ± 1%  241MB/s ± 1%  -3.26%  (p=0.000 n=10+10)
wuffs_gif_decode_1k_color/gcc           132MB/s ± 1%  130MB/s ± 1%  -2.15%  (p=0.000 n=10+10)
wuffs_gif_decode_10k_bgra/gcc           534MB/s ± 1%  535MB/s ± 1%    ~     (p=0.211 n=9+10)
wuffs_gif_decode_10k_indexed/gcc        162MB/s ± 1%  163MB/s ± 0%    ~     (p=0.105 n=10+10)
wuffs_gif_decode_100k_artificial/gcc    460MB/s ± 0%  456MB/s ± 0%  -0.80%  (p=0.000 n=10+10)
wuffs_gif_decode_100k_realistic/gcc     186MB/s ± 0%  186MB/s ± 1%  -0.33%  (p=0.001 n=9+10)
wuffs_gif_decode_1000k/gcc              189MB/s ± 1%  188MB/s ± 1%    ~     (p=0.053 n=9+10)
wuffs_gif_decode_anim_screencap/gcc     981MB/s ± 1%  971MB/s ± 1%  -0.95%  (p=0.000 n=10+10)
2018-12-15 14:10:10 +11:00
Nigel Tao fad2ddce68 Generate less code for foo.since_mark().length() 2018-12-09 11:15:10 +11:00
Nigel Tao 6d2bb77bb7 Add a data:etc argument to io_bind 2018-12-09 09:53:46 +11:00
Nigel Tao e992921dce Add an io_limit keyword 2018-12-09 09:03:21 +11:00
Nigel Tao 6c9dca47ee Add a base.pixel_swizzler type 2018-12-08 13:25:53 +11:00
Nigel Tao 9741eada02 Replace "= try foo" with "=? foo" 2018-12-01 13:11:47 +11:00
Nigel Tao c986536230 Rename some read_uxx methods as read_uxx_as_uyy 2018-11-25 12:15:05 +11:00
Nigel Tao c72f7a158d Re-order some token.ID numbers 2018-11-25 11:24:30 +11:00
Nigel Tao 762b320b5e Make the return value mandatory; add ok 2018-11-24 15:09:28 +11:00
Nigel Tao 555a72d7a9 Add a decode_frame_options type 2018-09-02 15:08:00 +10:00
Nigel Tao 7798beaa8c Add I/O positions 2018-08-26 16:31:19 +10:00
Nigel Tao 6236e7205f Remove packageid 2018-08-12 21:44:49 +10:00
Nigel Tao eec0fce647 Change error "?foo" to status "?foo" 2018-08-12 21:31:56 +10:00
Nigel Tao ca06083f8a Rename the implicit in variable to args 2018-07-29 10:26:22 +10:00
Nigel Tao 58ded30954 Remove the implicit out variable 2018-07-29 10:10:58 +10:00
Nigel Tao 1c75f7b748 Redo {frame,image,pixel}_config and pixel_buffer 2018-07-21 09:15:33 +10:00
Nigel Tao 15f2f42b77 Add a nullptr literal 2018-07-15 16:41:23 +10:00