]> gitweb.factorcode.org Git - factor.git/log
factor.git
12 years agovm: write async signals to pipe for multiplexer
Joe Groff [Mon, 7 Nov 2011 20:51:49 +0000 (12:51 -0800)]
vm: write async signals to pipe for multiplexer
also factor out safepoint logic into its own file

12 years agoio.launcher.windows: update tests for prompt
Joe Groff [Tue, 8 Nov 2011 08:09:25 +0000 (00:09 -0800)]
io.launcher.windows: update tests for prompt

12 years agovm: switch atomic::add to atomic::fetch_add
Joe Groff [Tue, 8 Nov 2011 01:58:53 +0000 (17:58 -0800)]
vm: switch atomic::add to atomic::fetch_add
Win32 only provides fetch-and-add, not add-and-fetch, and we don't really care. Rename the functions so the order of operations is clear.

12 years agolists: make lmap behave row-polymorphically
Joe Groff [Mon, 7 Nov 2011 18:37:13 +0000 (10:37 -0800)]
lists: make lmap behave row-polymorphically
Fix contributed by @bremac. Fixes #355.

12 years agocompiler.cfg: Change low-level IR constructors from ##foo to <##foo>
Doug Coleman [Mon, 7 Nov 2011 07:00:03 +0000 (23:00 -0800)]
compiler.cfg: Change low-level IR constructors from ##foo to <##foo>

12 years agocompiler.tree: Renamed high-level IR node constructors to <#foo> from #foo. Moving...
Doug Coleman [Mon, 7 Nov 2011 04:41:31 +0000 (20:41 -0800)]
compiler.tree: Renamed high-level IR node constructors to <#foo> from #foo. Moving towards making classes/word names not conflict.

12 years agovm: readable feps for more types
Joe Groff [Mon, 7 Nov 2011 04:26:10 +0000 (20:26 -0800)]
vm: readable feps for more types

12 years agovm: print type names instead of numbers in fep
Joe Groff [Mon, 7 Nov 2011 03:56:47 +0000 (19:56 -0800)]
vm: print type names instead of numbers in fep

12 years agolint: Add a word to find redundant word props like 'inline [flushable|foldable]'
Doug Coleman [Mon, 7 Nov 2011 03:33:07 +0000 (19:33 -0800)]
lint: Add a word to find redundant word props like 'inline [flushable|foldable]'

12 years agomath.functions: flushable and foldable don't do anything on inline words because...
Doug Coleman [Mon, 7 Nov 2011 03:25:53 +0000 (19:25 -0800)]
math.functions: flushable and foldable don't do anything on inline words because flushable and foldable work on call sites (#call nodes), and inlined words are inlined into another word's call site; they don't generate their own #call node.

12 years agocompiler.tree.dead-code: Rewrite /mod to /i or mod in the dead-code pass in the high...
Doug Coleman [Mon, 7 Nov 2011 03:20:33 +0000 (19:20 -0800)]
compiler.tree.dead-code: Rewrite /mod to /i or mod in the dead-code pass in the high level optimizer. Fixes #279.

12 years agotools.deploy.backend: fix vocab manifest parse
Joe Groff [Mon, 7 Nov 2011 02:57:12 +0000 (18:57 -0800)]
tools.deploy.backend: fix vocab manifest parse
We were absent-mindedly passing the VOCABS: line off as a vocab name itself. vocabs.loader doesn't put up with that anymore.

12 years agoRename lookup to lookup-word.
Doug Coleman [Sun, 6 Nov 2011 23:57:24 +0000 (15:57 -0800)]
Rename lookup to lookup-word.

12 years agowebapps.help: Load the navbar from a Factor word instead of hardcoding it into the...
Doug Coleman [Sun, 6 Nov 2011 20:16:46 +0000 (12:16 -0800)]
webapps.help: Load the navbar from a Factor word instead of hardcoding it into the template so that the glossary link works.

12 years agohtml.components: For the t:html tag, only wrap strings in unescaped so that other...
Doug Coleman [Sun, 6 Nov 2011 20:15:00 +0000 (12:15 -0800)]
html.components: For the t:html tag, only wrap strings in unescaped so that other objects can render.

12 years agowebapps.help: Change webapps.help search from post to get. Fixes #343.
Doug Coleman [Sat, 5 Nov 2011 07:07:16 +0000 (00:07 -0700)]
webapps.help: Change webapps.help search from post to get. Fixes #343.

12 years agohelp.html: fix glossary link.
Doug Coleman [Sat, 5 Nov 2011 07:05:58 +0000 (00:05 -0700)]
help.html: fix glossary link.

