]> gitweb.factorcode.org Git - factor.git/log
factor.git
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.

12 years agomath.combinatorics: fix docs for next-permutation.
John Benediktsson [Fri, 2 Mar 2012 17:55:22 +0000 (09:55 -0800)]
math.combinatorics: fix docs for next-permutation.

12 years agomath.combinatorics: implementing "next-permutation".
John Benediktsson [Fri, 2 Mar 2012 17:54:11 +0000 (09:54 -0800)]
math.combinatorics: implementing "next-permutation".

12 years agoaudio.gadget: create/dispose clip on graft/ungraft
Joe Groff [Wed, 22 Feb 2012 23:46:45 +0000 (15:46 -0800)]
audio.gadget: create/dispose clip on graft/ungraft

12 years agoadd content-gadget hook for inspector
Joe Groff [Tue, 21 Feb 2012 23:06:27 +0000 (15:06 -0800)]
add content-gadget hook for inspector
Allow objects such as images, strings, and audio clips to display rich representations of themselves in the inspector by providing methods for a content-gadget generic.

12 years agoaudio.gadget: printable audio play button
Joe Groff [Tue, 21 Feb 2012 07:49:01 +0000 (23:49 -0800)]
audio.gadget: printable audio play button

12 years agouse clang when building w/ xcode >4.3; it's faster
Joe Groff [Sun, 19 Feb 2012 07:40:38 +0000 (23:40 -0800)]
use clang when building w/ xcode >4.3; it's faster

12 years agofactor.sh: note xcode 4.3 command line tools req
Joe Groff [Sun, 19 Feb 2012 07:23:47 +0000 (23:23 -0800)]
factor.sh: note xcode 4.3 command line tools req

12 years agoui.gadgets.panes: add gadget-alt-text
Joe Groff [Sun, 19 Feb 2012 05:55:59 +0000 (21:55 -0800)]
ui.gadgets.panes: add gadget-alt-text
Provide a default implementation of write-gadget that writes plain text to a stream that doesn't support gadgets.

12 years agokernel: Change the example for with to be more clear. Division example credit goes...
Doug Coleman [Thu, 16 Feb 2012 17:48:08 +0000 (09:48 -0800)]
kernel: Change the example for with to be more clear. Division example credit goes to chezmax.

12 years agosystem-info.macosx: adding "Mountain Lion".
John Benediktsson [Thu, 16 Feb 2012 16:30:56 +0000 (08:30 -0800)]
system-info.macosx: adding "Mountain Lion".

12 years agoAdd the banner. It should give the instructions before asking for a guess.
Guillermo Alcantara [Thu, 9 Feb 2012 05:31:31 +0000 (21:31 -0800)]
Add the banner. It should give the instructions before asking for a guess.

12 years agofactor.sh: Install git instead of git-core for linux-deps.X
Doug Coleman [Tue, 7 Feb 2012 20:57:52 +0000 (12:57 -0800)]
factor.sh: Install git instead of git-core for linux-deps.X

12 years agotools.ps: Add a simple Linux-only ps clone.
Doug Coleman [Sat, 4 Feb 2012 01:30:34 +0000 (17:30 -0800)]
tools.ps: Add a simple Linux-only ps clone.

12 years agounix.groups: Return an empty sequence if the user in 'user user-groups' doesn't exist.
Doug Coleman [Fri, 3 Feb 2012 03:58:24 +0000 (19:58 -0800)]
unix.groups: Return an empty sequence if the user in 'user user-groups' doesn't exist.

12 years agounix.groups: Get the second parameter to getgrouplist from /etc/passwd.
Doug Coleman [Fri, 3 Feb 2012 03:53:42 +0000 (19:53 -0800)]
unix.groups: Get the second parameter to getgrouplist from /etc/passwd.

12 years agocalendar: today is now midnight.
John Benediktsson [Fri, 3 Feb 2012 03:47:05 +0000 (19:47 -0800)]
calendar: today is now midnight.

12 years agounix.groups: 64 ought to be enough, right?
John Benediktsson [Fri, 3 Feb 2012 03:41:39 +0000 (19:41 -0800)]
unix.groups: 64 ought to be enough, right?

