]> gitweb.factorcode.org Git - factor.git/log
factor.git
10 years agoDocs: example for head? and subwords
Björn Lindqvist [Mon, 18 Nov 2013 16:13:51 +0000 (17:13 +0100)]
Docs: example for head? and subwords

10 years agoDocs: a few more examples for words that were missing them
Björn Lindqvist [Tue, 15 Oct 2013 11:27:49 +0000 (13:27 +0200)]
Docs: a few more examples for words that were missing them

10 years agoio.sockets: example for the with-socket function
Björn Lindqvist [Thu, 12 Sep 2013 13:46:01 +0000 (15:46 +0200)]
io.sockets: example for the with-socket function

10 years agoio.sockets: example for resolve-host
Björn Lindqvist [Tue, 10 Sep 2013 11:51:54 +0000 (13:51 +0200)]
io.sockets: example for resolve-host

10 years agourls.tests: unit tests for url-addr
Björn Lindqvist [Mon, 9 Sep 2013 14:05:17 +0000 (16:05 +0200)]
urls.tests: unit tests for url-addr

10 years agourls: example for secure url-addr
Björn Lindqvist [Mon, 9 Sep 2013 13:41:26 +0000 (15:41 +0200)]
urls: example for secure url-addr

10 years agoio: with-output-stream* example
Björn Lindqvist [Sun, 11 Aug 2013 22:26:06 +0000 (00:26 +0200)]
io: with-output-stream* example

10 years agoFUEL: fix factor-find-usings and use it in fuel-help--word-help so that fuel can...
Björn Lindqvist [Mon, 14 Apr 2014 12:49:34 +0000 (14:49 +0200)]
FUEL: fix factor-find-usings and use it in fuel-help--word-help so that fuel can eval code with the right vocabs imported

10 years agoFUEL: correct fuel-helps word lookup algorithm
Björn Lindqvist [Sun, 13 Apr 2014 14:34:47 +0000 (16:34 +0200)]
FUEL: correct fuel-helps word lookup algorithm

e.g if you lookup help for pop you should see the help page for
sequences:pop not persistent.deques.private:pop

10 years agohelp.lint.checks: check for disposable leaks and print more details when $values...
Björn Lindqvist [Mon, 14 Apr 2014 00:02:26 +0000 (02:02 +0200)]
help.lint.checks: check for disposable leaks and print more details when $values are wrong

10 years agoio.sockets.secure.openssl: Check error code in unit test.
Doug Coleman [Tue, 8 Apr 2014 19:08:58 +0000 (12:08 -0700)]
io.sockets.secure.openssl: Check error code in unit test.

10 years agoimap: Add some combinators, fix up some docs, add docs, fix up unit tests.
Doug Coleman [Sat, 5 Apr 2014 22:51:41 +0000 (15:51 -0700)]
imap: Add some combinators, fix up some docs, add docs, fix up unit tests.

10 years agolibc: fix tests using.
John Benediktsson [Fri, 4 Apr 2014 16:29:42 +0000 (09:29 -0700)]
libc: fix tests using.

10 years agolibc: test "1 strerror" since zero gives different output on different platforms.
John Benediktsson [Fri, 4 Apr 2014 16:28:39 +0000 (09:28 -0700)]
libc: test "1 strerror" since zero gives different output on different platforms.

10 years agomore libc fixes.
John Benediktsson [Fri, 4 Apr 2014 15:03:46 +0000 (08:03 -0700)]
more libc fixes.

10 years agoio: need to use libc for OS X?
John Benediktsson [Fri, 4 Apr 2014 04:43:37 +0000 (21:43 -0700)]
io: need to use libc for OS X?

10 years agoio.sockets.secure.openssl: Fix using list.
Doug Coleman [Thu, 3 Apr 2014 04:11:52 +0000 (23:11 -0500)]
io.sockets.secure.openssl: Fix using list.

10 years agoio.sockets.windows: wrap ioctlsocket and related constants to enable
Björn Lindqvist [Thu, 27 Mar 2014 18:38:08 +0000 (19:38 +0100)]
io.sockets.windows: wrap ioctlsocket and related constants to enable
setting sockets in non-blocking mode