12 years agoMake edit-vocab work on an unloaded vocabulary.
Doug Coleman [Sat, 5 Nov 2011 06:33:18 +0000 (23:33 -0700)]
Make edit-vocab work on an unloaded vocabulary.

12 years agocpu.x86.*.bootstrap: save flags in signal-handlers
Joe Groff [Fri, 4 Nov 2011 18:56:01 +0000 (11:56 -0700)]
cpu.x86.*.bootstrap: save flags in signal-handlers

12 years agocpu.x86.bootstrap: cell -> bootstrap-cell
Joe Groff [Fri, 4 Nov 2011 18:54:40 +0000 (11:54 -0700)]
cpu.x86.bootstrap: cell -> bootstrap-cell

12 years agocpu.x86.assembler: PUSHF, POPF instructions
Joe Groff [Fri, 4 Nov 2011 18:23:11 +0000 (11:23 -0700)]
cpu.x86.assembler: PUSHF, POPF instructions

12 years agocpu.x86.64.bootstrap: save all the regs on signal
Joe Groff [Fri, 4 Nov 2011 17:01:39 +0000 (10:01 -0700)]
cpu.x86.64.bootstrap: save all the regs on signal
Appears to fix another sporadic crash from mason on x86-64. There's no reason to cut corners here, really.

12 years agoFix bootstrap. Add missing using on io.serial.linux. Fixes #351.
Doug Coleman [Fri, 4 Nov 2011 13:08:02 +0000 (06:08 -0700)]
Fix bootstrap. Add missing using on io.serial.linux. Fixes #351.

12 years agounix.ffi: add signal constants
Joe Groff [Fri, 4 Nov 2011 07:24:18 +0000 (00:24 -0700)]
unix.ffi: add signal constants

12 years agoswitch back to gcc from clang since it goes faster
Joe Groff [Fri, 4 Nov 2011 07:09:30 +0000 (00:09 -0700)]
switch back to gcc from clang since it goes faster

12 years agocpu.x86.bootstrap: don't safepoint in a safepoint
Joe Groff [Fri, 4 Nov 2011 03:19:01 +0000 (20:19 -0700)]
cpu.x86.bootstrap: don't safepoint in a safepoint
Safepointing in the signal-handler primitive causes a crash if the safepoint is guarded and the signal being handled was raised by a safepoint. Put our own RET in the subprimitive to bail out before the standard epilog gets written out. This tentatively appears to fix #349.

12 years agomakefile: add macosx-x86-fat target
Joe Groff [Fri, 4 Nov 2011 01:43:45 +0000 (18:43 -0700)]
makefile: add macosx-x86-fat target

12 years agoMove io.serial.unix to io.serial.linux, add platforms files. Move termios into io...
Doug Coleman [Thu, 3 Nov 2011 23:25:53 +0000 (16:25 -0700)]
Move io.serial.unix to io.serial.linux, add platforms files. Move termios into io.serial.linux.ffi vocab.

12 years agomason.release.branch: fix test
Joe Groff [Thu, 3 Nov 2011 22:40:24 +0000 (15:40 -0700)]
mason.release.branch: fix test

12 years agostack-checker.known-words: add ffi-signal-handlers
Joe Groff [Thu, 3 Nov 2011 22:20:42 +0000 (15:20 -0700)]
stack-checker.known-words: add ffi-signal-handlers

12 years agocpu.x86.32.bootstrap: typo
Joe Groff [Thu, 3 Nov 2011 20:07:13 +0000 (13:07 -0700)]
cpu.x86.32.bootstrap: typo

12 years agouse gcc-4.2 on OS X 10.5, or clang on Xcode 4
Joe Groff [Thu, 3 Nov 2011 19:17:54 +0000 (12:17 -0700)]
use gcc-4.2 on OS X 10.5, or clang on Xcode 4

12 years agoUpdate emacs for editors protocol.
Doug Coleman [Thu, 3 Nov 2011 19:02:06 +0000 (12:02 -0700)]
Update emacs for editors protocol.

12 years agovm: always generate safepoints in jit
Joe Groff [Thu, 3 Nov 2011 18:57:23 +0000 (11:57 -0700)]
vm: always generate safepoints in jit
Even if there's no stack frame we still need to safepoint before leaving the function. Fixes #332.

12 years agovm: restore sigaltstack setup on unix
Joe Groff [Thu, 3 Nov 2011 18:50:23 +0000 (11:50 -0700)]
vm: restore sigaltstack setup on unix
#ifdef __OpenBSD__ is different from #ifndef __OpenBSD

