Commit Graph

3342 Commits (4674c3aac9214f403ef865624fbd4a46ea3287bf)

Author SHA1 Message Date
John Benediktsson b1c3ad6a72 vocabs: faster check-vocab-name. 2012-07-15 14:21:25 -07:00
John Benediktsson 3797975df7 splitting: slightly faster string-lines. 2012-07-13 20:26:07 -07:00
John Benediktsson d38a3fc44a "H{ } substitute" is faster than "{ } substitute". 2012-07-13 19:06:38 -07:00
John Benediktsson c6bbeffe54 splitting: string-lines is 30-70% faster. 2012-07-13 18:24:45 -07:00
John Benediktsson e292492653 io.streams.sequence: faster stream-read-until. 2012-07-11 18:26:41 -07:00
Doug Coleman b9babdfa48 parser: Drunk coding is buzzed coding. 2012-06-21 17:35:24 -07:00
Doug Coleman 13b1c184a7 parser: last fix. 2012-06-21 14:18:55 -07:00
Doug Coleman ff8e144340 renaming fixes: Forgot some words. 2012-06-21 11:54:43 -07:00
Doug Coleman dcb71dcea8 issue #358: rename no-current-vocab 2012-06-21 08:38:05 -07:00
Doug Coleman dca84c4194 issue #358: Rename check-method and check-mixin-class TUPLE:s to ERROR:s. 2012-06-21 08:35:41 -07:00
John Benediktsson 2edcde1060 splitting: adding split*, a variant that keeps elements we split upon. 2012-06-20 19:57:11 -07:00
John Benediktsson ab2c150363 io.streams.memory: adding with-memory-reader. 2012-06-18 17:24:21 -07:00
John Benediktsson 1a72249983 math: using if-zero in more places. 2012-06-18 14:32:39 -07:00
John Benediktsson 8f8c00c9f5 math.parser: simplify error types. 2012-06-08 07:32:01 -07:00
John Benediktsson 82f4fa723d math.parser: add some tests for errors. 2012-06-06 15:14:52 -07:00
John Benediktsson 530ff420c7 math.parser: better error messages suggested by @erg. 2012-06-06 15:12:33 -07:00
John Benediktsson ab75394ffc math.parser: only allow 10 and 16 base for float>base. 2012-06-06 14:50:07 -07:00
Doug Coleman 8dc2a16a2d classes.tuple: Better error message for tuples that try to inherit from themselves. Add must-fail tests for tuples that try to inherit from themselves and for inheriting from a generic.
Fixes #412.
2012-06-01 16:59:03 -07:00
John Benediktsson 355e140785 sequences: un-inline prepend to fix "cannot call" error. 2012-05-29 15:58:19 -07:00
John Benediktsson a63bd9e2ba sequences: change prepend to return type of first sequence to match append. 2012-05-29 11:59:03 -07:00
Felix Kaiser 3cdbfe8e42 parser: fix typo in docs 2012-05-20 00:34:51 +02:00
John Benediktsson 7c990fc09d hash-sets: using ?adjoin to implement duplicates, some tests. 2012-05-14 15:47:56 -07:00
John Benediktsson a7bc3d426e sets: adding ?adjoin. 2012-05-14 15:47:44 -07:00
Doug Coleman a20adde72b compiler.units: Oops, meant not to commit this one. 2012-05-04 09:05:43 -07:00
Doug Coleman cb42258144 classes:
- Allow methods to dispatch off union{ } and intersection{ } classes.
- Add not{ } anonymous-complement syntax.
- Define class-name for anonymous-union/intersection/complement and maybes, and clean up pprint.
- Change maybe: foo to maybe{ foo }
- Call sort-classes when making anonymous-union/anonymous-intersection classes so that they are canonicalized.
2012-05-03 19:45:30 -07:00
John Benediktsson 0d4bd75492 sequences: adding find-index-from. 2012-04-27 13:41:47 -07:00
John Benediktsson 778605d051 splitting: fixing split1-last. 2012-04-27 08:48:57 -07:00
John Benediktsson e556ff9fc7 using reverse! when possible. 2012-04-25 20:09:36 -07:00
John Benediktsson 9f4d5da304 assocs: 50% faster zip. 2012-04-25 20:09:21 -07:00
John Benediktsson f27cbd80d4 make: most sequences are less than 32. 2012-04-19 22:02:47 -07:00
John Benediktsson 33f741ec2e cleanup some lint warnings. 2012-04-18 17:46:01 -07:00
John Benediktsson 06afd2f5cb splitting: fix docs for split1-when. 2012-04-18 15:59:08 -07:00
John Benediktsson 12ead33e57 splitting: adding split1-when. 2012-04-18 15:55:15 -07:00
John Benediktsson 19421c902c classes.algebra: make class= and only-classoid? use short-circuit logic. 2012-04-18 12:00:24 -07:00
John Benediktsson 5e524e82e3 sequences: fixing "Cannot apply 'call' to a run-time computed value" error in map-reduce and 2map-reduce. 2012-04-17 19:04:10 -07:00
John Benediktsson d47d2e5a5d sequences: make map-reduce 5-20% faster, and 2map-reduce 3-5% faster. 2012-04-17 17:58:19 -07:00
John Benediktsson 52ee9c2516 sequences: adding a test for map-reduce. 2012-04-16 17:52:21 -07:00
John Benediktsson b0a2027e71 hash-sets: speed up diff, intersect, and union. 2012-04-16 10:58:08 -07:00
John Benediktsson 629677b772 vm: adding bignum_gcd primitive. 2012-04-05 09:17:35 -07:00
otoburb 45870bfcd8 io.pathnames: removed dependency on environment.
I had an erroneous dependency on basis/environment.
2012-03-30 21:03:01 -07:00
otoburb f48ba4d2e1 io.pathnames: Revised ~ support to expand on the first tilde, and not on "~/".
This mimics the same behaviour as "ls ~" in the shell, which expands the alias
as a directory, and not as a filename. For the specific edge-case where a
filename called "~" must have a path constructed to it (e.g. "./~" or "~/~").
2012-03-30 21:01:57 -07:00
otoburb 91d993cb2e io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname.
vocab:, resource: and ~/ are special pathnames. Modified absolute-path word,
added test cases and updated io.pathname documentation.
2012-03-30 21:01:46 -07:00
Joe Groff e87c37ca0a io.files: check argv when initing resource-path 2012-03-27 16:58:12 -07:00
Joe Groff cb3e5ac2c7 parse -resource-path= during bootstrap 2012-03-25 14:02:32 -07:00
Doug Coleman 4de748ff43 kernel: Change the example for with to be more clear. Division example credit goes to chezmax. 2012-02-16 09:49:08 -08:00
Joe Groff dbbfdd7651 Revert "io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname."
This reverts commit 4e10f09787.
2012-01-31 11:46:02 -08:00
Joe Groff 63f25a179e Revert "io.pathnames: Revised ~ support to expand on the first tilde, and not on "~/"."
This reverts commit 251a2a19a6.
2012-01-31 11:45:51 -08:00
otoburb 251a2a19a6 io.pathnames: Revised ~ support to expand on the first tilde, and not on "~/".
This mimics the same behaviour as "ls ~" in the shell, which expands the alias
as a directory, and not as a filename. For the specific edge-case where a
filename called "~" must have a path constructed to it (e.g. "./~" or "~/~").
2012-01-11 02:36:47 +00:00
otoburb 4e10f09787 io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname.
vocab:, resource: and ~/ are special pathnames. Modified absolute-path word,
added test cases and updated io.pathname documentation.
2012-01-11 02:36:47 +00:00
Slava Pestov e9064aaf36 Set up listener's manifest so that words defined in "scratchpad" take precedence over other vocabularies and do not raise a restart. This matches the behavior of IN: and USE: in files, where the IN: takes precedence. Also remove unused clear-manifest word. Fixes #407 2012-01-02 23:18:52 -06:00