Nigel Tao
7a9554194c
Allow built-in args' types to be refined
2018-05-11 14:49:15 +10:00
Nigel Tao
8586cf8e3d
Reset the GIF's LZW decoder if necessary
2018-05-10 14:42:10 +10:00
Nigel Tao
1435f1d43c
Remove ptr base.u8 methods
2018-05-04 13:24:58 +10:00
Nigel Tao
e72f957eca
Add (ptr base.u8).read_u32le method
2018-05-04 10:42:05 +10:00
Nigel Tao
eeebd58d7b
Remove token ID/Key distinction, part 11 of N
2018-04-15 17:57:10 +10:00
Nigel Tao
2b91e7861c
Prepare array and slice tokens
2018-04-05 21:51:38 +10: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
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
1255b162ea
Resolve used packages during type checking
2017-12-28 11:24:59 +11:00
Nigel Tao
7fea629f10
Check missing packageid declaration
2017-12-27 10:43:50 +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
5f5791e56d
Remove redundant builtin.TrimQuotes function
2017-12-02 12:25:50 +11:00
Nigel Tao
906bca4e39
Drop volatile facts after a yield statement
2017-12-01 16:24:54 +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
b024cb1d8c
Add some support for iterate assertions.
2017-10-20 16:17:20 +11:00
Nigel Tao
50369c782c
Add a skeleton of an adler.update method.
2017-10-19 18:58:17 +11:00
Nigel Tao
d4372cb5b8
Change license to Apache 2.
...
Also remove explicit PATENTS file. The new LICENSE file already
discusses patents.
Note that the Puffs project has not yet been publicly released.
2017-10-12 11:17:41 +11:00
Nigel Tao
2efdf5fab6
Add a lang/builtin package.
2017-10-07 11:37:10 +11:00
Nigel Tao
010c4db54f
Allow explicit returns of built-in status codes.
2017-10-06 17:34:58 +11:00
Nigel Tao
2e883fcc23
Drop the "?" from "copy_history32?".
...
This makes the caller, not the implementation, responsible for detecting
short reads and writes. This (the lack of "?") is consistent with the
slice.copy_from method.
name old speed new speed delta
puffs_flate_decode_1k/clang 117MB/s ± 6% 120MB/s ± 0% +2.31% (p=0.016 n=5+5)
puffs_flate_decode_10k/clang 153MB/s ± 1% 155MB/s ± 0% +1.16% (p=0.008 n=5+5)
puffs_flate_decode_100k/clang 168MB/s ± 1% 177MB/s ± 0% +5.41% (p=0.008 n=5+5)
puffs_flate_decode_1k/gcc 127MB/s ± 1% 143MB/s ± 0% +12.15% (p=0.008 n=5+5)
puffs_flate_decode_10k/gcc 145MB/s ± 0% 180MB/s ± 1% +24.00% (p=0.008 n=5+5)
puffs_flate_decode_100k/gcc 163MB/s ± 0% 212MB/s ± 1% +29.90% (p=0.008 n=5+5)
2017-10-06 17:02:09 +11:00
Nigel Tao
6f132a74e2
Remove the 'mark' concept, no longer necessary.
2017-10-02 14:02:13 +11:00
Nigel Tao
0dd7aaf56c
Tighten struct field restrictions re pointers.
2017-09-28 11:48:27 +10:00
Nigel Tao
fd5d44b3fc
Add a mark method and type.
2017-09-23 13:17:37 +10:00
Nigel Tao
18e32d61e5
Add a writer1.slice method.
2017-09-22 11:54:24 +10:00
Nigel Tao
935cd73686
Add a "status" type and "try" keyword.
2017-09-01 16:41:42 +10:00
Nigel Tao
b3710e583f
Add a zlib decoder to std/flate.
2017-08-05 16:34:03 +10:00
Nigel Tao
dec234779e
Generate lang/check/reason.go.
2017-07-22 12:49:00 +10:00
Nigel Tao
61b771a418
Refactor the bounds checker's list of reasons.
2017-07-22 10:24:48 +10:00
Nigel Tao
b78807d60a
Add the "const" keyword.
2017-07-16 12:02:12 +10:00
Nigel Tao
368bd5e4f7
Add a read_u32le method.
2017-07-13 16:20:59 +10:00
Nigel Tao
17b518376f
Add a packageid keyword.
2017-07-06 11:17:15 +10:00
Nigel Tao
7a3ddbc025
Add a "limit" keyword.
2017-06-22 17:32:56 +10:00
Nigel Tao
6904068251
Remove check.FlagsOnlyTypeCheck.
...
The puffs-gen-foo commands might need to bounds check anyway, to e.g.
generate different code paths depending on whether a u64 typed
expression fits in a usize's range.
2017-06-18 09:17:58 +10:00
Nigel Tao
ae20422754
Check for field and method name collisions.
2017-06-18 09:10:17 +10:00
Nigel Tao
22b2a18168
Refactor check.go.
2017-06-15 15:22:02 +10:00
Nigel Tao
86c6b79e1a
Handle structs that contain structs.
2017-06-15 15:19:41 +10:00
Nigel Tao
c27bec10d3
Rename typeExprU8 to typeExprPlaceholder.
2017-06-11 13:55:41 +10:00
Nigel Tao
9d0558df5a
Fix var statements inside an else-if.
2017-06-10 12:44:58 +10:00
Nigel Tao
321ebf8617
Unexport check.TypeExprFoo variables.
2017-06-10 12:16:29 +10:00
Nigel Tao
ebf3713555
Rename PackageOrDecorator to Decorator.
2017-06-10 10:55:51 +10:00
Nigel Tao
3863427127
Add user-defined error and status codes.
2017-06-09 12:26:00 +10:00
Nigel Tao
0aa6a0f1c2
Don't reserve "ideal" as a keyword.
...
Use "ℤ" instead, which can never conflict with user-defined identifiers,
as it is non-ASCII, but also the mathematical meaning of "ℤ" perfectly
captures the concept of an ideal integer type.
2017-06-08 14:01:52 +10:00
Nigel Tao
6e7e566232
Rename token.IDMap to token.Map.
2017-06-08 13:10:01 +10:00
Nigel Tao
f6cc7950ff
Stop bounds checking after a jump or return.
2017-06-08 12:53:38 +10:00