Commit Graph

119 Commits (2c67a5cd78e5dcffd7146e6fd0eb95f810a497e1)

Author SHA1 Message Date
Slava Pestov 5f52b230f7 specialized-arrays: fix unit test 2009-10-20 02:18:28 -05:00
Slava Pestov 8eba48f4c4 specialized-arrays, specialized-vectors: fix potential problem if two vocabularies define different C types with the same name 2009-10-19 04:41:53 -05:00
Joe Groff 2f3c719919 add unit test that doubles stored in single-precision float arrays round to nearest 2009-10-17 00:07:08 -05:00
Joe Groff 61befc8bb1 have vshuffle accept simd-128 variable byte shuffles 2009-10-10 11:30:11 -05:00
Joe Groff a083eb91c7 add SIMDS: ... ; and SPECIALIZED-ARRAYS: ... ; syntax 2009-10-09 10:43:37 -05:00
Doug Coleman c10b6d4ba7 Merge branch 'docs' of git://github.com/klazuka/factor into klazuka
Conflicts:
	basis/math/vectors/vectors-docs.factor
2009-10-02 15:58:45 -05:00
Keith Lazuka 8f79ea91ba docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Slava Pestov fa0cf4cb4a specialized-arrays: byte-array>A-array calls >c-ptr 2009-10-01 23:12:53 -05:00
Slava Pestov f08521bf83 Fixing various test failures caused by C type parser change, and clarify C type docs some more 2009-09-28 08:48:39 -05:00
Slava Pestov 1b26a1c87c alien: improve documentation 2009-09-26 21:28:11 -05:00
Doug Coleman abb8a221db Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/math/vectors/simd/simd-docs.factor
2009-09-23 10:11:49 -05:00
Slava Pestov 66871995c9 math.vectors.simd: add saturated arithmetic operations 2009-09-20 23:16:02 -05:00
Doug Coleman 026761ed62 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/classes/struct/struct-tests.factor
	basis/functors/functors-tests.factor
	basis/specialized-arrays/specialized-arrays-tests.factor
2009-09-20 23:02:49 -05:00
Doug Coleman 47fab85a00 replace usages of <" with """ 2009-09-20 22:42:40 -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
U-SLAVA-DFB8FF805\Slava 8834f8e041 Loosen type on direct arrays since we want to use them on displaced aliens too 2008-12-03 06:52:31 -06:00
Slava Pestov c4ff034229 Document byte-array>T-array word 2008-12-02 21:51:07 -06:00
Slava Pestov 9c713fda6f Change type declaration for performance reasons 2008-12-02 21:50:53 -06:00
Slava Pestov 25bdb4172a Functor-generated words can now have stack effect declarations; define byte-array>*-array words 2008-12-02 20:35:20 -06:00
Slava Pestov 402da00390 Fixing bootstrap with specialized arrays 2008-12-02 02:44:19 -06:00
Slava Pestov 2fe364a7bb Specialized arrays work in progress 2008-11-14 20:18:16 -06:00