]> gitweb.factorcode.org Git - factor.git/log
factor.git
12 years agosequences: adding find-index-from.
John Benediktsson [Fri, 27 Apr 2012 20:41:47 +0000 (13:41 -0700)]
sequences: adding find-index-from.

12 years agotools.deploy: fix location of port-number file.
John Benediktsson [Fri, 27 Apr 2012 20:17:03 +0000 (13:17 -0700)]
tools.deploy: fix location of port-number file.

12 years agoctags.etags: remove unnecessary test.
John Benediktsson [Fri, 27 Apr 2012 19:05:51 +0000 (12:05 -0700)]
ctags.etags: remove unnecessary test.

12 years agoassocs.extras: adding assoc-harvest and assoc-sift.
John Benediktsson [Fri, 27 Apr 2012 18:39:20 +0000 (11:39 -0700)]
assocs.extras: adding assoc-harvest and assoc-sift.

12 years agosplitting: fixing split1-last.
John Benediktsson [Fri, 27 Apr 2012 15:48:57 +0000 (08:48 -0700)]
splitting: fixing split1-last.

12 years agomath.statistics: adding entropy function.
John Benediktsson [Fri, 27 Apr 2012 01:40:59 +0000 (18:40 -0700)]
math.statistics: adding entropy function.

12 years agoproject-euler: fix shadowing of permutations?.
John Benediktsson [Thu, 26 Apr 2012 23:58:09 +0000 (16:58 -0700)]
project-euler: fix shadowing of permutations?.

12 years agosequences.extras: fixing map-concat to return type of first mapped value.
John Benediktsson [Thu, 26 Apr 2012 22:07:39 +0000 (15:07 -0700)]
sequences.extras: fixing map-concat to return type of first mapped value.

12 years agousing reverse! when possible.
John Benediktsson [Thu, 26 Apr 2012 03:09:36 +0000 (20:09 -0700)]
using reverse! when possible.

12 years agoassocs: 50% faster zip.
John Benediktsson [Thu, 26 Apr 2012 03:09:21 +0000 (20:09 -0700)]
assocs: 50% faster zip.

12 years agosequences.extras: faster longest-subseq, cleanup other words.
John Benediktsson [Wed, 25 Apr 2012 23:30:08 +0000 (16:30 -0700)]
sequences.extras: faster longest-subseq, cleanup other words.

12 years agosequences.extras: adding map-sift and map-harvest.
John Benediktsson [Wed, 25 Apr 2012 22:58:18 +0000 (15:58 -0700)]
sequences.extras: adding map-sift and map-harvest.

12 years agosequences.extras: adding map-filter.
John Benediktsson [Wed, 25 Apr 2012 22:50:35 +0000 (15:50 -0700)]
sequences.extras: adding map-filter.

12 years agosequences.extras: adding map-concat.
John Benediktsson [Wed, 25 Apr 2012 20:28:56 +0000 (13:28 -0700)]
sequences.extras: adding map-concat.

12 years agoUse "map-sum" instead of "map sum".
John Benediktsson [Wed, 25 Apr 2012 20:18:21 +0000 (13:18 -0700)]
Use "map-sum" instead of "map sum".

12 years agochange to in-place reverse.
John Benediktsson [Wed, 25 Apr 2012 01:51:46 +0000 (18:51 -0700)]
change to in-place reverse.

12 years agomath.combinatorics: minor performance improvements.
John Benediktsson [Wed, 25 Apr 2012 01:42:34 +0000 (18:42 -0700)]
math.combinatorics: minor performance improvements.

12 years agobenchmark.combinatorics: adding a combinatorics benchmark.
John Benediktsson [Wed, 25 Apr 2012 00:29:26 +0000 (17:29 -0700)]
benchmark.combinatorics: adding a combinatorics benchmark.

12 years agosequences.extras: adding rotate and rotate! words.
John Benediktsson [Tue, 24 Apr 2012 23:59:17 +0000 (16:59 -0700)]
sequences.extras: adding rotate and rotate! words.

