Commit Graph

342 Commits (db42e128538f32bb3399f5469866d1b3553ecea3)

Author SHA1 Message Date
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
Aaron Schaefer 5aca313896 Solution to Project Euler problem 55 2008-02-08 22:29:12 -05:00
Aaron Schaefer 3ccc624dd4 Solution to Project Euler problem 56 2008-02-08 21:17:45 -05:00
Aaron Schaefer 751b013e2b Project Euler solution simplification 2008-02-08 20:43:44 -05:00
Aaron Schaefer d206ff9067 Solution to Project Euler problem 45 2008-02-08 19:28:30 -05:00
Aaron Schaefer b8dfb89771 Solution to Project Euler problem 53 2008-02-08 17:27:42 -05:00
Aaron Schaefer 741d3df68a Fix PE solutions using old math.parser 2008-02-07 20:25:03 -05:00
Slava Pestov ba467a39c4 Fix conflict 2008-02-07 18:57:23 -06:00
Aaron Schaefer 4dfc151c89 Solution to Project Euler problem 79 2008-02-07 19:48:00 -05:00
Slava Pestov 2541c62e29 Fix code for math.parser changes 2008-02-06 21:15:47 -06:00
Aaron Schaefer d27ae06708 Solution to Project Euler problem 44 2008-02-06 00:53:18 -05:00
Aaron Schaefer c68e70877d Solution to Project Euler problem 43 2008-02-05 16:42:50 -05:00
Aaron Schaefer 09f40aa17e Add missing dependency for Project Euler 42 2008-02-04 01:49:31 -05:00
Aaron Schaefer 84ee9b159a Solution to Project Euler problem 97 2008-02-04 01:40:47 -05:00
Aaron Schaefer e36bddd91c Solution to Project Euler problem 52 2008-02-03 22:11:31 -05:00
Aaron Schaefer c64fe3d07b Solution to Project Euler problem 42 2008-02-03 18:42:45 -05:00
Aaron Schaefer 170d8d8c51 Fix common Project Euler word alpha-num 2008-02-03 17:18:10 -05:00
Aaron Schaefer 4a0bb3b032 Solution to Project Euler problem 41 2008-02-03 16:15:03 -05:00
Aaron Schaefer 1954114d85 Solution to Project Euler problem 48 2008-02-02 19:42:47 -05:00
Aaron Schaefer ac10c4067a Better method for getting last digits of an integer 2008-02-02 19:31:55 -05:00
Aaron Schaefer 557bde6206 Solution to Project Euler problem 40 2008-02-02 18:53:32 -05:00
Aaron Schaefer 8b207d1f48 Solution to Project Euler problem 75 2008-02-02 17:22:20 -05:00
Aaron Schaefer a0dad18f4f Solution to Project Euler problem 39 2008-02-02 13:37:53 -05:00
Aaron Schaefer d23753786e Merge git://factorcode.org/git/factor 2008-02-01 21:40:42 -05:00
Eduardo Cavazos bff385269c Lot's of USING: fixes for ascii or unicode 2008-02-01 18:26:32 -06:00
Aaron Schaefer e37f2101c6 Solution to Project Euler problem 38 2008-02-01 14:45:29 -05:00
Aaron Schaefer 6394eb70bf Solution to Project Euler problem 37 2008-01-30 00:50:18 -05:00
Aaron Schaefer f86f36794f Solution to Project Euler problem 36 2008-01-29 13:31:06 -05:00
Aaron Schaefer 7b74afd043 Solution to Project Euler problem 35 2008-01-29 12:39:25 -05:00
Aaron Schaefer 38bc7d7f75 Solution to Project Euler problem 34 2008-01-28 03:37:14 -05:00
Aaron Schaefer 840c401cb5 Solution to Project Euler problem 33 2008-01-28 02:19:04 -05:00
Aaron Schaefer 5da9faa71c Update math.combinatorics dependencies in PE solutions 2008-01-27 20:09:31 -05:00
Aaron Schaefer 6df78419b9 Fix uses of new math constants 2008-01-24 18:18:12 -05:00
Aaron Schaefer cd92504288 Fix copyright date on PE solutions after the new year 2008-01-22 17:02:02 -05:00
Aaron Schaefer 7fbee3e810 Solutions to Project Euler problem 32 2008-01-22 00:08:27 -05:00
Aaron Schaefer a06b67baa7 Solution to Project Euler problem 31 2008-01-20 22:30:58 -05:00
Aaron Schaefer 6812eac271 Solution to Project Euler problem 30 2008-01-20 19:20:28 -05:00
Aaron Schaefer 3355b075bb Add attribution for alternate solution on PE problem 2 2008-01-19 15:19:21 -05:00
Aaron Schaefer 827faa205c Alternate solution to Project Euler problem 2 2008-01-18 22:56:16 -05:00
Aaron Schaefer ab7849f711 Use vectors instead of arrays in solution to Project Euler problem 2 2008-01-18 17:11:06 -05:00
Aaron Schaefer a3dd5cb1e6 Solution to Project Euler problem 29 2008-01-18 01:24:55 -05:00
Aaron Schaefer ccb8ad98ec Optimize solution to Project Euler problem 28 2008-01-18 00:43:15 -05:00
Aaron Schaefer 4cba26462d Solution to Project Euler problem 28 2008-01-17 23:37:10 -05:00
Aaron Schaefer a02ee715c1 Optimize solution to Project Euler problem 27 2008-01-17 12:55:02 -05:00
Aaron Schaefer 9c78c7c05f Solution to Project Euler problem 27 2008-01-17 12:25:43 -05:00
Aaron Schaefer 76558babf4 Generalize factor-2s to eliminate special case exception 2008-01-14 15:04:21 -05:00
Aaron Schaefer 8bc631f5ed Rename count-factors to group-factors and update docs 2008-01-14 11:33:08 -05:00
Aaron Schaefer 75774188ea Solution to Project Euler problem 26 2008-01-14 02:43:31 -05:00
Aaron Schaefer 0d166264c8 lint on Project Euler solutions 2008-01-13 17:28:54 -05:00
Aaron Schaefer 947e64c630 Move math.text to math.text.english for localization 2008-01-06 22:21:58 -05:00
Aaron Schaefer 50a3ad54da Cleanup of all Project Euler solutions thus far 2008-01-06 21:18:59 -05:00
Aaron Schaefer 7636671b8c Merge git://www.rfc1149.net/factor
Conflicts:

	extra/project-euler/project-euler.factor
