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
4ddc2f0055
Make an ast.TypeExpr's ID0 field more consistent
2018-04-20 16:21:16 +10:00
Nigel Tao
bbe3eef04b
Clarify a method TypeExpr's string form
2018-04-20 14:19:09 +10:00
Nigel Tao
6656b6e5e9
Tighten some more ast.TypeExpr methods
2018-04-16 08:19:54 +10:00
Nigel Tao
6c6a647cab
Tighten the ast.TypeExpr IsNumType methods
2018-04-15 18:33:25 +10:00
Nigel Tao
eeebd58d7b
Remove token ID/Key distinction, part 11 of N
2018-04-15 17:57:10 +10:00
Nigel Tao
81e02e7db6
Remove token ID/Key distinction, part 7 of N
2018-04-15 15:15:56 +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
d33db6dae0
Introduce "array[N] T" and "slice T" type syntax
2018-04-05 22:21:08 +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
a8e40fedc9
Implement the gzip checksum
...
Also fix a bug in ast.Raw.SetPackage, discovered because type checking
failed to show that "[] u8" and "[] u8" are equivalent types.
2018-03-28 12:30:00 +11:00
Nigel Tao
7e90967717
Fill in a GIF image_config
2018-02-09 16:05:04 +11:00
Nigel Tao
eabb0a7989
Re-organize the Node ID fields
2017-12-29 14:40:09 +11:00
Nigel Tao
1004d898d5
Add statusPkg arg to ast.NewExpr
2017-12-29 13:33:46 +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
33efa88e54
Fix a comment typo
2017-12-28 14:30:49 +11:00
Nigel Tao
c403f06b25
Fix ast.Expr.Str for impure calls
2017-12-28 14:27:02 +11:00
Nigel Tao
e450f049cf
Add an ast.Node.id2 field
2017-12-28 14:25:31 +11:00
Nigel Tao
5bf8c5d6ae
Add some docs about the Node ID fields
2017-12-28 12:53:21 +11:00
Nigel Tao
751d409e04
Remove unused ast.Raw methods
2017-12-28 12:52:57 +11:00
Nigel Tao
f6159a1c95
Consistently use a and t for ast and token
2017-12-28 11:47:46 +11:00
Nigel Tao
bdc47bd6e2
Save the "t" name for the token package
2017-12-28 11:42:09 +11:00
Nigel Tao
339673ae82
Add built-in slice functions
2017-12-16 17:23:49 +11:00
Nigel Tao
d14b56ea39
Type check built-in functions more thoroughly
2017-12-16 13:25:26 +11:00
Nigel Tao
bf00d114e4
Let ast.TypeExpr represent method types
2017-12-09 13:55:59 +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
024dc7f97a
Rename PUFFS to WUFFS, part 11 of N
2017-11-30 18:18:40 +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
30b54616a8
Check copy_from_history32's distance.
2017-11-09 12:53:19 +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
55e0bc513b
Don't suspend for read_u8 if data is available.
...
It's not obvious why the benchmarks get worse when the code looks
better, but the long term goal is for all of decode_huffman_fast to not
suspend, and this is one step along that path.
name old speed new speed delta
puffs_adler32_10k/clang 2.40GB/s ± 1% 2.40GB/s ± 1% ~ (p=0.841 n=5+5)
puffs_adler32_100k/clang 2.40GB/s ± 1% 2.39GB/s ± 2% ~ (p=0.421 n=5+5)
puffs_flate_decode_1k/clang 131MB/s ± 1% 128MB/s ± 0% -2.51% (p=0.008 n=5+5)
puffs_flate_decode_10k/clang 171MB/s ± 1% 167MB/s ± 2% -2.86% (p=0.008 n=5+5)
puffs_flate_decode_100k/clang 202MB/s ± 0% 193MB/s ± 2% -4.64% (p=0.016 n=4+5)
puffs_zlib_decode_10k/clang 159MB/s ± 1% 157MB/s ± 0% -1.65% (p=0.008 n=5+5)
puffs_zlib_decode_100k/clang 185MB/s ± 1% 180MB/s ± 1% -3.11% (p=0.008 n=5+5)
puffs_adler32_10k/gcc 3.26GB/s ± 0% 3.26GB/s ± 0% ~ (p=0.421 n=5+5)
puffs_adler32_100k/gcc 3.27GB/s ± 0% 3.26GB/s ± 0% ~ (p=0.151 n=5+5)
puffs_flate_decode_1k/gcc 132MB/s ± 0% 129MB/s ± 0% -2.29% (p=0.008 n=5+5)
puffs_flate_decode_10k/gcc 170MB/s ± 0% 164MB/s ± 0% -3.13% (p=0.008 n=5+5)
puffs_flate_decode_100k/gcc 207MB/s ± 0% 185MB/s ± 0% -10.45% (p=0.016 n=5+4)
puffs_zlib_decode_10k/gcc 162MB/s ± 0% 157MB/s ± 0% -2.95% (p=0.008 n=5+5)
puffs_zlib_decode_100k/gcc 194MB/s ± 0% 175MB/s ± 0% -9.78% (p=0.016 n=5+4)
2017-11-05 08:03:21 +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
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
474a0d2ed7
Make mark a method, not a keyword.
2017-10-26 12:31:27 +11:00
Nigel Tao
ac793d33bc
Generate placeholder code for "mark in.dst".
2017-10-22 13:57:37 +11:00
Nigel Tao
245e3ec7b9
Unroll iterate loops.
...
name old speed new speed delta
puffs_adler32_10k/clang 2.12GB/s ± 1% 2.42GB/s ± 1% +14.24% (p=0.008 n=5+5)
puffs_adler32_100k/clang 2.12GB/s ± 3% 2.43GB/s ± 0% +14.29% (p=0.008 n=5+5)
mimic_adler32_10k/clang 2.93GB/s ± 2% 2.96GB/s ± 0% ~ (p=0.310 n=5+5)
mimic_adler32_100k/clang 2.89GB/s ± 2% 2.91GB/s ± 0% ~ (p=1.000 n=5+5)
puffs_adler32_10k/gcc 2.17GB/s ± 1% 3.23GB/s ± 0% +48.59% (p=0.008 n=5+5)
puffs_adler32_100k/gcc 2.18GB/s ± 1% 3.23GB/s ± 0% +48.34% (p=0.008 n=5+5)
mimic_adler32_10k/gcc 2.97GB/s ± 0% 2.96GB/s ± 1% ~ (p=1.000 n=5+5)
mimic_adler32_100k/gcc 2.91GB/s ± 1% 2.91GB/s ± 1% ~ (p=0.548 n=5+5)
2017-10-20 17:28:21 +11:00
Nigel Tao
b024cb1d8c
Add some support for iterate assertions.
2017-10-20 16:17:20 +11:00