Nigel Tao
a6bf59006f
Add max and min methods
2018-05-12 20:08:52 +10:00
Nigel Tao
eb377b9684
Delete obsolete set_literal_width special case
2018-05-12 15:55:53 +10:00
Nigel Tao
7a9554194c
Allow built-in args' types to be refined
2018-05-11 14:49:15 +10:00
Nigel Tao
b65fdee306
Make the else-length-1 iterate tail explicit
2018-05-11 10:22:24 +10:00
Nigel Tao
e8eeee371a
Raise built-in ident capacity from 96 to 768
2018-05-05 09:23:10 +10:00
Nigel Tao
1702c1e303
Rename iterate's step to length
2018-05-05 08:25:23 +10:00
Nigel Tao
877b4f648f
Remove p[i] for ptr-typed p
2018-05-04 13:29:51 +10:00
Nigel Tao
96a549814d
Change iterate variable types from ptr to slice
2018-05-04 13:20:34 +10:00
Nigel Tao
d85a94360e
Add length fact inside iterate blocks
2018-05-04 13:00:10 +10:00
Nigel Tao
f64bf4af61
Allow p[i] for ptr-typed p; speed up std/crc32
...
name old speed new speed delta
wuffs_crc32_ieee_10k/clang 483MB/s ± 1% 2263MB/s ± 3% +368.94% (p=0.000 n=48+5)
wuffs_crc32_ieee_100k/clang 482MB/s ± 1% 2257MB/s ± 3% +367.96% (p=0.000 n=48+5)
wuffs_crc32_ieee_10k/gcc 419MB/s ± 1% 2473MB/s ± 1% +489.93% (p=0.000 n=48+5)
wuffs_crc32_ieee_100k/gcc 419MB/s ± 1% 2465MB/s ± 1% +488.02% (p=0.000 n=47+5)
wuffs_gzip_decode_10k/clang 153MB/s ± 1% 208MB/s ± 0% +35.30% (p=0.000 n=48+5)
wuffs_gzip_decode_100k/clang 168MB/s ± 1% 236MB/s ± 0% +40.67% (p=0.000 n=50+4)
wuffs_gzip_decode_10k/gcc 156MB/s ± 1% 231MB/s ± 3% +47.91% (p=0.000 n=50+5)
wuffs_gzip_decode_100k/gcc 172MB/s ± 1% 267MB/s ± 0% +55.64% (p=0.000 n=48+5)
2018-05-04 11:59:48 +10:00
Nigel Tao
a73e56712d
Add an iterate step argument
2018-05-03 22:34:24 +10:00
Nigel Tao
92682e6ccc
Add token IDs for small powers of 2
2018-05-03 21:54:16 +10:00
Nigel Tao
9a67d3b701
Reorganize some switch cases
2018-05-03 20:59:44 +10:00
Nigel Tao
bc9e91b9e9
Remove a dummy parameter hack
2018-05-02 20:45:36 +10:00
Nigel Tao
395890c287
Add an io_bind keyword
2018-04-28 11:45:33 +10:00
Nigel Tao
7f0923a9cf
Remove the unused &^ AmpHat operator
2018-04-26 11:24:27 +10:00
Nigel Tao
6d167b7424
Add ~sat+ and ~sat-
2018-04-26 11:13:19 +10:00
Nigel Tao
a698b47cb6
Rename ~+ to ~mod+; add ~mod-.
2018-04-26 10:05:19 +10:00
Nigel Tao
fd2d6e5b8a
Tighten up low_bits / high_bits bounds checking
2018-04-21 15:44:12 +10:00
Nigel Tao
8d05db48a4
Remove some hard coded bcheckExprOther checks
2018-04-21 08:45:59 +10:00
Nigel Tao
ba0db5b4d1
Remove some hard coded bcheckExprOther checks
2018-04-20 17:03:29 +10:00
Nigel Tao
4ddc2f0055
Make an ast.TypeExpr's ID0 field more consistent
2018-04-20 16:21:16 +10:00
Nigel Tao
90a794c0b8
Remove some hard coded bcheckExprOther checks
2018-04-20 14:19:41 +10:00
Nigel Tao
eeebd58d7b
Remove token ID/Key distinction, part 11 of N
2018-04-15 17:57:10 +10:00
Nigel Tao
7007682182
Remove token ID/Key distinction, part 2 of N
2018-04-15 10:58:53 +10:00
Nigel Tao
f95239f6e0
Rename u32, io_reader, etc to base.u32, etc
2018-04-12 21:49:17 +10:00
Nigel Tao
2b91e7861c
Prepare array and slice tokens
2018-04-05 21:51:38 +10:00
Nigel Tao
97aab37462
Rename buf1, reader1, etc to io_buffer, io_reader
...
Also remove the unused Buf1, Buf2 and Usize tokens.
2018-04-05 20:49:48 +10:00
Nigel Tao
e700bcd4f8
Bounds check consts by value, not type
...
This lets us prove "c == 123" given "pri const c u32 = 123".
Fixes #5
2018-03-31 16:43:53 +11:00
Nigel Tao
3a7ccfe9b4
Implement crc32's ieee.update
2018-03-25 18:09:51 +11:00
Nigel Tao
0b06dbcf02
Simplify big.Int comparisons to zero
2018-01-04 11:08:41 +11:00
Nigel Tao
117a6c829b
Unexport some unused lang/check API
2017-12-29 14:02:56 +11:00
Nigel Tao
1004d898d5
Add statusPkg arg to ast.NewExpr
2017-12-29 13:33:46 +11:00
Nigel Tao
8b4ba30a36
Rename some ast.Expr methods
2017-12-29 12:58:01 +11:00
Nigel Tao
ed03c5943a
Add pkg to ast Func, Struct and TypeExpr nodes
2017-12-29 12:08:17 +11:00
Nigel Tao
d14b56ea39
Type check built-in functions more thoroughly
2017-12-16 13:25:26 +11:00
Nigel Tao
3b822f8b17
Rename some arguments for consistency
2017-12-09 16:03:18 +11:00
Nigel Tao
90f1fcc328
Bounds check call arguments more thoroughly
2017-12-09 16:01:01 +11:00
Nigel Tao
906bca4e39
Drop volatile facts after a yield statement
2017-12-01 16:24:54 +11:00
Nigel Tao
65dcf6a5b9
Add a yield keyword
2017-12-01 15:24:48 +11:00
Nigel Tao
7601fb45ce
Rename String(*token.Map) to Str(*token.Map)
2017-12-01 11:22:08 +11:00
Nigel Tao
79a94558be
Rename PUFFS to WUFFS, part 5 of N
2017-11-30 16:37:20 +11:00
Nigel Tao
0cea46531b
Rename PUFFS to WUFFS, part 2 of N
2017-11-30 16:23:16 +11:00
Nigel Tao
693af478d6
Rename some bcheckOptimizeXxx methods.
2017-11-09 15:15:30 +11:00
Nigel Tao
d2a01dd938
Refactor lang/check/bounds.go.
2017-11-09 15:11:45 +11:00
Nigel Tao
9b4cc179c4
Use puffs_base__writer1__copy_from_history32__bco.
...
name old speed new speed delta
puffs_adler32_10k/clang 2.45GB/s ± 0% 2.45GB/s ± 0% ~ (p=0.063 n=5+5)
puffs_adler32_100k/clang 2.45GB/s ± 0% 2.45GB/s ± 0% ~ (p=0.905 n=5+4)
puffs_flate_decode_1k/clang 144MB/s ± 1% 146MB/s ± 0% +1.41% (p=0.016 n=5+5)
puffs_flate_decode_10k/clang 186MB/s ± 0% 204MB/s ± 0% +9.39% (p=0.008 n=5+5)
puffs_flate_decode_100k/clang 228MB/s ± 0% 240MB/s ± 0% +5.24% (p=0.008 n=5+5)
puffs_zlib_decode_10k/clang 173MB/s ± 0% 188MB/s ± 0% +8.69% (p=0.008 n=5+5)
puffs_zlib_decode_100k/clang 209MB/s ± 0% 219MB/s ± 0% +4.81% (p=0.008 n=5+5)
puffs_adler32_10k/gcc 3.26GB/s ± 0% 3.26GB/s ± 0% ~ (p=0.286 n=5+4)
puffs_adler32_100k/gcc 3.26GB/s ± 0% 3.26GB/s ± 0% ~ (p=0.190 n=5+4)
puffs_flate_decode_1k/gcc 148MB/s ± 0% 148MB/s ± 0% +0.27% (p=0.016 n=5+4)
puffs_flate_decode_10k/gcc 245MB/s ± 0% 254MB/s ± 0% +3.73% (p=0.008 n=5+5)
puffs_flate_decode_100k/gcc 284MB/s ± 0% 298MB/s ± 0% +4.90% (p=0.008 n=5+5)
puffs_zlib_decode_10k/gcc 228MB/s ± 0% 236MB/s ± 0% +3.33% (p=0.008 n=5+5)
puffs_zlib_decode_100k/gcc 261MB/s ± 0% 273MB/s ± 0% +4.46% (p=0.016 n=5+4)
2017-11-09 15:08:28 +11:00
Nigel Tao
67fb7bf1dc
Prepare to optimize w.since_mark.
...
It's not obvious why the benchmark numbers don't improve, so the
intuitively-better codegen is disabled for now. I'm also having trouble
exactly reproducing the numbers from yesterdays' commits. While I'm
investigating, land this commit and move on.
2017-11-09 12:03:38 +11:00
Nigel Tao
3bdd515e47
Allow "assert foo", not just "assert foo < bar".
2017-11-09 10:53:37 +11:00
Nigel Tao
e2ce9f1b1d
Add a writer1.is_marked method.
2017-11-09 10:38:24 +11:00
Nigel Tao
0bc6f792fb
Remove some suspensions from decode_huffman_fast.
...
name old speed new speed delta
puffs_adler32_10k/clang 2.41GB/s ± 1% 2.39GB/s ± 2% -0.88% (p=0.022 n=9+10)
puffs_adler32_100k/clang 2.41GB/s ± 1% 2.39GB/s ± 2% ~ (p=0.095 n=10+9)
puffs_flate_decode_1k/clang 136MB/s ± 2% 134MB/s ± 1% -0.86% (p=0.036 n=9+8)
puffs_flate_decode_10k/clang 172MB/s ± 0% 175MB/s ± 0% +1.96% (p=0.000 n=8+9)
puffs_flate_decode_100k/clang 206MB/s ± 0% 209MB/s ± 1% +1.38% (p=0.000 n=8+9)
puffs_zlib_decode_10k/clang 160MB/s ± 1% 163MB/s ± 2% +1.73% (p=0.001 n=9+9)
puffs_zlib_decode_100k/clang 189MB/s ± 1% 188MB/s ± 6% ~ (p=0.143 n=10+10)
puffs_adler32_10k/gcc 3.27GB/s ± 0% 3.20GB/s ± 2% -2.03% (p=0.000 n=8+10)
puffs_adler32_100k/gcc 3.27GB/s ± 0% 3.21GB/s ± 1% -1.89% (p=0.000 n=8+10)
puffs_flate_decode_1k/gcc 141MB/s ± 1% 139MB/s ± 1% -1.66% (p=0.000 n=9+10)
puffs_flate_decode_10k/gcc 200MB/s ± 0% 209MB/s ± 1% +4.73% (p=0.000 n=10+10)
puffs_flate_decode_100k/gcc 242MB/s ± 0% 237MB/s ± 0% -2.19% (p=0.000 n=9+10)
puffs_zlib_decode_10k/gcc 188MB/s ± 0% 195MB/s ± 1% +3.71% (p=0.000 n=10+10)
puffs_zlib_decode_100k/gcc 225MB/s ± 0% 221MB/s ± 0% -1.84% (p=0.000 n=8+9)
2017-11-06 16:59:27 +11:00