Commit Graph

320 Commits (6c0ecf631ac9685aabefe2182203fad0811da96f)

Author SHA1 Message Date
Joe Groff 1d4660c7ec random: go faster
* Use int <ref> instead of 4 >le
* Inline sequences:push-all
* Types, hints, inlines
Re: #328
2011-11-15 20:45:16 -08: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
Joe Groff 4f4bbd3304 io: more hot-rodding for #376
* Change the interface of read-into to return a slice and an eof boolean separately so the compiler can optimize the slice.
* Add an each-stream-block-slice combinator that behaves like each-block but reuses a preallocated buffer for every iteration.
* Pull some strings in the stream-read-into implementation to further improve type propagation and bounds check elimination.
2011-11-09 17:22:01 -08:00
John Benediktsson 22e9109631 sequences: improve docs for map-sum. 2011-11-09 15:00:08 -08:00
Joe Groff 6ac8478d80 sequences: relate max, min, supremum, infimum docs
Suggested by @yac. Closes #321.
2011-11-02 13:43:06 -07:00
John Benediktsson c8732657b7 Cleanup more lint warnings. 2011-10-16 13:01:58 -07:00
John Benediktsson 378786599d Cleanup lint warnings. 2011-10-14 11:47:24 -07:00
Doug Coleman ba7a005e88 Link ?first ?second ?last from an article. 2011-10-13 15:53:31 -07:00
John Benediktsson 4baf14972f sequences: adding ?last for symmetry. 2011-10-13 13:04:24 -07:00
John Benediktsson 3207244c60 sequences: define ?first and ?second. 2011-10-13 12:53:46 -07:00
John Benediktsson 0075b6bc28 sequences: adding find-index. 2011-10-12 19:41:54 -07:00
John Benediktsson 3e20365cbe Revert "sequences: change to use tuple-hashcode algorithm, make string-hashcode work like old sequence-hashcode."
This reverts commit 7b7b0d4542.
2011-10-06 08:37:05 -07:00
John Benediktsson 7b76c26bc0 sequences: change to use tuple-hashcode algorithm, make string-hashcode work like old sequence-hashcode. 2011-10-05 19:22:50 -07:00
John Benediktsson 0fb43fb864 sequences: removing 2unclip-slice. 2011-10-02 09:26:20 -07:00
Doug Coleman c96289ef62 Fix sequences docs for change-nth stack effect and example needed using section 2011-09-21 10:09:03 -05:00
John Benediktsson a002b7aa5f sequences: adding stack effects for change-nth, map-integers, and interleave. 2011-09-19 20:49:57 -07:00
Jon Harper 58405ae6ba sequences, fix stack effect of (accumulate) 2011-08-25 00:43:37 +02:00
Slava Pestov c2aca44b4a sequences: nths should return a sequence of the same type as the original (reported by Jon Harper) 2011-01-29 00:18:36 -05:00
Keita Haga 334d0de92a sequences: surround a $example with a $examples to the if-empty word's help 2011-01-26 15:06:35 +09:00
Keita Haga 5e813eb6f2 sequences: put a period to description of trim-head-slice word 2011-01-16 09:59:27 +09:00
Keita Haga fd8bea65f6 sequences: enclose some $examples in '$examples' 2011-01-14 19:29:17 +09:00
Keita Haga d5fe4fecc1 remove useless whitespace in several documentation 2011-01-05 15:55:34 +09:00
Keita Haga 4645e409c3 sequences: fix typos in docs 2011-01-05 14:01:11 +09:00
Keita Haga c3189054d1 io.files.info.unix, sequences: few $examples and $unchecked-examples turn into $codes 2010-12-23 04:05:06 +09:00
Keita Haga dcb387630b sequences, syntax, vocabs.parser: remove useless whitespace in docs 2010-12-23 03:42:41 +09:00
Slava Pestov fbbaef70c4 Remove stream-peek and stream-peek1, re-implement dns vocab to not need this abstraction 2010-10-08 18:55:13 -07:00
Doug Coleman f7af445625 Add stream-peek1 and remove it from images.gif and dns. Add sequence-peek but not stream-peek (yet?) 2010-10-08 06:34:17 -07:00
John Benediktsson 0b47a6b959 sequences: fix typo in docs. 2010-09-10 13:22:48 -07:00
Slava Pestov 67b82a2509 sequences: remove unused 2reverse-each word 2010-05-10 00:46:29 -04:00
Slava Pestov c1a870fe72 sequences: remove stupid <flat-slice> word 2010-04-17 00:58:30 -05:00
Slava Pestov f40b313be5 sequences: 'accumulate' now outputs a sequence of the same type as its input 2010-04-14 21:51:00 -07:00
Joe Groff b9004a4fff fix up sequences help-lint 2010-03-09 20:29:44 -08:00
Joe Groff e5c2344ce4 sequences: effects of push-if and push-either were too strict 2010-03-07 21:56:40 -08:00
Joe Groff 17df15280e generalize stack effect of while, until, and produce 2010-03-05 23:01:22 -08:00
Joe Groff 85f30987e2 spray some polymorphic stack effects on kernel, math, and sequences 2010-03-05 00:21:10 -08:00
Slava Pestov 86b7ba95a8 sequences: fix help lint 2010-02-26 00:44:48 +13:00
Slava Pestov 7826543d2e sequences: add cartesian-each, cartesian-map, cartesian-product words to eliminate some duplication throughout the codebase 2010-02-25 20:54:57 +13:00
Slava Pestov e5aa02571f sequences: add suffix! to destructive sequence ops article 2010-02-25 05:57:09 +13:00
Philipp Brüschweiler caf978588b sequences: clarify some stack effect and examlpes in docs 2010-02-19 11:26:01 +01:00
Slava Pestov 220dd88a2c Update documentation for new help lint check 2010-02-19 12:31:52 +13:00
Slava Pestov f01487eb83 A few documentation fixes 2010-02-17 00:05:36 +13:00
Slava Pestov a112e52fe7 sequences: remove outdated comment 2010-02-10 16:12:02 +13:00
Slava Pestov 1a1a61549f sequences: remove a -rot usage 2010-02-10 15:44:15 +13:00
Doug Coleman a16d8db145 move sequence-hashcode-step to private 2010-01-22 16:30:22 -06:00
Doug Coleman 1519e0ba69 move (accumulate) to sequences.private 2010-01-22 15:04:13 -06:00
Doug Coleman 8c1d202b4c Rename accumulator to collector, pusher to selector 2010-01-22 15:00:53 -06:00
Slava Pestov 8836ce2581 Fix performance regression in vector ops on specialized arrays, tweak definition of <slice> and 2map-reduce to generate fewer conditionals 2010-01-19 17:48:10 +13:00
Doug Coleman 4e6a5a772f Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	core/sequences/sequences-docs.factor
2010-01-14 17:22:02 -06:00
Doug Coleman 9356da6fb3 Fix a few integers-as-sequences in docs 2010-01-14 17:20:43 -06:00
Slava Pestov e8378b3dc6 generic, sequences: update docs for iota 2010-01-15 08:23:27 +13:00