Commit Graph

342 Commits (db42e128538f32bb3399f5469866d1b3553ecea3)

Author SHA1 Message Date
Slava Pestov df18c0b6e7 Making more code infer 2009-04-15 19:03:44 -05:00
Aaron Schaefer 01677ada51 Remove unnecessary helper word after refactoring 2009-04-08 18:15:24 -04:00
Aaron Schaefer ee9f509e82 Solutions to Project Euler problem 69 2009-04-08 02:41:02 -04:00
Aaron Schaefer e78476a51e Solution to Project Euler problem 63 2009-04-07 21:36:38 -04:00
Aaron Schaefer 7a9c0ce069 Solution to Project Euler problem 58 2009-04-07 16:55:00 -04:00
Aaron Schaefer 4a229e5205 Slight cleanup of PE problem 54 solution 2009-04-05 21:16:20 -04:00
Aaron Schaefer 8fdc852038 Solution to Project Euler problem 54 2009-04-05 15:37:03 -04:00
Aaron Schaefer 59145c0672 Minor typo in solution for PE problem 49 2009-04-02 12:10:51 -04:00
Aaron Schaefer d6e646389c Solution to Project Euler problem 49 2009-04-02 11:58:35 -04:00
Aaron Schaefer ca9fb1fcf1 Update usages of divisor? where appropriate 2009-04-01 21:53:18 -04:00
Aaron Schaefer 9d44708e1d Fix contains? -> any? rename issue 2009-04-01 18:43:45 -04:00
Aaron Schaefer fd6aba04a1 Merge branch 'master' of git://factorcode.org/git/factor
* 'master' of git://factorcode.org/git/factor: (113 commits)
  Round mouse co-ordinates
  Fix bunny deployment
  Fix site-watcher tests
  make multimethods tests pass
  make ecdsa unportable for now
  check pango-1.0
  cocoa.messages: cleanup
  Move synopsis* from definitions to see
  Faster PEG compile times; inline less, use execute( instead
  delete factor/ every time after a build is finished.  you can easily check it out by knowing the git-id
  Condomization wraps lambdas in condoms to protect them from macro-transmitted diseases. cond, case and other macros work better now if lambdas appear where quotations are expected
  Fixing compile errors, test failures and help lint failures
  Add a missing step to the tutorial.
  Add stack declarations to primitives during bootstrap now that ( is just a comment and won't affect HELP: anymore
  OpenSSL checksum => native implementation
  kernel doesn't need to depend on classes.tuple.private
  Remove useless declarations
  Fixing unit tests for syntax change
  tools.disassembler now uses udis on Windows
  Add promises unit tests
  ...

Conflicts:
	extra/project-euler/001/001.factor
2009-03-24 02:41:53 -04:00
Slava Pestov ea60f8ae93 Changing : foo ; parsing to SYNTAX: foo ; 2009-03-21 01:27:50 -05:00
Slava Pestov 9366ffe83a Fix load error 2009-03-19 15:52:58 -05:00
Slava Pestov f995542246 Project Euler solutions had MAIN: words which would leave values on the stack; add a new SOLUTION: parsing word now that MAIN: cannot do that 2009-03-18 23:05:32 -05:00
Aaron Schaefer 2152a5c97f Merge branch 'master' of git://factorcode.org/git/factor 2009-03-01 22:24:30 -05:00
Slava Pestov cd53c2bd37 produce and produce-as: don't need third quotation either 2009-02-28 15:31:34 -06:00
Samuel Tardieu 087d931c36 Remove the tail argument from do/until/while 2009-02-18 02:41:14 +01:00
Aaron Schaefer 779ebc3422 Merge branch 'master' of git://factorcode.org/git/factor 2009-02-10 22:17:18 -05:00
Slava Pestov 17676efeaa Merge branch 'master' of git://factorcode.org/git/factor 2009-02-09 18:12:00 -06:00
Slava Pestov efc88c5b69 Remove nipd, 3nip, 4nip and tuckd from basis/shuffle 2009-02-09 18:11:42 -06:00
Daniel Ehrenberg 35b526cc7a Docs for lists, consolidating list functionality in lists, minor API changes 2009-02-09 14:29:09 -06:00
Aaron Schaefer f3082b6e5e Merge branch 'master' of git://factorcode.org/git/factor 2009-02-05 11:18:51 -05:00
slava e29f18a2f4 Trying to fix a bad merge...
Revert "Merge branch 'master' of git://factorcode.org/git/factor"

This reverts commit da639739bd, reversing
changes made to 346a61f497.
2009-02-03 00:27:34 -06:00
Aaron Schaefer 3c02bcc065 Merge branch 'master' of git://factorcode.org/git/factor 2009-02-01 18:33:03 -05: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
Aaron Schaefer 52690f3088 Merge branch 'master' of git://factorcode.org/git/factor 2009-01-22 17:43:53 -05:00
Slava Pestov ca2f01e0d0 Updating non-core libraries for monotonic? change 2009-01-16 17:02:54 -06:00
Aaron Schaefer 42c683875c Merge branch 'master' of git://factorcode.org/git/factor 2009-01-08 00:38:34 -05:00
Aaron Schaefer 51530700f4 Add number-length word and clean cartesian-product 2009-01-07 18:47:32 -05:00
Samuel Tardieu ca7ffd6ea2 Separate lazy lists from core primes number generation 2009-01-07 21:10:34 +01:00
Samuel Tardieu b96d2cca48 Add test for project Euler 157 2009-01-07 13:37:17 +01:00
Aaron Schaefer 6858b29796 Merge branch 'master' of git://factorcode.org/git/factor 2008-12-31 12:43:33 -05:00
Samuel Tardieu 3fbb9f7081 Project Euler - problem 57 2008-12-27 21:46:01 +01:00
Samuel Tardieu 588dfd326e Change timing info on project-euler.010
The "math.primes" vocabulary now handles very easily primes up to
five millions.
2008-12-26 21:03:12 +01:00
Aaron Schaefer adac92dfa5 Remove roll from Project Euler problem 33 solution 2008-12-20 18:53:17 -05:00
Aaron Schaefer 9b6d4f05f5 Merge branch 'master' of git://factorcode.org/git/factor 2008-12-18 21:34:45 -05:00
Slava Pestov cd5ae48670 Remove sequences.lib dependencies from project-euler.common and roman 2008-12-17 20:04:24 -06:00
Aaron Schaefer 89852b22d4 Add Project Euler solution for problem 1 from IRC 2008-12-16 22:43:22 -05:00
Slava Pestov c073a8b4f5 Fix more compile errors 2008-12-15 22:49:35 -06:00
Slava Pestov e0f86889c7 Fixing load-everything for io.files split 2008-12-15 01:13:35 -06:00
Doug Coleman 294b84b659 remove extra short definition 2008-12-06 18:41:13 -06:00
Aaron Schaefer 46911bc797 Add alternate solution to Project Euler problem #2 2008-12-02 00:46:38 -05:00
Aaron Schaefer 6333710f7d Fix ave-time considering switch to micro seconds 2008-11-24 22:05:43 -05:00
Aaron Schaefer 9a870b7760 Solution to Project Euler problem 50 2008-11-20 01:48:43 -05:00
Aaron Schaefer f8e86894a4 Minor Project Euler cleanup 2008-11-17 18:41:21 -05:00
Aaron Schaefer 72fea07526 Forgot to update project-euler.factor 2008-11-15 17:33:51 -05:00
Aaron Schaefer 3e00dc7f4e Solution to Project Euler problem 99 2008-11-15 17:26:00 -05:00
Aaron Schaefer 7898a9252d Cleanup PE solutions and formatting 2008-11-15 15:43:21 -05:00
Slava Pestov 66558ce584 Merge branch 'master' of git://projects.elasticdog.com/git/factor 2008-11-11 02:39:58 -06:00
Aaron Schaefer 8e155a8306 Cleanup formatting of Project Euler problem 215 2008-11-10 23:26:38 -05:00
Aaron Schaefer 05d991ab74 Merge branch 'master' of git://factorcode.org/git/factor 2008-11-10 22:57:14 -05:00
Aaron Schaefer 3b204ff971 Solution to Project Euler problem 73 2008-11-10 22:56:37 -05:00
Eric Mertens 8ace93a75f add project-euler.203 2008-11-10 19:34:36 -08:00
Aaron Schaefer db7cbed3a5 Move ratio mediant word to project-euler.common 2008-11-10 12:51:43 -05:00
Aaron Schaefer 9be9538230 Update Project Euler using line 2008-11-10 12:38:01 -05:00
Eric Mertens 57af68f7ed add project-euler.215 2008-11-09 22:20:12 -08:00
Aaron Schaefer b04bc4d866 Solution to Project Euler problem 71 2008-11-10 00:58:43 -05:00
Aaron Schaefer 61db7d846b Switch zero? to 0 = where appropriate in PE solutions 2008-11-09 22:10:42 -05:00
Aaron Schaefer 531a9e32da Merge branch 'master' of git://factorcode.org/git/factor 2008-11-09 18:01:11 -05:00
Aaron Schaefer 2bd1723cc1 Rerun ave-time of PE #43 after constant space change 2008-11-07 01:25:18 -05:00
Doug Coleman 73f6691f75 print out clickable pathnames in project euler 2008-11-06 15:48:08 -06:00
Slava Pestov 666100a07b Tweak euler043 to run in constant space, add new each-permutation and reduce-permutations combinators to math.combinatorics 2008-11-06 11:07:19 -06:00
Aaron Schaefer 4d1d9b2087 Fix short circuit usage in Project Euler solutions 2008-11-06 01:41:24 -05:00
Aaron Schaefer 373c05ee49 Forgot to inline collect-benchmarks word 2008-11-05 19:24:19 -05:00
Aaron Schaefer b5b207a484 Add test files for all Project Euler solutions 2008-11-05 01:11:15 -05:00
Aaron Schaefer e763b5a335 Add unit tests for Project Euler 2008-11-04 01:04:03 -05:00
Aaron Schaefer e923ec16d3 Rewrite of collect-benchmarks in ave-time vocab 2008-11-03 22:56:32 -05:00
Aaron Schaefer 9d06315809 Clean up of common Project Euler code 2008-11-03 20:14:37 -05:00
Aaron Schaefer 9be67e7df7 Add meta data to Project Euler problem 186 2008-11-03 19:02:57 -05:00
Aaron Schaefer 9152b6d5f0 Cleanup of Project Euler problem 92 2008-11-03 18:25:50 -05:00
Aaron Schaefer 92e2ee3509 Clean up Projece Euler solutions 2008-11-03 16:20:36 -05:00
Aaron Schaefer 852c16a79b Fix sorting string equality issue in Project Euler 2008-10-31 01:35:37 -04:00
Aaron Schaefer 3127cfdddc Use clump instead of collect-consecutive in PE 2008-10-30 23:34:32 -04:00
Aaron Schaefer f2538d0156 Clean up Project Euler solutions 2008-10-30 22:04:44 -04:00
Doug Coleman 86cdfa3a4c remove lib usage, fix compile errors 2008-10-02 17:49:04 -05:00
Doug Coleman 6e7aa21cb5 dont use lib 2008-10-02 17:40:49 -05:00
Slava Pestov 379566374c Fix usages of nths 2008-09-12 18:15:22 -05:00
Slava Pestov cf80dd122a Updating code for make and fry changes 2008-09-10 22:11:40 -05:00
Aaron Schaefer fe24f3e82a Merge git://projects.elasticdog.com/git/factor into public
* git://projects.elasticdog.com/git/factor:
  Add standard deviation to output of ave-time benchmarking word
  Minor updates to standardize new Project Euler solutions
  Alternative solution to Project Euler problem 1

Conflicts:
	extra/project-euler/ave-time/ave-time.factor
2008-09-08 02:20:42 -04:00
Doug Coleman ad890e8a31 if-empty changes 2008-09-06 17:15:25 -05:00
Doug Coleman 89386ae636 left-trim -> trim-left 2008-09-05 18:56:57 -05:00
Doug Coleman 51db0d7e7d fix accessors 2008-09-02 13:01:20 -05:00
Doug Coleman acc3badbe7 new accessors 2008-09-02 12:36:51 -05:00
Aaron Schaefer d986b30eb6 Add standard deviation to output of ave-time benchmarking word 2008-07-27 17:46:43 -04:00
Slava Pestov bba0ff79c5 Fix load error in project-euler 2008-07-24 02:32:40 -05:00
Aaron Schaefer c9a1c0a02f Merge branch 'master' of git://factorcode.org/git/factor 2008-07-20 21:55:09 -04:00
Aaron Schaefer a4efa8cb08 Minor updates to standardize new Project Euler solutions 2008-07-20 21:52:39 -04:00
Slava Pestov 71638e6340 Update project-euler.186 for disjoint-sets API change 2008-07-20 04:05:00 -05:00
Slava Pestov 96b5c674ab Use unzip 2008-07-20 01:13:46 -05:00
Slava Pestov 7577ffd5eb Rename disjoint-set vocab to disjoint-sets 2008-07-20 01:11:34 -05:00
Aaron Schaefer 94a1ef8356 Alternative solution to Project Euler problem 1 2008-07-15 22:40:33 -04:00
Slava Pestov 5d9c1ea0a0 Documentation updates, rename unfold to produce 2008-07-10 01:00:27 -05:00
Eduardo Cavazos a192c08793 project-euler: sigma and count moved into sequences 2008-07-03 15:34:58 -05:00
U-SLAVA-DFB8FF805\Slava 358c09d204 combinators.lib 3apply is kernel's tri@; remove and update usages 2008-06-27 02:17:19 -05:00
Eduardo Cavazos bf238283da Update code for combinators.short-circuit 2008-06-24 13:47:54 -05:00
Slava Pestov 045b657474 Move replicate into core; move selection sort into its own vocab; remove usages of and? and or? which are redundant now 2008-06-13 01:51:46 -05:00
Eduardo Cavazos bdd66927fc More short-circuit updates 2008-06-10 20:42:55 -05:00
Slava Pestov 29fa4a8a54 assoc-find is no longer generic 2008-06-09 05:22:21 -05:00
James Cash 0ca627051e Changing vocabs USING: to reflect which words are in lists and lists.lazy 2008-06-03 16:57:29 -04:00
James Cash 10e5c074d9 Fix for changed effect of uncons 2008-06-03 05:18:36 -04:00
James Cash 8d4de9d9ed Some files only need lists.lazy, not lists as well 2008-06-03 04:41:36 -04:00
James Cash 1818a743bd Updating libraries that uses lazy-lists to use lists/lazy 2008-06-03 04:27:25 -04:00
Doug Coleman f706b50ac7 remove dipd, it's 2dip 2008-05-23 22:48:58 -05:00
Slava Pestov 1d60d722fe Improve time word, faster card scan 2008-05-07 17:42:41 -05:00
Doug Coleman fd531c1a31 rename butlast to but-last 2008-05-07 01:38:34 -05:00
Doug Coleman 7c09936f30 use butlast, butlast-slice
"extra/foo" resource-path -> "resource:extra/foo"
2008-05-06 12:37:11 -05:00
Doug Coleman 439c138aa5 fix load errors 2008-04-26 11:03:41 -05:00
Doug Coleman 4d0ba8c3c1 reverse args for assoc-diff, diff
fix lots of usings
fix help lint
2008-04-26 02:01:43 -05:00
Doug Coleman b7c1f9dbe8 extra changes:
index* -> index-from
last-index* -> last-index-from
1 tail -> rest
1 tail-slice -> rest-slice
subset -> filter
prepose
find* -> find-from
find-last* -> find-last-from
before, after generic, < for integers
make between? work for timestamps
2008-04-25 23:17:08 -05:00
Eric Mertens 57a15fb363 Add project-euler.100 2008-04-24 09:50:33 -07:00
Eric Mertens 916ed96ffb Add project-euler.151 2008-04-24 09:50:33 -07:00
Eric Mertens 4fdfb97a4d Add project-euler.190 2008-04-21 23:40:35 -07:00
Eric Mertens fbe7fb58dd Add project-euler.148 2008-04-20 00:12:36 -07:00
Slava Pestov 7faa9a8312 Oops 2008-04-19 04:52:50 -05:00
Slava Pestov 625d4037fe Minor tweak to project-euler 2008-04-17 12:22:04 -05:00
Eric Mertens a25c7e1842 Improve project-euler.150 2008-04-16 10:30:03 -07:00
Eric Mertens 3483317cfb Add project-euler.150 2008-04-16 02:25:38 -07:00
Eric Mertens 303f9a3450 Add project-euler.116 2008-04-16 00:04:05 -07:00
Eric Mertens 2bdcba5731 Add solution for project-euler.117 2008-04-15 23:09:23 -07:00
Eric Mertens 8d0fdd3651 Add project-euler solution no. 76 2008-04-15 22:28:26 -07:00
Eric Mertens 9f46b534e9 export <blum-blum-shub> in random.blum-blum-shub 2008-04-15 22:28:20 -07:00
Eric Mertens 1ef0042f6a Add a solution to project-euler.164 2008-04-14 20:35:33 -07:00
Doug Coleman 7917da4279 fix compile error 2008-04-14 02:43:00 -05:00
Doug Coleman f64d511ca6 add usings 2008-04-14 02:40:32 -05:00
Doug Coleman f80085ff0a seq-diff -> diff
seq-intersect -> intersect
2008-04-13 23:09:42 -05:00
Eric Mertens f881ec0109 move unionfind to disjoint-set, clean-ups, add project-euler 186
problem 186 uses the disjoint-set algorithm
2008-04-13 03:33:49 -07:00
Doug Coleman 484f765566 case/cond 2008-04-11 12:57:43 -05:00
Samuel Tardieu dcc28cd0f8 Fix bug in project-euler.169 introduced by a former checkin 2008-04-04 12:48:36 +02:00
Samuel Tardieu fe8448b4e8 Use more combinators 2008-04-04 11:20:10 +02:00
Eduardo Cavazos aa40350aa7 replace add* and add with prefix and suffix 2008-03-31 18:18:05 -06:00
Slava Pestov c22af5c7a6 Rename 2apply to bi@ 2008-03-29 20:36:58 -05:00
Slava Pestov 1f3e6fd0b7 combinators.cleave is now core 2008-03-28 23:00:20 -05:00
erg 15c68a23f8 remove ?resource-path and resource-exists? 2008-03-26 23:47:51 -05:00
Doug Coleman 3e7940216e swap append to swap append
refactoring path+ to append-path
swap path+ to prepend-path
calendar gmt-offset to duration
2008-03-19 19:15:32 -05:00
Aaron Schaefer b204473c8f Solution to Project Euler problem 59 2008-03-07 21:38:16 -05:00
Aaron Schaefer 5aedba482e Fix encoding specification for Project Euler problem 22 2008-03-06 21:46:25 -05:00
Aaron Schaefer 82cb257118 Merge branch 'master' of git://factorcode.org/git/factor 2008-03-06 21:12:36 -05:00
Aaron Schaefer 5c62133688 Merge branch 'master' of git://factorcode.org/git/factor 2008-02-29 14:43:55 -05:00
Daniel Ehrenberg efb3367c45 Merge branch 'master' of git://factorcode.org/git/factor into unicode
Conflicts:

	core/io/files/files-docs.factor
	core/io/files/files-tests.factor
	core/io/files/files.factor
	core/listener/listener.factor
	extra/benchmark/sum-file/sum-file.factor
	extra/bootstrap/image/upload/upload.factor
	extra/http/server/templating/templating.factor
	extra/logging/server/server.factor
	extra/smtp/smtp.factor
	extra/tools/deploy/macosx/macosx.factor
	extra/tools/disassembler/disassembler.factor
	extra/webapps/file/file.factor
2008-02-29 01:20:44 -06:00
Slava Pestov 00ae763351 Final calendar cleanup 2008-02-26 20:03:35 -06:00
Slava Pestov ef53dbd1b9 Fix load-everything 2008-02-26 19:18:21 -06:00
Daniel Ehrenberg 62f9ed5dbd putting encodings on all file readers/writers 2008-02-16 22:17:41 -06:00
Aaron Schaefer 24f5c9e40d Tweak Project Euler solutions to use existing words 2008-02-12 23:31:10 -05:00
Aaron Schaefer 84901e6dbc Solution to Project Euler problem 47 2008-02-12 23:02:33 -05:00
Aaron Schaefer 7361ee58a8 Fix Project Euler solutions using combinators.lib stuff that moved 2008-02-11 15:14:56 -05:00
Aaron Schaefer 67607467b5 Solution to Project Euler problem 46 2008-02-10 22:11:31 -05:00
Aaron Schaefer 9c2218a1c4 Update solution to Project Euler problem 92 2008-02-09 22:40:18 -05:00
Aaron Schaefer a34c5aabed Slow solution to Project Euler problem 92 2008-02-09 22:13:01 -05:00
Aaron Schaefer 96853249a4 Use tri instead of repeated keeps for PE solutions 2008-02-09 19:54:31 -05:00