]> gitweb.factorcode.org Git - factor.git/log
factor.git
9 years agounmaintained: restore pong.
John Benediktsson [Sat, 25 Oct 2014 05:29:44 +0000 (22:29 -0700)]
unmaintained: restore pong.

9 years agounmaintained: some cleanup.
John Benediktsson [Sat, 25 Oct 2014 05:10:08 +0000 (22:10 -0700)]
unmaintained: some cleanup.

9 years agounmaintained: restoring trails, which is a neat processing demo.
John Benediktsson [Sat, 25 Oct 2014 04:56:37 +0000 (21:56 -0700)]
unmaintained: restoring trails, which is a neat processing demo.

9 years agounmaintained: fix accessors (>>foo) should be foo<<.
John Benediktsson [Sat, 25 Oct 2014 04:39:58 +0000 (21:39 -0700)]
unmaintained: fix accessors (>>foo) should be foo<<.

9 years agounmaintained: reanimated cairo demos, mostly working.
John Benediktsson [Sat, 25 Oct 2014 04:39:18 +0000 (21:39 -0700)]
unmaintained: reanimated cairo demos, mostly working.

9 years agoboids: removing unnecessary with-translation.
John Benediktsson [Sat, 25 Oct 2014 04:34:53 +0000 (21:34 -0700)]
boids: removing unnecessary with-translation.

9 years agoimages: cleanup using.
John Benediktsson [Sat, 25 Oct 2014 01:18:45 +0000 (18:18 -0700)]
images: cleanup using.

9 years agojamshred: it lives again, now you can jam and shred!
John Benediktsson [Sat, 25 Oct 2014 01:17:33 +0000 (18:17 -0700)]
jamshred: it lives again, now you can jam and shred!

9 years agoio/ui: slim down the USE: list
John Benediktsson [Sat, 25 Oct 2014 00:33:27 +0000 (17:33 -0700)]
io/ui: slim down the USE: list

9 years agoio.backend: Remove duplicate definition of file-mode. Add mkdir-mode using non-magic...
Doug Coleman [Sat, 25 Oct 2014 00:16:40 +0000 (17:16 -0700)]
io.backend: Remove duplicate definition of file-mode. Add mkdir-mode using non-magic symbols. Cleanup imports.

9 years agolibc: don't use unparse which requires prettyprint.
John Benediktsson [Sat, 25 Oct 2014 00:09:27 +0000 (17:09 -0700)]
libc: don't use unparse which requires prettyprint.

9 years agoui.gadgets.tables: show summary for mouse row or selected row.
John Benediktsson [Fri, 24 Oct 2014 23:32:21 +0000 (16:32 -0700)]
ui.gadgets.tables: show summary for mouse row or selected row.

9 years agoui.gadgets.buttons: use hide-status on button-leave.
John Benediktsson [Fri, 24 Oct 2014 23:30:29 +0000 (16:30 -0700)]
ui.gadgets.buttons: use hide-status on button-leave.

9 years agohelp.topics: make wrappers unwrap into links.
John Benediktsson [Fri, 24 Oct 2014 00:10:05 +0000 (17:10 -0700)]
help.topics: make wrappers unwrap into links.

9 years agopython: fix a reference leak in the (>py) word
Björn Lindqvist [Thu, 23 Oct 2014 23:18:57 +0000 (01:18 +0200)]
python: fix a reference leak in the (>py) word

9 years agopython: feature to create python callbacks/functions, now you can call hofs like...
Björn Lindqvist [Thu, 23 Oct 2014 23:01:15 +0000 (01:01 +0200)]
python: feature to create python callbacks/functions, now you can call hofs like map and reduce

9 years agopython: new syntax PY-QUALIFIED-FROM, so you can import eg __builtin__:map and not...
Björn Lindqvist [Thu, 23 Oct 2014 16:43:36 +0000 (18:43 +0200)]
python: new syntax PY-QUALIFIED-FROM, so you can import eg __builtin__:map and not have it clash with factors map

9 years agoassocs.extras: adding delete-value-at.
John Benediktsson [Thu, 23 Oct 2014 22:08:38 +0000 (15:08 -0700)]
assocs.extras: adding delete-value-at.

