Slava Pestov
66871995c9
math.vectors.simd: add saturated arithmetic operations
2009-09-20 23:16:02 -05:00
Slava Pestov
dfb43bd2ca
More integer SIMD work
...
- move generated vocab support from specialized-arrays to vocabs.generated
- add fuzz testing to math.vectors.simd
- add alien type support for integer SIMD vectors
- SIMD: parsing word generates a SIMD type, instead of pre-generating them all in math.vectors.simd
2009-09-20 16:48:17 -05:00
Joe Groff
4a1422e7fe
move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab
2009-09-17 22:36:05 -05:00
Joe Groff
21a0722752
fix more ambiguities
2009-09-17 09:29:23 -05:00
Joe Groff
c45653cb66
have SPECIALIZED-ARRAY: scan in a c-type rather than a string
2009-09-16 20:54:22 -05:00
Joe Groff
334e93bbbf
get things to a point where they bootstrap again
2009-09-15 21:43:18 -05:00
Slava Pestov
29e572abce
specialized-arrays: fix unit tests now that ALIEN: expects a hex literal
2009-09-13 00:24:31 -05:00
Slava Pestov
e5f6be52cc
specialized-arrays, specialized-vectors: fix some code duplication and prettyprinting
2009-09-10 14:46:26 -05:00
Slava Pestov
527db8995a
Specialized array overhaul
...
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Slava Pestov
3e90786bc1
Fix various test failures
2009-09-08 19:18:56 -05:00
Slava Pestov
17821626c3
Fix conflicts
2009-09-07 23:51:25 -05:00
Slava Pestov
9fca70d965
Fix unit tests for specialized-arrays.direct change
2009-09-05 02:26:06 -05:00
Slava Pestov
430f4a83f9
specialized-arrays.direct is no more; instead, every specialized-array.<foo> vocabulary has a <direct-T-array> constructor
2009-09-04 22:01:55 -05:00
Slava Pestov
9d749cae67
specialized-arrays: fix clone method
2009-09-03 02:24:03 -05:00
Joe Groff
f84dc0074e
take advantage of pprint-prefix in c-object-pointer prettyprinters
2009-08-31 19:56:36 -05:00
Joe Groff
0e160d3b6a
pprint S@, X-array@ in <block block> for better formatting
2009-08-30 21:12:02 -05:00
Joe Groff
242402ebcb
add alternate literal syntax "X-array@ PTR LEN" for direct-arrays. pprint with this syntax when c-object-pointers? prettyprint flag is set, or the pointer under the direct-array is invalid
2009-08-30 20:23:55 -05:00
Joe Groff
182c854140
rather than deprecate <c-array>, replace it with <c-type-array> . to stay consistent, rename <c-type-direct-array> to <c-direct-array> and require-c-type-arrays to require-c-arrays
2009-08-30 18:41:38 -05:00
Joe Groff
3a06bfaf2d
deprecate <c-array>, and make malloc-array box its returned buffer in a direct array
2009-08-29 11:15:23 -05:00
Joe Groff
aeee614215
inline sequence methods on direct-arrays
2009-08-26 21:49:45 -05:00
Joe Groff
a5585f80d8
specialized-arrays.direct: define byte-length on direct arrays
2009-08-25 18:54:15 -05:00
Joe Groff
a9b9ca01f8
associate specialized-arrays vocabs with c-types; add words for requiring vocabs and constructing arrays by C type
2009-08-25 17:56:01 -05:00
Joe Groff
8baae18cdc
add an X-sequence mixin class for each specialized array type to span X-array, X-vector, and direct-X-array
2009-08-25 15:58:18 -05:00
Joe Groff
48007aaefa
Merge branch 'struct-classes' of git://factorcode.org/git/factor
2009-08-17 21:26:19 -05:00
Slava Pestov
27f4e8449f
rpn: new demo, simple RPN calculator that doesn't use Factor's evaluator reflectively
2009-08-17 20:12:05 -05:00
Joe Groff
4033e46800
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-14 10:55:05 -04:00
Joe Groff
9710952ed6
make direct-*-arrays prettyprint
2009-08-13 12:05:46 -04:00
Slava Pestov
e88dcb85ef
alien: need to differentiate between the type of the result before and after boxing; the former is used by propagation for #alien-invoke nodes and the latter is used by specialized arrays. This fixes FFI unit test failures
2009-08-10 16:17:33 -05:00
Slava Pestov
9b4ffd65d3
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
799b2b373a
Move ptrdiff_t arrays to specialized-arrays.ptrdiff_t
2009-07-17 03:51:23 -05:00
Joe Groff
cc3e78f65a
ptrdiff_t arrays
2009-07-01 13:52:42 -05:00
Slava Pestov
1e7f809a98
specialized-arrays: fix tests on PowerPC
2009-05-08 21:34:28 -05:00
Slava Pestov
e1889c3981
specialized-arrays: fix unit tests for bool type change
2009-05-06 10:38:39 -05:00
Slava Pestov
ea60f8ae93
Changing : foo ; parsing to SYNTAX: foo ;
2009-03-21 01:27:50 -05:00
Slava Pestov
6b25e99470
Add summary for heaps more vocabs
2009-02-16 21:05:13 -06:00
Joe Groff
0d67f41ae6
update specialized-arrays docs
2009-02-09 19:28:21 -06:00
Joe Groff
296a1ce0a9
unit tests for complex specialized-arrays
2009-02-09 17:26:12 -06:00
Joe Groff
ddf8afbb7e
more typos
2009-02-09 16:37:12 -06:00
Joe Groff
db6706434d
tweak specialized-arrays to box values returned by nth
2009-02-09 15:38:07 -06:00
Joe Groff
d24b03098a
specialized arrays for complex types
2009-02-09 15:11:27 -06:00
Slava Pestov
d6aa376ed0
Removing now-redundant underlying>> calls
2009-02-06 04:37:28 -06:00
Slava Pestov
4adef7db09
Fix functors bug where changing a hand-written method into one generated by a functor would forget the method; also associate functor-generated methods with the source file they're in.
...
Add DEFINES-CLASS, to parallel DEFINES.
Update math.blas and specialized-arrays/vectors to use DEFINES-CLASS where appropriate
2009-02-06 02:45:21 -06:00
Slava Pestov
4de41f94e9
Fixing wrappers with locals
2009-01-28 17:07:31 -06:00
Slava Pestov
1a409b9213
Fix specialized-arrays.direct.functor
2009-01-28 15:46:04 -06:00
Slava Pestov
16181f818b
Clean up functors so that the generated code looks sane with 'see'
2009-01-28 15:07:16 -06:00
Slava Pestov
eb79c6ab71
Fix conflict
2008-12-09 17:52:45 -06:00
Slava Pestov
4f0a9f311e
Untangling some dependencies
2008-12-08 14:58:00 -06:00
Slava Pestov
908644ee7a
O(1) <sbuf> and new-sequence on byte-arrays (work in progress)
2008-12-05 07:28:52 -06:00
Slava Pestov
293dc2062c
Generalize specialized-arrays.direct: it should be able to wrap a byte array
2008-12-04 12:07:33 -06:00
Slava Pestov
bea4d80a33
Add specialization hints from old float-arrays. These will be replaced with a better facility soon
2008-12-03 10:11:02 -06:00