Commit Graph

72 Commits (5dd26a90665590271724fae0b07b4fdd480ea6b1)

Author SHA1 Message Date
Doug Coleman e996dc7f8e combinators.smart: Clarify stack effect for cleave>array. 2013-05-14 14:33:04 -07:00
John Benediktsson 5903b2ccf5 combinators.smart: adding smart-2reduce and smart-2map-reduce, for @erg. 2012-09-26 17:43:26 -07:00
John Benediktsson c5c74aa59c combinators.smart: adding smart-reduce and smart-map-reduce. 2012-09-26 17:01:44 -07:00
Doug Coleman cda2e4d7da combinators.smart: Add cleave>sequence. 2012-09-19 15:44:20 -07:00
Doug Coleman 8bfed897a8 combinators.smart: Add cleave>array. 2012-09-16 17:32:27 -07:00
John Benediktsson 2620c64c21 combinators.smart: adding smart-with. 2012-08-13 19:32:12 -07:00
John Benediktsson d3ce5c7deb combinators.random: some style cleanup. 2012-08-02 14:06:08 -07:00
Doug Coleman 6686cae347 random: Add random-unit word. 1 random-unit - is the same distribution, as Joe pointed out, so remove that. Use random-unit in librarie. 2012-03-30 18:04:45 -07:00
Doug Coleman ebb722bf56 combinators.smart: Make map-reduce-outputs a macro. To be a combinator, we need a full stack-checker rewrite. 2011-12-19 11:12:37 -08:00
Doug Coleman abc953ecea help-lint fixes for recent changes 2011-12-07 12:26:35 -08:00
Doug Coleman d283eac921 combinators.smart: Tell the stack checker that the return values from inputs/ouputs are input-parameters
Fixes #435
2011-11-30 23:15:42 -08:00
Doug Coleman 3ba787b277 core/basis: trim down using lists 2011-11-30 23:15:42 -08:00
Doug Coleman 0a287cb33f combinators.smart: Use an identity memoize on inputs/outputs word to speed up the non-optimizing compiler 2011-11-30 14:41:32 -08:00
Doug Coleman cde3c043bf combinators.smart: Fix infer-known; should be 100% now.
It's stack-checker bugs all the way down.
2011-11-28 20:55:11 -08:00
Doug Coleman c1a49e69c8 combinators.smart: Implement reduce-outputs using compose, fix some stack effects, add using 2011-11-28 20:55:10 -08:00
Doug Coleman 8b18af0335 combinators.smart: Enable a unit test, handle M: object infer-known*, make sum-outputs a macro.
Fixes inverse but still needs work, once I figure out how.
2011-11-28 14:36:57 -08:00
Doug Coleman 41e4c48647 combinators.smart: Fix reduce-outputs, rename quot*n to call-n, rewrite more macros as combinators. 2011-11-28 12:41:50 -08:00
Doug Coleman 2b87eaa1b5 generalizations: Refactor stack-checker so that smart combinators can be used with curry and compose. 2011-11-27 20:25:22 -08:00
otoburb 4817ba5a93 smart-docs output>array typo fix 2011-03-14 06:07:33 +00:00
Keita Haga 70d06dc4c7 combinators.random: fix a couple of usage examples in casep and casep* 2011-02-20 03:51:09 +09:00
Keita Haga 61881f1977 combinators.smart, multiline: few $examples turn into $codes 2011-01-15 00:22:29 +09:00
Doug Coleman 4a018ebdfc Squashed commit of the following:
commit fbec7374aa3f99d8f76499183920e537dc7f38b1
Author: Doug Coleman <doug.coleman@gmail.com>
Date:   Sun Sep 19 13:28:47 2010 -0500

    Remove random.combinators vocab

commit 74f91aca4a961879ec57ef56114eadd5e9f6dcee
Author: Doug Coleman <doug.coleman@gmail.com>
Date:   Sun Sep 19 13:28:22 2010 -0500

    Rename random.combinators to combinators.random.  Add random.data vocabulary