2008-01-06 10:55:46 -05:00
Samuel Tardieu 4fa639a50b Add missing project Euler solutions to the list 2008-01-05 10:43:18 +01:00
Daniel Ehrenberg f66e1b1f66 Merge branch 'for-slava' of git://www.rfc1149.net/factor
Conflicts:

	extra/project-euler/018/018.factor
	extra/project-euler/project-euler.factor
2008-01-04 18:51:42 -06:00
Aaron Schaefer 03fa8a4887 Alternate solution to Project Euler problem 25 2008-01-04 01:40:01 -05:00
Aaron Schaefer 8748979546 Solution to Project Euler problem 25 2008-01-03 12:21:45 -05:00
Samuel Tardieu 598c53d6eb Use cut-slice instead of cut in a loop 2008-01-03 11:52:56 +01:00
Aaron Schaefer 0a6975c423 Solution to Project Euler problem 24 2008-01-03 01:49:46 -05:00
Aaron Schaefer 75c126fef0 Fix path generation for Project Euler problem files 2008-01-02 19:11:08 -05:00
Aaron Schaefer a2bcdaf696 Solution to Project Euler problem 23 2008-01-02 18:57:57 -05:00
Aaron Schaefer 897a8ed8aa Replace '<file-reader> contents' with 'file-contents' in all vocabs 2007-12-31 14:47:24 -05:00
Aaron Schaefer 2f04bfadbe Merge http://littledan.onigirihouse.com/factor.git
Conflicts:

	extra/project-euler/010/010.factor
	extra/project-euler/018/018.factor
	extra/project-euler/019/019.factor
	extra/project-euler/067/067.factor
	extra/project-euler/project-euler.factor