10 years agowindows.winsock: fix the definition of SOCKET_ERROR and unit tests that
Björn Lindqvist [Thu, 27 Mar 2014 17:47:18 +0000 (18:47 +0100)]
windows.winsock: fix the definition of SOCKET_ERROR and unit tests that
verifies its correctness

10 years agowindows.winsock: use the windows api types instead of int and void*
Björn Lindqvist [Thu, 27 Mar 2014 17:31:20 +0000 (18:31 +0100)]
windows.winsock: use the windows api types instead of int and void*
where applicable

10 years agoMerge:
Björn Lindqvist [Wed, 2 Apr 2014 15:44:19 +0000 (17:44 +0200)]
Merge:
io.sockets.secure.windows: use non-blocking sockets to prevent
SSL_connect from blocking

On Windows, SSL_connect may hang forever if the server doesn't send any
data. To counteract that we temporarily set the socket non-blocking and
then call select in the wait-for-fd method.

Conflicts:
basis/io/sockets/secure/openssl/openssl-tests.factor

10 years agoio.sockets.secure.openssl: do-ssl-connect needs to call wait-for-fd
Björn Lindqvist [Sat, 29 Mar 2014 19:11:53 +0000 (20:11 +0100)]
io.sockets.secure.openssl: do-ssl-connect needs to call wait-for-fd

10 years agolibc: fix vocab definition of platform dependent parts of libc
Björn Lindqvist [Wed, 23 Oct 2013 13:45:45 +0000 (15:45 +0200)]
libc: fix vocab definition of platform dependent parts of libc

10 years agolibc.*: add platform files
Björn Lindqvist [Tue, 22 Oct 2013 17:03:40 +0000 (19:03 +0200)]
libc.*: add platform files

10 years agolibc: several vocabs now need to depend on libc
Björn Lindqvist [Mon, 21 Oct 2013 20:58:33 +0000 (22:58 +0200)]
libc: several vocabs now need to depend on libc

10 years agoio.files: make wait-for-fd generic and dispatch depending on backend
Björn Lindqvist [Mon, 21 Oct 2013 16:27:29 +0000 (18:27 +0200)]
io.files: make wait-for-fd generic and dispatch depending on backend

do-ssl-accept need to call wait-for-fd so it needs to be generic. On
windows it's a noop but on unix it will wait for the fd.

10 years agoio.sockets.secure.*: unification of lots of platform-independent code
Björn Lindqvist [Thu, 17 Oct 2013 16:14:50 +0000 (18:14 +0200)]
io.sockets.secure.*: unification of lots of platform-independent code

Code that is duplicated in the backends moved to
io.sockets.secure.openssl. The wait-for-fd verb used by do-ssl-accept
doesn't have any equivalent on Windows so that needs to be
implemented.

10 years agolibc.*, unix.*: move constants and functions from the unix namespace to libc
Björn Lindqvist [Thu, 17 Oct 2013 15:05:26 +0000 (17:05 +0200)]
libc.*, unix.*: move constants and functions from the unix namespace to libc

The E* errno and SIG* constants are defined on Windows too, so they
should be in the libc vocab which is available there. They will be
used for SSL error handling.

10 years agoio.sockets.secure.windows: reading and writing from ssl sockets
Björn Lindqvist [Wed, 16 Oct 2013 15:34:31 +0000 (17:34 +0200)]
io.sockets.secure.windows: reading and writing from ssl sockets

Unified the drain and refill generics and put their definition in
io.files. They are now used by both the windows and unix ssl backend
for io. Windows ssl kind of works now, but the error cases are not
implemented correctly.

10 years agoio.files.windows: new generic words drain and refill, like in io.backend.unix
Björn Lindqvist [Wed, 16 Oct 2013 12:11:31 +0000 (14:11 +0200)]
io.files.windows: new generic words drain and refill, like in io.backend.unix

The purpose of these words is to abstract out the pushing of the bytes
to the ports so that you can insert the ssl layer in between. Exactly
like how drain and refill are specialized on ssl-handle in
io.sockets.secure.unix.

10 years agoio.sockets.secure: new hook variable ssl-certificate-verification-supported?
Björn Lindqvist [Mon, 14 Oct 2013 12:45:33 +0000 (14:45 +0200)]
io.sockets.secure: new hook variable ssl-certificate-verification-supported?