12 years agoRevert "io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname."
Joe Groff [Tue, 31 Jan 2012 19:46:02 +0000 (11:46 -0800)]
Revert "io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname."

This reverts commit 4e10f097875d8f910abba832134b841d115eca8e.

12 years agoRevert "io.pathnames: Revised ~ support to expand on the first tilde, and not on...
Joe Groff [Tue, 31 Jan 2012 19:45:51 +0000 (11:45 -0800)]
Revert "io.pathnames: Revised ~ support to expand on the first tilde, and not on "~/"."

This reverts commit 251a2a19a67ce305b8318ae5aab7b4be204903f4.

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 agoclient-docs: Updated HTTP PUT documentation typos
otoburb [Fri, 18 Nov 2011 06:47:56 +0000 (01:47 -0500)]
client-docs: Updated HTTP PUT documentation typos

12 years agolistener: update docs
Slava Pestov [Tue, 3 Jan 2012 05:38:56 +0000 (21:38 -0800)]
listener: update docs

12 years agoSet up listener's manifest so that words defined in "scratchpad" take precedence...
Slava Pestov [Tue, 3 Jan 2012 05:18:52 +0000 (23:18 -0600)]
Set up listener's manifest so that words defined in "scratchpad" take precedence over other vocabularies and do not raise a restart. This matches the behavior of IN: and USE: in files, where the IN: takes precedence. Also remove unused clear-manifest word. Fixes #407

12 years agogdbm.ffi: fix library name on Linux
Slava Pestov [Tue, 3 Jan 2012 04:44:43 +0000 (22:44 -0600)]
gdbm.ffi: fix library name on  Linux

12 years agoextra:math.erato: Remove txt files; vocab was moved to basis.
Doug Coleman [Mon, 2 Jan 2012 20:14:03 +0000 (12:14 -0800)]
extra:math.erato: Remove txt files; vocab was moved to basis.

12 years agoRevert "ui.gadgets.books: needs help.markup.private."
John Benediktsson [Fri, 30 Dec 2011 05:38:05 +0000 (21:38 -0800)]
Revert "ui.gadgets.books: needs help.markup.private."

This reverts commit dc9aa68961e5d2c4e5762b09e1abebea70d5c97b.

12 years agounicode: Fix some $vocab-links in docs.
John Benediktsson [Fri, 30 Dec 2011 01:32:05 +0000 (17:32 -0800)]
unicode: Fix some $vocab-links in docs.

12 years agomath.vectors: fix some $examples in docs.
John Benediktsson [Fri, 30 Dec 2011 01:31:55 +0000 (17:31 -0800)]
math.vectors: fix some $examples in docs.

12 years agoui.gadgets.books: needs help.markup.private.
John Benediktsson [Fri, 30 Dec 2011 01:19:48 +0000 (17:19 -0800)]
ui.gadgets.books: needs help.markup.private.

12 years agoui: fix error in docs (USE: ui.gadgets.books).
John Benediktsson [Fri, 30 Dec 2011 00:33:16 +0000 (16:33 -0800)]
ui: fix error in docs (USE: ui.gadgets.books).

12 years agosplitting.monotonic: Don't throw away the last result. Fixes #462.
Doug Coleman [Tue, 27 Dec 2011 17:43:32 +0000 (11:43 -0600)]
splitting.monotonic: Don't throw away the last result. Fixes #462.

12 years agovm: actually code_block_pic is a fine frame type
Joe Groff [Thu, 22 Dec 2011 05:12:54 +0000 (21:12 -0800)]
vm: actually code_block_pic is a fine frame type

12 years agovm: also smoke-check callstack after pic update
Joe Groff [Thu, 22 Dec 2011 02:31:37 +0000 (18:31 -0800)]
vm: also smoke-check callstack after pic update

12 years agovm: flush after print_obj so it's usable from gdb
Joe Groff [Wed, 21 Dec 2011 21:25:28 +0000 (13:25 -0800)]
vm: flush after print_obj so it's usable from gdb

12 years agovm: fashion brigade
Joe Groff [Wed, 21 Dec 2011 21:25:05 +0000 (13:25 -0800)]
vm: fashion brigade

