Commit Graph
95 Commits
Author SHA1 Message Date
Nigel Tao 045f180a6c Rename errors from "?msg" to "#msg" 2019-02-23 17:06:24 +11:00
Nigel Tao c341ac5078 Add note about uninitialized internal buffers 2019-02-23 14:35:50 +11:00
Nigel Tao 1af543866c Add an implicit coroutine_resumed variable 2019-01-13 11:41:58 +11:00
Nigel Tao 16e97281e2 Rename some decode methods to decode_io_writer 2019-01-12 10:29:41 +11:00
Nigel Tao 093268e179 Rename the !?? effect to ? 2018-12-29 13:57:57 +11:00
Nigel Tao 6dc68950c0 Drop the "= RHS" out of "var x T = RHS" 2018-12-27 11:29:47 +11:00
Nigel Tao cbe19f50e0 Restrict var statements to the top of functions 2018-12-27 11:19:22 +11:00
Nigel Tao e992921dce Add an io_limit keyword 2018-12-09 09:03:21 +11:00
Nigel Tao 9741eada02 Replace "= try foo" with "=? foo" 2018-12-01 13:11:47 +11:00
Nigel Tao ad9851ea75 Prohibit effect-ful subexpressions 2018-12-01 11:33:26 +11:00
Nigel Tao c986536230 Rename some read_uxx methods as read_uxx_as_uyy 2018-11-25 12:15:05 +11:00
Nigel Tao 762b320b5e Make the return value mandatory; add ok 2018-11-24 15:09:28 +11:00
Nigel Tao 9e5aec5d25 Change "$foo" to base."$foo" 2018-11-24 13:36:09 +11:00
Nigel Tao 875362ea07 Change status "?foo" to just "?foo" 2018-11-24 12:36:42 +11:00
Nigel Tao 8b1ffec576 Make struct impls private (opaque pointers)
This gives us flexibility to change sizeof(wuffs_foo__bar__struct)
across Wuffs versions, while retaining ABI / API compatibility.

In particular, this lets us add and remove fields.
2018-10-06 10:33:47 +10:00
Nigel Tao 9c04249bfe Add warnings as another status code category 2018-08-26 23:22:45 +10:00
Nigel Tao 7798beaa8c Add I/O positions 2018-08-26 16:31:19 +10:00
Nigel Tao c1af1e2c82 Rename $(etc) to [etc] 2018-08-18 10:11:43 +10:00
Nigel Tao 6236e7205f Remove packageid 2018-08-12 21:44:49 +10:00
Nigel Tao eec0fce647 Change error "?foo" to status "?foo" 2018-08-12 21:31:56 +10:00
Nigel Tao b840c80040 Make the status type a const char*, not a struct 2018-08-12 16:05:14 +10:00
Nigel Tao 2a32a86a6c Make the status type a struct, not an int32_t 2018-08-11 13:27:29 +10:00
Nigel Tao eca5565821 Removed closed-for-read/write status codes 2018-08-04 09:34:39 +10:00
Nigel Tao 98b2aa9837 Move some Go packages from lang/foo to lib/foo 2018-08-04 09:17:08 +10:00
Nigel Tao 0a47966e72 Introduce finer-grained effects 2018-07-29 13:40:49 +10:00
Nigel Tao ca06083f8a Rename the implicit in variable to args 2018-07-29 10:26:22 +10:00
Nigel Tao 9919d78245 Change func out-type from struct to bare type 2018-07-29 10:02:06 +10:00
Nigel Tao 1c75f7b748 Redo {frame,image,pixel}_config and pixel_buffer 2018-07-21 09:15:33 +10:00
Nigel Tao 29eb64a0a4 Add a nptr T type 2018-07-15 17:10:03 +10:00
Nigel Tao 15f2f42b77 Add a nullptr literal 2018-07-15 16:41:23 +10:00
Nigel Tao 8a6e177701 Add WUFFS_CONFIG__STATIC_FUNCTIONS 2018-07-14 10:16:10 +10:00
Nigel Tao a0bafff465 Ship as a "single file C library" 2018-07-14 08:59:36 +10:00
Nigel Tao 9e300fc4f8 Rename unread_u8? to undo_byte!; add can_undo_byte 2018-07-08 21:02:29 +10:00
Nigel Tao a32683e5ea Drop the 32 in the skip32 and skip32_fast names 2018-07-08 14:02:32 +10:00
Nigel Tao 2599476d2c Add skip32_fast method 2018-07-01 11:14:25 +10:00
Nigel Tao bb4477d91f Add peek_uxx methods 2018-07-01 10:26:17 +10:00
Nigel Tao 4dd90b22ba Update doc/changelog.md 2018-06-30 13:43:16 +10:00
Nigel Tao 6d510bcfcb Spin out a std/lzw package 2018-06-02 14:15:09 +10:00
Nigel Tao 8586cf8e3d Reset the GIF's LZW decoder if necessary 2018-05-10 14:42:10 +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 96a549814d Change iterate variable types from ptr to slice 2018-05-04 13:20:34 +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 4584022d1a Note new iterate syntax 2018-05-04 09:33:12 +10:00
Nigel Tao a73e56712d Add an iterate step argument 2018-05-03 22:34:24 +10:00
Nigel Tao 04776e9dcf Add a set_limit method 2018-04-28 13:56:37 +10:00
Nigel Tao 395890c287 Add an io_bind keyword 2018-04-28 11:45:33 +10:00
Nigel Tao 035b138cb1 Spin out a std/adler32 package 2018-04-27 17:20:10 +10:00
Nigel Tao 7f0923a9cf Remove the unused &^ AmpHat operator 2018-04-26 11:24:27 +10:00