t if the backend is able to verify certificates, f
otherwise. Currently certificate validation isn't implemented on Windows

10 years agoimages.testing: fix help-lint warnings.
John Benediktsson [Fri, 14 Mar 2014 22:10:19 +0000 (15:10 -0700)]
images.testing: fix help-lint warnings.

10 years agoimages.loader: simplify registrations.
John Benediktsson [Fri, 14 Mar 2014 16:17:13 +0000 (09:17 -0700)]
images.loader: simplify registrations.

10 years agoimages: minor cleanup.
John Benediktsson [Fri, 14 Mar 2014 15:26:05 +0000 (08:26 -0700)]
images: minor cleanup.

10 years agoimages.testing: change tests to require and use image-class.
John Benediktsson [Fri, 14 Mar 2014 15:00:42 +0000 (08:00 -0700)]
images.testing: change tests to require and use image-class.

This handles the case where you are testing image-classes that are not
registered with the images.loader.

10 years agoimages.loader: optionally register "non-system" image classes.
John Benediktsson [Fri, 14 Mar 2014 14:31:27 +0000 (07:31 -0700)]
images.loader: optionally register "non-system" image classes.

10 years agoRevert "extra.images: call register-image-class before testing, otherwise the wrong...
John Benediktsson [Fri, 14 Mar 2014 14:30:35 +0000 (07:30 -0700)]
Revert "extra.images: call register-image-class before testing, otherwise the wrong backend might be ran"

This reverts commit 775ca10e1e7330a2a56a10b972a2605a39d1f6e1.

10 years agoextra.images: call register-image-class before testing, otherwise the wrong backend...
Björn Lindqvist [Sun, 9 Mar 2014 12:09:17 +0000 (13:09 +0100)]
extra.images: call register-image-class before testing, otherwise the wrong backend might be ran

10 years agoimages.*: fix all image>stream words in extra so that they work with the added parameter
Björn Lindqvist [Sun, 9 Mar 2014 12:08:23 +0000 (13:08 +0100)]
images.*: fix all image>stream words in extra so that they work with the added parameter

10 years agoimages.loader: docs for save-graphic-image
Björn Lindqvist [Sat, 8 Mar 2014 12:41:07 +0000 (13:41 +0100)]
images.loader: docs for save-graphic-image

10 years agoimages.loader: support for saving images on the gtk-image backend
Björn Lindqvist [Fri, 7 Mar 2014 22:42:51 +0000 (23:42 +0100)]
images.loader: support for saving images on the gtk-image backend

10 years agohttp.client: add starred versions that do not check response code for success.
John Benediktsson [Thu, 13 Mar 2014 19:26:35 +0000 (12:26 -0700)]
http.client: add starred versions that do not check response code for success.

10 years agoimap: Better errors when not configured.
Doug Coleman [Thu, 13 Mar 2014 08:24:28 +0000 (03:24 -0500)]
imap: Better errors when not configured.

10 years agooauth: Fix tests. Twitter API tolerates the extra ``/`` at the end of ``twitter.com...
Doug Coleman [Thu, 13 Mar 2014 08:23:27 +0000 (03:23 -0500)]
oauth: Fix tests. Twitter API tolerates the extra ``/`` at the end of ``twitter.com``, so leave it in.

10 years agofix some help-lint errors.
John Benediktsson [Thu, 13 Mar 2014 03:08:15 +0000 (20:08 -0700)]
fix some help-lint errors.

10 years agopython.syntax: fix tests when run first.
John Benediktsson [Thu, 13 Mar 2014 03:01:11 +0000 (20:01 -0700)]
python.syntax: fix tests when run first.

10 years agohttp.client: fix duplicate using.
John Benediktsson [Thu, 13 Mar 2014 02:51:50 +0000 (19:51 -0700)]
http.client: fix duplicate using.

10 years agohttp.client: few more fixes.
John Benediktsson [Thu, 13 Mar 2014 02:49:58 +0000 (19:49 -0700)]
http.client: few more fixes.

10 years agohttp.client: remove unused word.
John Benediktsson [Thu, 13 Mar 2014 02:38:58 +0000 (19:38 -0700)]
http.client: remove unused word.

