Commit Graph

26 Commits (db42e128538f32bb3399f5469866d1b3553ecea3)

Author SHA1 Message Date
John Benediktsson 795f18a2b1 grouping: fix circular-slice equal. 2013-03-28 20:05:42 -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 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
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 a5d4f9cf16 grouping: clump on empty sequence was trying to make a sequence of length -1 2009-10-23 02:58:15 -05: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
Slava Pestov 7851aac222 Replace some usages of prepose with fry 2009-01-25 23:04:35 -06:00
Slava Pestov 1f0c01183e Re-implement monotonic? without using rot 2009-01-15 15:24:46 -06:00
Slava Pestov daf2857d7b define-inline now takes an effect parameter
C: now sets the stack effect of the new word to slot names
add new basis/constants vocab; CONSTANT: foo bar is equivalent to : foo bar ; inline
(going to fold CONSTANT:, ALIAS: and qualified into core soon perhaps)
tighten the screws: inline words now need a stack declaration too
update some usages of inline words
2008-12-15 19:44:56 -06:00
Doug Coleman 347087fab8 remove >r r> from grouping 2008-11-29 13:29:38 -06:00
Slava Pestov ed3a81a503 Faster M: hashtable >alist performs less dispatch and allocates less junk 2008-11-11 23:03:50 -06:00