commit f616c3f4ceac48ac6f48836040130ba4f090c47f
Author: Doug Coleman <doug.coleman@gmail.com>
Date:   Sun Sep 19 13:14:01 2010 -0500

    Add execute-random combinator, docs, and respace a few things..

commit 1ce17507e3767c78e14ecf5e27e542168a47b2a2
Merge: db359d6 b53fc83
Author: Doug Coleman <doug.coleman@gmail.com>
Date:   Sun Sep 19 12:55:53 2010 -0500

    Merge branch 'random-combinators' of git://github.com/jonenst/factor into random-combinators

commit b53fc830f3319e9bdfce02674ea480f69e1453db
Author: Jon Harper <jon.harper87@gmail.com>
Date:   Mon Aug 23 17:16:21 2010 +0200

    Random combinators vocabulary
2010-09-19 13:29:43 -05:00
Slava Pestov 50323dda6d combinators.smart: remove boa-preserving 2010-06-23 21:10:46 -04:00
Doug Coleman 1806a0ce77 Add a new smart combinator boa-preserving and document the rest of the smart combinators. Simpler implementation of nullary. 2010-06-23 14:58:07 -05:00
Slava Pestov ea726f5680 Move remaining sequence operations from generalizations to sequences.generalizations where they belong 2010-05-18 18:36:47 -04:00
Doug Coleman 242f8490c5 Fix smart-if* for multiple inputs and test. oops 2010-04-29 20:21:53 -05:00
Doug Coleman 79a3b71f47 Demonstrate smart-if and smart-if* combinators 2010-04-29 19:57:07 -05:00
Slava Pestov 5810987f13 Merge branch 'master' of git://github.com/littledan/Factor 2010-02-09 14:35:30 +13:00
Daniel Ehrenberg 627b508bcf Giving combinators.short-circuit proper row-polymorphic behavior 2010-02-08 19:32:53 -06:00
Doug Coleman c6b37f4da4 Rewrite mnapply to be a combinator instead of a macro. Write nspread* to implement mnapply 2010-01-31 14:48:01 -06:00
Doug Coleman d3db7e0225 Add mnapply, smart-apply. Docs incoming soon 2010-01-29 13:47:06 -06:00
Slava Pestov 0fa425b03a combinators.smart: smart-if was declared inline, and had no unit tests, and so was broken. This was not caught until inline macros became a parse error. Add unit tests for it 2010-01-27 22:23:04 +13:00
Slava Pestov 7155447aed stack-checker: add inputs and outputs words, since 'infer (in>>|out>>) length' was coming up a lot 2010-01-15 08:04:14 +13:00
Slava Pestov df4fb4a3ee Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
Slava Pestov 8e90b92da2 combinators.smart: add nullary combinator and some tests 2009-11-09 00:53:58 -06:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Doug Coleman eceed177d6 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Slava Pestov ace0c3a15a Doc fixes 2009-09-11 17:59:04 -05:00
Slava Pestov 33bfb95614 Fix some annoying circularity; prettyprinter cannot depend on any vocab that depends on locals or stack-checker 2009-09-08 15:15:36 -05:00
Doug Coleman 3a5c7d8908 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-25 09:33:42 -04:00
Joe Groff 6f6edd79ac combinators.smart: "keep-inputs" combinator 2009-08-21 21:17:15 -05:00
Doug Coleman 2936f05ce0 add smart-if to combinators.smart 2009-08-19 04:38:59 -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 4191deb525 combinators.short-circuit: fix unoptimized behavior to match optimized behavior, improved unit tests 2009-07-18 06:38:34 -05:00
Slava Pestov 4ee1f68e30 Documentation fixes 2009-07-18 06:32:57 -05:00
Slava Pestov 60f4f4c16e combinators.short-circuit: speed up in non-optimized code 2009-07-18 03:33:45 -05:00
Doug Coleman 8ddbfb5161 make output>array a macro to avoid subtle bugs 2009-05-12 10:32:19 -05:00
Slava Pestov 7094b78821 Add firstn-unsafe, input<sequence-unsafe 2009-04-26 21:22:06 -05:00
Slava Pestov c2fe2a4fea Improve stack checker documentation 2009-04-23 03:48:32 -05:00