12 years agomath.combinatorics: faster version of factorial.
John Benediktsson [Tue, 24 Apr 2012 17:03:45 +0000 (10:03 -0700)]
math.combinatorics: faster version of factorial.

12 years agomath.statistics: Add eight methods for calculating quantiles. Add quartile. Add kth...
Doug Coleman [Tue, 24 Apr 2012 10:17:50 +0000 (03:17 -0700)]
math.statistics: Add eight methods for calculating quantiles. Add quartile. Add kth-smallests et al, refactor medians.

12 years agomath.statistics: Make a safe version of kth-object. Bounds check k w/ regards to...
Doug Coleman [Mon, 23 Apr 2012 20:55:25 +0000 (13:55 -0700)]
math.statistics: Make a safe version of kth-object. Bounds check k w/ regards to seq.

12 years agomath.combinatorics: adding <combinations> and <permutations> sequences.
John Benediktsson [Mon, 23 Apr 2012 15:29:20 +0000 (08:29 -0700)]
math.combinatorics: adding <combinations> and <permutations> sequences.

12 years agomath.statistics: Generalize kth-smallest into kth-object, add kth-largest. Add count...
Doug Coleman [Mon, 23 Apr 2012 06:41:13 +0000 (23:41 -0700)]
math.statistics: Generalize kth-smallest into kth-object, add kth-largest. Add count-relative and minmax-relative for counting the number of lt, eq, gt elements, and getting the max lt and min gt in one pass.

12 years agomath.combinatorics: fix failed find combinations/permutations.
John Benediktsson [Sun, 22 Apr 2012 03:11:47 +0000 (20:11 -0700)]
math.combinatorics: fix failed find combinations/permutations.

12 years agomath.combinatorics: adding find-combination and find-permutation.
John Benediktsson [Sat, 21 Apr 2012 06:31:40 +0000 (23:31 -0700)]
math.combinatorics: adding find-combination and find-permutation.

12 years agomath.extras: adding sterling numbers, bernoulli numbers, chi-square and inverse-chi...
John Benediktsson [Sat, 21 Apr 2012 03:09:54 +0000 (20:09 -0700)]
math.extras: adding sterling numbers, bernoulli numbers, chi-square and inverse-chi-square words.

12 years agobenchmark.make: use % (push-all).
John Benediktsson [Fri, 20 Apr 2012 17:51:51 +0000 (10:51 -0700)]
benchmark.make: use % (push-all).

12 years agobenchmark.make: adding a simple make benchmark.
John Benediktsson [Fri, 20 Apr 2012 17:41:50 +0000 (10:41 -0700)]
benchmark.make: adding a simple make benchmark.

12 years agomake: most sequences are less than 32.
John Benediktsson [Fri, 20 Apr 2012 05:02:47 +0000 (22:02 -0700)]
make: most sequences are less than 32.

12 years agosequences.extras: adding slice-when (non-destructive split-when).
John Benediktsson [Thu, 19 Apr 2012 23:41:44 +0000 (16:41 -0700)]
sequences.extras: adding slice-when (non-destructive split-when).

12 years agomath.primes.twins: calculating twin primes.
John Benediktsson [Thu, 19 Apr 2012 22:14:31 +0000 (15:14 -0700)]
math.primes.twins: calculating twin primes.

12 years agomath.functions: adding another test for roots.
John Benediktsson [Thu, 19 Apr 2012 20:34:42 +0000 (13:34 -0700)]
math.functions: adding another test for roots.

12 years agomath.functions: adding "roots" word to get arbitrary roots from numbers.
John Benediktsson [Thu, 19 Apr 2012 19:19:14 +0000 (12:19 -0700)]
math.functions: adding "roots" word to get arbitrary roots from numbers.

12 years agomath.functions: adding docs and tests for ^mod.
John Benediktsson [Thu, 19 Apr 2012 15:20:11 +0000 (08:20 -0700)]
math.functions: adding docs and tests for ^mod.

