Doug Coleman
815591e10c
factor: m: { a b } -> M\\ a b
2017-10-12 21:22:41 -05:00
Doug Coleman
cada003d7f
factor: Rename ``M\ array generic`` to ``m: { array generic }``.
...
The problem with M\ is that it has an arity of 1 where we need it to have arity 2. Also, for multimethods, the \ disables parsing of the array that follows, e.g. ``M\ { string string } multimethod-name`` parses as ``M\ {`` and leaves the rest unparsed. This is obviously wrong.
An alternative syntax that should be implement and looks ok is ``m{ array generic }``
2017-10-01 09:51:31 -05:00
Doug Coleman
147ae66ab5
factor: SYNTAX: \foo
2017-08-31 21:21:13 -05: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
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
529a57bbb4
Revert "hints: add hints to index."
...
This reverts commit 96ce04755a .
2015-07-20 17:35:22 -07:00
John Benediktsson
96ce04755a
hints: add hints to index.
2015-07-19 17:20:36 -07:00
John Benediktsson
9fad4187f3
sequences: adding a subseq-unsafe that doesn't check slice bounds.
2015-07-17 12:14:33 -07:00
John Benediktsson
86639b9df0
io.encodings.ascii: make sure encode-string gets a string.
2015-07-14 22:18:12 -07:00
John Benediktsson
296968580a
use assoc-reject instead of [ ... not ] assoc-filter.
2015-05-12 19:08:42 -07:00
John Benediktsson
ece22caa43
hints: specialize le> and be> for byte-array.
2014-06-02 17:10:16 -07:00
John Benediktsson
a634f8c0ff
hints: add string specializer to member-eq?.
2013-11-20 16:38:57 -08:00
John Benediktsson
7bf3cf4922
hints: should hint on split not split,
2013-03-27 16:21:32 -07:00
John Benediktsson
67a2b9dc9a
io.encodings: speed up ascii and utf8 stream-read-until.
2013-03-18 13:35:22 -07:00
John Benediktsson
843426c664
hints: remove these hints for now...
2013-03-04 19:03:10 -08:00
John Benediktsson
8043b7b4ba
hints: prevent specialization on inline-recursive words.
2013-03-04 17:34:20 -08:00
John Benediktsson
08499b6e5a
hints: cleanup some hint setting.
2012-09-11 10:35:21 -07:00
John Benediktsson
626050611c
hints: prepend should have same hints as append.
2012-07-16 11:07:13 -07:00
Doug Coleman
067f9830ef
classes.union: Define a maybe: word that makes a tuple that acts as an anonymous union for a type and f. Updated all the places we define UNION: ?foo foo POSTPONE: f ;. Fixes #416 and lots of headaches.
2011-11-22 01:56:13 -08:00
Doug Coleman
f9257959fd
Rename class to class-of
2011-10-24 06:47:42 -05:00
Slava Pestov
f27080498d
Remove bignum>float VM primitive, and use bignum/f to implement >float on bignums instead, for a slight accuracy gain. Also, bignum/f now has a more efficient post-scaling algorithm to break the circular dependency on bignum>float
2010-11-24 22:41:15 -08:00
Slava Pestov
2eda6fc6aa
io.encodings: add a fast-path for ascii, utf8 and 8-bit encodings when string only contains ASCII characters
2010-04-19 01:14:00 -05:00
Slava Pestov
afee6ccfcd
Merge branch 'new-math-parser' of git://factorcode.org/git/factor into new-math-parser
2010-02-07 23:28:18 +13:00
Slava Pestov
df55fed478
generic: rename method-body predicate class to method
2010-02-03 23:11:24 +13:00
Slava Pestov
ab428fc259
Code cleanups
2010-01-30 09:28:56 +13:00
Slava Pestov
df4fb4a3ee
Removing integers-as-sequences
2010-01-15 07:15:33 +13:00
Joe Groff
61a3e4e814
new, faster one-pass number parser
2009-11-01 01:59:12 -05:00
Joe Groff
a7011fe087
use bignum/f to get accurate division of fixnums >= 2^53 on 64-bit platforms
2009-10-31 12:06:56 -05:00
Doug Coleman
bd13e018dd
memq? -> member-eq?, sorted-memq? -> sorted-member-eq?
2009-10-28 15:02:00 -05:00
Doug Coleman
1476cdb974
reverse-here -> reverse!
2009-10-28 14:40:15 -05:00
Joe Groff
ad18098a4f
add some math.parser hints that slightly improve number parsing performance
2009-10-26 17:48:05 -05:00
Joe Groff
5caa118e40
make first2, first3, first4 inline
2009-10-26 17:30:37 -05:00
Slava Pestov
c0abb9ce95
hints: fix regression with declarations
2009-09-25 18:50:08 -05:00
Joe Groff
aeba336601
separate stack effect typing from hints. put it in a "typed" vocab, and have a TYPED: word that adds the type checking directly to the word
2009-09-02 11:45:30 -05:00
Joe Groff
cb56e95567
handle the stack effect type as a separate specialization pass, and use coercers when available
2009-09-01 23:13:08 -05:00
Joe Groff
333943188e
typo in specialize-method
2009-09-01 15:59:59 -05:00
Joe Groff
6b512e3187
make type declarations in stack effects strong and throw an error if the inputs don't match
2009-09-01 15:49:08 -05:00
Joe Groff
19b10fb85e
bring back ( x: type y: type -- ) stack effect syntax, and automatically hint words based on types in their declared effect
2009-09-01 14:39:22 -05:00
Slava Pestov
a34a3bf417
hints: HINTS: now recompiles subwords too, 15% perf improvement on reverse-complement because encoder-write is compiled with hints now
2009-08-18 19:40:54 -05:00
Slava Pestov
1cb0f3370b
math.vectors.specialization: first attempt at some call site splitting for vector ops. Specialized array types generate customized variants of all vector words, if input types are known at compile time, a call to the specialized version is inserted
2009-08-09 03:07:33 -05:00
Slava Pestov
f1683f9fcf
Move set-last from circular.private to sequences
2009-07-28 11:51:47 -05:00
Doug Coleman
407377fc98
rename peek -> last and update all usages
2009-05-25 16:38:33 -05:00
Doug Coleman
3722c0ad62
move some words to private vocabs
2009-05-25 15:35:50 -05:00
Slava Pestov
a79e3eb687
Passing an invalid parameter to 'declare' doesn't break the compiler anymore
2009-04-30 20:40:47 -05:00
Slava Pestov
3dc9fdf9db
Fleshed out new dispatch code
2009-04-24 20:43:01 -05:00
Slava Pestov
c877146531
Move method-declaration to hints
2009-04-24 16:53:30 -05:00
Slava Pestov
dea3987ca5
Silly workaround for performance regression
2009-04-22 00:44:06 -05:00
Slava Pestov
8414693142
stack-checker: trust word declarations instead of recursively checking them
2009-04-20 18:44:45 -05:00
Slava Pestov
0fda643ab1
Optimizing string>number
2009-04-11 20:30:51 -05:00