]> gitweb.factorcode.org Git - factor.git/log
factor.git
9 years agoformatting: adding octal and binary format directives.
John Benediktsson [Tue, 5 Aug 2014 16:39:50 +0000 (09:39 -0700)]
formatting: adding octal and binary format directives.

9 years agoFUEL: remove empty (nil) lists of parsed words
Björn Lindqvist [Wed, 23 Jul 2014 12:24:11 +0000 (14:24 +0200)]
FUEL: remove empty (nil) lists of parsed words

FUEL interprets nil as f, therefore they need to be filtered out to
prevent empty lists of words from appearing as an "f" character.

9 years agoVM: moves the code that clears the roots to the same function that
Björn Lindqvist [Wed, 23 Jul 2014 09:07:49 +0000 (11:07 +0200)]
VM: moves the code that clears the roots to the same function that
corrupts the stack

9 years agocurl: slight refactor.
John Benediktsson [Tue, 22 Jul 2014 15:40:06 +0000 (08:40 -0700)]
curl: slight refactor.

9 years agokernel: fix help-lint warning for 2with.
John Benediktsson [Tue, 22 Jul 2014 14:47:28 +0000 (07:47 -0700)]
kernel: fix help-lint warning for 2with.

9 years agokernel: new combinator 2with = with with
Björn Lindqvist [Tue, 22 Jul 2014 13:09:26 +0000 (15:09 +0200)]
kernel: new combinator 2with = with with

9 years agocompiler.codegen-docs: Make example clickable.
Doug Coleman [Fri, 18 Jul 2014 18:37:38 +0000 (13:37 -0500)]
compiler.codegen-docs: Make example clickable.

9 years agocompiler.cfg.instructions: Messed up a patch. oops.
Doug Coleman [Thu, 17 Jul 2014 23:19:10 +0000 (18:19 -0500)]
compiler.cfg.instructions: Messed up a patch. oops.

9 years agocompiler.cfg.instructions: Fix using.
Doug Coleman [Thu, 17 Jul 2014 20:48:41 +0000 (15:48 -0500)]
compiler.cfg.instructions: Fix using.

9 years agocompiler.cfg: Rename doc -> docs in filenames so the docs load.
Doug Coleman [Thu, 17 Jul 2014 20:31:24 +0000 (15:31 -0500)]
compiler.cfg: Rename doc -> docs in filenames so the docs load.

9 years agoos-unix.hpp: Use the old strerror_r insetad of the newfangled one.
Doug Coleman [Thu, 17 Jul 2014 00:08:02 +0000 (17:08 -0700)]
os-unix.hpp: Use the old strerror_r insetad of the newfangled one.

9 years agoVM: data_roots must be empty before unwind_native_frames is called because it doesn...
Björn Lindqvist [Sun, 22 Jun 2014 16:14:36 +0000 (18:14 +0200)]
VM: data_roots must be empty before unwind_native_frames is called because it doesn't return

9 years agoVM: clear the local roots before garbage collection in general_error()
Björn Lindqvist [Sat, 21 Jun 2014 23:24:43 +0000 (01:24 +0200)]
VM: clear the local roots before garbage collection in general_error()

If we got here from memory_protection_error(), then the stack pointer
has been fiddled with and the elements of these vectors, which address
stack-allocated objects, are bogus and needs to be resetted.

9 years agoui: Fix floating-window implementation for Windows/Mac. We need floating-window defin...
Doug Coleman [Wed, 16 Jul 2014 19:38:50 +0000 (14:38 -0500)]
ui: Fix floating-window implementation for Windows/Mac. We need floating-window defined in the hashtables, as well as adding it /in addition to/ the existing flags.

9 years agoui: Missed an entry in the top list that is in the bottom list.
Doug Coleman [Wed, 16 Jul 2014 09:32:14 +0000 (02:32 -0700)]
ui: Missed an entry in the top list that is in the bottom list.

9 years agoui: Add a floating-window window-contol for opening floating windows in a tiling...
Doug Coleman [Wed, 16 Jul 2014 09:26:52 +0000 (02:26 -0700)]
ui: Add a floating-window window-contol for opening floating windows in a tiling window manager on gtk. Use this style on the help browser, inspector, and deploy windows. Please report any other windows that need this flag since I don't regularly use a tiling window manager. Tested on Ubuntu 14.04 64bit with i3 window manager. Fixes #1026.