12 years agocleanup some lint warnings.
John Benediktsson [Thu, 19 Apr 2012 00:46:01 +0000 (17:46 -0700)]
cleanup some lint warnings.

12 years agoclasses.struct: add some docs for read-struct.
John Benediktsson [Wed, 18 Apr 2012 23:02:00 +0000 (16:02 -0700)]
classes.struct: add some docs for read-struct.

12 years agoclasses.struct: adding a read-struct word.
John Benediktsson [Wed, 18 Apr 2012 23:00:29 +0000 (16:00 -0700)]
classes.struct: adding a read-struct word.

12 years agosplitting: fix docs for split1-when.
John Benediktsson [Wed, 18 Apr 2012 22:59:08 +0000 (15:59 -0700)]
splitting: fix docs for split1-when.

12 years agosplitting: adding split1-when.
John Benediktsson [Wed, 18 Apr 2012 22:55:15 +0000 (15:55 -0700)]
splitting: adding split1-when.

12 years agomath.combinators: Add filter-permutations/combinations. Minor cleanup.
Doug Coleman [Wed, 18 Apr 2012 22:17:48 +0000 (15:17 -0700)]
math.combinators: Add filter-permutations/combinations. Minor cleanup.

12 years agomath.combinators: Add map-permutation
Doug Coleman [Wed, 18 Apr 2012 21:43:08 +0000 (14:43 -0700)]
math.combinators: Add map-permutation

12 years agosequences.extras: Experimenting with collapse, compact words. Add even/odd-indices...
Doug Coleman [Wed, 18 Apr 2012 21:06:41 +0000 (14:06 -0700)]
sequences.extras: Experimenting with collapse, compact words. Add even/odd-indices words.

12 years agorandom: adding rayleigh, gumbel, logistic, and power random floats.
John Benediktsson [Wed, 18 Apr 2012 21:37:27 +0000 (14:37 -0700)]
random: adding rayleigh, gumbel, logistic, and power random floats.

12 years ago24-game: remove broken "spin" definition.
John Benediktsson [Wed, 18 Apr 2012 19:11:41 +0000 (12:11 -0700)]
24-game: remove broken "spin" definition.

12 years agoclasses.algebra: make class= and only-classoid? use short-circuit logic.
John Benediktsson [Wed, 18 Apr 2012 19:00:24 +0000 (12:00 -0700)]
classes.algebra: make class= and only-classoid? use short-circuit logic.

12 years agosequences.extras: adding a version of filter that uses an elements index.
John Benediktsson [Wed, 18 Apr 2012 17:47:25 +0000 (10:47 -0700)]
sequences.extras: adding a version of filter that uses an elements index.

12 years agobootstrap.image.upload: fix checksums location to use new temp dir.
John Benediktsson [Wed, 18 Apr 2012 03:49:19 +0000 (20:49 -0700)]
bootstrap.image.upload: fix checksums location to use new temp dir.

12 years agosequences: fixing "Cannot apply 'call' to a run-time computed value" error in map...
John Benediktsson [Wed, 18 Apr 2012 02:04:10 +0000 (19:04 -0700)]
sequences: fixing "Cannot apply 'call' to a run-time computed value" error in map-reduce and 2map-reduce.

12 years agosequences: make map-reduce 5-20% faster, and 2map-reduce 3-5% faster.
John Benediktsson [Wed, 18 Apr 2012 00:58:19 +0000 (17:58 -0700)]
sequences: make map-reduce 5-20% faster, and 2map-reduce 3-5% faster.

12 years agosequences: adding a test for map-reduce.
John Benediktsson [Tue, 17 Apr 2012 00:52:21 +0000 (17:52 -0700)]
sequences: adding a test for map-reduce.

12 years agosequences.extras: faster minimum/maximum.
John Benediktsson [Mon, 16 Apr 2012 22:09:44 +0000 (15:09 -0700)]
sequences.extras: faster minimum/maximum.