9 years agopeg.ebnf: Update docs for peg change.
Doug Coleman [Thu, 23 Oct 2014 20:47:40 +0000 (13:47 -0700)]
peg.ebnf: Update docs for peg change.

9 years agopeg.debugger: don't use formatting.
John Benediktsson [Thu, 23 Oct 2014 19:01:51 +0000 (12:01 -0700)]
peg.debugger: don't use formatting.

9 years agopeg: add 'got' slot to parse-error, so you get a little more info about why the parsi...
Björn Lindqvist [Tue, 21 Oct 2014 14:27:33 +0000 (16:27 +0200)]
peg: add 'got' slot to parse-error, so you get a little more info about why the parsing fails

9 years agohttp.server: handle certain parse-errors from the peg vocab
Björn Lindqvist [Tue, 21 Oct 2014 16:39:24 +0000 (18:39 +0200)]
http.server: handle certain parse-errors from the peg vocab

Browsers that can't verify the certificate doesn't send any request at
all which causes parse-errors to be unnecessarily thrown and logged.

9 years agocompiler.cfg.stacks.local: Have unit test load prettyprint implementation for ds...
Doug Coleman [Wed, 22 Oct 2014 17:31:27 +0000 (10:31 -0700)]
compiler.cfg.stacks.local: Have unit test load prettyprint implementation for ds-loc so that it always prints as "D 4".

9 years agocompiler.tests.alien: use the with-callback combinator to plug the memory leaks in...
Björn Lindqvist [Wed, 22 Oct 2014 12:44:10 +0000 (14:44 +0200)]
compiler.tests.alien: use the with-callback combinator to plug the memory leaks in the tests

9 years agoalien.tests: fix the test cases so they dont leak, and new tc for with-callback
Björn Lindqvist [Wed, 22 Oct 2014 10:24:44 +0000 (12:24 +0200)]
alien.tests: fix the test cases so they dont leak, and new tc for with-callback

9 years agoalien,stack-checker.alien: new word with-callback
Björn Lindqvist [Wed, 22 Oct 2014 10:23:29 +0000 (12:23 +0200)]
alien,stack-checker.alien: new word with-callback

Since callbacks aren't automatically deallocated this word intends to
make sure "inline" callbacks are.

9 years agoFUEL: fix in table rendering, previously it cutted off some cells with to much text 1166/head
Björn Lindqvist [Tue, 21 Oct 2014 21:20:47 +0000 (23:20 +0200)]
FUEL: fix in table rendering, previously it cutted off some cells with to much text

9 years agocpu.x86.assembler.operands: fix help-lint.
John Benediktsson [Mon, 20 Oct 2014 16:24:20 +0000 (09:24 -0700)]
cpu.x86.assembler.operands: fix help-lint.

9 years agostack-checker: make this an unchecked-example.
John Benediktsson [Sun, 19 Oct 2014 15:29:51 +0000 (08:29 -0700)]
stack-checker: make this an unchecked-example.

9 years agocompiler: resolve duplicate doc for "compiled".
John Benediktsson [Sun, 19 Oct 2014 15:27:59 +0000 (08:27 -0700)]
compiler: resolve duplicate doc for "compiled".

9 years agocompiler.codegen.gc-maps: update docs so that they match how factors gc-maps currentl... 1163/head
Björn Lindqvist [Sun, 19 Oct 2014 12:17:54 +0000 (14:17 +0200)]
compiler.codegen.gc-maps: update docs so that they match how factors gc-maps currently work

9 years agoDocs: fixing smaller help-lint nitpicks
Björn Lindqvist [Sun, 19 Oct 2014 12:05:06 +0000 (14:05 +0200)]
Docs: fixing smaller help-lint nitpicks

9 years agocompiler.cfg.*: more stub docs for cfg construction words
Björn Lindqvist [Sun, 19 Oct 2014 11:45:42 +0000 (13:45 +0200)]
compiler.cfg.*: more stub docs for cfg construction words

9 years agocompiler.codegen.*: help for resolve-label misplaced -- move it
Björn Lindqvist [Sun, 19 Oct 2014 11:41:45 +0000 (13:41 +0200)]
compiler.codegen.*: help for resolve-label misplaced -- move it

