Commit Graph

11801 Commits (a1b20e451b5a707b2b88524e6635ff0ed0753f5a)

Author SHA1 Message Date
Björn Lindqvist cb83f3b39b compiler.tests.alien: use the with-callback combinator to plug the memory leaks in the tests 2014-10-22 07:02:55 -07:00
Björn Lindqvist aad8d4b8d6 alien,stack-checker.alien: new word with-callback
Since callbacks aren't automatically deallocated this word intends to
make sure "inline" callbacks are.
2014-10-22 07:02:55 -07:00
John Benediktsson 465aa8786f cpu.x86.assembler.operands: fix help-lint. 2014-10-20 09:24:20 -07:00
John Benediktsson c8cfaee9af stack-checker: make this an unchecked-example. 2014-10-19 08:29:51 -07:00
John Benediktsson af2a53239e compiler: resolve duplicate doc for "compiled". 2014-10-19 08:27:59 -07:00
Björn Lindqvist 961d0c4eb9 compiler.codegen.gc-maps: update docs so that they match how factors gc-maps currently work 2014-10-19 14:17:54 +02:00
Björn Lindqvist a617855aef Docs: fixing smaller help-lint nitpicks 2014-10-19 14:05:06 +02:00
Björn Lindqvist 164af978ba compiler.cfg.*: more stub docs for cfg construction words 2014-10-19 13:45:42 +02:00
Björn Lindqvist 81a84266d3 compiler.codegen.*: help for resolve-label misplaced -- move it 2014-10-19 13:41:45 +02:00
Björn Lindqvist 5152c49eb3 cpu.*: docs and tests for words in the assembler 2014-10-19 13:40:41 +02:00
Björn Lindqvist 83cf4b9d57 compiler,cpu: more docs 2014-10-17 23:18:57 +02:00
Björn Lindqvist 476ebf5b25 compiler.cfg.*: more docs, tests and a small refactoring of the
admissible-registers word
2014-10-17 23:18:57 +02:00
Björn Lindqvist 88fb349bd0 stack-checker,compiler: docs for stack-checker and compiler words 2014-10-17 23:18:57 +02:00
Björn Lindqvist 40df5df231 cpu.architecture: %save-context example 2014-10-17 23:17:49 +02:00
Björn Lindqvist 425031e4b3 compiler.codegen.gc-maps: initial docs 2014-10-17 23:17:49 +02:00
Björn Lindqvist 275082d603 compiler.*: doc improvements 2014-10-17 23:17:49 +02:00
Doug Coleman 026aa163c8 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).
2014-10-16 16:40:49 -07:00
Björn Lindqvist 78830a476a images.loader.tests: restructure the tests because the gtk linux backend doesn't handle some formats that the windows backend does 2014-10-10 10:55:52 -07:00
Björn Lindqvist 9d384c14ba images.loader.gtk: fix fall-through in case problem in image>GdkPixbuf 2014-10-10 10:55:45 -07:00
Doug Coleman 38e0b0643f prettyprint: @mrjbq7's funny word for . that doesn't limit the length of things. 2014-10-09 18:54:14 -07:00
Björn Lindqvist c0b4537e1a images.loader.gdiplus: implementation of the image>stream word for GDI+
for Windows
2014-10-09 14:37:58 -07:00
Björn Lindqvist c10c5f5736 images: move rowstride to the images vocab because it will be used by
gdi too
2014-10-09 14:37:58 -07:00
Doug Coleman 56217afcbb tools.deploy-tests: inc size for linux32 2014-10-09 12:23:12 -07:00
Doug Coleman 8fc2ecc281 stack-checker.alien: We just want to track callbacks to see if we leak them, but not actually dispose of them yet. Fixes #1151. 2014-10-09 09:56:28 -07:00
John Benediktsson 794baf3222 calendar.format: change rfc3339 to always print microseconds. 2014-10-08 15:40:04 -07:00
Doug Coleman 7328fa306f tools.deploy: Bump the build size. This is a comparatively sizeable bump
compared to usual, but I really want clean builds.
2014-10-08 11:41:34 -07:00
Doug Coleman d4234ab1af smtp: Make the test pass on Windows. 2014-10-08 11:37:19 -07:00
Doug Coleman f8e858652d db.postgresql: This is not actually the case on my Mac. 2014-10-08 10:12:16 -07:00
Doug Coleman 63895f04e4 db.tester: postgresql template1 database name should be "template1" 2014-10-08 10:11:04 -07:00
Doug Coleman 424e1983e4 tools.profiler.sampling: Kick it down a notch. Makes win32 tests finish! 2014-10-07 23:56:50 -07:00
Doug Coleman d8121a9622 io.launcher.windows.test/env.factor: Fix script for new . behavior. 2014-10-07 13:51:13 -07:00
Doug Coleman dc67fe0a9f compression.snappy: Add support for snappy compression by Google. Could possibly be optimized? 2014-10-03 22:56:21 -07:00
Björn Lindqvist 239deaeaaa lists.lazy.tests: plugs file descriptor leak 2014-10-03 07:12:28 -07:00
Björn Lindqvist 5fe8dd7604 db.tester: with-disposal needed to release the db connections in the pool 2014-10-03 07:12:27 -07:00
Björn Lindqvist d952ac0c07 smtp.tests: send-mail should be called to get the mock-smtp-server to terminate 2014-10-03 07:12:27 -07:00
Björn Lindqvist 8b01a47358 openssl.libcrypto.tests: BIO_free should be called to release connections 2014-10-03 07:12:27 -07:00
John Benediktsson 3fdea2c66b prettyprint.backend: use , not % in unparse-ch. 2014-09-30 08:23:32 -07:00
Björn Lindqvist 655797ff34 db.postgresql: ensure that 2 line error messages are handled 2014-09-30 14:53:22 +02:00
Björn Lindqvist 97b3ee37ff db.tester: the postgresql-db variable shouldn't be mutated 2014-09-30 14:51:07 +02:00
Björn Lindqvist e62acb7db3 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.
2014-09-29 20:47:39 +02:00
Björn Lindqvist be372831f5 compiler.tests.alien: wrap all callback tests in special
unit-test-with-destructor blocks, that way they dont leak memory in the
callback heap
2014-09-29 07:30:22 -07:00
Björn Lindqvist 5cf8c7cfba 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.
2014-09-29 07:30:22 -07:00
Björn Lindqvist 3f65984055 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).
2014-09-29 07:30:21 -07:00
Björn Lindqvist e00798cd2a VM: new primitive free-callback which is able to free a callback
previously allocated using <callback>
2014-09-29 07:30:21 -07:00
Björn Lindqvist a338fa08e7 stack-checker.known-words: stack effect for <callback> is switched, it
should be ( word integer -- alien )
2014-09-29 07:30:21 -07:00
Björn Lindqvist 4a96e6163b 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.
2014-09-29 07:30:21 -07:00
Björn Lindqvist 4867e7bc96 VM: try and recover with a kernel error from the callback heap running out 2014-09-29 07:30:20 -07:00
Björn Lindqvist 1824680ad1 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.
2014-09-28 20:39:25 -07:00
John Benediktsson e5925cf5ad lists: cleanup usings. 2014-09-28 17:21:04 -07:00
Iskander Sitdikov edff21ada3 Refactor >list to be a generic word 2014-09-28 17:17:22 -07:00
Björn Lindqvist 8d6df6d128 tools.deploy.backend: with-variables need to be on the whole block 2014-09-28 22:57:24 +02:00
Björn Lindqvist 07dd28c94d tools.deploy.backend: rearranging the order of parameters in the deploy process, -run needs to be last 2014-09-28 13:14:42 -07:00
Doug Coleman e4e6f34f0e 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. 2014-09-26 13:34:25 -07:00
John Benediktsson aae6fb2ae3 help.html: simplify (and separate) index generation. 2014-09-25 21:30:36 -07:00
John Benediktsson 179c60b0a5 help.html: make docs use same completions algorithm as listener. 2014-09-25 21:08:15 -07:00
John Benediktsson b12ca5e412 command-line: make script and -run= param behave similarly. 2014-09-25 21:08:15 -07:00
Björn Lindqvist c07c1ba9b1 csv: need to handle \r because windows lines ends with \r\n 2014-09-25 10:00:07 -07:00
Doug Coleman c9e705ff6a tools.deploy: bump sizes for linux32. so not hardcore. 2014-09-24 17:12:02 -07:00
Björn Lindqvist c1187500de io.ports.tests: better to use with-disposal than calling the dispose word explicitly 2014-09-24 14:40:34 -07:00
Björn Lindqvist 47c16ed078 io.streams.limited.tests: use with-stream in the tests to ensure that the pipes are disposed 2014-09-24 14:40:34 -07:00
John Benediktsson 13e5edc007 Revert "calendar.format: change to use formatting instead of math.parser.private."
This reverts commit 3cfac7916a.
2014-09-24 07:42:45 -07:00
Björn Lindqvist 101780d2cd db.postgresql.lib: if PQsetdbLogin fails, PQfinish must be called 2014-09-22 14:29:57 -07:00
Doug Coleman cf6ae0ec2e tools.depoy: Bump test size for mac32. 2014-09-12 12:08:05 -07:00
Iskander Sitdikov e62370395e Fix the Atom feed generator 2014-09-10 13:07:32 +04:00
Doug Coleman 4c6435934b compiler.cfg.stacks.vacant: Fix docs for word rename. 2014-09-08 17:48:22 -07:00
Björn Lindqvist ffacc8370d compiler.cfg.stacks.vacant: ##call instructions clear the set of overinitialized locations 2014-09-08 14:54:18 -07:00
Björn Lindqvist 9836d6a1d0 VM: move the stack scrubbing logic to call_frame_slot_visitor to avoid visiting the callstack twice
primitive_minor_gc() iterates the stack twice, first to scrub stack
locations, then to trace overinitialized ones and gc roots. By running
visit_callstack() before visit_stack_elements() you only need to do it
once.
2014-09-08 14:54:18 -07:00
Björn Lindqvist 8cd2eee8e0 compiler.codegen.gc-maps: the gc-map-needed? word can be called with f 2014-09-08 14:54:17 -07:00
Björn Lindqvist 8c0f9698de compiler.codegen.gc-maps: check-d>> and check-r>> now used in the code generator
the approach looks sound and now the gc can be fixed to take advantage
of the extra info.
2014-09-08 14:54:17 -07:00
Björn Lindqvist 46082d836a compiler.cfg.stacks.vacant: invert meaning of 0/1 for overinit:ed locs to make some logic simpler 2014-09-08 14:54:17 -07:00
Björn Lindqvist 70e4f2a8b7 compiler.cfg.instructions: added check-d and check-r slots to gc-map
the data is output from compiler.cfg.stacks.vacant in a reasonable
format but not yet used for code generation.
2014-09-08 14:54:17 -07:00
Björn Lindqvist ecead801c1 compiler.cfg.stacks.vacant: more docs and removed usage of byte-arrays 2014-09-08 14:54:17 -07:00
Björn Lindqvist ab5e629243 compiler.cfg.stacks.vacant: sub docs seeded with a stolen comment from uninitialized.factor 2014-09-08 14:54:17 -07:00
Björn Lindqvist 40ee3cdcbb compiler.cfg.stacks.vacant: fix usings and remove commented out code 2014-09-08 14:54:17 -07:00
Björn Lindqvist e961a03837 compiler.cfg.stacks.vacant: compiler pass replacing uninitialized for more accurate stack maps
This pass uses a better algorithm for keeping track of all stack
manipulations which means that the stack maps it assigns are much more
precise.
2014-09-08 14:54:17 -07:00
Björn Lindqvist d1032c159a compiler.cfg.dataflow-analysis: generic for configuring the "block skipping"
To accurately record uninitialized/overinitialized stack locations,
kill blocks needs to be analyzed. Now you can make it so by overriding
ignore-block?.
2014-09-08 14:54:17 -07:00
John Benediktsson a80540fdee formatting: specify integer instead of fixnum as bignums are supported. 2014-09-04 09:35:15 -07:00
John Benediktsson 0f84c5ec6b see: disable string-limit? when setting margin to zero. 2014-09-03 17:14:00 -07:00
Björn Lindqvist 6919e7ca0a xml.writer.tests: use temp-file instead of assuming resource: is writable 2014-08-28 19:12:20 +02:00
Björn Lindqvist 3a6c14765d vm: add the gc-info struct 2014-08-25 14:52:11 -07:00
John Benediktsson 7609ab6eda compiler.cfg: fix some help-lint warnings. 2014-08-14 09:59:27 -07:00
Björn Lindqvist 16d32190ab deques: doc examples 2014-08-13 11:01:11 -07:00
Björn Lindqvist c3253406e3 compiler.cfg.*: more docstrings for compiler words 2014-08-13 11:01:11 -07:00
Björn Lindqvist c6784020aa compiler.cfg.*: initial docs for dataflow analysis vocabs 2014-08-13 11:01:11 -07:00
Björn Lindqvist 6560778d2a compiler.cfg.*: stub docs for register scheduling vocabs 2014-08-13 11:01:11 -07:00
Björn Lindqvist 769ca5550f compiler.cfg.*: docs for compiler words 2014-08-13 11:01:11 -07:00
Björn Lindqvist 1225abeeaf Docs: more compiler-related documentation 2014-08-13 11:01:10 -07:00
John Benediktsson d6019337f9 core-foundation: define some more callbacks. 2014-08-05 16:09:04 -07:00
John Benediktsson 37af86428f core-foundation.run-loop: define a CALLBACK and use it. 2014-08-05 15:53:02 -07:00
John Benediktsson aaeb3f357e tools.deploy.backend: use make-my-image. 2014-08-05 12:24:34 -07:00
John Benediktsson 8c58b99b1d Revert "openssl: define a startup-hook so that openssl initializes automatically"
This reverts commit 981ea313a0.

