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
8d05db48a4
Remove some hard coded bcheckExprOther checks
2018-04-21 08:45:59 +10:00
Nigel Tao
c479907bff
Remove typeExprPlaceholder
2018-04-20 17:16:23 +10:00
Nigel Tao
4ddc2f0055
Make an ast.TypeExpr's ID0 field more consistent
2018-04-20 16:21:16 +10:00
Nigel Tao
eeebd58d7b
Remove token ID/Key distinction, part 11 of N
2018-04-15 17:57:10 +10:00
Nigel Tao
1717d5befd
Remove token ID/Key distinction, part 8 of N
2018-04-15 15:22:09 +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
7e90967717
Fill in a GIF image_config
2018-02-09 16:05:04 +11:00
Nigel Tao
0b06dbcf02
Simplify big.Int comparisons to zero
2018-01-04 11:08:41 +11:00
Nigel Tao
457235a382
Use qualified IDs instead of a usee map
2017-12-29 14:23:58 +11:00
Nigel Tao
117a6c829b
Unexport some unused lang/check API
2017-12-29 14:02:56 +11:00
Nigel Tao
139bcfa7f1
Add pkg to ast Expr nodes
2017-12-29 13:28:31 +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
10e4936f08
Add pkg to ast Const and Status nodes
2017-12-28 15:14:55 +11:00
Nigel Tao
8b0c63df09
Clean up tcheckDot
2017-12-28 11:39:24 +11:00
Nigel Tao
1255b162ea
Resolve used packages during type checking
2017-12-28 11:24:59 +11:00
Nigel Tao
172bbdbc3f
Add even more built-in slice functions
2017-12-21 14:32:53 +11:00
Nigel Tao
c59f65674b
Add some more built-in slice functions
2017-12-21 14:25:00 +11:00
Nigel Tao
339673ae82
Add built-in slice functions
2017-12-16 17:23:49 +11:00
Nigel Tao
333b11dc65
Add some more built-in functions
2017-12-16 15:05:26 +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
b92c782f95
Type check call arguments more thoroughly
2017-12-09 14:44:32 +11:00
Nigel Tao
bf00d114e4
Let ast.TypeExpr represent method types
2017-12-09 13:55:59 +11:00
Nigel Tao
8e2255916e
Drop the "flate_" in "deflate.flate_decoder"
2017-12-04 10:35:08 +11:00
Nigel Tao
1388f84e5c
Rename std/flate to std/deflate
2017-12-04 10:27:48 +11:00
Nigel Tao
0a32c01014
Allow referring to types from used packages
2017-12-03 13:21:23 +11:00
Nigel Tao
5f5791e56d
Remove redundant builtin.TrimQuotes function
2017-12-02 12:25:50 +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
e2ce9f1b1d
Add a writer1.is_marked method.
2017-11-09 10:38:24 +11:00
Nigel Tao
13731f989f
Add a reader1.unread_u8 method.
...
Also re-enable a number of std/flate tests and benchmarks.
It's not an optimization per se, but as a data point, here are some
benchmark numbers between 36a93fa and this commit. 36a93fa is "36a93fa
Add a TODO about impure functions", which is one commit before "f968950
Read bits up front in decode_huffman_fast", and f968950 was the commit
that made decode_huffman_fast read more than one byte at a time.
name old speed new speed delta
puffs_adler32_10k/clang 2.45GB/s ± 0% 2.45GB/s ± 0% ~ (p=0.684 n=10+10)
puffs_adler32_100k/clang 2.45GB/s ± 0% 2.46GB/s ± 0% +0.07% (p=0.019 n=10+10)
puffs_flate_decode_1k/clang 124MB/s ± 0% 132MB/s ± 0% +6.06% (p=0.000 n=10+10)
puffs_flate_decode_10k/clang 145MB/s ± 0% 174MB/s ± 0% +20.19% (p=0.000 n=9+10)
puffs_flate_decode_100k/clang 168MB/s ± 0% 208MB/s ± 0% +23.31% (p=0.000 n=10+10)
puffs_zlib_decode_10k/clang 136MB/s ± 0% 162MB/s ± 0% +18.94% (p=0.000 n=10+9)
puffs_zlib_decode_100k/clang 158MB/s ± 0% 192MB/s ± 0% +21.58% (p=0.000 n=10+9)
puffs_adler32_10k/gcc 3.26GB/s ± 0% 3.26GB/s ± 0% ~ (p=0.631 n=10+10)
puffs_adler32_100k/gcc 3.27GB/s ± 0% 3.27GB/s ± 0% ~ (p=0.237 n=10+8)
puffs_flate_decode_1k/gcc 95.3MB/s ± 0% 105.5MB/s ± 0% +10.67% (p=0.000 n=10+10)
puffs_flate_decode_10k/gcc 110MB/s ± 0% 140MB/s ± 0% +27.32% (p=0.000 n=9+9)
puffs_flate_decode_100k/gcc 121MB/s ± 0% 150MB/s ± 0% +24.02% (p=0.000 n=8+10)
puffs_zlib_decode_10k/gcc 112MB/s ± 0% 120MB/s ± 0% +6.96% (p=0.000 n=10+9)
puffs_zlib_decode_100k/gcc 123MB/s ± 0% 134MB/s ± 0% +8.93% (p=0.000 n=9+8)
2017-11-05 15:59:02 +11:00
Nigel Tao
aa1f0078db
Add decode_huffman_fast.
...
It's not fast yet, and the immediate impact is indeed a significant
performance loss, but follow-up commits should make it faster.
name old speed new speed delta
puffs_adler32_10k/clang 2.41GB/s ± 0% 2.40GB/s ± 1% ~ (p=0.222 n=5+5)
puffs_adler32_100k/clang 2.41GB/s ± 1% 2.39GB/s ± 1% -0.97% (p=0.016 n=5+5)
puffs_flate_decode_1k/clang 116MB/s ± 5% 115MB/s ± 0% ~ (p=0.310 n=5+5)
puffs_flate_decode_10k/clang 145MB/s ± 0% 139MB/s ± 0% -4.18% (p=0.016 n=4+5)
puffs_flate_decode_100k/clang 164MB/s ± 5% 158MB/s ± 1% ~ (p=0.151 n=5+5)
puffs_zlib_decode_10k/clang 135MB/s ± 2% 131MB/s ± 0% -2.84% (p=0.008 n=5+5)
puffs_zlib_decode_100k/clang 154MB/s ± 1% 148MB/s ± 2% -4.09% (p=0.016 n=4+5)
puffs_adler32_10k/gcc 3.13GB/s ± 4% 3.19GB/s ± 0% +1.94% (p=0.032 n=5+5)
puffs_adler32_100k/gcc 3.14GB/s ± 3% 3.20GB/s ± 3% ~ (p=0.056 n=5+5)
puffs_flate_decode_1k/gcc 122MB/s ± 1% 94MB/s ± 1% -22.84% (p=0.008 n=5+5)
puffs_flate_decode_10k/gcc 143MB/s ± 0% 110MB/s ± 0% -23.24% (p=0.008 n=5+5)
puffs_flate_decode_100k/gcc 158MB/s ± 0% 118MB/s ± 0% -24.98% (p=0.008 n=5+5)
puffs_zlib_decode_10k/gcc 136MB/s ± 0% 119MB/s ± 1% -12.63% (p=0.008 n=5+5)
puffs_zlib_decode_100k/gcc 150MB/s ± 1% 124MB/s ± 2% -17.17% (p=0.008 n=5+5)
2017-11-04 14:45:11 +11:00
Nigel Tao
4810db3994
Rename decode_huffman to decode_huffman_slow.
2017-11-04 13:38:24 +11:00
Nigel Tao
4b572702f9
Remove the return error "foo" special case.
2017-10-27 14:39:48 +11:00
Nigel Tao
7cefcccc98
Make error "foo" an expression.
2017-10-27 13:00:13 +11:00
Nigel Tao
9a8508857f
Fix the "limitt" typo.
2017-10-27 11:10:25 +11:00
Nigel Tao
cbc8c39375
Delete old limit- and mark-related code.
2017-10-27 10:57:32 +11:00
Nigel Tao
8ff453c752
Re-do how limits work.
2017-10-26 16:59:03 +11:00
Nigel Tao
a9ba7e85ac
Add reader1.limitt and writer1.limitt methods.
...
The "limitt" typo will be renamed to "limit" once we remove the keyword
named "limit".
2017-10-26 15:06:59 +11:00
Nigel Tao
b886e3a1ea
Add reader1.mark and reader1.since_mark methods.
2017-10-26 14:39:38 +11:00