12 years agovm: walk stack on inline_cache_miss if PIC_DEBUG=1
Joe Groff [Wed, 21 Dec 2011 21:24:35 +0000 (13:24 -0800)]
vm: walk stack on inline_cache_miss if PIC_DEBUG=1
Reveals inline cache stack coherency bug behind #460

12 years agovm: load mega cache object before popping frame
Joe Groff [Tue, 20 Dec 2011 22:38:01 +0000 (14:38 -0800)]
vm: load mega cache object before popping frame
Fixes #457 harder

12 years agocpu.x86.32.bootstrap: oops, meant bootstrap-cell
Joe Groff [Tue, 20 Dec 2011 04:55:07 +0000 (20:55 -0800)]
cpu.x86.32.bootstrap: oops, meant bootstrap-cell

12 years agocpu.x86.32.bootstrap: update unwind-native-frames
Joe Groff [Tue, 20 Dec 2011 02:42:14 +0000 (18:42 -0800)]
cpu.x86.32.bootstrap: update unwind-native-frames
The arguments passed from C are in a different position now.

12 years agovm: unwind-native-frames is special
Joe Groff [Tue, 20 Dec 2011 00:54:25 +0000 (16:54 -0800)]
vm: unwind-native-frames is special
Fixes #457

12 years agocombinators.smart: Make map-reduce-outputs a macro. To be a combinator, we need a...
Doug Coleman [Mon, 19 Dec 2011 19:12:37 +0000 (11:12 -0800)]
combinators.smart: Make map-reduce-outputs a macro. To be a combinator, we need a full stack-checker rewrite.

12 years agomath.parser: hex> etc. shouldn't take radix prefix
Joe Groff [Sat, 17 Dec 2011 01:20:05 +0000 (17:20 -0800)]
math.parser: hex> etc. shouldn't take radix prefix
Fixes #453

12 years agofix link when extracting the feed address
Samuel Tardieu [Wed, 14 Dec 2011 22:18:26 +0000 (23:18 +0100)]
fix link when extracting the feed address

If the <link rel="alternate" href="..."/> was not the first
<link/> attribute under the <feed/> tag, the bad one was extracted
as the corresponding site URL.

12 years agoadd tag-named-with-attr to xml.traversal
Samuel Tardieu [Wed, 14 Dec 2011 22:05:57 +0000 (23:05 +0100)]
add tag-named-with-attr to xml.traversal

12 years agofastcgi: er, linux + macosx = unix
Joe Groff [Sat, 17 Dec 2011 00:06:46 +0000 (16:06 -0800)]
fastcgi: er, linux + macosx = unix

12 years agofastcgi: only load on unix until #454 is resolved
Joe Groff [Sat, 17 Dec 2011 00:02:53 +0000 (16:02 -0800)]
fastcgi: only load on unix until #454 is resolved

12 years agotools.deploy.shaker: strip globals harder
Joe Groff [Fri, 16 Dec 2011 23:56:59 +0000 (15:56 -0800)]
tools.deploy.shaker: strip globals harder
Separate the list of strippable globals in "stripped" and "cleared". Completely remove the former set, but only reset to 'f' the latter. Fixes #447.

12 years agothreads: update test
Joe Groff [Wed, 14 Dec 2011 21:45:53 +0000 (13:45 -0800)]
threads: update test

12 years agoRevert "pubsubhubbub support by samueltardieu". Fixes #455.
Joe Groff [Wed, 14 Dec 2011 21:13:18 +0000 (13:13 -0800)]
Revert "pubsubhubbub support by samueltardieu". Fixes #455.

This reverts commit e3483c9c0383dbc89888f58fa471b8777fe35ce1.

12 years agofix compiler.codegen tests
Joe Groff [Wed, 14 Dec 2011 20:51:12 +0000 (12:51 -0800)]
fix compiler.codegen tests

12 years agotools.deploy.shaker: clear MEMO: caches
Joe Groff [Wed, 14 Dec 2011 20:44:40 +0000 (12:44 -0800)]
tools.deploy.shaker: clear MEMO: caches

12 years agofix help-lint failures
Joe Groff [Wed, 14 Dec 2011 19:33:17 +0000 (11:33 -0800)]
fix help-lint failures