Commit Graph

158 Commits (master)

Author SHA1 Message Date
John Benediktsson 2bac4a9695 checksums.sha: remove trailing whitespace. 2015-06-06 09:28:01 -07:00
Björn Lindqvist 61ba941740 math.vectors: changes so that some vocabs that can use math.vector words does it 2014-11-17 19:02:12 -08:00
John Benediktsson d3a1ba25a4 Revert "checksums.interleave: Dumb fix for zip change."
This reverts commit 4b8de3ca1e.
2014-11-11 17:56:25 -08:00
Doug Coleman 4b8de3ca1e checksums.interleave: Dumb fix for zip change. 2014-11-08 22:32:36 -08:00
Benjamin Pollack 2c3dd8c3c8 Remove executable bit from tons of files that aren't 2014-11-05 20:40:42 -08:00
John Benediktsson 8c58b99b1d Revert "openssl: define a startup-hook so that openssl initializes automatically"
This reverts commit 981ea313a0.

Conflicts:
	basis/openssl/openssl.factor
2014-08-05 12:14:53 -07:00
Björn Lindqvist 981ea313a0 openssl: define a startup-hook so that openssl initializes automatically 2014-06-06 14:12:09 -07:00
John Benediktsson 484ae0bca0 checksums.md5: don't inline, use type declarations. 2014-04-22 09:13:02 -07:00
John Benediktsson 04a4e0ed5c checksums.sha: minor speedup. 2014-03-04 10:05:03 -08:00
John Benediktsson dae32f2d9d checksums.internet: simplify. 2014-02-27 14:03:00 -08:00
John Benediktsson 5e4ac4b698 checksums.xxhash: cleanup, faster. 2014-02-27 13:59:34 -08:00
John Benediktsson a05c735731 checksums.md5: remove extra "32 bits". 2014-02-25 15:59:43 -08:00
John Benediktsson 212af2d05d checksums.murmur: remove code duplication. 2014-02-25 15:56:16 -08:00
John Benediktsson 5e210e36b9 checksums.xxhash: adding xxHash checksum implementation. 2014-02-25 15:55:32 -08:00
John Benediktsson 6fd68ecb64 checksums.md5: more types and inline, lots faster. 2014-02-17 18:26:57 -08:00
John Benediktsson c3f79c1482 checksums.sha: more types, faster. 2014-02-17 18:26:17 -08:00
John Benediktsson 29ca470b79 checksums.superfast: use bits word. 2013-11-24 10:45:55 -08:00
John Benediktsson ee294292f6 checksums.murmur: use bits word. 2013-11-24 10:45:46 -08:00
John Benediktsson 627993fc1a checksums.superfast: reuse more code, slightly faster for non-byte-arrays. 2013-11-24 09:58:02 -08:00
John Benediktsson 405e543f92 checksums.superfast: reuse code and make a bit faster. 2013-11-23 18:49:59 -08:00
John Benediktsson 34853bf550 checksums.superfast: make checksum on byte-arrays much faster. 2013-11-22 18:50:59 -08:00
John Benediktsson 055895da3b checksums.murmur: make checksum on byte-arrays much faster. 2013-11-22 18:50:38 -08:00
John Benediktsson 670439ce81 checksums.superfast: implementation of SuperFastHash. 2013-11-22 17:45:41 -08:00
John Benediktsson 3207dac8a0 checksums.murmur: should be unsigned int32. 2013-11-22 17:06:18 -08:00
John Benediktsson 1367ced138 checksums.murmur: implementation of MurmurHash. 2013-11-22 10:34:19 -08:00
John Benediktsson 52498a9f67 checksums.fletcher: adding Fletcher's checksum in 16/32/64-bits. 2013-11-22 09:03:17 -08:00
John Benediktsson 9f7bdd9327 checksum.bsd: adding BSD checksum algorithm. 2013-04-10 09:24:45 -07:00
John Benediktsson 676ea1381b checksums.fnv1: make fnv1's instance checksum. 2013-04-10 09:24:27 -07:00
John Benediktsson ec51815923 checksums.adler-32: make adler-32 instance checksum. 2013-04-10 09:24:14 -07:00
Doug Coleman f9ea61bf91 basis/extra: Update last usages of <sliced-groups> to <groups>. 2013-03-23 12:08:18 -07:00
John Benediktsson 5c76cbb421 rename some words to x>sequence and sequence>x. 2012-07-23 21:28:38 -07:00
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
Doug Coleman 3292ceaf46 move sha2 state to a tuple 2009-05-08 17:18:43 -05:00
Doug Coleman 0fe5aaf5f8 more refactoring on sha2 2009-05-08 10:52:25 -05:00
Doug Coleman 3f5e93d29a more refactoring on sha2 2009-05-08 10:04:31 -05:00
Doug Coleman 660bb079ae cleaning up sha2 2009-05-08 09:51:57 -05:00
Doug Coleman 90d40a7650 calculate a magic number in md5 2009-04-25 19:22:46 -05:00
Slava Pestov 4426526252 Fixing some things I broke 2009-02-25 23:30:30 -06:00
Slava Pestov 1951d739a0 Stack effect declarations are mandatory on all words now
define-temp now takes an effect parameter
Fix compiler bug that Dan found
Stricter enforcement of * effects
Move compile-call from compiler.units to compiler
2009-02-23 20:27:05 -06:00
Doug Coleman 990513db60 use CONSTANT: in basis 2009-02-22 19:13:08 -06:00
Slava Pestov 6b25e99470 Add summary for heaps more vocabs 2009-02-16 21:05:13 -06:00
Doug Coleman 3c408342ef renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad-right -> pad-tail, trim-left -> trim-head, trim-right -> trim-tail 2009-01-29 22:19:07 -06:00
Slava Pestov f169e62655 Clean up checksums.md5 a little 2009-01-16 12:51:44 -06:00
Doug Coleman 4dd615fa9e Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/db/types/types.factor
2008-12-17 21:07:42 -06:00
Slava Pestov c5160d76e9 Merge qualified, alias, symbols, constants into core 2008-12-17 18:10:01 -06:00
Doug Coleman be5a099379 refactor some weirdness in checksums.common 2008-12-17 01:40:09 -06:00
Slava Pestov 63fda570bf Fixing assorted compile errors and help lint warnings 2008-12-16 01:12:36 -06:00
Slava Pestov daf2857d7b define-inline now takes an effect parameter
C: now sets the stack effect of the new word to slot names
add new basis/constants vocab; CONSTANT: foo bar is equivalent to : foo bar ; inline
(going to fold CONSTANT:, ALIAS: and qualified into core soon perhaps)
tighten the screws: inline words now need a stack declaration too
update some usages of inline words
2008-12-15 19:44:56 -06:00
Slava Pestov 4f0a9f311e Untangling some dependencies 2008-12-08 14:58:00 -06:00
Doug Coleman 3f9f6b3624 remove >r r> from checksums 2008-11-29 13:00:50 -06:00
Slava Pestov 498761376a Cleanup 2008-11-26 04:25:18 -06:00