9 years agocpu.*: docs and tests for words in the assembler
Björn Lindqvist [Sun, 19 Oct 2014 11:40:41 +0000 (13:40 +0200)]
cpu.*: docs and tests for words in the assembler

9 years agocompiler,cpu: more docs
Björn Lindqvist [Tue, 14 Oct 2014 15:37:46 +0000 (17:37 +0200)]
compiler,cpu: more docs

9 years agocompiler.cfg.*: more docs, tests and a small refactoring of the
Björn Lindqvist [Tue, 14 Oct 2014 11:41:14 +0000 (13:41 +0200)]
compiler.cfg.*: more docs, tests and a small refactoring of the
admissible-registers word

9 years agostack-checker,compiler: docs for stack-checker and compiler words
Björn Lindqvist [Mon, 13 Oct 2014 06:33:27 +0000 (08:33 +0200)]
stack-checker,compiler: docs for stack-checker and compiler words

9 years agocpu.architecture: %save-context example
Björn Lindqvist [Mon, 25 Aug 2014 13:26:35 +0000 (15:26 +0200)]
cpu.architecture: %save-context example

9 years agocompiler.codegen.gc-maps: initial docs
Björn Lindqvist [Wed, 20 Aug 2014 19:15:00 +0000 (21:15 +0200)]
compiler.codegen.gc-maps: initial docs

9 years agocompiler.*: doc improvements
Björn Lindqvist [Wed, 20 Aug 2014 19:14:28 +0000 (21:14 +0200)]
compiler.*: doc improvements

9 years agoio.launcher.windows: Make unit tests show that process fails rather than
Doug Coleman [Thu, 16 Oct 2014 23:40:49 +0000 (16:40 -0700)]
io.launcher.windows: Make unit tests show that process fails rather than
reporting bogus error. Fixes #1152 (it wasn't really a bug, just bad
tests).

9 years agomagic.ffi: look for "magic" (works better on linux).
John Benediktsson [Thu, 16 Oct 2014 01:22:57 +0000 (18:22 -0700)]
magic.ffi: look for "magic" (works better on linux).

9 years agomagic: some minor fixes.
John Benediktsson [Wed, 15 Oct 2014 20:46:47 +0000 (13:46 -0700)]
magic: some minor fixes.

9 years agomagic: bindings for libmagic.
John Benediktsson [Wed, 15 Oct 2014 03:50:38 +0000 (20:50 -0700)]
magic: bindings for libmagic.

9 years agofuel.eval: wrap fuel-pprint in a without-limits so fuel output isn't truncated
Björn Lindqvist [Fri, 10 Oct 2014 17:45:13 +0000 (19:45 +0200)]
fuel.eval: wrap fuel-pprint in a without-limits so fuel output isn't truncated

9 years agoio.streams.peek: Add file position indicator api calls.
Doug Coleman [Fri, 10 Oct 2014 18:54:35 +0000 (11:54 -0700)]
io.streams.peek: Add file position indicator api calls.

9 years agoimages.loader.tests: restructure the tests because the gtk linux backend doesn't...
Björn Lindqvist [Fri, 10 Oct 2014 09:37:54 +0000 (11:37 +0200)]
images.loader.tests: restructure the tests because the gtk linux backend doesn't handle some formats that the windows backend does

9 years agoimages.loader.gtk: fix fall-through in case problem in image>GdkPixbuf
Björn Lindqvist [Fri, 10 Oct 2014 09:14:57 +0000 (11:14 +0200)]
images.loader.gtk: fix fall-through in case problem in image>GdkPixbuf

9 years agoprettyprint: @mrjbq7's funny word for . that doesn't limit the length of things.
Doug Coleman [Fri, 10 Oct 2014 01:50:38 +0000 (18:50 -0700)]
prettyprint: @mrjbq7's funny word for . that doesn't limit the length of things.

9 years agoimap-tests: Reset test folder.
Doug Coleman [Thu, 9 Oct 2014 22:40:41 +0000 (15:40 -0700)]
imap-tests: Reset test folder.

9 years agoimages.loader.gdiplus: implementation of the image>stream word for GDI+
Björn Lindqvist [Wed, 8 Oct 2014 14:38:51 +0000 (16:38 +0200)]
images.loader.gdiplus: implementation of the image>stream word for GDI+
for Windows