9 years agocolors.distances: add some tests, refactor locals a little bit.
John Benediktsson [Sun, 13 Jul 2014 15:50:54 +0000 (08:50 -0700)]
colors.distances: add some tests, refactor locals a little bit.

9 years agoio.monitors.recursive: fix second test.
John Benediktsson [Sat, 12 Jul 2014 01:03:37 +0000 (18:03 -0700)]
io.monitors.recursive: fix second test.

9 years agocolors.distances: implement CIE76, CIE94, CIEDE2000, and CMC l:c color difference...
John Benediktsson [Sat, 12 Jul 2014 00:20:10 +0000 (17:20 -0700)]
colors.distances: implement CIE76, CIE94, CIEDE2000, and CMC l:c color difference algorithms.

9 years agocolors.lab: add copyright.
John Benediktsson [Sat, 12 Jul 2014 00:17:57 +0000 (17:17 -0700)]
colors.lab: add copyright.

9 years agoio.monitors.recursive: On Windows, at least, a recursive file monitor gets
Doug Coleman [Sat, 12 Jul 2014 00:14:07 +0000 (17:14 -0700)]
io.monitors.recursive: On Windows, at least, a recursive file monitor gets
set up for every single file. This is causing OOM errors on win32, so
let's just test resource:core\io instead.

9 years agopcre: add a comment for future knowledges.
John Benediktsson [Thu, 10 Jul 2014 23:33:20 +0000 (16:33 -0700)]
pcre: add a comment for future knowledges.

9 years agopcre: On at least win64, the pointer is returned as an int and is
Doug Coleman [Thu, 10 Jul 2014 23:22:45 +0000 (16:22 -0700)]
pcre: On at least win64, the pointer is returned as an int and is
negative. Cast it to a uint and everything works. Fixes #1105.

9 years agoio.launcher: Example is not very cross-platform.
Doug Coleman [Thu, 10 Jul 2014 18:21:07 +0000 (11:21 -0700)]
io.launcher: Example is not very cross-platform.

9 years agoVM: fixing some implicit casts from cell to fixnum
Björn Lindqvist [Tue, 8 Jul 2014 05:34:36 +0000 (07:34 +0200)]
VM: fixing some implicit casts from cell to fixnum

The types are compatible, but it looks a little nicer if the variable
that receives a return value declared as cell also is a cell.

9 years agoheaps: use before? and after?.
John Benediktsson [Thu, 10 Jul 2014 01:12:10 +0000 (18:12 -0700)]
heaps: use before? and after?.

9 years agouse "of" in place of "swap at".
John Benediktsson [Thu, 10 Jul 2014 01:11:14 +0000 (18:11 -0700)]
use "of" in place of "swap at".

9 years agowindows.directx: Upgrade xinput library.
Doug Coleman [Thu, 10 Jul 2014 05:36:44 +0000 (22:36 -0700)]
windows.directx: Upgrade xinput library.

9 years agoio.sockets.secure.openssl: We don't care what the error is as long as it fails.
Doug Coleman [Thu, 10 Jul 2014 05:32:32 +0000 (22:32 -0700)]
io.sockets.secure.openssl: We don't care what the error is as long as it fails.

9 years agotools.deploy: Pump p p pump pump it up
Doug Coleman [Thu, 10 Jul 2014 04:40:18 +0000 (21:40 -0700)]
tools.deploy: Pump p p pump pump it up

9 years agoio.launcher: Fix help-lint for Windows. The examples don't work on
Doug Coleman [Thu, 10 Jul 2014 04:19:58 +0000 (23:19 -0500)]
io.launcher: Fix help-lint for Windows. The examples don't work on
Windows, so disable them.

9 years agofftw.ffi: Find the fftw dll for Windows.
Doug Coleman [Thu, 10 Jul 2014 04:11:49 +0000 (23:11 -0500)]
fftw.ffi: Find the fftw dll for Windows.

