Nigel Tao
3ea85e770b
Reorder ast.NewIf arguments
2018-05-11 10:25:39 +10:00
Nigel Tao
9a186b24fb
Drop the redundant ast.Node.list3 field
2018-05-11 10:24:34 +10:00
Nigel Tao
b65fdee306
Make the else-length-1 iterate tail explicit
2018-05-11 10:22:24 +10:00
Nigel Tao
282b9c4b20
Place iterate params after vars, not before
2018-05-10 09:38:14 +10:00
Nigel Tao
79aded4797
Introduce a =: operator
2018-05-10 09:31:58 +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
1435f1d43c
Remove ptr base.u8 methods
2018-05-04 13:24:58 +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
e72f957eca
Add (ptr base.u8).read_u32le method
2018-05-04 10:42:05 +10:00
Nigel Tao
c511c53b1f
Clarify iterate step and unroll syntax
2018-05-04 09:14:10 +10:00
Nigel Tao
a73e56712d
Add an iterate step argument
2018-05-03 22:34:24 +10:00
Nigel Tao
395890c287
Add an io_bind keyword
2018-04-28 11:45:33 +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
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
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
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
339673ae82
Add built-in slice functions
2017-12-16 17:23:49 +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
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