9 years agoimages: move rowstride to the images vocab because it will be used by
Björn Lindqvist [Tue, 7 Oct 2014 15:33:30 +0000 (17:33 +0200)]
images: move rowstride to the images vocab because it will be used by
gdi too

9 years agotools.deploy-tests: inc size for linux32
Doug Coleman [Thu, 9 Oct 2014 19:22:04 +0000 (12:22 -0700)]
tools.deploy-tests: inc size for linux32

9 years agostack-checker.alien: We just want to track callbacks to see if we leak them, but...
Doug Coleman [Thu, 9 Oct 2014 08:01:27 +0000 (01:01 -0700)]
stack-checker.alien: We just want to track callbacks to see if we leak them, but not actually dispose of them yet. Fixes #1151.

9 years agocalendar.format: change rfc3339 to always print microseconds.
John Benediktsson [Wed, 8 Oct 2014 22:36:08 +0000 (15:36 -0700)]
calendar.format: change rfc3339 to always print microseconds.

9 years agotools.deploy: Bump the build size. This is a comparatively sizeable bump
Doug Coleman [Wed, 8 Oct 2014 18:41:34 +0000 (11:41 -0700)]
tools.deploy: Bump the build size. This is a comparatively sizeable bump
compared to usual, but I really want clean builds.

9 years agosmtp: Make the test pass on Windows.
Doug Coleman [Wed, 8 Oct 2014 18:33:40 +0000 (11:33 -0700)]
smtp: Make the test pass on Windows.

9 years agodb.postgresql: This is not actually the case on my Mac.
Doug Coleman [Wed, 8 Oct 2014 17:12:16 +0000 (10:12 -0700)]
db.postgresql: This is not actually the case on my Mac.

9 years agodb.tester: postgresql template1 database name should be "template1"
Doug Coleman [Wed, 8 Oct 2014 17:11:04 +0000 (10:11 -0700)]
db.tester: postgresql template1 database name should be "template1"

9 years agotools.profiler.sampling: Kick it down a notch. Makes win32 tests finish!
Doug Coleman [Wed, 8 Oct 2014 06:56:12 +0000 (23:56 -0700)]
tools.profiler.sampling: Kick it down a notch. Makes win32 tests finish!

9 years agoimap: fix parse-store-mail parsing because it breaks on gmail
Björn Lindqvist [Tue, 7 Oct 2014 22:03:36 +0000 (00:03 +0200)]
imap: fix parse-store-mail parsing because it breaks on gmail

gmail responses include lines with the order of UID and FLAGS reversed
to indicate the previous flags for a mail. Just ignore those lines
because they aren't useful and non-standard.

9 years agoio.launcher.windows.test/env.factor: Fix script for new . behavior.
Doug Coleman [Tue, 7 Oct 2014 20:51:13 +0000 (13:51 -0700)]
io.launcher.windows.test/env.factor: Fix script for new . behavior.

9 years agotools.gc-decode: Just make sure that the gc-decode tests work. Any answer
Doug Coleman [Tue, 7 Oct 2014 20:13:58 +0000 (13:13 -0700)]
tools.gc-decode: Just make sure that the gc-decode tests work. Any answer
is ok.

9 years agocompression.snappy: Add support for snappy compression by Google. Could possibly...
Doug Coleman [Sat, 4 Oct 2014 05:56:21 +0000 (22:56 -0700)]
compression.snappy: Add support for snappy compression by Google. Could possibly be optimized?

9 years agographviz.render.windows: need to return with the whole path in case
Björn Lindqvist [Fri, 3 Oct 2014 11:40:39 +0000 (13:40 +0200)]
graphviz.render.windows: need to return with the whole path in case
graphivz directory is not in PATH

9 years agowebapps.mason.backend.tests: change db filename to mason-test.db to
Björn Lindqvist [Fri, 3 Oct 2014 10:53:16 +0000 (12:53 +0200)]
webapps.mason.backend.tests: change db filename to mason-test.db to
avoid interference from other tests

9 years agolists.lazy.tests: plugs file descriptor leak
Björn Lindqvist [Wed, 24 Sep 2014 20:14:46 +0000 (22:14 +0200)]
lists.lazy.tests: plugs file descriptor leak