9 years agoyaml.ffi: Fix library names. (for Windows, it's called libyaml-0-2.dll and
Doug Coleman [Wed, 9 Jul 2014 17:09:20 +0000 (12:09 -0500)]
yaml.ffi: Fix library names. (for Windows, it's called libyaml-0-2.dll and
we dont prefix 'lib' in find-library)

9 years agocompiler.tree.modular-arithmetic: make a partial test and add some information to...
John Benediktsson [Wed, 9 Jul 2014 16:27:13 +0000 (09:27 -0700)]
compiler.tree.modular-arithmetic: make a partial test and add some information to the XXX: comment.

9 years agoyaml.ffi: fix library names.
John Benediktsson [Wed, 9 Jul 2014 16:06:42 +0000 (09:06 -0700)]
yaml.ffi: fix library names.

9 years agoRevert "compiler.tree.modular-arithmetic: revert strict patch so we can investigate...
John Benediktsson [Wed, 9 Jul 2014 02:18:19 +0000 (19:18 -0700)]
Revert "compiler.tree.modular-arithmetic: revert strict patch so we can investigate further."

This reverts commit ec8377e125de2aae6b9704aa154beb95053151f5.

9 years agodebugger: Fix using.
Doug Coleman [Wed, 9 Jul 2014 01:06:36 +0000 (18:06 -0700)]
debugger: Fix using.

9 years agocompiler.tree.modular-arithmetic: revert strict patch so we can investigate further.
John Benediktsson [Tue, 8 Jul 2014 23:59:58 +0000 (16:59 -0700)]
compiler.tree.modular-arithmetic: revert strict patch so we can investigate further.

9 years agococoa.plists: use new NSFastEnumeration>hashtable word.
John Benediktsson [Tue, 8 Jul 2014 23:12:41 +0000 (16:12 -0700)]
cocoa.plists: use new NSFastEnumeration>hashtable word.

9 years agocalendar.format: use math.parser format directive.
John Benediktsson [Tue, 8 Jul 2014 23:03:02 +0000 (16:03 -0700)]
calendar.format: use math.parser format directive.

9 years agoYAML: allow configuration of !!merge and !!value
Jon Harper [Sun, 29 Jun 2014 15:47:49 +0000 (17:47 +0200)]
YAML: allow configuration of !!merge and !!value

9 years agoYAML: support !!value in !!map
Jon Harper [Sun, 29 Jun 2014 13:56:46 +0000 (15:56 +0200)]
YAML: support !!value in !!map

9 years agoYAML: support !!merge in !!map
Jon Harper [Sun, 1 Jun 2014 17:54:44 +0000 (19:54 +0200)]
YAML: support !!merge in !!map

9 years agoYAML: support !!timestamp
Jon Harper [Wed, 4 Jun 2014 08:14:31 +0000 (10:14 +0200)]
YAML: support !!timestamp

9 years agocalendar.format: rfc3339, don't drop seconds decimals
Jon Harper [Tue, 1 Jul 2014 21:42:25 +0000 (23:42 +0200)]
calendar.format: rfc3339, don't drop seconds decimals

9 years agopython.ffi: Use find-library-from-list instead of all that crufty code.
Doug Coleman [Tue, 8 Jul 2014 18:59:07 +0000 (11:59 -0700)]
python.ffi: Use find-library-from-list instead of all that crufty code.

9 years agoalien.libraries.finder: How many patches does it take... I was dropping the wrong...
Doug Coleman [Tue, 8 Jul 2014 18:58:34 +0000 (11:58 -0700)]
alien.libraries.finder: How many patches does it take... I was dropping the wrong value from map-find.

9 years agodebugger: Add a unit test for #1098.
Doug Coleman [Tue, 8 Jul 2014 18:56:08 +0000 (11:56 -0700)]
debugger: Add a unit test for #1098.

9 years agoalien.strings: Actually return a string instead of an array of strings in
Doug Coleman [Tue, 8 Jul 2014 18:49:11 +0000 (13:49 -0500)]
alien.strings: Actually return a string instead of an array of strings in
M\ array symbol>string. Fixes #1098.

9 years agoalien.libraries.finder: map-find was what I wanted all along.
Doug Coleman [Tue, 8 Jul 2014 18:13:41 +0000 (13:13 -0500)]
alien.libraries.finder: map-find was what I wanted all along.

9 years agogdbm: Enable gdbm on Win64.
Doug Coleman [Tue, 8 Jul 2014 17:50:13 +0000 (12:50 -0500)]
gdbm: Enable gdbm on Win64.

9 years agoMerge branch 'master' of factorcode.org:/git/factor
Doug Coleman [Tue, 8 Jul 2014 17:42:08 +0000 (12:42 -0500)]
Merge branch 'master' of factorcode.org:/git/factor

9 years agoalien.libraries.finder: More robust finder code that doesn't return f to a
Doug Coleman [Tue, 8 Jul 2014 17:40:33 +0000 (12:40 -0500)]
alien.libraries.finder: More robust finder code that doesn't return f to a
string slot and error out. Use it in yaml.ffi.

9 years agogdbm.ffi: Use find-library-from-list because nobody can agree on what to
Doug Coleman [Tue, 8 Jul 2014 17:23:11 +0000 (12:23 -0500)]
gdbm.ffi: Use find-library-from-list because nobody can agree on what to
name the gdbm dll.

9 years agoalien.libraries.finder: Add find-library-from-list utility word.
Doug Coleman [Tue, 8 Jul 2014 17:21:50 +0000 (12:21 -0500)]
alien.libraries.finder: Add find-library-from-list utility word.

9 years agoMerge branch 'master' of factorcode.org:/git/factor
Doug Coleman [Tue, 8 Jul 2014 06:34:46 +0000 (01:34 -0500)]
Merge branch 'master' of factorcode.org:/git/factor

9 years agoalien.libraries.finder.windows: Better fix for finding the right library path.
Doug Coleman [Tue, 8 Jul 2014 06:34:10 +0000 (23:34 -0700)]
alien.libraries.finder.windows: Better fix for finding the right library path.

9 years agoRevert "alien.libraries: Normalize the path before opening a dll since"
Doug Coleman [Tue, 8 Jul 2014 06:31:59 +0000 (23:31 -0700)]
Revert "alien.libraries: Normalize the path before opening a dll since"

This reverts commit 05aabb13f4f6e151fc0b9da0db3fce0125dc74da.

9 years agodb.postgresql: Enable postgresql tests on win64! YAY!!
Doug Coleman [Tue, 8 Jul 2014 06:26:12 +0000 (01:26 -0500)]
db.postgresql: Enable postgresql tests on win64! YAY!!

9 years agoalien.libraries: Normalize the path before opening a dll since
Doug Coleman [Tue, 8 Jul 2014 06:12:44 +0000 (01:12 -0500)]
alien.libraries: Normalize the path before opening a dll since
find-library can return paths that have "resource:" in them.

9 years agoffi_test: Export test 59 and 60 for Windows.
Doug Coleman [Tue, 8 Jul 2014 03:53:33 +0000 (20:53 -0700)]
ffi_test: Export test 59 and 60 for Windows.

9 years agoalien.c-types: Looks like ffi_test_59 found a bug after all. Add comments because...
Doug Coleman [Tue, 8 Jul 2014 03:47:40 +0000 (20:47 -0700)]
alien.c-types: Looks like ffi_test_59 found a bug after all. Add comments because it's confusing on small screens.

9 years agoalien.c-types: Ugh. There are self-similar lines of code, got confused.
Doug Coleman [Tue, 8 Jul 2014 03:28:27 +0000 (20:28 -0700)]
alien.c-types: Ugh. There are self-similar lines of code, got confused.

9 years agoio.sockets.secure.windows: Fix using, remove duplication.
Doug Coleman [Tue, 8 Jul 2014 02:44:40 +0000 (21:44 -0500)]
io.sockets.secure.windows: Fix using, remove duplication.

9 years agoio.sockets.secure: Another fix for cross-platform openssl.
Doug Coleman [Tue, 8 Jul 2014 01:45:22 +0000 (18:45 -0700)]
io.sockets.secure: Another fix for cross-platform openssl.

9 years agoio.sockets.secure: Move some code from secure.unix to secure.openssl. Add a hook...
Doug Coleman [Tue, 8 Jul 2014 01:34:41 +0000 (18:34 -0700)]
io.sockets.secure: Move some code from secure.unix to secure.openssl. Add a hook for finding sockets to upgrade.

9 years agoalien.c-types: Revert previous changes to 64 bit boxing/unboxing. Seems to work....
Doug Coleman [Tue, 8 Jul 2014 00:25:28 +0000 (17:25 -0700)]
alien.c-types: Revert previous changes to 64 bit boxing/unboxing. Seems to work. See #1062.

9 years agoffi: Add some tests to ensure that 64bit integers are handled properly.
Doug Coleman [Tue, 8 Jul 2014 00:02:36 +0000 (17:02 -0700)]
ffi: Add some tests to ensure that 64bit integers are handled properly.

9 years agoalien.c-types: longlong was calling to_fixnum instead of to_signed_8.
Doug Coleman [Mon, 7 Jul 2014 23:26:05 +0000 (16:26 -0700)]
alien.c-types: longlong was calling to_fixnum instead of to_signed_8.

9 years agocore-foundation.fsevents: FSEventStreamEventId should be a ulonglong instead of longlong.
Doug Coleman [Mon, 7 Jul 2014 22:18:57 +0000 (15:18 -0700)]
core-foundation.fsevents: FSEventStreamEventId should be a ulonglong instead of longlong.

9 years agounix: Ignore failures if errno is EINTR on close(2). Fixes #908.
Doug Coleman [Mon, 7 Jul 2014 21:55:13 +0000 (14:55 -0700)]
unix: Ignore failures if errno is EINTR on close(2). Fixes #908.

9 years agolibc.windows: We have to use utf8 since this is a libc call and the native
Doug Coleman [Mon, 7 Jul 2014 05:50:01 +0000 (00:50 -0500)]
libc.windows: We have to use utf8 since this is a libc call and the native
encoding on windows is utf16n.

9 years agotools.deploy: bump sizes to get clean 32-bit builds (for now).
John Benediktsson [Sun, 6 Jul 2014 18:11:22 +0000 (11:11 -0700)]
tools.deploy: bump sizes to get clean 32-bit builds (for now).

9 years agolibc: fix usings.
John Benediktsson [Sun, 6 Jul 2014 17:46:02 +0000 (10:46 -0700)]
libc: fix usings.

9 years agolibc: fix for linux using GNU strerror_r (for now).
John Benediktsson [Sun, 6 Jul 2014 17:41:51 +0000 (10:41 -0700)]
libc: fix for linux using GNU strerror_r (for now).

9 years agopython: change to py-initialize in startup-hook and py-finalize in shutdown hook.
John Benediktsson [Sun, 6 Jul 2014 17:18:27 +0000 (10:18 -0700)]
python: change to py-initialize in startup-hook and py-finalize in shutdown hook.

9 years agovm: Simplify strerror code.
Doug Coleman [Sun, 6 Jul 2014 01:58:24 +0000 (18:58 -0700)]
vm: Simplify strerror code.

9 years agolibc: Add default strerror that is not threadsafe. Move threadsafe unix load to the...
Doug Coleman [Fri, 4 Jul 2014 10:31:11 +0000 (03:31 -0700)]
libc: Add default strerror that is not threadsafe. Move threadsafe unix load to the end of the file so that malloc is defined.

9 years agolibc: Fix strerror for unix.
Doug Coleman [Fri, 4 Jul 2014 10:25:57 +0000 (03:25 -0700)]
libc: Fix strerror for unix.

9 years agolibc: Fix load error on windows.
Doug Coleman [Fri, 4 Jul 2014 10:19:29 +0000 (05:19 -0500)]
libc: Fix load error on windows.

9 years agovm: Fix namespace brace.
Doug Coleman [Fri, 4 Jul 2014 10:14:17 +0000 (03:14 -0700)]
vm: Fix namespace brace.

9 years agolibc: First stab at using strerror_r and (strerror_s on Windows) instead of thread...
Doug Coleman [Fri, 4 Jul 2014 10:11:45 +0000 (03:11 -0700)]
libc: First stab at using strerror_r and (strerror_s on Windows) instead of thread-unsafe strerror.

9 years agovm: Add threadsafe_sterror to the vm.
Doug Coleman [Fri, 4 Jul 2014 10:00:08 +0000 (03:00 -0700)]
vm: Add threadsafe_sterror to the vm.

9 years agopython: Call py-initialize in example, just in case it hasn't been called. Otherwise...
Doug Coleman [Fri, 4 Jul 2014 08:56:03 +0000 (01:56 -0700)]
python: Call py-initialize in example, just in case it hasn't been called. Otherwise, python segfaults..

9 years agoio.backend.unix.multiplexers.run-loop: Really fix bug #775!
Doug Coleman [Fri, 4 Jul 2014 08:50:45 +0000 (01:50 -0700)]
io.backend.unix.multiplexers.run-loop: Really fix bug #775!

9 years agocore-foundation.run-loop: Fix botched rename. Ugh. Fixes #775 on mac at least.
Doug Coleman [Fri, 4 Jul 2014 07:53:46 +0000 (00:53 -0700)]
core-foundation.run-loop: Fix botched rename. Ugh. Fixes #775 on mac at least.

9 years agoio.files.temp.macosx: Create the cache and temp directories every time. Fixes #1089.
Doug Coleman [Fri, 4 Jul 2014 06:41:20 +0000 (23:41 -0700)]
io.files.temp.macosx: Create the cache and temp directories every time. Fixes #1089.

9 years agovm/image.cpp: Better error for opening a file for writing.
Doug Coleman [Fri, 4 Jul 2014 05:32:45 +0000 (22:32 -0700)]
vm/image.cpp: Better error for opening a file for writing.

9 years agopython.ffi: Disable python3
Doug Coleman [Fri, 4 Jul 2014 01:25:22 +0000 (01:25 +0000)]
python.ffi: Disable python3

9 years agopython.ffi: On Arch Linux, the library is called libpython3.so
Doug Coleman [Fri, 4 Jul 2014 01:17:22 +0000 (01:17 +0000)]
python.ffi: On Arch Linux, the library is called libpython3.so

9 years agotools.deploy.backend: ui depends on (full) io so it needs to be loaded first
Björn Lindqvist [Fri, 20 Jun 2014 13:09:47 +0000 (15:09 +0200)]
tools.deploy.backend: ui depends on (full) io so it needs to be loaded first

find-library on linux needs to call /sbin/ldconfig which requires a
full io-backend. Using gtk requires loading alien libraries which
requires find-library. So the ui should always load the whole io.

9 years agoalien.libraries.finder.linux: Trim blanks off the arch names.
Doug Coleman [Thu, 3 Jul 2014 21:30:15 +0000 (21:30 +0000)]
alien.libraries.finder.linux: Trim blanks off the arch names.

9 years agotyped: .97 basically breaks typed. Check that the new behavior is enforced.
Doug Coleman [Thu, 3 Jul 2014 19:29:40 +0000 (12:29 -0700)]
typed: .97 basically breaks typed. Check that the new behavior is enforced.

9 years agocompiler, stack-checker docs: Fix for 32-bit builds.
Doug Coleman [Thu, 3 Jul 2014 19:21:17 +0000 (12:21 -0700)]
compiler, stack-checker docs: Fix for 32-bit builds.

9 years agocompiler.tree.modular-arithmetic: Don't require that fixnum+ works on tuple slots...
Doug Coleman [Thu, 3 Jul 2014 19:12:46 +0000 (12:12 -0700)]
compiler.tree.modular-arithmetic: Don't require that fixnum+ works on tuple slots marked fixnum. This is probably a speed regression. XXX revisit

9 years agotools.coverage.testvocab: Fix help lint errors.
Doug Coleman [Thu, 3 Jul 2014 18:48:08 +0000 (11:48 -0700)]
tools.coverage.testvocab: Fix help lint errors.

9 years agovm: Fix compilation on Windows. Fixes #1086.
Doug Coleman [Thu, 3 Jul 2014 18:20:08 +0000 (13:20 -0500)]
vm: Fix compilation on Windows. Fixes #1086.

9 years agoalien.enums: cleanup using.
John Benediktsson [Mon, 30 Jun 2014 16:09:46 +0000 (09:09 -0700)]
alien.enums: cleanup using.

9 years agomath.transforms.bwt: cleaner to check last.
John Benediktsson [Mon, 30 Jun 2014 16:04:08 +0000 (09:04 -0700)]
math.transforms.bwt: cleaner to check last.

9 years agocurl: bindings to libcurl.
John Benediktsson [Sat, 28 Jun 2014 22:44:17 +0000 (15:44 -0700)]
curl: bindings to libcurl.