12 years agococoa.plists: import cocoa to fix bootstrap issue.
John Benediktsson [Mon, 16 Apr 2012 19:06:42 +0000 (12:06 -0700)]
cocoa.plists: import cocoa to fix bootstrap issue.

12 years agoio.files.temp.windows: fix up
Joe Groff [Sun, 1 Apr 2012 00:11:38 +0000 (17:11 -0700)]
io.files.temp.windows: fix up

12 years agochange temp-file to cache-file where appropriate
Joe Groff [Sat, 31 Mar 2012 21:49:43 +0000 (14:49 -0700)]
change temp-file to cache-file where appropriate

12 years agoio.files.temp: use OS tmp dir; add cache-directory
Joe Groff [Sat, 31 Mar 2012 21:45:59 +0000 (14:45 -0700)]
io.files.temp: use OS tmp dir; add cache-directory
Change temp-directory to return an OS-sanctioned temporary directory instead of "resource:temp". Add a new function cache-directory to return an OS-sanctioned directory for storing staging images etc. Fixes #365.
Windows implementation needs to be finished and tested.

12 years agohash-sets: speed up diff, intersect, and union.
John Benediktsson [Mon, 16 Apr 2012 17:58:08 +0000 (10:58 -0700)]
hash-sets: speed up diff, intersect, and union.

12 years agobenchmark.hash-sets: adding a benchmark for hash-sets.
John Benediktsson [Mon, 16 Apr 2012 17:57:57 +0000 (10:57 -0700)]
benchmark.hash-sets: adding a benchmark for hash-sets.

12 years agosequences.extras: adding change-nths word.
John Benediktsson [Sun, 15 Apr 2012 17:34:23 +0000 (10:34 -0700)]
sequences.extras: adding change-nths word.

12 years agosequences.extras: adding pad-longest.
John Benediktsson [Sun, 15 Apr 2012 17:32:45 +0000 (10:32 -0700)]
sequences.extras: adding pad-longest.

12 years agosequences.extras: adding all-subseqs, each-subseq, longest-subseq, and generalized...
John Benediktsson [Sun, 15 Apr 2012 17:31:06 +0000 (10:31 -0700)]
sequences.extras: adding all-subseqs, each-subseq, longest-subseq, and generalized minimum/maximum words.

12 years agorandom: adding some tests for the random distributions.
John Benediktsson [Sun, 15 Apr 2012 17:16:06 +0000 (10:16 -0700)]
random: adding some tests for the random distributions.

12 years agorandom: adding laplace, cauchy, chi-square, student's t, and inverse gamma distributions.
John Benediktsson [Sun, 15 Apr 2012 04:00:19 +0000 (21:00 -0700)]
random: adding laplace, cauchy, chi-square, student's t, and inverse gamma distributions.

12 years agomath.statistics: adding cumulative versions of sum, product, min, and max.
John Benediktsson [Thu, 12 Apr 2012 17:30:16 +0000 (10:30 -0700)]
math.statistics: adding cumulative versions of sum, product, min, and max.

12 years agovm: Typo for SITE_CFLAGS. Fixes #491.
Doug Coleman [Tue, 10 Apr 2012 23:28:04 +0000 (16:28 -0700)]
vm: Typo for SITE_CFLAGS. Fixes #491.

12 years agomath.statistics: Fix docs for help-lint.
Doug Coleman [Tue, 10 Apr 2012 15:52:12 +0000 (08:52 -0700)]
math.statistics: Fix docs for help-lint.

12 years agomath.combinatorics: fix help-lint.
John Benediktsson [Mon, 9 Apr 2012 18:43:22 +0000 (11:43 -0700)]
math.combinatorics: fix help-lint.

12 years agovm: use euclid gcd on win64 until we find a better way to do the 128-bit math.
John Benediktsson [Fri, 6 Apr 2012 18:42:59 +0000 (11:42 -0700)]
vm: use euclid gcd on win64 until we find a better way to do the 128-bit math.

12 years agovm: use twodigit type for all variables (fixes 32-bit warning).
John Benediktsson [Fri, 6 Apr 2012 16:36:25 +0000 (09:36 -0700)]
vm: use twodigit type for all variables (fixes 32-bit warning).

