Commit Graph

62 Commits (vm-warnings)

Author SHA1 Message Date
Doug Coleman 57ee2553b3 grouping: Fix some spacing. 2018-07-07 11:14:57 -05:00
Doug Coleman 9f213f96f6 core: Add the shuffler words but without primitives.
The nipd branch slowed bootstrap by a minute, this patch does not.

sorry about changing the fjsc line endings...
2018-06-19 22:52:58 -05:00
John Benediktsson 551144b8a2 grouping: change chunking to throw bounds-errors in nth.
instead of the more confusing slice-error.
2018-03-05 16:57:52 -08:00
John Benediktsson 607de53ad3 more test IN: cleanup. 2018-02-25 15:44:16 -08:00
John Benediktsson 37794a326c sequences: rename setup-each to (each).
...to match (each-from), (2each), and (3each), etc.
2017-10-24 17:22:55 -07:00
Doug Coleman e189954ecc core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ; 2017-06-02 11:57:05 -05:00
Shane Pelletier 93d11224eb grouping-docs: add wrap-around note 2017-01-02 08:07:42 -08:00
Doug Coleman d3bc2035a2 factor: remove rest of double paren words. 2016-03-25 03:13:27 -07:00
John Benediktsson 43aa46384c grouping: make the $example, not $unchecked-example. 2015-08-14 21:30:57 -07:00
John Benediktsson 04ec78831d grouping: simplify since we always slice. 2015-08-14 21:12:28 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
Doug Coleman b6be8685c3 basis: ERROR: changes. 2015-08-13 03:20:39 -07:00
John Benediktsson 37f7fa95ca grouping: integer slots in circular-slice. 2015-07-16 15:32:41 -07:00
Doug Coleman 43d6f1d3e2 factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:. 2015-07-02 17:28:17 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
John Benediktsson 57f9d78892 improve help by linking to types directly. 2014-05-23 20:20:15 -07:00
John Benediktsson 98935b7f15 docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``. 2014-05-18 20:09:10 -07:00
John Benediktsson 795f18a2b1 grouping: fix circular-slice equal. 2013-03-28 20:05:42 -07:00
Doug Coleman cbfb1422c8 grouping: Fix docs 2013-03-25 11:57:25 -07:00
Doug Coleman 11af4e1781 grouping: Remove <clumps> and <circular-clumps> and rename <sliced-clumps>
and <sliced-circular-clumps> to those. Fixes #765.
2013-03-23 11:38:05 -07:00
Doug Coleman 8917ae9ad7 grouping: Remove <groups>, old <sliced-groups> is now <groups>. Fixes 2013-03-23 11:37:51 -07:00
John Benediktsson a60b49630f grouping: making monotonic? faster. 2013-03-06 07:31:45 -08:00
John Benediktsson ca8c7b4db4 grouping: faster all-eq? and all-equal? (fewer comparisons). 2013-03-05 20:01:27 -08:00
Doug Coleman 0c5d70e881 grouping: The expectation is that if there is a virtual clump of length N, then each iteration through that clump there are N elements available. This patch breaks that assumption.
Revert "change clump when the group size is greater than the sequence length"

This reverts commit baedb316c5.

Conflicts:
	basis/grouping/grouping-docs.factor
	basis/grouping/grouping-tests.factor
	basis/grouping/grouping.factor
2012-10-29 09:47:15 -07:00
Jon Harper 93cf443f32 Allow circular clumps with a length smaller than the clump
Conflicts:
	basis/grouping/grouping-tests.factor
2012-10-28 13:41:41 -07:00
Jon Harper 0dfe8f949c fixup: forgot the tests 2012-10-28 13:34:30 -07:00
Jon Harper 7b7586fa54 clump: fix empty sequence input. rephrase docs a bit 2012-10-28 13:34:18 -07:00
Jon Harper 2fc1442771 change clump when the group size is greater than the sequence length 2012-10-28 13:34:08 -07:00
Jon Harper 40ca3fc7f3 Friendlier grouping/clumping error message 2012-10-28 13:33:51 -07:00
Joe Groff 47cedd8d3d slice boa -> <slice-unsafe>
If you didn't define it, don't boa it
2011-11-09 19:22:09 -08:00
John Benediktsson a916bebcfe Fixing docs for recent stack effects additions. 2011-09-24 22:08:54 -07:00
John Benediktsson 3c1356bf69 Adding stack effects. 2011-09-23 17:46:40 -07:00
Keita Haga 8f92ca2d47 classes.algebra, grouping, parser: replace 'seqence' with 'sequence' in docs 2011-01-04 21:02:11 +09:00
Doug Coleman bdecd564a3 Use keys/values where appropriate 2010-05-21 12:48:04 -05:00
Slava Pestov cdee2439d8 grouping: minor cleanup 2010-03-17 19:13:25 +13:00
Joe Groff dfd99199a3 grouping: circular-slice shouldn't be a subclass of slice since that thwarts method inlining 2010-02-26 13:20:47 -08:00
Joe Groff d898ee86b6 grouping: add circular clumps (e.g. { 1 2 3 4 } 3 circular-clump => { { 1 2 3 } { 2 3 4 } { 3 4 1 } { 4 1 2 } } 2010-02-25 17:05:03 -08:00
Slava Pestov 22e3b71ae2 grouping: tweak inheritance to make method precedence explicit 2010-01-30 21:14:41 +13:00
Slava Pestov af41dc6169 Trying to fix mixin semantics 2010-01-30 09:28:51 +13:00
Slava Pestov cb9261d975 grouping: add a unit test 2010-01-26 01:01:22 +13:00
Doug Coleman 9356da6fb3 Fix a few integers-as-sequences in docs 2010-01-14 17:20:43 -06:00
Doug Coleman 1476cdb974 reverse-here -> reverse! 2009-10-28 14:40:15 -05:00
Slava Pestov a5d4f9cf16 grouping: clump on empty sequence was trying to make a sequence of length -1 2009-10-23 02:58:15 -05:00
Keith Lazuka bea4aa7662 docs: updated some docs to use new markup 2009-09-22 15:22:34 -04:00
Slava Pestov 030b1b816c Add inline declarations for various assorted methods 2009-08-17 22:32:21 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Brad Christensen f8405e9c55 A number of documentation fixes.
* Short-circuit combinators now show correct stack effect for quots
 * Groups and Clumps unchecked examples corrected, made runnable in listener
 * Class operations had duplicate link to class-types
 * Protocol slots readability fixed
 * Tuple word property for "tuple-layout" corrected to "layout"
 * cond>quot sentence started in lowercase
 * Method precedence code example missing stack effect for GENERIC:, M: integer explain changed to detail an integer
 * Motivation for default streams readability
 * Default input and output streams duplicate readln link removed from output stream words section
 * Looping combinators do description clarified
 * Make philosophy missing space
 * Linear order protocol duplicate after? link removed
 * Parsing words readability fix
 * Copied note regarding with-compilation-unit from define to define-declared and define-inline
2009-08-10 23:34:25 -07:00
Slava Pestov 8385e9d9f5 Fixing compile errors, test failures and help lint failures 2009-03-23 17:12:41 -05:00
Slava Pestov 7851aac222 Replace some usages of prepose with fry 2009-01-25 23:04:35 -06:00