Commit Graph

333 Commits (f12633e73b8b51a6c46ddeaf6268525a92ba09f7)

Author SHA1 Message Date
Guillaume Nargeot f97ede3d91 merge project-euler.factor 2009-10-12 17:08:50 +09:00
Jon Harper 62ba9bc7de Euler 051 : added unit test, integration, author 2009-10-07 21:28:36 +09:00
Jon Harper a6a5245edb more library usage and readability improvements 2009-10-04 03:18:04 +09:00
Jon Harper 2dafa24383 Merge branch 'master' of git://factorcode.org/git/factor into bleeding_edge 2009-10-04 03:17:35 +09:00
Jon Harper bf054fe2b5 Solution to euler255 (slow and not so pretty) 2009-10-01 00:05:47 +09:00
Jon Harper f65ffc6640 faster implementation of euler023 using a hashtable 2009-09-30 23:08:45 +09:00
Slava Pestov 3e27d06914 layouts: most-positive/negative-fixnum return fixnums now 2009-09-29 22:27:54 -05:00
Guillaume Nargeot 6f87a9c4e4 Solution to Project Euler problem 65 2009-09-26 19:09:42 +09:00
Guillaume Nargeot fe2125399c Slightly modified project euler 72, and added some comments 2009-09-26 19:07:31 +09:00
Slava Pestov 81462d1479 project-euler.074: cleanup 2009-09-22 05:19:26 -05:00
Guillaume Nargeot f6e2e76860 Solution to Project Euler problem 74 2009-09-22 17:02:22 +09:00
Guillaume Nargeot 941fc66a43 Solution to Project Euler problem 72 2009-09-22 11:16:04 +09:00
Guillaume Nargeot 0081d316a9 Fixed comments of project-euler.085 2009-09-15 21:01:25 +09:00
Guillaume Nargeot 6056a3301f Merge branch 'master' of git://factorcode.org/git/factor 2009-09-15 20:33:02 +09:00
Guillaume Nargeot 1df869af6a Solution to Project Euler problem 124 2009-09-15 19:33:56 +09:00
Doug Coleman 79505168cf faster number-length and some unit tests 2009-09-14 13:48:06 -05:00
Slava Pestov 37166ed8f7 project-euler.186: disable test for now since it uses too much memory on build machines 2009-09-12 12:38:25 -05:00
Slava Pestov 287c1a3cf0 Merge branch 'master' of git://github.com/killy971/factor 2009-09-12 01:32:09 -05:00
Slava Pestov 29a73c901d project-euler.{073,085}: speed up and reduce memory consumption 2009-09-12 01:30:46 -05:00
Guillaume Nargeot 0d4f827745 Solution to Project Euler problem 102 2009-09-12 14:13:42 +09:00
Slava Pestov 1fd6ae1776 project-euler.044: update average time in comment 2009-09-11 21:15:48 -05:00
Slava Pestov 7145016142 project-euler.044: even faster algorithm 2009-09-11 21:14:43 -05:00
Slava Pestov 96ca914972 project-euler.044: more efficient algorithm 2009-09-11 20:59:54 -05:00
Guillaume Nargeot a0b6d4f381 Solution to Project Euler problem 112 2009-09-07 06:28:44 +09:00
Guillaume Nargeot ffed0d7eba Solution to Project Euler problem 85 2009-09-05 10:59:04 +09:00
Doug Coleman 7c92ab1ea5 move if-zero etc to math, remove 1-/1+ from math 2009-08-14 14:27:23 -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
Doug Coleman 02becc26fc add docs for if-zero etc, add docs for 10^ 2009-08-11 18:45:01 -05:00
Doug Coleman eccc919c18 fix project euler 151 and add a unit test 2009-08-11 18:22:44 -05:00
Doug Coleman 4fef246ca4 add 10^ to math.functions and update usages 2009-08-11 18:00:24 -05:00
Doug Coleman 407377fc98 rename peek -> last and update all usages 2009-05-25 16:38:33 -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 4b7e1eef11 update using 2009-05-10 13:48:09 -05:00
Doug Coleman 79265b50d9 update usages of miller-rabin 2009-05-10 12:24:43 -05:00
Aaron Schaefer 5e82d794df Eliminate stack shuffling by using bi in PE #25 2009-05-07 10:56:33 -04:00
Aaron Schaefer e59e051c74 Use [0,b) and iota where appropriate 2009-05-01 22:26:49 -04:00
Aaron Schaefer 9981f6534f Use iota in Project Euler solutions 2009-05-01 20:46:25 -04:00
Aaron Schaefer 5006f11342 Merge branch 'master' of git://factorcode.org/git/factor 2009-04-19 13:01:40 -04:00
Aaron Schaefer e4ce05f73b Additional solution to PE problem 1 from IRC 2009-04-19 13:01:02 -04:00
Doug Coleman 332bde4173 use iota in a few places 2009-04-17 16:17:11 -05:00
Aaron Schaefer 4e4e9cb579 Merge branch 'master' of git://factorcode.org/git/factor 2009-04-17 15:56:14 -04:00
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