2007-12-30 22:41:04 -05:00
Samuel Tardieu cf19d8a37c Factor solution to project Euler problem 173 2007-12-31 03:01:15 +01:00
Samuel Tardieu 724eff0089 Use group to do the grouping to be closer to the original problem 2007-12-31 00:28:49 +01:00
Samuel Tardieu b55f6d9114 Use constant stack effect to prevent compilation errors 2007-12-31 00:28:45 +01:00
Samuel Tardieu c06d328ea3 Factor solution to project Euler problem 169 2007-12-30 13:30:42 +01:00
Samuel Tardieu 392da8029f Factor solution to project Euler problem 175 2007-12-30 13:10:59 +01:00
Samuel Tardieu dc18466c27 Project Euler solutions are not always numbers 2007-12-30 13:10:50 +01:00
Aaron Schaefer 8eff6af322 Fix edge-case and perfect square errors with sum-proper-divisors 2007-12-29 14:09:50 -05:00
Samuel Tardieu 483028cc51 Update problems list and simplify code 2007-12-28 14:53:26 +01:00
Samuel Tardieu a680c3abc5 Fix bug in project Euler 134 and update timings wrt math.algebra code changes 2007-12-28 14:19:47 +01:00
Samuel Tardieu 9760eb4fb1 Update collect-benchmarks so that it does not rely onto computed stack effect 2007-12-28 14:19:19 +01:00
Samuel Tardieu caa2a606c2 Use math.primes in project Euler problems 2007-12-27 16:52:19 +01:00
Samuel Tardieu 4eb7aad50b Use math.algebra to solve project Euler problem 134 2007-12-26 23:08:43 +01:00
Samuel Tardieu 9f0fb715ab Factor solution to project Euler problem 134 2007-12-26 21:44:22 +01:00
Aaron Schaefer 0dfddab0f6 Remove unnecessarily complicated PE022 solution 2007-12-26 09:06:52 -05:00
Aaron Schaefer 994fe7c142 Solution to Project Euler problem 22 2007-12-26 02:25:10 -05:00
Aaron Schaefer 2ab01a8f25 Fix amicable-pair? false positives 2007-12-25 15:08:37 -05:00
Aaron Schaefer f2cf2bc158 Solution to Project Euler problem 21 2007-12-25 00:13:01 -05:00
Aaron Schaefer 5b87577f91 Solution for Project Euler problem 20 2007-12-24 21:54:39 -05:00
Aaron Schaefer 319d96384e Solution to Project Euler problem 19 2007-12-24 16:29:04 -05:00
Aaron Schaefer 2aa9dc9dde Use Letter? instead of alpha? on euler017a 2007-12-24 13:07:46 -05:00
Aaron Schaefer 207e752464 Typo on Project Euler USING math.ranges 2007-12-24 13:01:11 -05:00
Aaron Schaefer 37f42bb2fc Alternate solution for Project Euler problem 17
Used the new vocab math.text and a string buffer.
2007-12-24 04:36:40 -05:00
Aaron Schaefer 50c3b5de14 Solutions to Project Euler problems 18 and 67
Added appropriate words to common.factor and got rid of number>digits for the time being.
2007-12-24 04:32:19 -05:00
Samuel Tardieu 13d5ce70b0 Factor solution to project Euler problem 19 2007-12-23 13:45:46 +01:00
Samuel Tardieu 8d268ba858 Factor solution to project Euler problem 67 2007-12-22 01:45:51 +01:00
Samuel Tardieu 621790aa7f Factor solution to project Euler problem 18 2007-12-22 01:45:50 +01:00
Samuel Tardieu f0903db414 Remove obsolete performance comment on project Euler problem 10 2007-12-22 01:45:46 +01:00
Samuel Tardieu a66f7672dc Update project-euler.010 timings 2007-12-22 00:29:12 +01:00
Samuel Tardieu 8e87d56e24 Factor solution to project Euler problem 17 2007-12-21 17:43:26 +01:00
Samuel Tardieu 9809e573a9 Much faster solution to projet-euler.010 by using lazy lists 2007-12-21 13:53:00 +01:00
Aaron Schaefer fcfb8fbedf add initial project-euler solutions and support vocabs 2007-12-18 20:57:16 -05:00