Conflicts:
	basis/openssl/openssl.factor
2014-08-05 12:14:53 -07:00
John Benediktsson f8c4827095 tools.deploy.macosx: needs more boolean. 2014-08-05 11:44:43 -07:00
John Benediktsson a9f305bfa6 tools.deploy.macosx: whoops needs more string. 2014-08-05 11:44:02 -07:00
John Benediktsson 4b64626e10 tools.deploy.macosx: deployed apps should be retina-capable. 2014-08-05 11:43:26 -07:00
John Benediktsson 6f3d6ad560 tools.profiler.sampling: use formatting instead of math.parser.private. 2014-08-05 11:43:26 -07:00
John Benediktsson 3cfac7916a calendar.format: change to use formatting instead of math.parser.private. 2014-08-05 11:43:26 -07:00
Doug Coleman 6e037ee256 ui.tools.browser: Remove dialog-window attribute from help browser. The window has enough content to merit a panel in a tiling window manager, and this attribute forces the window to always be in front on GTK, which is annoying. 2014-08-05 11:35:49 -07:00
John Benediktsson e5ac9c9c0f ui.backend.gtk: fix yield delay on gtk backend. 2014-08-05 11:24:23 -07:00
John Benediktsson 5ee4ae0fcb Revert "prettyprint.config: string-limit? shouldn't be a global."
This reverts commit d33877a941.
2014-08-05 10:48:31 -07:00
John Benediktsson 87433a4585 ``swap drop`` is ``nip``. 2014-08-05 10:31:42 -07:00
John Benediktsson fec182d2d8 io.backend.unix.multiplexers.run-loop: don't enable-all-callbacks twice. 2014-08-05 10:31:42 -07:00
Doug Coleman 68446b047b ui: Rename floating-window to dialog-window as per @bjourne's suggestion. Related to #1026. 2014-08-05 10:03:17 -07:00
John Benediktsson 0287355e2a formatting: adding octal and binary format directives. 2014-08-05 09:39:50 -07:00
Björn Lindqvist 60ffe0680e kernel: new combinator 2with = with with 2014-07-22 07:40:13 -07:00
Doug Coleman 8c8f58dfee compiler.codegen-docs: Make example clickable. 2014-07-18 13:37:38 -05:00
Doug Coleman f9d9d8d64c compiler.cfg.instructions: Messed up a patch. oops. 2014-07-17 18:19:10 -05:00
Doug Coleman 1d0f0fb98a compiler.cfg.instructions: Fix using. 2014-07-17 15:48:41 -05:00
Doug Coleman d173da94c1 compiler.cfg: Rename doc -> docs in filenames so the docs load. 2014-07-17 15:32:29 -05:00
Doug Coleman fdcc33acee 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. 2014-07-16 14:38:50 -05:00
Doug Coleman b460563da3 ui: Missed an entry in the top list that is in the bottom list. 2014-07-16 02:32:14 -07:00
Doug Coleman 57cdc841c3 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. 2014-07-16 02:26:52 -07:00
John Benediktsson 5771cae818 io.monitors.recursive: fix second test. 2014-07-11 18:03:37 -07:00
Doug Coleman 4e67fac92d 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.
2014-07-11 17:15:20 -07:00
Doug Coleman 3ad3e33006 io.launcher: Example is not very cross-platform. 2014-07-10 11:21:33 -07:00
John Benediktsson 6ab848775e heaps: use before? and after?. 2014-07-10 07:53:13 -07:00
Doug Coleman 6c26ea81c4 windows.directx: Upgrade xinput library. 2014-07-09 22:36:44 -07:00
Doug Coleman 6ea98afc99 io.sockets.secure.openssl: We don't care what the error is as long as it fails. 2014-07-09 22:32:32 -07:00
Doug Coleman 63af1308bb tools.deploy: Pump p p pump pump it up 2014-07-09 21:40:18 -07:00
Doug Coleman baa9bed236 io.launcher: Fix help-lint for Windows. The examples don't work on
Windows, so disable them.
2014-07-09 23:19:58 -05:00
John Benediktsson e0801a632e compiler.tree.modular-arithmetic: make a partial test and add some information to the XXX: comment. 2014-07-09 09:27:13 -07:00
John Benediktsson cc7dfc146b Revert "compiler.tree.modular-arithmetic: revert strict patch so we can investigate further."
This reverts commit ec8377e125.
2014-07-08 19:18:34 -07:00
Doug Coleman 13ef52491a debugger: Fix using. 2014-07-08 18:06:36 -07:00
John Benediktsson ec8377e125 compiler.tree.modular-arithmetic: revert strict patch so we can investigate further. 2014-07-08 16:59:58 -07:00
John Benediktsson e137cde7f8 cocoa.plists: use new NSFastEnumeration>hashtable word. 2014-07-08 16:12:41 -07:00
John Benediktsson 116086ddf7 calendar.format: use math.parser format directive. 2014-07-08 16:03:02 -07:00
Jon Harper 484ddae159 calendar.format: rfc3339, don't drop seconds decimals 2014-07-08 15:53:52 -07:00
Doug Coleman d578ca7959 alien.libraries.finder: How many patches does it take... I was dropping the wrong value from map-find. 2014-07-08 11:58:34 -07:00
Doug Coleman 710a7c1a21 debugger: Add a unit test for #1098. 2014-07-08 11:56:08 -07:00
Doug Coleman ee08a436fd alien.libraries.finder: map-find was what I wanted all along. 2014-07-08 13:13:41 -05:00
Doug Coleman 7a388a64b2 Merge branch 'master' of factorcode.org:/git/factor 2014-07-08 12:42:08 -05:00
Doug Coleman 1e8655c5c0 alien.libraries.finder: More robust finder code that doesn't return f to a
string slot and error out. Use it in yaml.ffi.
2014-07-08 12:40:33 -05:00
Doug Coleman 77f806d6c5 alien.libraries.finder: Add find-library-from-list utility word. 2014-07-08 12:21:50 -05:00
Doug Coleman b3fba62f05 Merge branch 'master' of factorcode.org:/git/factor 2014-07-08 01:34:46 -05:00
Doug Coleman a8b78071ff alien.libraries.finder.windows: Better fix for finding the right library path. 2014-07-07 23:34:10 -07:00
Doug Coleman 9bbf0af6e8 Revert "alien.libraries: Normalize the path before opening a dll since"
This reverts commit 05aabb13f4.
2014-07-07 23:31:59 -07:00
Doug Coleman 6612867742 db.postgresql: Enable postgresql tests on win64! YAY!! 2014-07-08 01:26:52 -05:00
Doug Coleman 05aabb13f4 alien.libraries: Normalize the path before opening a dll since
find-library can return paths that have "resource:" in them.
2014-07-08 01:12:44 -05:00
Doug Coleman bcd7c743a2 alien.c-types: Looks like ffi_test_59 found a bug after all. Add comments because it's confusing on small screens. 2014-07-07 20:47:40 -07:00
Doug Coleman 908bfa2db6 alien.c-types: Ugh. There are self-similar lines of code, got confused. 2014-07-07 20:28:27 -07:00
Doug Coleman 377180baf6 io.sockets.secure.windows: Fix using, remove duplication. 2014-07-07 21:44:40 -05:00
Doug Coleman 59c5373263 io.sockets.secure: Another fix for cross-platform openssl. 2014-07-07 18:45:22 -07:00
Doug Coleman 075a86f5d9 io.sockets.secure: Move some code from secure.unix to secure.openssl. Add a hook for finding sockets to upgrade. 2014-07-07 18:34:41 -07:00
Doug Coleman 05ef13fff4 alien.c-types: Revert previous changes to 64 bit boxing/unboxing. Seems to work. See #1062. 2014-07-07 17:25:28 -07:00
Doug Coleman beb2d1df3a ffi: Add some tests to ensure that 64bit integers are handled properly. 2014-07-07 17:02:36 -07:00
Doug Coleman 608c23ad8f alien.c-types: longlong was calling to_fixnum instead of to_signed_8. 2014-07-07 16:26:05 -07:00
Doug Coleman 254e7a5e62 core-foundation.fsevents: FSEventStreamEventId should be a ulonglong instead of longlong. 2014-07-07 15:18:57 -07:00
Doug Coleman 0fbe0e5167 unix: Ignore failures if errno is EINTR on close(2). Fixes #908. 2014-07-07 14:55:13 -07:00
Doug Coleman 31b8a0e051 libc.windows: We have to use utf8 since this is a libc call and the native
encoding on windows is utf16n.
2014-07-07 00:50:47 -05:00
John Benediktsson e5db4c2ccc tools.deploy: bump sizes to get clean 32-bit builds (for now). 2014-07-06 11:11:22 -07:00
John Benediktsson cf3fdfc23e libc: fix usings. 2014-07-06 10:46:02 -07:00