Commit Graph
224 Commits
Author SHA1 Message Date
Nigel Tao a1a70da539 Add iterate advance parameter 2021-01-11 00:03:44 +11:00
Nigel Tao beaf3ef11f Add choose
wuffs_png_decode_filter_1_sub/clang9       905MB/s ± 0%  1339MB/s ± 0%  +48.05%  (p=0.008 n=5+5)
wuffs_png_decode_filter_1_sub/gcc10       1.12GB/s ± 0%  1.85GB/s ± 0%  +64.80%  (p=0.016 n=5+4)
2021-01-06 23:16:16 +11:00
Nigel Tao 81c6437e09 Add choosy 2021-01-04 23:20:41 +11:00
Nigel Tao b7b39e34d8 Add more facts after "x = y.max(a: z)"
wuffs_png_decode_19k_8bpp/clang9          95.8MB/s ± 1%  95.7MB/s ± 1%     ~     (p=0.310 n=5+5)
wuffs_png_decode_40k_24bpp/clang9          112MB/s ± 0%   112MB/s ± 0%   +0.16%  (p=0.008 n=5+5)
wuffs_png_decode_77k_8bpp/clang9           358MB/s ± 0%   357MB/s ± 0%     ~     (p=0.905 n=4+5)
wuffs_png_decode_552k_32bpp/clang9         143MB/s ± 0%   119MB/s ± 1%  -17.27%  (p=0.008 n=5+5)
wuffs_png_decode_4002k_24bpp/clang9        114MB/s ± 0%   114MB/s ± 0%   +0.42%  (p=0.008 n=5+5)

wuffs_png_decode_filter_1_sub/clang9      1.02GB/s ± 0%  0.92GB/s ± 1%   -9.75%  (p=0.008 n=5+5)
wuffs_png_decode_filter_2_up/clang9       13.5GB/s ± 0%  13.3GB/s ± 1%   -1.25%  (p=0.008 n=5+5)
wuffs_png_decode_filter_3_average/clang9   491MB/s ± 0%   554MB/s ± 0%  +12.72%  (p=0.008 n=5+5)
wuffs_png_decode_filter_4_paeth/clang9    75.5MB/s ± 0%  61.9MB/s ± 1%  -17.95%  (p=0.008 n=5+5)

wuffs_png_decode_19k_8bpp/gcc10           99.4MB/s ± 0%  99.9MB/s ± 1%   +0.51%  (p=0.032 n=5+5)
wuffs_png_decode_40k_24bpp/gcc10           116MB/s ± 0%   114MB/s ± 0%   -2.27%  (p=0.008 n=5+5)
wuffs_png_decode_77k_8bpp/gcc10            321MB/s ± 0%   325MB/s ± 0%   +1.32%  (p=0.016 n=5+4)
wuffs_png_decode_552k_32bpp/gcc10          159MB/s ± 0%   160MB/s ± 0%     ~     (p=0.190 n=5+4)
wuffs_png_decode_4002k_24bpp/gcc10         117MB/s ± 0%   117MB/s ± 0%     ~     (p=0.310 n=5+5)

