Commit Graph

3501 Commits (dc89883dc38a69b36ea5584f7f6f1a7c04eb349d)

Author SHA1 Message Date
John Benediktsson 667751b5ea continuations: slight speedup. 2012-09-14 14:59:38 -07:00
John Benediktsson 2dd24868fa math.order: improve docs for invert-comparison. 2012-09-14 09:45:03 -07:00
John Benediktsson e166b7c918 math.order: cleanup stack effects. 2012-09-14 09:36:09 -07:00
John Benediktsson 0676ac249a math.order: make it more obvious this is a real<=>. 2012-09-14 09:19:26 -07:00
John Benediktsson 6d5bd24217 sorting: 6% performance improvement using -unsafe words. 2012-09-14 09:03:55 -07:00
John Benediktsson 5ba7fe8920 math.order: speed up math comparisons using a math generic. 2012-09-14 08:43:29 -07:00
John Benediktsson 9992096028 math: cleaner "2/" speedup by using custom inlining. 2012-09-10 17:59:03 -07:00
John Benediktsson 85fa196939 math: faster definition of 2/ (allows inlining of fixnum-shift-fast). 2012-09-10 17:20:31 -07:00
John Benediktsson b7e220ad9f math.integers: inline fixnum-log2. 2012-09-10 17:20:12 -07:00
John Benediktsson 5854fb8094 sequences: bit faster binary-reduce. 2012-09-10 16:53:10 -07:00
John Benediktsson 89d37a4b0b sequences: minor formatting improvements. 2012-09-05 16:21:47 -07:00
John Benediktsson a669234645 sequences: faster "flip", looks at each element only once. 2012-09-05 16:02:20 -07:00
John Benediktsson 462b216006 sequences: make nth3-unsafe simpler. 2012-09-05 10:52:44 -07:00
John Benediktsson cf8f263fe6 sequences: faster binary-reduce. 2012-09-05 09:32:54 -07:00
John Benediktsson deced177a8 sequences: better "halves". 2012-09-04 19:57:45 -07:00
John Benediktsson 43a40368c2 sequences: less bounds checking in binary-reduce. 2012-09-04 19:57:45 -07:00
John Benediktsson d40d7f3c35 math: faster recip for integers and ratios. 2012-09-02 09:47:31 -07:00
John Benediktsson 28491d9152 math: adding some tests for bignum bitnot. 2012-08-31 15:22:20 -07:00
John Benediktsson 3068da5a65 math.integers: faster fixnum-bit?. 2012-08-30 22:40:22 -07:00
John Benediktsson b640610356 sequences: some minor performance improvements. 2012-08-30 11:33:57 -07:00
John Benediktsson d3fa0c57ab graphs: move some words to private. 2012-08-30 11:31:52 -07:00
Doug Coleman 0dcc62685a io: Make stream-contents call stream-contents* and do the disposal in the top-level. Fixes #645. 2012-08-25 17:03:51 -07:00
John Benediktsson d4af92f933 sets: minor improvements to sequence-as-sets. 2012-08-24 16:37:01 -07:00
Doug Coleman 11464e10bd core: in-definition -> with-definition. 2012-08-24 16:07:31 -07:00
Doug Coleman a335710021 core: rename in-word-definition to in-definition 2012-08-24 16:04:49 -07:00
Doug Coleman 1973ca3af1 core: Don't allow nested defintions in :, ::, M:, M::. Fixes #469. 2012-08-24 15:53:45 -07:00
Doug Coleman 7de0c0cb69 hashtables: Enforce shape on hashtable literals. Fixes #568. 2012-08-24 15:11:03 -07:00
Doug Coleman ba51919e50 assocs: Add sift-keys and sift-values. Remove three other implementations
of sift-values and use the new one.
2012-08-23 22:36:10 -07:00
John Benediktsson e4fb87d0f1 combinators: M\ array hashcode* makes memoize faster. 2012-08-23 17:28:27 -07:00
John Benediktsson 8984e624dd bootstrap.syntax: removed deprecated ((. 2012-08-21 20:46:29 -07:00
John Benediktsson 19d31a6fb0 layouts: defining "fixnum-bits". 2012-08-21 18:05:59 -07:00
John Benediktsson 7e6385d9e8 slots: make predicates return booleans. 2012-08-14 18:09:50 -07:00
John Benediktsson 19cd3c1fae io: improve docs for stream-copy*. 2012-08-14 15:12:19 -07:00
John Benediktsson 85cf41e26a vocabs: change vocabs-changed to be vocab-changed and take a vocab argument. 2012-08-13 12:05:42 -07:00
John Benediktsson 3c046fe12a vocabs.loader: early exit for private vocab. 2012-08-13 11:11:59 -07:00
John Benediktsson 7b3febb4de vocabs: reverting recent private vocab changes. 2012-08-13 10:32:14 -07:00
John Benediktsson 1ce4c1045c vocabs.loader: adding tests for recent changes. 2012-08-10 15:15:38 -07:00
John Benediktsson 40bb77c915 vocabs.loader: simplify. 2012-08-10 15:11:42 -07:00
John Benediktsson 537de726ec vocabs.loader: more private fixes. 2012-08-10 15:08:40 -07:00
John Benediktsson b9bfd1db40 vocabs.loader: better fix for append-vocab-dir. 2012-08-10 15:01:37 -07:00
John Benediktsson 5ba78ff6b8 vocabs.loader: vocab-dir should work with private vocabs too. 2012-08-10 14:43:59 -07:00
John Benediktsson b4825a249d vocabs: make source/docs/tests work for private vocabs. 2012-08-10 14:39:53 -07:00
John Benediktsson de891028cb sequences.extras: moved 2each-index to extras for now. 2012-08-09 16:36:35 -07:00
John Benediktsson 608198c670 sequences: adding 2each-index. 2012-08-08 20:08:08 -07:00
John Benediktsson 54d9cb30e1 splitting: making split inline. 2012-08-06 15:08:16 -07:00
Doug Coleman 04a7bd1236 classes.tuple: Fix unit test. 2012-08-03 15:11:30 -07:00
Doug Coleman d15a2357d1 core: Throw an error when assigning a bignum to a fixnum tuple slot if the bignum doesn't fit. Fixes #594. 2012-08-03 14:59:59 -07:00
John Benediktsson bd9dc0be24 hashtables: testing that associate and H{ } set-at have same characteristics. 2012-08-03 08:30:55 -07:00
John Benediktsson 722ef4d693 hashtables: reduce default size of associate. 2012-08-02 21:43:37 -07:00
John Benediktsson c103da2dca fix using list for recent test additions. 2012-08-02 17:41:13 -07:00
John Benediktsson e7a4b48ae7 adding some tests for the recent integer>fixnum fix. 2012-08-02 15:24:31 -07:00
John Benediktsson 623f10775a namespaces: counter should be inlined for globals optimization to work. 2012-08-02 15:14:21 -07:00
John Benediktsson ef9d5fc745 using integer>fixnum in more places. 2012-08-02 14:26:39 -07:00
John Benediktsson 775fd2195d make: update docs for 'make-assoc' functionality. 2012-08-02 09:32:18 -07:00
John Benediktsson dcf2a5e508 io.backend: fix docs to show nanoseconds instead of micros. 2012-08-01 12:08:18 -07:00
Doug Coleman 198931cd72 sequences: Change bounds-check? to be generic on integer so that floating points can't index into sequences. Fixes #582. 2012-07-31 08:36:34 -07:00
Doug Coleman 008d035b39 classes.tuple: Fix unit tests related to coerce 2012-07-30 18:41:22 -07:00
Doug Coleman 3fc0c5d1ec slots: Don't coerce flots to integers in tuple slots. Add an initial value for bignums so they can be used as tuple slot types. Fixes #593. 2012-07-30 18:16:44 -07:00
John Benediktsson 397b4a36dd Revert "vocabs.loader: teach append-vocab-dir about private vocabs."
This reverts commit 9b98c098c1.
2012-07-30 11:50:22 -07:00
John Benediktsson 9b98c098c1 vocabs.loader: teach append-vocab-dir about private vocabs. 2012-07-30 11:36:54 -07:00
John Benediktsson 2634b9c9ec splitting: crlf? was unnecessary. 2012-07-30 11:26:38 -07:00
John Benediktsson cf5627b438 sequences: improve change-nth, if nth was successful, set-nth can be unsafe. 2012-07-30 11:26:32 -07:00
John Benediktsson 7e6d8e528c sequences: slightly faster sequence=. 2012-07-27 21:30:03 -07:00
John Benediktsson 0fe9200839 byte-vectors: simplify >byte-vector. 2012-07-27 21:29:52 -07:00
John Benediktsson 35f9ef9e88 io.streams.sequence: minor refactor, minor speedup. 2012-07-27 21:12:26 -07:00
John Benediktsson 2ce4b091af sequences: minor docs fixes. 2012-07-27 21:04:37 -07:00
John Benediktsson aa24973542 Revert "bootstrap: words have read-only string names."
This reverts commit 0fa588820f.
2012-07-27 19:35:48 -07:00
John Benediktsson 1d3d6e7427 Revert "continuations: add typing."
This reverts commit 34d3f878cd.
2012-07-27 19:21:47 -07:00
John Benediktsson 34d3f878cd continuations: add typing. 2012-07-27 19:16:31 -07:00
John Benediktsson 93624a821b parser: make sure lines is an array. 2012-07-27 19:06:22 -07:00
John Benediktsson 0fa588820f bootstrap: words have read-only string names. 2012-07-27 16:44:43 -07:00
John Benediktsson 5342100e09 lexer: typed slots. 2012-07-27 16:05:28 -07:00
John Benediktsson 30dfa700ba sequences: slightly faster ?last. 2012-07-27 09:12:29 -07:00
John Benediktsson ddb9bcfe14 strings.parser: support "\x" ascii hex escapes. 2012-07-26 19:24:25 -07:00
Doug Coleman c44e48615b docs: vm says to read "command-line" but it was called "cli". change the article title in the docs. 2012-07-25 23:49:19 -07:00
Doug Coleman a6c3ddf691 sequences: Fix tests that broke when nth could only be integers. Undo integer>fixnum in iota nth. See bug #582. 2012-07-25 22:17:24 -07:00
John Benediktsson 82f2daa6ad io: more inlining. 2012-07-25 20:55:01 -07:00
Doug Coleman 92eee23e48 core: Use integer>fixnum instead of >fixnum for ``nth`` and other sequence operations. Fixes #581. 2012-07-25 18:24:43 -07:00
Doug Coleman 376bc1bdf1 classes.tuple: Save slot name and tuple in no-slot error. 2012-07-24 14:05:58 -07:00
John Benediktsson 854ad5ca98 classes.tuple: moving get-slot-named and set-slot-named from db.types. 2012-07-24 11:55:16 -07:00
Doug Coleman 126a3e486f syntax: Clarify that inlined words can also be compiled stand-alone. 2012-07-23 12:18:43 -07:00
Doug Coleman f37b12e689 math.integers: Bignum hashcode* -- call bignum>fixnum to avoid a dispatch. 2012-07-23 09:38:12 -07:00
Doug Coleman c25d044788 compiler: Fix bitand on ratios, floats. Fix shift on ratios, floats. Add integer>fixnum. Fixes #500. 2012-07-23 09:31:12 -07:00
John Benediktsson 8172f3be00 kernel: adding docs for "same?" 2012-07-21 19:43:16 -07:00
John Benediktsson 8478be295d make: switch to with-variable instead of with-scope. 2012-07-21 10:44:54 -07:00
John Benediktsson e654e4afd9 Using "same?" in more places. 2012-07-21 10:22:44 -07:00
John Benediktsson e52f03f0c9 kernel: adding "same?" which is "bi@ =". 2012-07-21 10:22:29 -07:00
John Benediktsson 8cf4ce1950 vocabs.parser: speedup parse-datum for numbers. 2012-07-20 22:48:47 -07:00
John Benediktsson 510c0481c5 namespaces: do not create globals via "foo get". 2012-07-20 15:09:06 -07:00
Doug Coleman c22744b8c2 continuations: change continuation word to current-continuation. continuation is now just the tuple name. issue #358 2012-07-20 12:30:14 -07:00
John Benediktsson 1a9f943dab help: don't make word help create global boxes. 2012-07-20 12:00:47 -07:00
Doug Coleman 0a32a2a964 hashtables: Revert size of associate, but keep inlined. ~10s speedup on bootstrap 2012-07-20 09:30:37 -07:00
John Benediktsson ce74e71609 hashtables: use H{ } clone in associate, make it inline. 2012-07-20 09:04:51 -07:00
John Benediktsson 5014d40294 assocs: inline assoc-empty? and make M\ enum at* not check bounds twice. 2012-07-20 09:04:51 -07:00
John Benediktsson 4f2b406203 sequences: fix typo in docs for shorten. 2012-07-20 09:04:51 -07:00
Doug Coleman b0271d8a79 namespaces: Oops, one escaped the lab 2012-07-20 08:38:53 -07:00
Doug Coleman c875e32f0a make: Add ,+ to make 2012-07-19 17:47:50 -07:00
John Benediktsson 5fbb370e2a make: change default size of make-assoc. 2012-07-19 13:53:42 -07:00
John Benediktsson 7104c2d7b9 using the new H{ } make. 2012-07-19 09:50:09 -07:00
John Benediktsson 7b36631d0a fixing some docs. 2012-07-19 09:47:14 -07:00