12 years agoRevert "ascii: adding title case."
John Benediktsson [Thu, 5 Apr 2012 21:37:56 +0000 (14:37 -0700)]
Revert "ascii: adding title case."

This reverts commit 66ecd199d8ceb208a557d8bce4af3cd2f818145f.

12 years agoascii: adding title case.
John Benediktsson [Thu, 5 Apr 2012 20:56:20 +0000 (13:56 -0700)]
ascii: adding title case.

12 years agoRevert "math.functions: simpler without "simple-gcd"."
John Benediktsson [Thu, 5 Apr 2012 17:34:50 +0000 (10:34 -0700)]
Revert "math.functions: simpler without "simple-gcd"."

This reverts commit aa7f60ebbc9c87e09a9173e6916624e9c300052c.

12 years agomath.functions: simpler without "simple-gcd".
John Benediktsson [Thu, 5 Apr 2012 17:31:06 +0000 (10:31 -0700)]
math.functions: simpler without "simple-gcd".

12 years agovm/Config: GNUMakefile doesn't actually put the CFLAGS on the command, so use SITE_CF...
Doug Coleman [Thu, 5 Apr 2012 17:26:50 +0000 (10:26 -0700)]
vm/Config: GNUMakefile doesn't actually put the CFLAGS on the command, so use SITE_CFLAGS instead. Put -m32 in Config.x86.32, -m64 in Config.x86.64. Fixes #488.

12 years agomath: adding a fast-gcd that speeds up all ratio operations by up to 10 times for...
John Benediktsson [Thu, 5 Apr 2012 16:17:52 +0000 (09:17 -0700)]
math: adding a fast-gcd that speeds up all ratio operations by up to 10 times for bignum ratios.

12 years agovm: adding bignum_gcd primitive.
John Benediktsson [Thu, 5 Apr 2012 16:17:35 +0000 (09:17 -0700)]
vm: adding bignum_gcd primitive.

12 years agorandom: Add a k parameter for pareto. Add some unit tests.
Doug Coleman [Sat, 31 Mar 2012 02:52:47 +0000 (19:52 -0700)]
random: Add a k parameter for pareto. Add some unit tests.

12 years agomath.statistics: change 'var' to 'sample-var' and implement variance, covariance...
John Benediktsson [Tue, 3 Apr 2012 00:12:32 +0000 (17:12 -0700)]
math.statistics: change 'var' to 'sample-var' and implement variance, covariance, and correlation.

12 years agoio.pathnames: removed dependency on environment.
otoburb [Thu, 2 Feb 2012 01:26:55 +0000 (17:26 -0800)]
io.pathnames: removed dependency on environment.

I had an erroneous dependency on basis/environment.

12 years agoio.pathnames: Revised ~ support to expand on the first tilde, and not on "~/".
otoburb [Wed, 11 Jan 2012 02:25:53 +0000 (02:25 +0000)]
io.pathnames: Revised ~ support to expand on the first tilde, and not on "~/".

This mimics the same behaviour as "ls ~" in the shell, which expands the alias
as a directory, and not as a filename. For the specific edge-case where a
filename called "~" must have a path constructed to it (e.g. "./~" or "~/~").

12 years agoio.pathnames: Added ~/ (tilde) prefix recognition as a special pathname.
otoburb [Wed, 21 Dec 2011 16:35:05 +0000 (16:35 +0000)]
io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname.

vocab:, resource: and ~/ are special pathnames. Modified absolute-path word,
added test cases and updated io.pathname documentation.

12 years agorandom: adding triangular distribution.
John Benediktsson [Sat, 31 Mar 2012 02:53:30 +0000 (19:53 -0700)]
random: adding triangular distribution.

12 years agorandom: adding von-mises distribution.
John Benediktsson [Sat, 31 Mar 2012 02:43:51 +0000 (19:43 -0700)]
random: adding von-mises distribution.