wuffs_png_decode_filter_1_sub/gcc10       1.12GB/s ± 0%  0.98GB/s ± 0%  -12.54%  (p=0.008 n=5+5)
wuffs_png_decode_filter_2_up/gcc10        11.3GB/s ± 0%  11.5GB/s ± 1%   +2.08%  (p=0.016 n=4+5)
wuffs_png_decode_filter_3_average/gcc10    644MB/s ± 0%   644MB/s ± 0%     ~     (p=0.151 n=5+5)
wuffs_png_decode_filter_4_paeth/gcc10     83.8MB/s ± 0%  84.3MB/s ± 1%     ~     (p=0.095 n=5+5)
2021-01-02 22:35:54 +11:00
Nigel Tao f6d11c78da Add ast.Expr IsArgsDotFoo and IsMethodCall methods 2020-12-23 15:13:14 +11:00
Nigel Tao 43630d14f0 Make lang/ast Str methods return non-empty for nil 2020-11-09 21:39:50 +11:00
Nigel Tao ed48514f30 Remove ast.NewExpr statusPkg arg 2020-06-10 12:05:48 +10:00
Nigel Tao 6f43ab4b92 Reject duplicate top level names 2020-06-09 16:59:43 +10: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 4cfc367a9b Factor out an ast.Terminates function 2020-04-02 17:32:37 +11:00
Nigel Tao 40d200cdab Drop cached expr MBounds when re-checking asserts
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21371
2020-03-26 08:14:43 +11:00
Nigel Tao 58351d44da Make endwhile mandatory for nameless loops 2020-03-25 21:40:00 +11:00
Nigel Tao 9e50918718 Add single-quoted strings 2020-03-25 19:41:02 +11:00
Nigel Tao 2d2a880c18 Ban unlabeled break/continue for labeled loop 2020-02-24 14:20:05 +11:00
Nigel Tao 21c87ce6b3 Skip writeSaveDerivedVar if func ends with return 2020-02-19 21:10:19 +11:00
Nigel Tao 737e31ff3a Add tokens 2020-02-11 12:02:58 +11:00
Nigel Tao ea54c2ea11 Add syntax support for implementing interfaces 2020-01-09 15:45:29 +11:00
Nigel Tao 8f5983f151 Tweak ast.Struct field numbering 2020-01-08 22:20:17 +11:00
Nigel Tao 4323a16707 Add interface method implementations 2020-01-06 23:24:08 +11:00
Nigel Tao cb7e9e0ce9 Add a ~mod* operator 2019-11-12 21:30:45 +11:00
Nigel Tao 1520a1f345 Rename x T to x: T for fields and func args 2019-10-12 21:49:04 +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 7872a8893b Rename while:label to while.label 2019-10-12 19:04:32 +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 ef7aa0d980 Rename "!=" to "<>"; "!" now only shows impurity 2019-03-02 14:51:32 +11:00
Nigel Tao 045f180a6c Rename errors from "?msg" to "#msg" 2019-02-23 17:06:24 +11:00
Nigel Tao 0ab52c6204 Move cgen's sub-structs to private_data
name                                             old speed      new speed      delta

wuffs_gif_decode_1k_bw/clang5                     243MB/s ± 1%   243MB/s ± 1%    ~     (p=0.101 n=47+48)
wuffs_gif_decode_1k_color/clang5                  142MB/s ± 1%   142MB/s ± 1%  +0.36%  (p=0.000 n=48+47)
wuffs_gif_decode_10k_bgra/clang5                  734MB/s ± 1%   728MB/s ± 1%  -0.78%  (p=0.000 n=46+50)
wuffs_gif_decode_10k_indexed/clang5               197MB/s ± 0%   196MB/s ± 1%  -0.52%  (p=0.000 n=47+46)
wuffs_gif_decode_20k/clang5                       250MB/s ± 1%   249MB/s ± 1%    ~     (p=0.189 n=49+46)
wuffs_gif_decode_100k_artificial/clang5           556MB/s ± 1%   555MB/s ± 1%  -0.23%  (p=0.000 n=46+44)
wuffs_gif_decode_100k_realistic/clang5            229MB/s ± 1%   229MB/s ± 0%    ~     (p=0.055 n=48+48)
wuffs_gif_decode_1000k/clang5                     233MB/s ± 1%   234MB/s ± 0%  +0.30%  (p=0.000 n=48+45)
wuffs_gif_decode_anim_screencap/clang5           1.11GB/s ± 1%  1.10GB/s ± 0%  -0.28%  (p=0.000 n=46+47)

