]>
gitweb.factorcode.org Git - factor.git/log
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
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
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
Björn Lindqvist [Wed, 23 Oct 2013 13:45:45 +0000 (15:45 +0200)]
libc: fix vocab definition of platform dependent parts of libc
Björn Lindqvist [Tue, 22 Oct 2013 17:03:40 +0000 (19:03 +0200)]
libc.*: add platform files
Björn Lindqvist [Mon, 21 Oct 2013 20:58:33 +0000 (22:58 +0200)]
libc: several vocabs now need to depend on libc
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.
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.
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.
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.
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.
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
John Benediktsson [Fri, 14 Mar 2014 22:10:19 +0000 (15:10 -0700)]
images.testing: fix help-lint warnings.
John Benediktsson [Fri, 14 Mar 2014 16:17:13 +0000 (09:17 -0700)]
images.loader: simplify registrations.
John Benediktsson [Fri, 14 Mar 2014 15:26:05 +0000 (08:26 -0700)]
images: minor cleanup.
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.
John Benediktsson [Fri, 14 Mar 2014 14:31:27 +0000 (07:31 -0700)]
images.loader: optionally register "non-system" image classes.
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 .
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
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
Björn Lindqvist [Sat, 8 Mar 2014 12:41:07 +0000 (13:41 +0100)]
images.loader: docs for save-graphic-image
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
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.
Doug Coleman [Thu, 13 Mar 2014 08:24:28 +0000 (03:24 -0500)]
imap: Better errors when not configured.
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.
John Benediktsson [Thu, 13 Mar 2014 03:08:15 +0000 (20:08 -0700)]
fix some help-lint errors.
John Benediktsson [Thu, 13 Mar 2014 03:01:11 +0000 (20:01 -0700)]
python.syntax: fix tests when run first.
John Benediktsson [Thu, 13 Mar 2014 02:51:50 +0000 (19:51 -0700)]
http.client: fix duplicate using.
John Benediktsson [Thu, 13 Mar 2014 02:49:58 +0000 (19:49 -0700)]
http.client: few more fixes.
John Benediktsson [Thu, 13 Mar 2014 02:38:58 +0000 (19:38 -0700)]
http.client: remove unused word.
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.
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.
John Benediktsson [Wed, 12 Mar 2014 19:51:32 +0000 (12:51 -0700)]
sequences: faster interleave.
John Benediktsson [Wed, 12 Mar 2014 19:41:57 +0000 (12:41 -0700)]
logging.server: add support for changing the logging root temporarily.
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 .
John Benediktsson [Wed, 12 Mar 2014 14:24:40 +0000 (07:24 -0700)]
io.sockets: change protocol-port to handle ``f`` on all platforms.
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 .
John Benediktsson [Wed, 12 Mar 2014 14:16:05 +0000 (07:16 -0700)]
python.syntax: fix py-import.
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 .
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 .
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 .
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.
John Benediktsson [Tue, 11 Mar 2014 18:37:00 +0000 (11:37 -0700)]
io.standard-paths.unix: fix tests on arch linux.
John Benediktsson [Tue, 11 Mar 2014 18:27:50 +0000 (11:27 -0700)]
io.streams.byte-array: some cleanup.
John Benediktsson [Tue, 11 Mar 2014 18:26:05 +0000 (11:26 -0700)]
io.streams.byte-array: add test of empty byte array.
John Benediktsson [Tue, 11 Mar 2014 18:25:53 +0000 (11:25 -0700)]
io.streams.string: cleanup tests.
John Benediktsson [Tue, 11 Mar 2014 18:22:24 +0000 (11:22 -0700)]
loggin: some cleanup, particularly of write-message.
John Benediktsson [Tue, 11 Mar 2014 02:56:42 +0000 (19:56 -0700)]
io.streams.sequence: support slices (fix io.streams.peek test failure).
John Benediktsson [Mon, 10 Mar 2014 22:29:11 +0000 (15:29 -0700)]
io.streams: some more test cases for sequence-read-until.
John Benediktsson [Mon, 10 Mar 2014 22:10:29 +0000 (15:10 -0700)]
io.streams.sequence: make sure not to return ``f``.
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 .
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 .
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 .
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 .
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
John Benediktsson [Tue, 4 Mar 2014 19:06:55 +0000 (11:06 -0800)]
python: fix help-lint warnings.
John Benediktsson [Tue, 4 Mar 2014 18:05:03 +0000 (10:05 -0800)]
checksums.sha: minor speedup.
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.
Björn Lindqvist [Fri, 7 Feb 2014 16:46:37 +0000 (17:46 +0100)]
python: set PYTHONHOME
Björn Lindqvist [Fri, 7 Feb 2014 16:10:10 +0000 (17:10 +0100)]
python: fix path to test file
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
Björn Lindqvist [Fri, 31 Jan 2014 16:00:26 +0000 (17:00 +0100)]
python: support for kwarg functions
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
Björn Lindqvist [Fri, 31 Jan 2014 11:18:12 +0000 (12:18 +0100)]
python: More documentation, privatization of words in python.syntax
Björn Lindqvist [Thu, 30 Jan 2014 20:29:21 +0000 (21:29 +0100)]
python: metadata files and a first stab at documentation
Björn Lindqvist [Thu, 30 Jan 2014 19:46:55 +0000 (20:46 +0100)]
python: word for converting python lists to vectors
Björn Lindqvist [Thu, 30 Jan 2014 16:24:58 +0000 (17:24 +0100)]
python: setup serialization between vectors and python lists
Björn Lindqvist [Thu, 30 Jan 2014 14:06:30 +0000 (15:06 +0100)]
python: setattr wrapping
Björn Lindqvist [Wed, 29 Jan 2014 17:19:07 +0000 (18:19 +0100)]
python: much improved syntax, $ sigil used to get object values
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
Björn Lindqvist [Tue, 28 Jan 2014 18:45:31 +0000 (19:45 +0100)]
python: compressed using lines
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
Björn Lindqvist [Tue, 28 Jan 2014 11:14:35 +0000 (12:14 +0100)]
python: the os module is considerably smaller on windows
Björn Lindqvist [Mon, 27 Jan 2014 22:49:00 +0000 (23:49 +0100)]
python: several more builtin functions and refcounting fixes
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
Björn Lindqvist [Tue, 21 Jan 2014 17:10:24 +0000 (18:10 +0100)]
python: ucs2 and ucs4
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
Björn Lindqvist [Mon, 20 Jan 2014 17:41:55 +0000 (18:41 +0100)]
python: windows compat
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
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
John Benediktsson [Fri, 28 Feb 2014 05:10:05 +0000 (21:10 -0800)]
io.encodings: string>byte-array-fast can use (byte-array).
John Benediktsson [Fri, 28 Feb 2014 04:53:54 +0000 (20:53 -0800)]
alien.data: <ref> doesn't need to zero memory.
John Benediktsson [Thu, 27 Feb 2014 23:26:52 +0000 (15:26 -0800)]
calendar.unix: simplify current-timeval.
John Benediktsson [Thu, 27 Feb 2014 23:26:38 +0000 (15:26 -0800)]
io.files.info.unix.linux: cleanup stack effects.
John Benediktsson [Thu, 27 Feb 2014 22:31:25 +0000 (14:31 -0800)]
sequences.extras: adding replicate-into.
John Benediktsson [Thu, 27 Feb 2014 22:03:00 +0000 (14:03 -0800)]
checksums.internet: simplify.
John Benediktsson [Thu, 27 Feb 2014 21:59:34 +0000 (13:59 -0800)]
checksums.xxhash: cleanup, faster.
John Benediktsson [Tue, 25 Feb 2014 23:59:51 +0000 (15:59 -0800)]
random: simplify using bitwise operations.
John Benediktsson [Tue, 25 Feb 2014 23:59:43 +0000 (15:59 -0800)]
checksums.md5: remove extra "32 bits".
John Benediktsson [Tue, 25 Feb 2014 23:56:16 +0000 (15:56 -0800)]
checksums.murmur: remove code duplication.
John Benediktsson [Tue, 25 Feb 2014 23:55:32 +0000 (15:55 -0800)]
checksums.xxhash: adding xxHash checksum implementation.
John Benediktsson [Tue, 25 Feb 2014 18:13:05 +0000 (10:13 -0800)]
io.streams.sequence: use member? to support bignum separators.
John Benediktsson [Tue, 25 Feb 2014 18:04:08 +0000 (10:04 -0800)]
io: minor cleanups.
John Benediktsson [Tue, 25 Feb 2014 17:32:47 +0000 (09:32 -0800)]
io.streams.sequence: cleanup by moving type checks.
John Benediktsson [Tue, 25 Feb 2014 16:23:32 +0000 (08:23 -0800)]
io.streams.byte-array: faster with-byte-writer.
John Benediktsson [Tue, 25 Feb 2014 15:56:28 +0000 (07:56 -0800)]
io.streams.sequence: rename (stream-seek) to sequence-seek.
John Benediktsson [Tue, 25 Feb 2014 15:52:07 +0000 (07:52 -0800)]
io.streams.sequence: bounds check sequence-read-until.
John Benediktsson [Tue, 25 Feb 2014 05:47:49 +0000 (21:47 -0800)]
io.streams.string: faster M\ string-reader stream-readln.
John Benediktsson [Tue, 25 Feb 2014 05:40:38 +0000 (21:40 -0800)]
io.streams.byte-array: faster M\ byte-reader stream-read-unsafe.
John Benediktsson [Mon, 24 Feb 2014 21:48:11 +0000 (13:48 -0800)]
pack: add some tests for expand-pack-format.