12 years agoAdd back the using for nested-comments. Wo shi ben dan...
Doug Coleman [Thu, 3 Nov 2011 18:47:57 +0000 (11:47 -0700)]
Add back the using for nested-comments. Wo shi ben dan...

12 years agoMake the require-hook throw an error if the vocabulary does not exist in the dictiona...
Doug Coleman [Thu, 3 Nov 2011 18:34:41 +0000 (11:34 -0700)]
Make the require-hook throw an error if the vocabulary does not exist in the dictionary or on disk. Move require docs to vocabs. Add unit tests for require. Fixes #339.

12 years agowebapp.help: making fonts more consistent. See #310.
John Benediktsson [Thu, 3 Nov 2011 15:30:44 +0000 (08:30 -0700)]
webapp.help: making fonts more consistent. See #310.

12 years agotools.profiler.sampling: mess with formatting more
Joe Groff [Thu, 3 Nov 2011 07:14:18 +0000 (00:14 -0700)]
tools.profiler.sampling: mess with formatting more

12 years agotools.profiler.sampling: cross-section report
Joe Groff [Thu, 3 Nov 2011 06:57:15 +0000 (23:57 -0700)]
tools.profiler.sampling: cross-section report
Also add depth to top-down reporting so we can tell what parameter to give cross-section

12 years agovm: reserve some more special-objects
Joe Groff [Thu, 3 Nov 2011 05:15:52 +0000 (22:15 -0700)]
vm: reserve some more special-objects
Need a jit-safepoint object to deal with #332, and ffi-signal-handler words for immediate signal handling during FFI calls

12 years agodlists: fix compile error
Doug Coleman [Thu, 3 Nov 2011 04:56:06 +0000 (21:56 -0700)]
dlists: fix compile error

12 years agotools.profiler.sampling: twiddle output format
Joe Groff [Thu, 3 Nov 2011 04:40:31 +0000 (21:40 -0700)]
tools.profiler.sampling: twiddle output format

12 years agovm: sample pc on windows
Joe Groff [Thu, 3 Nov 2011 04:18:31 +0000 (21:18 -0700)]
vm: sample pc on windows

12 years agovm: fix MSVC warnings
Joe Groff [Thu, 3 Nov 2011 03:26:53 +0000 (20:26 -0700)]
vm: fix MSVC warnings

12 years agoTweak the dlist equal? word.
Doug Coleman [Thu, 3 Nov 2011 02:53:40 +0000 (19:53 -0700)]
Tweak the dlist equal? word.

12 years agoImplement equal? on dlists. Fixes #338.
Doug Coleman [Thu, 3 Nov 2011 02:07:37 +0000 (19:07 -0700)]
Implement equal? on dlists. Fixes #338.

12 years agovocabs.loader: Fix spacing. Remove unit test.
Doug Coleman [Thu, 3 Nov 2011 01:17:14 +0000 (18:17 -0700)]
vocabs.loader: Fix spacing. Remove unit test.

12 years agoimages.loader.gtk: typo
Joe Groff [Thu, 3 Nov 2011 02:02:27 +0000 (19:02 -0700)]
images.loader.gtk: typo

12 years agoremove lingering mentions of macosx-ppc
Joe Groff [Thu, 3 Nov 2011 01:40:27 +0000 (18:40 -0700)]
remove lingering mentions of macosx-ppc

12 years agoHandle auto-user in fuel-connection.el. Fix suggested by Eungju Park.
Doug Coleman [Thu, 3 Nov 2011 01:13:31 +0000 (18:13 -0700)]
Handle auto-user in fuel-connection.el. Fix suggested by Eungju Park.

12 years agoRename (load-vocab) to (require), add tags.txt for "p" vocab loader test. Code format...
Doug Coleman [Thu, 3 Nov 2011 01:07:22 +0000 (18:07 -0700)]
Rename (load-vocab) to (require), add tags.txt for "p" vocab loader test. Code formatting.

12 years agoio.backend.unix.macosx: Remove duplicate USE:
Doug Coleman [Thu, 3 Nov 2011 00:47:15 +0000 (17:47 -0700)]
io.backend.unix.macosx: Remove duplicate USE:

12 years agoFix unit tests to give the sampling profiler something to profile.
Doug Coleman [Thu, 3 Nov 2011 00:46:50 +0000 (17:46 -0700)]
Fix unit tests to give the sampling profiler something to profile.

12 years agoFix require-hook
Doug Coleman [Thu, 3 Nov 2011 00:25:54 +0000 (17:25 -0700)]
Fix require-hook

12 years agoAdd stack effects for the sampling profiler
Doug Coleman [Thu, 3 Nov 2011 00:20:18 +0000 (17:20 -0700)]
Add stack effects for the sampling profiler

