Commit Graph

77 Commits (2699c4482bd936e7c9e59425ac4e486978bfbdee)

Author SHA1 Message Date
Joe Groff 943596575a use radix literals 2011-11-23 19:03:40 -08:00
John Benediktsson 4f42c72012 specialized-arrays: performed some cleanup.
Specifically,
    •   Created >c-array to be replacement for >T-array.
    •   Created cast-array to be generic replacement for all T-array-cast words.
    •   Created c-array@ to be generic replacement for T-array@ words.
    •   Replaced usages of <T-array> with T <c-array>
    •   Replaced usages of <direct-T-array> with T <c-direct-array>
    •   Replaced usages of >T-array with T >c-array
    •   Replaced usages of T-array-cast with T cast-array
    •   Replaced usages of malloc-T-array with T malloc-array.
    •   Removed malloc-T-array.
    •   Removed T-array-cast.
    •   Removed T-array@.
    •   Removed >T-array.

I also added (but didn't change any code to use):
    •   T c-array-type, returns T-array
    •   T c-array?, returns T-array?
    •   c-array{ T ... }, returns T-array{ ... }

Bootstraps just find on Mac OS X.  Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
Joe Groff 2bd6de9a02 slots: pre-create the "at", "nth", and "global" slots to make deterministic the currently nondeterministic ambiguity between accessors:change-* and assocs:change-at, sequences:change-nth, and namespaces:change-global 2011-09-19 10:03:43 -07:00
John Benediktsson 9f34c9c676 Spelling fixes to documentation. 2011-08-26 16:20:31 -07:00
otoburb 8c680aa06f Checksums help article update: Added internet checksums brief description 2011-03-23 03:51:55 +00:00
Slava Pestov 75560699ea Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object> 2010-12-25 16:55:36 -08:00
John Benediktsson c3045005ef Adding the "internet checksum" (RFC 1071). 2010-08-13 14:32:26 -07:00
Slava Pestov 446ee6896d alien.data: remove second quotation parameter from with-out-parameters, now all values are copied properly and calling 'clone' on structs in this quotation is not necessary 2010-07-16 17:32:05 -04:00
Slava Pestov 70a99e1cdb Updating code to use with-out-parameters 2010-05-23 03:07:47 -04:00
Slava Pestov a8098e3182 specialized-arrays: rename byte-array>T-array to T-array-cast, and make it work with anything that responds to >c-ptr / byte-length 2010-05-18 23:09:34 -04:00
Slava Pestov ea726f5680 Move remaining sequence operations from generalizations to sequences.generalizations where they belong 2010-05-18 18:36:47 -04:00
Slava Pestov 627295f094 Language change: tuple slot setter words with stack effect ( value object -- ) are now named FOO<< instead of (>>FOO) 2010-05-06 17:21:02 -04:00
Slava Pestov df4fb4a3ee Removing integers-as-sequences 2010-01-15 07:15:33 +13:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Joe Groff 6e1bffb1c5 update existing code to use :> ( ) when possible 2009-10-28 16:11:33 -05:00
Doug Coleman 67167cf9ea 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 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Doug Coleman 34c4bd6d8f add a using 2009-10-01 17:07:57 -05:00
Doug Coleman 5c972d9679 check that the length of checksum-lines is correct for md 2009-10-01 13:48:28 -05:00
Slava Pestov 74a72ce17c checksums.openssl: use correct API for creating EVP_MD_CTX, fixes crash on NetBSD 2009-09-22 23:54:42 -05:00
Joe Groff e6bc708882 update openssl.libcrypto structs 2009-09-18 17:50:20 -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
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 b2a1858f8f Move a few more things over to new disposable protocol 2009-08-24 20:33:27 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Alaric Snell-Pym 8dacd82707 FNV1 and FNV1a hashes implemented for 32, 64, 128, 256, 512, and 1024 bit widths. 2009-08-02 18:16:55 +01:00
Doug Coleman 785c341c9b 50% speedup using unsafe nth/set-nth/exchange in checksums.sha 2009-06-21 00:58:36 -05:00
Doug Coleman 38a8e80ba9 unbackwardsify hmac keys 2009-05-26 17:46:41 -05:00
Slava Pestov 6061b68b0d checksums.md5: make the new optimized code work with big endian CPUs 2009-05-23 00:31:52 -05:00
Doug Coleman 4489346f69 speed up md5 compilation time by not inlining everything 2009-05-19 18:05:04 -05:00
Doug Coleman 4eab045deb add nth-unsafe to sequences.private, making md5 faster 2009-05-18 00:24:24 -05:00
Doug Coleman 349adff19e fix checksum test -- short circuit so correct error is reported 2009-05-17 20:32:43 -05:00
Doug Coleman 70020d59bd add some unit tests testing get-checksum 2009-05-17 18:41:15 -05:00
Doug Coleman b352bbdc12 move sha1 and sha2 to checksums.sha, update usages 2009-05-17 17:58:36 -05:00
Doug Coleman e342082722 fix sha1 2009-05-17 17:50:31 -05:00
Doug Coleman ee6a8e78e7 generalize sha1-interleave and move it to its own vocabulary 2009-05-17 13:49:56 -05:00
Doug Coleman f1f1a26b60 working on hmac 2009-05-17 12:45:20 -05:00
Doug Coleman b2ac4396c1 sha2 now uses the incremental checksum protocol 2009-05-17 11:03:04 -05:00
Doug Coleman 0bdccdb7ac checksums work now 2009-05-16 18:00:56 -05:00
Doug Coleman b819f9d11c Merge branch 'master' into checksums 2009-05-16 14:06:39 -05:00
Doug Coleman e870214016 working on checksums 2009-05-16 13:03:09 -05:00
Slava Pestov 66a9416473 Update documentation for stricter vocabulary search path semantics 2009-05-16 00:29:21 -05:00
Slava Pestov b62630b5ac Updating code in basis and extra for stricter vocab search path semantics 2009-05-14 23:23:06 -05:00
Doug Coleman bee3c05fe9 working on checksums 2009-05-11 11:37:21 -05:00
Doug Coleman 6dabec9ed8 md5 stores state in a tuple now 2009-05-10 23:06:33 -05:00
U-C4\Administrator 052a0931d3 moving md5 state to a tuple, redoing hmac 2009-05-10 20:42:20 -05:00
Doug Coleman b4108c21f0 working on sha2 2009-05-10 12:18:59 -05:00
Doug Coleman c0a3ef631a implementing sha2 512 2009-05-08 19:00:06 -05:00
Doug Coleman 5451d8f976 support sha-224, add constants for all sha2 2009-05-08 18:11:13 -05:00
Doug Coleman 884fdc8ceb remove dynamic variables from sha2 2009-05-08 17:39:11 -05:00