10 years agohttp.client: remove http-get* and its friends, change http-request* and with-http...
John Benediktsson [Thu, 13 Mar 2014 02:29:35 +0000 (19:29 -0700)]
http.client: remove http-get* and its friends, change http-request* and with-http-request* to not check response codes.

10 years agogdbm.ffi: Use alien library finder except on Windows until we can test if it works...
Doug Coleman [Wed, 12 Mar 2014 20:28:32 +0000 (20:28 +0000)]
gdbm.ffi: Use alien library finder except on Windows until we can test if it works there.

10 years agosequences: faster interleave.
John Benediktsson [Wed, 12 Mar 2014 19:51:32 +0000 (12:51 -0700)]
sequences: faster interleave.

10 years agologging.server: add support for changing the logging root temporarily.
John Benediktsson [Wed, 12 Mar 2014 19:41:57 +0000 (12:41 -0700)]
logging.server: add support for changing the logging root temporarily.

10 years agooauth needs this, and this needed protocol-port fixes.
John Benediktsson [Wed, 12 Mar 2014 14:43:40 +0000 (07:43 -0700)]
oauth needs this, and this needed protocol-port fixes.
Revert "Revert "urls: Allow URLs of the form //foo.com, which take on the protocol of the URL they derive from.""

This reverts commit 76fa8b7a29f3738f44230c473b7edf841f1de7c3.

10 years agoio.sockets: change protocol-port to handle ``f`` on all platforms.
John Benediktsson [Wed, 12 Mar 2014 14:24:40 +0000 (07:24 -0700)]
io.sockets: change protocol-port to handle ``f`` on all platforms.

10 years agoRevert "sequences: require integers for slice and repetition."
John Benediktsson [Wed, 12 Mar 2014 14:18:12 +0000 (07:18 -0700)]
Revert "sequences: require integers for slice and repetition."

This reverts commit 5e87cdb3a9b5885c6648ffaf6e5e9a2edc5fd200.

10 years agopython.syntax: fix py-import.
John Benediktsson [Wed, 12 Mar 2014 14:16:05 +0000 (07:16 -0700)]
python.syntax: fix py-import.

10 years agoLeave oauth alone. Leave her alone!!!
Doug Coleman [Wed, 12 Mar 2014 05:58:04 +0000 (00:58 -0500)]
Leave oauth alone. Leave her alone!!!
Revert "Revert "oauth: Generate the oauth signature base string the way twitter does it.""

This reverts commit 288156beb6bd09e4d00de03d0be6d41acbd30419.

10 years agoRevert "oauth: Generate the oauth signature base string the way twitter does it."
John Benediktsson [Wed, 12 Mar 2014 03:47:08 +0000 (20:47 -0700)]
Revert "oauth: Generate the oauth signature base string the way twitter does it."

This reverts commit e633caac716d58e7f94bf29b171e096df1c7b395.

10 years agoRevert "urls: Allow URLs of the form //foo.com, which take on the protocol of the...
John Benediktsson [Wed, 12 Mar 2014 03:20:23 +0000 (20:20 -0700)]
Revert "urls: Allow URLs of the form //foo.com, which take on the protocol of the URL they derive from."

This reverts commit e6598fc22fd91309288fbe9840f7872d8fd84438.

10 years agotools.coverage: Add a ``test-coverage-recursively`` word. Not all vocabs can be teste...
Doug Coleman [Wed, 12 Mar 2014 02:20:34 +0000 (21:20 -0500)]
tools.coverage: Add a ``test-coverage-recursively`` word. Not all vocabs can be tested for unit test coverage, so don't make this the default. Fixes #1013.

10 years agoio.standard-paths.unix: fix tests on arch linux.
John Benediktsson [Tue, 11 Mar 2014 18:37:00 +0000 (11:37 -0700)]
io.standard-paths.unix: fix tests on arch linux.

10 years agoio.streams.byte-array: some cleanup.
John Benediktsson [Tue, 11 Mar 2014 18:27:50 +0000 (11:27 -0700)]
io.streams.byte-array: some cleanup.

10 years agoio.streams.byte-array: add test of empty byte array.
John Benediktsson [Tue, 11 Mar 2014 18:26:05 +0000 (11:26 -0700)]
io.streams.byte-array: add test of empty byte array.

10 years agoio.streams.string: cleanup tests.
John Benediktsson [Tue, 11 Mar 2014 18:25:53 +0000 (11:25 -0700)]
io.streams.string: cleanup tests.