wuffs_gif_decode_1k_bw/gcc7                       257MB/s ± 2%   263MB/s ± 1%  +2.67%  (p=0.000 n=49+47)
wuffs_gif_decode_1k_color/gcc7                    142MB/s ± 1%   146MB/s ± 1%  +3.25%  (p=0.000 n=50+49)
wuffs_gif_decode_10k_bgra/gcc7                    627MB/s ± 1%   625MB/s ± 1%  -0.35%  (p=0.000 n=48+49)
wuffs_gif_decode_10k_indexed/gcc7                 197MB/s ± 1%   196MB/s ± 1%  -0.21%  (p=0.000 n=48+43)
wuffs_gif_decode_20k/gcc7                         239MB/s ± 0%   239MB/s ± 1%  +0.21%  (p=0.000 n=50+47)
wuffs_gif_decode_100k_artificial/gcc7             511MB/s ± 0%   512MB/s ± 1%  +0.21%  (p=0.000 n=49+44)
wuffs_gif_decode_100k_realistic/gcc7              211MB/s ± 0%   212MB/s ± 1%  +0.39%  (p=0.000 n=45+44)
wuffs_gif_decode_1000k/gcc7                       215MB/s ± 0%   216MB/s ± 1%  +0.13%  (p=0.002 n=46+48)
wuffs_gif_decode_anim_screencap/gcc7             1.06GB/s ± 1%  1.06GB/s ± 1%  +0.12%  (p=0.007 n=45+48)

wuffs_lzw_decode_20k/clang5                       271MB/s ± 1%   270MB/s ± 1%  -0.34%  (p=0.000 n=49+49)
wuffs_lzw_decode_100k/clang5                      480MB/s ± 1%   478MB/s ± 1%  -0.31%  (p=0.001 n=48+50)

wuffs_lzw_decode_20k/gcc7                         263MB/s ± 1%   264MB/s ± 1%  +0.38%  (p=0.000 n=45+47)
wuffs_lzw_decode_100k/gcc7                        476MB/s ± 1%   482MB/s ± 2%  +1.30%  (p=0.000 n=47+50)
2019-02-10 11:22:04 +11:00
Nigel Tao 093268e179 Rename the !?? effect to ? 2018-12-29 13:57:57 +11:00
Nigel Tao 1ea32b3745 Remove the !? effect, leaving only ! and !?? 2018-12-29 13:36:38 +11:00
Nigel Tao 3ba450ba55 Make gif's decoder.copy_to_image_buffer ! not !? 2018-12-28 17:32:48 +11:00
Nigel Tao c9e6ee6fb3 Fold Expr statements into Assign statements 2018-12-27 17:36:08 +11:00
Nigel Tao 6dc68950c0 Drop the "= RHS" out of "var x T = RHS" 2018-12-27 11:29:47 +11:00
Nigel Tao d552f88738 Make Iterate contain Assign's not Var's 2018-12-27 10:35:27 +11:00
Nigel Tao 20e82ba97b Use interval.IntRange instead of ast.Bounds 2018-12-26 14:02:34 +11:00
Nigel Tao ef51d032ba Prohibit weak-effect funcs calling strong-effects 2018-12-26 11:43:15 +11:00
Nigel Tao eb0cbd802a Make SubExprHasEffect an ast.Flags not ast.Effect 2018-12-16 11:09:23 +11:00
Nigel Tao dd28f3c0f9 Remove the "? but not !?" effect 2018-12-16 11:03:31 +11:00
Nigel Tao 6d2bb77bb7 Add a data:etc argument to io_bind 2018-12-09 09:53:46 +11:00
Nigel Tao badbdfc487 Tweak io_bind syntax 2018-12-09 09:13:29 +11:00
Nigel Tao e992921dce Add an io_limit keyword 2018-12-09 09:03:21 +11:00
Nigel Tao 5cae1f8c82 Remove the obsolete Effect.RootCause concept 2018-12-01 13:37:33 +11:00
Nigel Tao 9741eada02 Replace "= try foo" with "=? foo" 2018-12-01 13:11:47 +11:00
Nigel Tao ad9851ea75 Prohibit effect-ful subexpressions 2018-12-01 11:33:26 +11:00
Nigel Tao 0482fadf41 Generate implicit wuffs_base__status for !? funcs 2018-11-24 15:41:56 +11:00
Nigel Tao 762b320b5e Make the return value mandatory; add ok 2018-11-24 15:09:28 +11:00
Nigel Tao 875362ea07 Change status "?foo" to just "?foo" 2018-11-24 12:36:42 +11:00