12 years agooops, typo in factor.sh
Joe Groff [Thu, 3 Nov 2011 00:18:26 +0000 (17:18 -0700)]
oops, typo in factor.sh

12 years agoremove BSD,solaris,etc. misc platform support code
Joe Groff [Thu, 3 Nov 2011 00:13:31 +0000 (17:13 -0700)]
remove BSD,solaris,etc. misc platform support code

12 years agoUnbreakify the new profiler, add a couple of unit tests to demonstrate displaying...
Doug Coleman [Thu, 3 Nov 2011 00:01:43 +0000 (17:01 -0700)]
Unbreakify the new profiler, add a couple of unit tests to demonstrate displaying output.

12 years agoAdd a unit test vocabulary for vocabs.loadeer.
Doug Coleman [Wed, 2 Nov 2011 23:47:53 +0000 (16:47 -0700)]
Add a unit test vocabulary for vocabs.loadeer.

12 years agoKeep the profiling results even when the quotation throws an exception.
Doug Coleman [Wed, 2 Nov 2011 23:47:27 +0000 (16:47 -0700)]
Keep the profiling results even when the quotation throws an exception.

12 years agoUse -reuseview in jedit by default.
Doug Coleman [Wed, 2 Nov 2011 23:47:10 +0000 (16:47 -0700)]
Use -reuseview in jedit by default.

12 years agoClean up formatting, rename load-vocab-hook to require-hook. Add a unit test for...
Doug Coleman [Wed, 2 Nov 2011 23:30:00 +0000 (16:30 -0700)]
Clean up formatting, rename load-vocab-hook to require-hook. Add a unit test for vocabs.loader.

12 years agoActually let the user pick an editor after editor protocol change.
Doug Coleman [Wed, 2 Nov 2011 20:41:46 +0000 (13:41 -0700)]
Actually let the user pick an editor after editor protocol change.

12 years agosequences: relate max, min, supremum, infimum docs
Joe Groff [Wed, 2 Nov 2011 20:43:06 +0000 (13:43 -0700)]
sequences: relate max, min, supremum, infimum docs
Suggested by @yac. Closes #321.

12 years agovm: count samples during unoptimized compiler
Joe Groff [Wed, 2 Nov 2011 06:40:46 +0000 (23:40 -0700)]
vm: count samples during unoptimized compiler

12 years agovm: fix scrub-league assert abuse
Joe Groff [Wed, 2 Nov 2011 06:02:14 +0000 (23:02 -0700)]
vm: fix scrub-league assert abuse

12 years agovm: forgot to add atomic.hpp
Joe Groff [Wed, 2 Nov 2011 04:16:40 +0000 (21:16 -0700)]
vm: forgot to add atomic.hpp

12 years agohashtables.identity: test assoc-like
Joe Groff [Wed, 2 Nov 2011 04:09:23 +0000 (21:09 -0700)]
hashtables.identity: test assoc-like

12 years agovm: separate 'current_gc_p' from 'current_gc'
Joe Groff [Wed, 2 Nov 2011 04:01:40 +0000 (21:01 -0700)]
vm: separate 'current_gc_p' from 'current_gc'
The 'current_gc' handle doesn't need to be volatile, just the state of GC-ness

12 years agovm: add atomic::load and atomic::store functions
Joe Groff [Wed, 2 Nov 2011 04:00:46 +0000 (21:00 -0700)]
vm: add atomic::load and atomic::store functions
Abstract out the fence-and-load and store-and-fence patterns

12 years agotools.profiler.sampling: fix stack effect name
Joe Groff [Wed, 2 Nov 2011 03:28:17 +0000 (20:28 -0700)]
tools.profiler.sampling: fix stack effect name

12 years agotools.profiler.sampling: make rate a global var
Joe Groff [Wed, 2 Nov 2011 03:24:17 +0000 (20:24 -0700)]
tools.profiler.sampling: make rate a global var

12 years agotools.profiler.sampling: groom flat profile
Joe Groff [Wed, 2 Nov 2011 03:18:52 +0000 (20:18 -0700)]
tools.profiler.sampling: groom flat profile

12 years agovm: sample thread object rather than raw context
Joe Groff [Wed, 2 Nov 2011 02:39:54 +0000 (19:39 -0700)]
vm: sample thread object rather than raw context

12 years agotools.profiler.sampling: flat profile report
Joe Groff [Wed, 2 Nov 2011 02:39:22 +0000 (19:39 -0700)]
tools.profiler.sampling: flat profile report