12 years agorandom: implement gamma distribution, fix beta to use it.
John Benediktsson [Sat, 31 Mar 2012 02:30:29 +0000 (19:30 -0700)]
random: implement gamma distribution, fix beta to use it.

12 years agorandom: Change weibull-random-float to use alpha/beta parameters.
Doug Coleman [Sat, 31 Mar 2012 01:38:18 +0000 (18:38 -0700)]
random: Change weibull-random-float to use alpha/beta parameters.

12 years agorandom: Add random-unit word. 1 random-unit - is the same distribution, as Joe pointe...
Doug Coleman [Sat, 31 Mar 2012 00:56:00 +0000 (17:56 -0700)]
random: Add random-unit word. 1 random-unit - is the same distribution, as Joe pointed out, so remove that. Use random-unit in librarie.

12 years agorandom: 1 swap - was redundant.
John Benediktsson [Sat, 31 Mar 2012 00:57:40 +0000 (17:57 -0700)]
random: 1 swap - was redundant.

12 years agorandom: gauss-random-float is just normal-random-float.
John Benediktsson [Sat, 31 Mar 2012 00:55:18 +0000 (17:55 -0700)]
random: gauss-random-float is just normal-random-float.

12 years agorandom: adding lognormal, exponential, weibull, pareto, gauss, and beta distributions.
John Benediktsson [Sat, 31 Mar 2012 00:33:13 +0000 (17:33 -0700)]
random: adding lognormal, exponential, weibull, pareto, gauss, and beta distributions.

12 years agomath.vectors: separate "dot product" from "Hermitian inner product". Fixes #484.
John Benediktsson [Thu, 29 Mar 2012 17:56:39 +0000 (10:56 -0700)]
math.vectors: separate "dot product" from "Hermitian inner product".  Fixes #484.

12 years agoMerge branch 'master' of github.com:mrjbq7/factor
John Benediktsson [Thu, 29 Mar 2012 17:51:19 +0000 (10:51 -0700)]
Merge branch 'master' of github.com:mrjbq7/factor

12 years agoio.files: check argv when initing resource-path
Joe Groff [Tue, 27 Mar 2012 23:58:12 +0000 (16:58 -0700)]
io.files: check argv when initing resource-path

12 years agowebbrowser: move to basis for tools.deploy.unix
Joe Groff [Mon, 26 Mar 2012 17:18:10 +0000 (10:18 -0700)]
webbrowser: move to basis for tools.deploy.unix

12 years agofix build for linux (issue #480). thanks, jcollado!
Felix Kaiser [Tue, 13 Mar 2012 19:05:14 +0000 (20:05 +0100)]
fix build for linux (issue #480). thanks, jcollado!

12 years agoparse -resource-path= during bootstrap
Joe Groff [Sun, 25 Mar 2012 21:02:16 +0000 (14:02 -0700)]
parse -resource-path= during bootstrap

12 years agofix build for linux (issue #480). thanks, jcollado!
Felix Kaiser [Tue, 13 Mar 2012 19:05:14 +0000 (20:05 +0100)]
fix build for linux (issue #480). thanks, jcollado!

12 years agowolfram-alpha: display error if query unsuccessful.
John Benediktsson [Thu, 8 Mar 2012 01:53:59 +0000 (17:53 -0800)]
wolfram-alpha: display error if query unsuccessful.

12 years agounits.imperial: How much is a liter? About eight gills.
Doug Coleman [Wed, 29 Feb 2012 07:33:10 +0000 (23:33 -0800)]
units.imperial: How much is a liter? About eight gills.

12 years agoui.tools.listener: dumb hack to set listener font
Joe Groff [Sun, 4 Mar 2012 21:07:58 +0000 (13:07 -0800)]
ui.tools.listener: dumb hack to set listener font

12 years agomath.combinatorics: fix tests for next-permutation.
John Benediktsson [Fri, 2 Mar 2012 18:05:57 +0000 (10:05 -0800)]
math.combinatorics: fix tests for next-permutation.