Slava Pestov
ea44ea3522
math.vectors.simd: add saturated arithmetic operations
2009-09-20 23:16:02 -05:00
Slava Pestov
47d8763340
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
076ab42dc3
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
1f04ed01fe
fix more ambiguities
2009-09-17 09:29:23 -05:00
Joe Groff
9479fb4099
have SPECIALIZED-ARRAY: scan in a c-type rather than a string
2009-09-16 20:54:22 -05:00
Joe Groff
3b4330fcf6
get things to a point where they bootstrap again
2009-09-15 21:43:18 -05:00
Slava Pestov
16209bf68d
specialized-arrays: fix unit tests now that ALIEN: expects a hex literal
2009-09-13 00:24:31 -05:00
Slava Pestov
5cdb67d571
specialized-arrays, specialized-vectors: fix some code duplication and prettyprinting
2009-09-10 14:46:26 -05:00
Slava Pestov
7f2e2b1777
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
74fa73aeaf
Fix various test failures
2009-09-08 19:18:56 -05:00
Slava Pestov
bbca00e2ae
Fix conflicts
2009-09-07 23:51:25 -05:00
Slava Pestov
1798000335
Fix unit tests for specialized-arrays.direct change
2009-09-05 02:26:06 -05:00
Slava Pestov
a054ec3d64
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
10297b66ce
specialized-arrays: fix clone method
2009-09-03 02:24:03 -05:00
Joe Groff
79be927371
take advantage of pprint-prefix in c-object-pointer prettyprinters
2009-08-31 19:56:36 -05:00
Joe Groff
e1e457c27e
pprint S@, X-array@ in <block block> for better formatting
2009-08-30 21:12:02 -05:00
Joe Groff
dee9f56500
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
361cc04b02
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
8a9d0e13bb
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
08867f3576
inline sequence methods on direct-arrays
2009-08-26 21:49:45 -05:00
Joe Groff
f4acf22433
specialized-arrays.direct: define byte-length on direct arrays
2009-08-25 18:54:15 -05:00
Joe Groff
79787f6259
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
f56615cec0
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
24d9a8635c
Merge branch 'struct-classes' of git://factorcode.org/git/factor
2009-08-17 21:26:19 -05:00
Slava Pestov
4fac281b1a
rpn: new demo, simple RPN calculator that doesn't use Factor's evaluator reflectively
2009-08-17 20:12:05 -05:00
Joe Groff
6fe7fe72c7
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-14 10:55:05 -04:00
Joe Groff
a2569ea50b
make direct-*-arrays prettyprint
2009-08-13 12:05:46 -04:00
Slava Pestov
9fb0dcd9bd
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
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
b76165facf
Move ptrdiff_t arrays to specialized-arrays.ptrdiff_t
2009-07-17 03:51:23 -05:00
Joe Groff
dd00d31617
ptrdiff_t arrays
2009-07-01 13:52:42 -05:00
Slava Pestov
1d747ea911
specialized-arrays: fix tests on PowerPC
2009-05-08 21:34:28 -05:00
Slava Pestov
3e680b3b72
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