12 years agotools.profiler.sampling: smoke test compact-gc
Joe Groff [Wed, 2 Nov 2011 02:39:00 +0000 (19:39 -0700)]
tools.profiler.sampling: smoke test compact-gc

12 years agohashtables.identity: support assoc-like
Joe Groff [Wed, 2 Nov 2011 02:38:42 +0000 (19:38 -0700)]
hashtables.identity: support assoc-like

12 years agovm: sample code block owners instead of blocks
Joe Groff [Wed, 2 Nov 2011 01:53:37 +0000 (18:53 -0700)]
vm: sample code block owners instead of blocks

12 years agovm: fix data roots in get-samples primitive
Joe Groff [Wed, 2 Nov 2011 01:24:27 +0000 (18:24 -0700)]
vm: fix data roots in get-samples primitive

12 years agovm: die if we fault in a fault
Joe Groff [Wed, 2 Nov 2011 01:22:46 +0000 (18:22 -0700)]
vm: die if we fault in a fault

12 years agotools.profiler.sampling: add detail to profile.
Joe Groff [Wed, 2 Nov 2011 00:52:35 +0000 (17:52 -0700)]
tools.profiler.sampling: add detail to profile.

12 years agotools.profiler.sampling: "top-down" and "profile."
Joe Groff [Tue, 1 Nov 2011 20:10:58 +0000 (13:10 -0700)]
tools.profiler.sampling: "top-down" and "profile."

12 years agovm: quell MSVC warnings
Joe Groff [Tue, 1 Nov 2011 04:46:44 +0000 (21:46 -0700)]
vm: quell MSVC warnings

12 years agovm: parameterize sampling rate
Joe Groff [Tue, 1 Nov 2011 04:31:41 +0000 (21:31 -0700)]
vm: parameterize sampling rate

12 years agohelp.handbook: update link to counting profiler
Joe Groff [Tue, 1 Nov 2011 03:52:32 +0000 (20:52 -0700)]
help.handbook: update link to counting profiler

12 years agotools.profiler.sampling: smoke tests and metadata
Joe Groff [Tue, 1 Nov 2011 03:52:18 +0000 (20:52 -0700)]
tools.profiler.sampling: smoke tests and metadata

12 years agovm: better organize atomics and sample counter
Joe Groff [Tue, 1 Nov 2011 03:51:53 +0000 (20:51 -0700)]
vm: better organize atomics and sample counter

12 years agotools.profiler.counting: rename help article
Joe Groff [Tue, 1 Nov 2011 03:00:51 +0000 (20:00 -0700)]
tools.profiler.counting: rename help article

12 years agotools.profiler.sampling: very basic frontend words
Joe Groff [Tue, 1 Nov 2011 01:59:48 +0000 (18:59 -0700)]
tools.profiler.sampling: very basic frontend words

12 years agovm: fix comments mangled by find & replace
Joe Groff [Tue, 1 Nov 2011 01:55:41 +0000 (18:55 -0700)]
vm: fix comments mangled by find & replace

12 years agomath.statistics: fix stack effect on collect-by
Joe Groff [Tue, 1 Nov 2011 01:55:21 +0000 (18:55 -0700)]
math.statistics: fix stack effect on collect-by

12 years agovm: factor out sample counting code
Joe Groff [Tue, 1 Nov 2011 01:27:51 +0000 (18:27 -0700)]
vm: factor out sample counting code

12 years agowhitespace
Joe Groff [Tue, 1 Nov 2011 00:43:18 +0000 (17:43 -0700)]
whitespace

12 years agovm: only show factorbug help the first time
Joe Groff [Tue, 1 Nov 2011 00:38:42 +0000 (17:38 -0700)]
vm: only show factorbug help the first time

12 years agovm: more accurate sample timing on windows
Joe Groff [Mon, 31 Oct 2011 23:59:10 +0000 (16:59 -0700)]
vm: more accurate sample timing on windows

12 years agoget sampler working under windows
Joe Groff [Mon, 31 Oct 2011 23:50:21 +0000 (16:50 -0700)]
get sampler working under windows

12 years agofix platform dependency in leaf-signal-handler
Joe Groff [Mon, 31 Oct 2011 23:49:23 +0000 (16:49 -0700)]
fix platform dependency in leaf-signal-handler

12 years agovm: fix build on windows
Joe Groff [Mon, 31 Oct 2011 22:06:34 +0000 (15:06 -0700)]
vm: fix build on windows

12 years agovm: sampling profiler timer for windows
Joe Groff [Mon, 31 Oct 2011 21:38:49 +0000 (14:38 -0700)]
vm: sampling profiler timer for windows
Spawn a thread and have it spin on the performance counter, triggering safepoints on the main thread every sample time