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
Slava Pestov
3fd5d8c40e
Fixing unit tests
2008-01-02 23:07:59 -04:00
Slava Pestov
b7327b6228
Redo the profiler
2008-01-02 20:36:36 -04: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
Doug Coleman
7c77535824
Merge http://littledan.onigirihouse.com/factor
2008-01-02 01:49:10 -06:00
Daniel Ehrenberg
81026a92bf
Reverting RSS changes; fixing unit tests
2008-01-01 22:30:22 -05:00
Slava Pestov
e3af94cfbd
Remove redundant tools.walker vocab
2007-12-31 23:16:21 -04:00
Daniel Ehrenberg
d0046482cc
Merge commit 'elasticdog/master'
2007-12-31 15:17:34 -05:00
Aaron Schaefer
897a8ed8aa
Replace '<file-reader> contents' with 'file-contents' in all vocabs
2007-12-31 14:47:24 -05:00
Doug Coleman
aec422a744
Merge http://littledan.onigirihouse.com/factor
2007-12-31 11:51:58 -06:00
Daniel Ehrenberg
5a347d513c
Macros now memoize when not used as compiler transform
2007-12-31 00:44:40 -05:00
Daniel Ehrenberg
df5fa5f239
combinators.lib:construct-slots
2007-12-30 23:59:56 -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
Aaron Schaefer
41fa14010d
Move file-contents word to core/io/io.factor
2007-12-30 21:29:27 -05:00
Slava Pestov
18eb8e2bd3
Clean up interactor gadget
2007-12-30 21:15:59 -05:00
Samuel Tardieu
cf19d8a37c
Factor solution to project Euler problem 173
2007-12-31 03:01:15 +01:00
Doug Coleman
95272f8a51
Merge http://littledan.onigirihouse.com/factor
2007-12-30 18:09:47 -06: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
Slava Pestov
64b06f059a
Unit test fixes
2007-12-30 17:14:15 -05:00
Slava Pestov
13c058870e
Fix bootstrap.help
2007-12-30 15:40:57 -05:00
Slava Pestov
e1be77ee6f
Documentation updates
2007-12-30 15:08:48 -05:00
Slava Pestov
fbf992b414
Call init-io in bootstrap.io
2007-12-30 15:07:22 -05:00
Slava Pestov
8189e33b2b
Remove compiler-hook which was just a workaround for the old batch compilation model
2007-12-30 15:05:33 -05: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
Daniel Ehrenberg
bea0eb759a
XML docs update
2007-12-30 04:24:05 -05:00
Daniel Ehrenberg
fe2ef1e418
Shufflers tests fix
2007-12-30 04:21:03 -05:00
Daniel Ehrenberg
706d538db1
Merge branch 'for-slava' of git://www.rfc1149.net/factor
2007-12-30 03:39:34 -05:00
Slava Pestov
529133559f
Rename require-each to require-all
2007-12-29 22:30:17 -05:00
Slava Pestov
75695563ca
Fixing interactor (temporarily)
2007-12-29 22:29:59 -05:00
Aaron Schaefer
8eff6af322
Fix edge-case and perfect square errors with sum-proper-divisors
2007-12-29 14:09:50 -05:00
Slava Pestov
2b37b76d65
Working on profiler
2007-12-29 12:44:01 -05:00
Slava Pestov
e58cbb2cda
: spin swap rot ;
2007-12-29 11:36:20 -05:00
Daniel Ehrenberg
4a28fe910d
XML prettyprinter
2007-12-29 01:33:21 -05:00
Slava Pestov
78029f5464
windows.messages staging violation load fix
2007-12-28 22:52:24 -05:00
Slava Pestov
f319b45de9
Freetype staging violation fix
2007-12-28 22:52:00 -05:00
Slava Pestov
58da31c071
New implementation of compiler error reporting
2007-12-28 22:51:36 -05:00
Slava Pestov
ced9893a4e
Get bootstrap.tools to load, update extra/ for USE-IF: removal
2007-12-28 21:46:06 -05:00
Doug Coleman
67fe34ba88
Merge http://littledan.onigirihouse.com/factor
2007-12-28 11:04:44 -06: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
a9903e1bdc
Remove some words in math.algebra and change implementation
2007-12-28 14:19:40 +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
Daniel Ehrenberg
c936895160
sequences.deep bug fix
2007-12-27 21:03:12 -05:00
Daniel Ehrenberg
f536b4c057
Merge branch 'trees'
2007-12-27 20:17:08 -05:00
Daniel Ehrenberg
8a562bc81f
Trees on the assoc protocol
2007-12-27 20:16:55 -05:00
Doug Coleman
c1c9f5eddd
Merge git://spitspat.com/git/factor
2007-12-27 16:39:33 -06:00
Doug Coleman
c6ce216e03
Add ?first .. ?fourth to sequences.lib
2007-12-27 16:38:54 -06:00
Slava Pestov
9c1454ef68
Rename real/imaginary slots of complex to real-part/imaginary-part to avoid clashing with the real class word; fix bug where redefining a generic as a class leaves the word in a weird state
2007-12-27 17:26:39 -05:00
Daniel Ehrenberg
05b76f181f
Extra/trees changes
2007-12-27 13:56:03 -05:00
Samuel Tardieu
caa2a606c2
Use math.primes in project Euler problems
2007-12-27 16:52:19 +01:00
Samuel Tardieu
e17a77f5cd
New module math.primes.factors
2007-12-27 16:52:18 +01:00
Samuel Tardieu
694dd297ad
New module math.primes
2007-12-27 16:52:16 +01:00
Samuel Tardieu
db6dbc5f16
Implement lreduce in lazy-lists
2007-12-27 16:01:28 +01:00
Samuel Tardieu
779f1ba01d
Use related-words in lazy-lists documentation
2007-12-27 16:01:27 +01:00
Samuel Tardieu
3662ed8f0b
Use s> and >s instead of r> and >r to avoid confusion
2007-12-27 15:17:34 +01:00
Slava Pestov
318b5f40c8
Update unit tests to use must-infer
2007-12-26 22:16:14 -05:00
Samuel Tardieu
76c76b81ed
Simplify lazy-append nil? word
...
lazy-append tuples are always built using lappend. If list1 is nil, then
list2 is returned, hence nil? on a lazy-append object is always false.
2007-12-27 03:42:19 +01:00
Samuel Tardieu
0bf5c6bf0f
Simplify lazy-while and lazy-until constructs
2007-12-27 03:36:38 +01:00
Slava Pestov
b810e92456
Move optimizer to extra/
2007-12-26 21:21:12 -05:00
Slava Pestov
f53fa196ac
New must-infer word; \ foo must-infer asserts that foo's declared effect matches its inferred effect, put this in your unit tests
2007-12-26 20:54:38 -05:00
Slava Pestov
612b2bf78c
Removed <uninterned>
2007-12-26 20:41:02 -05:00
Slava Pestov
93e1bdfcd7
Simplify JIT, fix tuples unit tests
2007-12-26 20:02:41 -05:00
Slava Pestov
1b9e04fdc5
Deferred words are now compound words
2007-12-26 17:28:34 -05:00
Samuel Tardieu
4eb7aad50b
Use math.algebra to solve project Euler problem 134
2007-12-26 23:08:43 +01:00
Samuel Tardieu
c4529fb557
Add math.algebra module with some useful words.
...
- ext-euclidian implements the extended Euclidian algorithm
- ring-inverse computes an inverse in a Z/nZ ring
- chinese-remainder solves a multi-constraints modular equation
2007-12-26 23:08:15 +01:00
Samuel Tardieu
9f0fb715ab
Factor solution to project Euler problem 134
2007-12-26 21:44:22 +01:00
Samuel Tardieu
aaa4b2a62f
Do not use Eratosthene sieve if n < 1e6 since we have a static primes list
2007-12-26 20:35:35 +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
Daniel Ehrenberg
d5baea215d
Splay tree fixes
2007-12-25 02:28:55 -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
Daniel Ehrenberg
2bbf9f3297
Merge branch 'for-slava' of git://www.rfc1149.net/factor
2007-12-24 21:07:50 -05:00
Daniel Ehrenberg
18f85fbaf3
Merge branch 'master' into trees
2007-12-24 21:04:59 -05:00
Daniel Ehrenberg
5917e58c86
Fixed XML bug which made everything stop compiling
2007-12-24 20:48:29 -05:00
Slava Pestov
6814e07f49
Unit test fixes
2007-12-24 19:40:09 -05:00
Slava Pestov
41fc4ea84e
forget-vocab and forget-source now call with-compilation-unit
2007-12-24 17:32:41 -05:00
Slava Pestov
0052e129fd
Clean up class definition recording
2007-12-24 17:18:26 -05:00
Aaron Schaefer
319d96384e
Solution to Project Euler problem 19
2007-12-24 16:29:04 -05:00
Daniel Ehrenberg
85a5beed74
Adding sequences.deep
2007-12-24 13:20:52 -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
026a646b78
Merge /Applications/factor
2007-12-24 12:48:05 -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
Daniel Ehrenberg
d830ed9314
extra/tuple-syntax--named tuple slot literals
2007-12-24 01:58:13 -05:00
Daniel Ehrenberg
ee8932b888
Merge git://projects.elasticdog.com/git/factor
2007-12-24 00:37:43 -05:00
Aaron Schaefer
5fd3d34302
New math.text vocab converts numbers to English
2007-12-24 00:06:53 -05:00
Daniel Ehrenberg
0e13e2e92c
Fixing XML bug
2007-12-23 23:21:44 -05:00
Aaron Schaefer
fc403b373b
Declared sigma and count to be inline
2007-12-23 22:20:57 -05:00
Daniel Ehrenberg
0de2e117f5
Merge commit 'slava/master'
2007-12-23 16:09:21 -05:00
Daniel Ehrenberg
998213bb4b
Removed extra/xml/literal, which was added by accident
2007-12-23 14:58:56 -05:00
Daniel Ehrenberg
beaa4601ed
XML combinator refactoring
2007-12-23 14:57:39 -05:00
Samuel Tardieu
13d5ce70b0
Factor solution to project Euler problem 19
2007-12-23 13:45:46 +01:00
Slava Pestov
07a4022d62
Parser, definitions, source-files refactoring work in progress
2007-12-21 21:18:24 -05: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
fd8253c262
Sieve of eratosthene optimizations
2007-12-22 00:28:46 +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
Samuel Tardieu
074ef1e107
New math.erato library: sieve of Eratosthene
2007-12-21 13:53:00 +01:00
Samuel Tardieu
d5cd2fd66b
Add lazy-while and lazy-until to lazy-lists
2007-12-21 13:33:57 +01:00
Samuel Tardieu
858237c0f8
Reimplement leach so that stack is clean when executing the quotation
...
The previous implementation let garbage on the stack (such as the lazy list
cdr) before executing the quotation. This prevents easy implementation of
reduce-like words using leach.
2007-12-21 13:33:56 +01:00
Doug Coleman
ded88583ef
fixed heap-push-all
2007-12-20 00:06:36 -06:00
Slava Pestov
f2b4a04a44
Merge commit 'doublec/master'
2007-12-20 00:43:16 -05:00
Doug Coleman
ec89ee67c6
Merge git://spitspat.com/git/factor
2007-12-19 23:35:49 -06:00
Doug Coleman
b4575a9bff
Templating now runs in quiet mode
...
session ids are now 4 bignum number>string string>sha-256-string
add assoc-heaps
sessions are stored in an assoc-heap
2007-12-19 23:34:30 -06:00
Chris Double
0bf1355657
Remove parser-combinators.replace
2007-12-20 17:12:48 +13:00
Chris Double
b655d4c759
Add tags to peg, peg.ebnf and peg.pl0
2007-12-20 17:11:37 +13:00
Chris Double
a376cb6cc3
Add summary, author and tags to peg.search
2007-12-20 17:10:45 +13:00
Chris Double
6a8bfad475
Rename peg.replace to peg.search
2007-12-20 17:09:12 +13:00
Chris Double
6bd283ffa3
Convert parser-combinators.replace to pegs
2007-12-20 17:06:21 +13:00
Chris Double
42e20874fe
Fix USING: in parser-combinators.replace
2007-12-20 16:50:08 +13:00
Chris Double
7817af0104
Fix IN: in parser-combinators.simple
2007-12-20 16:48:58 +13:00
Chris Double
9a5335e718
Fix IN: in parser-combinators.replace
2007-12-20 16:46:25 +13:00
Chris Double
b5186937a4
Port fjsc to use pegs instead of parser combinators
2007-12-20 12:48:45 +13:00
Chris Double
d45ed669f8
Add digit, number and string parser to peg
2007-12-20 11:54:17 +13:00
Doug Coleman
afc6100c54
add IN: temporary to tests file
2007-12-19 16:21:05 -06:00
Daniel Ehrenberg
b8f210a3be
Merge branch 'master' into xml
...
Conflicts:
extra/rss/rss.factor
extra/sequences/lib/lib.factor
extra/xml/data/data.factor
2007-12-19 12:40:55 -05:00
Daniel Ehrenberg
58a0dff77c
XML fixes
2007-12-19 12:33:34 -05:00
Aaron Schaefer
fcfb8fbedf
add initial project-euler solutions and support vocabs
2007-12-18 20:57:16 -05:00
Doug Coleman
8aed4d6b26
fix bootstrap (tag-matches? -> tag-named?)
2007-12-18 16:14:47 -06:00
Doug Coleman
8899f07721
Merge http://littledan.onigirihouse.com/factor
2007-12-18 16:04:57 -06:00
Doug Coleman
d2163097f0
Add cut-all, human-sort to sequences.lib
2007-12-18 02:37:06 -06:00
Doug Coleman
2447a20ad5
Update help webapp to work with the overhauled furnace
2007-12-18 02:24:41 -06:00
Doug Coleman
1c3c7db0bc
Overhaul furnace
...
- validators work!
- added sessions
- add error checking to pastebin
- add define-form, defalut-values
2007-12-18 02:24:05 -06:00
Daniel Ehrenberg
315f7319fb
FAQ fix
2007-12-18 00:43:13 -05:00
Daniel Ehrenberg
8aa6fe29a0
Merge branch 'master' into trees
2007-12-17 18:37:05 -05:00
Daniel Ehrenberg
72a164e418
XML utilities
2007-12-17 18:26:10 -05:00
Slava Pestov
51992905b2
Inference tests tweak
2007-12-17 16:29:26 -05:00
Daniel Ehrenberg
5fb4d9cbb9
XML utilities
2007-12-17 15:31:10 -05:00
Daniel Ehrenberg
d6e445df1f
XML attrs
2007-12-17 15:29:21 -05:00
Slava Pestov
9ef535bc77
Add greendale's partition combinator to sequences.lib
2007-12-16 20:34:44 -05:00
Slava Pestov
52bb787631
Fix Enter key in deploy tool
2007-12-14 01:16:47 -05:00
Slava Pestov
114ee74041
Fix one-word-elt
2007-12-13 16:34:36 -05:00
Slava Pestov
68268bff0e
Windows deploy fix
2007-12-12 02:34:14 -05:00
Slava Pestov
37227b8e68
Merge commit 'littledan/master'
2007-12-12 00:36:59 -05:00
Daniel Ehrenberg
34e29cd690
Multiline string literal naming
2007-12-12 00:33:36 -05:00
Slava Pestov
0670633393
Bootstrap fix
2007-12-12 00:32:35 -05:00
Slava Pestov
9ec1911625
Remove debug message
2007-12-11 22:37:31 -05:00
Slava Pestov
d7217801c3
Documentation fixes
2007-12-11 22:36:40 -05:00
Slava Pestov
5c628517d1
Source responder fixes
2007-12-11 18:44:26 -05:00