10 years agologgin: some cleanup, particularly of write-message.
John Benediktsson [Tue, 11 Mar 2014 18:22:24 +0000 (11:22 -0700)]
loggin: some cleanup, particularly of write-message.

10 years agoio.streams.sequence: support slices (fix io.streams.peek test failure).
John Benediktsson [Tue, 11 Mar 2014 02:56:42 +0000 (19:56 -0700)]
io.streams.sequence: support slices (fix io.streams.peek test failure).

10 years agoio.streams: some more test cases for sequence-read-until.
John Benediktsson [Mon, 10 Mar 2014 22:29:11 +0000 (15:29 -0700)]
io.streams: some more test cases for sequence-read-until.

10 years agoio.streams.sequence: make sure not to return ``f``.
John Benediktsson [Mon, 10 Mar 2014 22:10:29 +0000 (15:10 -0700)]
io.streams.sequence: make sure not to return ``f``.

10 years agoRevert "Revert "io.encodings: string>byte-array-fast can use (byte-array).""
John Benediktsson [Fri, 7 Mar 2014 19:19:45 +0000 (11:19 -0800)]
Revert "Revert "io.encodings: string>byte-array-fast can use (byte-array).""

This reverts commit af6975593756e353654b67b1bf1db7dd06f8c114.

10 years agoRevert "Revert "alien.data: <ref> doesn't need to zero memory.""
John Benediktsson [Fri, 7 Mar 2014 19:19:36 +0000 (11:19 -0800)]
Revert "Revert "alien.data: <ref> doesn't need to zero memory.""

This reverts commit 01142121511d4b9338c84286d4efdd3c8d5a4665.

10 years agoRevert "io.encodings: string>byte-array-fast can use (byte-array)."
John Benediktsson [Fri, 7 Mar 2014 17:46:19 +0000 (09:46 -0800)]
Revert "io.encodings: string>byte-array-fast can use (byte-array)."

This reverts commit f9881290cdb3238365f0bc5d126325236b4c2123.

10 years agoRevert "alien.data: <ref> doesn't need to zero memory."
John Benediktsson [Fri, 7 Mar 2014 17:46:13 +0000 (09:46 -0800)]
Revert "alien.data: <ref> doesn't need to zero memory."

This reverts commit f9a714b48fc1700431b61f7f1968893d2b2b3ee7.

10 years agoio.sockets.secure.openssl: guard against SSL_get_peer_certificate returning null
Björn Lindqvist [Thu, 6 Mar 2014 17:41:37 +0000 (18:41 +0100)]
io.sockets.secure.openssl: guard against SSL_get_peer_certificate returning null

10 years agopython: fix help-lint warnings.
John Benediktsson [Tue, 4 Mar 2014 19:06:55 +0000 (11:06 -0800)]
python: fix help-lint warnings.

10 years agochecksums.sha: minor speedup.
John Benediktsson [Tue, 4 Mar 2014 18:05:03 +0000 (10:05 -0800)]
checksums.sha: minor speedup.

10 years agopython: rename >factor to py>, rename import to py-import, minor stuff.
John Benediktsson [Tue, 4 Mar 2014 17:39:02 +0000 (09:39 -0800)]
python: rename >factor to py>, rename import to py-import, minor stuff.

10 years agopython: set PYTHONHOME
Björn Lindqvist [Fri, 7 Feb 2014 16:46:37 +0000 (17:46 +0100)]
python: set PYTHONHOME

10 years agopython: fix path to test file
Björn Lindqvist [Fri, 7 Feb 2014 16:10:10 +0000 (17:10 +0100)]
python: fix path to test file

10 years agopython: improved docs, support for kwargs to methods and sets sys.argv
Björn Lindqvist [Mon, 3 Feb 2014 10:28:43 +0000 (11:28 +0100)]
python: improved docs, support for kwargs to methods and sets sys.argv

10 years agopython: support for kwarg functions
Björn Lindqvist [Fri, 31 Jan 2014 16:00:26 +0000 (17:00 +0100)]
python: support for kwarg functions