9 years agodb.tester: with-disposal needed to release the db connections in the pool
Björn Lindqvist [Tue, 23 Sep 2014 22:47:26 +0000 (00:47 +0200)]
db.tester: with-disposal needed to release the db connections in the pool

9 years agosmtp.tests: send-mail should be called to get the mock-smtp-server to terminate
Björn Lindqvist [Tue, 23 Sep 2014 22:46:47 +0000 (00:46 +0200)]
smtp.tests: send-mail should be called to get the mock-smtp-server to terminate

9 years agoopenssl.libcrypto.tests: BIO_free should be called to release connections
Björn Lindqvist [Tue, 23 Sep 2014 22:45:46 +0000 (00:45 +0200)]
openssl.libcrypto.tests: BIO_free should be called to release connections

9 years agopython: docs for python-error
Björn Lindqvist [Thu, 2 Oct 2014 15:19:05 +0000 (17:19 +0200)]
python: docs for python-error

9 years agopython: tests and plug a reference leak in the exception throwing code
Björn Lindqvist [Thu, 2 Oct 2014 13:15:50 +0000 (15:15 +0200)]
python: tests and plug a reference leak in the exception throwing code

9 years agopython.throwing: new module to support capturing python tracebacks
Björn Lindqvist [Fri, 26 Sep 2014 18:04:33 +0000 (20:04 +0200)]
python.throwing: new module to support capturing python tracebacks

9 years agobuild-support: test failed on mac somehow, add a timeout so it fails faster.
Doug Coleman [Tue, 30 Sep 2014 19:42:25 +0000 (12:42 -0700)]
build-support: test failed on mac somehow, add a timeout so it fails faster.

9 years agoprettyprint.backend: use , not % in unparse-ch.
John Benediktsson [Tue, 30 Sep 2014 15:23:32 +0000 (08:23 -0700)]
prettyprint.backend: use , not % in unparse-ch.

9 years agodb.postgresql: ensure that 2 line error messages are handled 1123/head
Björn Lindqvist [Tue, 30 Sep 2014 12:53:22 +0000 (14:53 +0200)]
db.postgresql: ensure that 2 line error messages are handled

9 years agodb.tester: the postgresql-db variable shouldn't be mutated
Björn Lindqvist [Tue, 30 Sep 2014 12:51:07 +0000 (14:51 +0200)]
db.tester: the postgresql-db variable shouldn't be mutated

9 years agodb.postgresql: configurable test db setting
Björn Lindqvist [Sun, 17 Aug 2014 20:07:56 +0000 (22:07 +0200)]
db.postgresql: configurable test db setting

adds a \ postgresql-db global (analoguous to the \ imap-settings one)
which holds settings to a postgres db so that the tests have something
to test against.

9 years agocompiler.tests.alien: wrap all callback tests in special
Björn Lindqvist [Mon, 29 Sep 2014 12:26:08 +0000 (14:26 +0200)]
compiler.tests.alien: wrap all callback tests in special
unit-test-with-destructor blocks, that way they dont leak memory in the
callback heap

9 years agoalien,stack-checker.alien: move callback-destructor to the alien vocab
Björn Lindqvist [Sun, 21 Sep 2014 22:02:57 +0000 (00:02 +0200)]
alien,stack-checker.alien: move callback-destructor to the alien vocab

It can't be placed in stack-checker.alien because that vocab isn't
included in deployed images which lead to weird errors when the
destructors trigger.

9 years agostack-checker.alien: use free-callback as a destructor when creating
Björn Lindqvist [Wed, 17 Sep 2014 10:26:00 +0000 (12:26 +0200)]
stack-checker.alien: use free-callback as a destructor when creating
callbacks

+ tests proving it works. now in case you create temporary callbacks you
can enclose them in with-destructors and it will just work(tm).

9 years agoalien: a test and docs for free-callback
Björn Lindqvist [Tue, 16 Sep 2014 15:14:39 +0000 (17:14 +0200)]
alien: a test and docs for free-callback

9 years agoVM: new primitive free-callback which is able to free a callback
Björn Lindqvist [Mon, 15 Sep 2014 16:20:22 +0000 (18:20 +0200)]
VM: new primitive free-callback which is able to free a callback
previously allocated using <callback>

9 years agostack-checker.known-words: stack effect for <callback> is switched, it
Björn Lindqvist [Mon, 15 Sep 2014 10:35:55 +0000 (12:35 +0200)]
stack-checker.known-words: stack effect for <callback> is switched, it
should be ( word integer -- alien )

9 years agoVM: new primitive (callback-room) for querying the VM about memory usage
Björn Lindqvist [Wed, 10 Sep 2014 15:01:48 +0000 (17:01 +0200)]
VM: new primitive (callback-room) for querying the VM about memory usage

The word works exactly like (code-room) except it looks at the memory
usage in the callback heap instead of the code heap.

9 years agoVM: use a free_list_allocator for the callbacks, that way they can
Björn Lindqvist [Tue, 9 Sep 2014 15:56:56 +0000 (17:56 +0200)]
VM: use a free_list_allocator for the callbacks, that way they can
individually be freed

9 years agoVM: "formalize" the callback_heaps object allocation using a
Björn Lindqvist [Tue, 9 Sep 2014 12:45:01 +0000 (14:45 +0200)]
VM: "formalize" the callback_heaps object allocation using a
bump_allocator<code_block>

The advantage of doing it this way is that you can reuse the existing
each_object method to iterate all callbacks

9 years agoVM: try and recover with a kernel error from the callback heap running out
Björn Lindqvist [Tue, 9 Sep 2014 10:44:01 +0000 (12:44 +0200)]
VM: try and recover with a kernel error from the callback heap running out

9 years agofurnace.db: db-persistence needs a dispose word that delegates to its pool slot
Björn Lindqvist [Mon, 22 Sep 2014 21:47:48 +0000 (23:47 +0200)]
furnace.db: db-persistence needs a dispose word that delegates to its pool slot

tests in http.tests refactored using "with-words" so that they always
dispose any db-persistence instances they create.

9 years agomason.report: dos2unix.
John Benediktsson [Mon, 29 Sep 2014 03:31:39 +0000 (20:31 -0700)]
mason.report: dos2unix.

9 years agobenchmark.reverse-complement.tests,mason.report.tests: fix for the test
Björn Lindqvist [Fri, 26 Sep 2014 15:17:14 +0000 (17:17 +0200)]
benchmark.reverse-complement.tests,mason.report.tests: fix for the test
cases so they write to temp files instead of in resource:

9 years agolists: cleanup usings.
John Benediktsson [Mon, 29 Sep 2014 00:21:04 +0000 (17:21 -0700)]
lists: cleanup usings.

9 years agoRefactor >list to be a generic word
Iskander Sitdikov [Sun, 28 Sep 2014 22:20:50 +0000 (02:20 +0400)]
Refactor >list to be a generic word

9 years agotools.deploy.backend: with-variables need to be on the whole block 1144/head
Björn Lindqvist [Sun, 28 Sep 2014 20:53:56 +0000 (22:53 +0200)]
tools.deploy.backend: with-variables need to be on the whole block

9 years agotools.deploy.backend: rearranging the order of parameters in the deploy process,...
Björn Lindqvist [Sun, 28 Sep 2014 19:16:39 +0000 (21:16 +0200)]
tools.deploy.backend: rearranging the order of parameters in the deploy process, -run needs to be last

9 years agomath.statistics: Get smart about the geometric mean. Calculate it in logspace so...
Doug Coleman [Fri, 26 Sep 2014 20:33:04 +0000 (13:33 -0700)]
math.statistics: Get smart about the geometric mean. Calculate it in logspace so we can use addition of small logarithms and multiplication instead of the nth root of a giant product.

9 years agohelp.html: simplify (and separate) index generation.
John Benediktsson [Fri, 26 Sep 2014 04:30:36 +0000 (21:30 -0700)]
help.html: simplify (and separate) index generation.

9 years agohelp.html: make docs use same completions algorithm as listener.
John Benediktsson [Thu, 25 Sep 2014 19:37:46 +0000 (12:37 -0700)]
help.html: make docs use same completions algorithm as listener.

9 years agocommand-line: make script and -run= param behave similarly.
John Benediktsson [Thu, 25 Sep 2014 19:02:23 +0000 (12:02 -0700)]
command-line: make script and -run= param behave similarly.