10 years agopython: vocab split into subvocabs python.errors and python.objects for
Björn Lindqvist [Fri, 31 Jan 2014 14:59:04 +0000 (15:59 +0100)]
python: vocab split into subvocabs python.errors and python.objects for
easier maintenance

10 years agopython: More documentation, privatization of words in python.syntax
Björn Lindqvist [Fri, 31 Jan 2014 11:18:12 +0000 (12:18 +0100)]
python: More documentation, privatization of words in python.syntax

10 years agopython: metadata files and a first stab at documentation
Björn Lindqvist [Thu, 30 Jan 2014 20:29:21 +0000 (21:29 +0100)]
python: metadata files and a first stab at documentation

10 years agopython: word for converting python lists to vectors
Björn Lindqvist [Thu, 30 Jan 2014 19:46:55 +0000 (20:46 +0100)]
python: word for converting python lists to vectors

10 years agopython: setup serialization between vectors and python lists
Björn Lindqvist [Thu, 30 Jan 2014 16:24:58 +0000 (17:24 +0100)]
python: setup serialization between vectors and python lists

10 years agopython: setattr wrapping
Björn Lindqvist [Thu, 30 Jan 2014 14:06:30 +0000 (15:06 +0100)]
python: setattr wrapping

10 years agopython: much improved syntax, $ sigil used to get object values
Björn Lindqvist [Wed, 29 Jan 2014 17:19:07 +0000 (18:19 +0100)]
python: much improved syntax, $ sigil used to get object values

10 years agopython: syntax for methods and ditching of the auto-marshalling words, the syntax...
Björn Lindqvist [Tue, 28 Jan 2014 23:31:43 +0000 (00:31 +0100)]
python: syntax for methods and ditching of the auto-marshalling words, the syntax didn't turn out great

10 years agopython: compressed using lines
Björn Lindqvist [Tue, 28 Jan 2014 18:45:31 +0000 (19:45 +0100)]
python: compressed using lines

10 years agopython.syntax: vocab that makes python functions work like factor words
Björn Lindqvist [Tue, 28 Jan 2014 18:19:57 +0000 (19:19 +0100)]
python.syntax: vocab that makes python functions work like factor words

10 years agopython: the os module is considerably smaller on windows
Björn Lindqvist [Tue, 28 Jan 2014 11:14:35 +0000 (12:14 +0100)]
python: the os module is considerably smaller on windows

10 years agopython: several more builtin functions and refcounting fixes
Björn Lindqvist [Mon, 27 Jan 2014 22:49:00 +0000 (23:49 +0100)]
python: several more builtin functions and refcounting fixes

10 years agopython: more correct reference counting, handles ucs2 and ucs4, stdlib module wrappers
Björn Lindqvist [Mon, 27 Jan 2014 20:59:59 +0000 (21:59 +0100)]
python: more correct reference counting, handles ucs2 and ucs4, stdlib module wrappers

10 years agopython: ucs2 and ucs4
Björn Lindqvist [Tue, 21 Jan 2014 17:10:24 +0000 (18:10 +0100)]
python: ucs2 and ucs4

10 years agopython: function needed to make both ucs2 and ucs4 python builds work
Björn Lindqvist [Mon, 20 Jan 2014 18:24:22 +0000 (19:24 +0100)]
python: function needed to make both ucs2 and ucs4 python builds work

10 years agopython: windows compat
Björn Lindqvist [Mon, 20 Jan 2014 17:41:55 +0000 (18:41 +0100)]
python: windows compat

10 years agopython: a thin ffi to Python, everything mostly works except for the cursed reference...
Björn Lindqvist [Sun, 19 Jan 2014 22:45:25 +0000 (23:45 +0100)]
python: a thin ffi to Python, everything mostly works except for the cursed reference counting

10 years agoui.backend.gtk: connect ui signals before realizing the widget
Björn Lindqvist [Mon, 3 Mar 2014 00:27:31 +0000 (01:27 +0100)]
ui.backend.gtk: connect ui signals before realizing the widget

gtk_widget_add_events() needs to be called before gtk_widget_realize()
otherwise oxygen-gtk will steal all lmb clicks

10 years agoio.encodings: string>byte-array-fast can use (byte-array).
John Benediktsson [Fri, 28 Feb 2014 05:10:05 +0000 (21:10 -0800)]
io.encodings: string>byte-array-fast can use (byte-array).