]> gitweb.factorcode.org Git - factor.git/log
factor.git
7 years agoVM: removing the safepoint_state class
Björn Lindqvist [Mon, 15 Aug 2016 13:13:30 +0000 (15:13 +0200)]
VM: removing the safepoint_state class

The code reads better if the safepoint_state methods and
attributes (sample_counts and safepoint_fep_p) are moved to the vm
class.

7 years agoVM: trying to simplify record_sample and the profiling_sample constructor
Björn Lindqvist [Sun, 14 Aug 2016 01:12:36 +0000 (03:12 +0200)]
VM: trying to simplify record_sample and the profiling_sample constructor

7 years agocompiler.prettyprint: new vocab for prettyprinting compiler types
Björn Lindqvist [Sat, 13 Aug 2016 14:36:57 +0000 (16:36 +0200)]
compiler.prettyprint: new vocab for prettyprinting compiler types

The require-when ensures that the prettyprint methods are loaded when
both the compiler and prettyprint is loaded.

7 years agoalien.debugger: this vocab isn't needed
Björn Lindqvist [Sat, 13 Aug 2016 13:49:33 +0000 (15:49 +0200)]
alien.debugger: this vocab isn't needed

The summary methods doesn't need dedicated vocabs. Unlike prettyprint methods.

7 years agoetc-hosts: new vocab.
John Benediktsson [Sun, 14 Aug 2016 18:43:02 +0000 (11:43 -0700)]
etc-hosts: new vocab.

7 years agocompiler.*: moving all words only relevant for testing to compiler.test
Björn Lindqvist [Fri, 12 Aug 2016 12:29:01 +0000 (14:29 +0200)]
compiler.*: moving all words only relevant for testing to compiler.test

7 years agocompiler.cfg.gvn.tests: this vocab in extra appears redundant
Björn Lindqvist [Fri, 12 Aug 2016 12:14:13 +0000 (14:14 +0200)]
compiler.cfg.gvn.tests: this vocab in extra appears redundant

It is almost identical to the one in compiler.cfg.value-numbering.tests
so I think it can be removed.

7 years agocompiler.cfg.test-words: vocab is unused so we can remove it
Björn Lindqvist [Fri, 12 Aug 2016 12:06:19 +0000 (14:06 +0200)]
compiler.cfg.test-words: vocab is unused so we can remove it

7 years agocompiler.cfg.stacks.local: using compiler.cfg.debugger to ensure consistent prettypri...
Björn Lindqvist [Fri, 12 Aug 2016 11:55:10 +0000 (13:55 +0200)]
compiler.cfg.stacks.local: using compiler.cfg.debugger to ensure consistent prettyprint output

7 years agocpu.*: new generic word enable-cpu-features
Björn Lindqvist [Thu, 11 Aug 2016 16:05:39 +0000 (18:05 +0200)]
cpu.*: new generic word enable-cpu-features

The word is used during bootstrap to enable available cpu specific
intrinsics.

7 years agosystem: looks like the name>> accessor can be used here
Björn Lindqvist [Thu, 11 Aug 2016 15:32:02 +0000 (17:32 +0200)]
system: looks like the name>> accessor can be used here

So then the cpu>string and os>string words aren't needed.

7 years agoalien.c-types: c-type-string without using prettyprint words
Björn Lindqvist [Thu, 11 Aug 2016 13:25:46 +0000 (15:25 +0200)]
alien.c-types: c-type-string without using prettyprint words

Using prettyprint caused deploy-images to grow unnecessarily.

7 years agoui.gadgets.tables: implement cell-dim and draw-cell for the f class
Alexander Iljin [Wed, 10 Aug 2016 22:47:20 +0000 (01:47 +0300)]
ui.gadgets.tables: implement cell-dim and draw-cell for the f class

7 years agoRevert "assocs-docs: mark assoc-partition and partition as related words"
John Benediktsson [Thu, 11 Aug 2016 02:42:41 +0000 (19:42 -0700)]
Revert "assocs-docs: mark assoc-partition and partition as related words"

This reverts commit 892e41c1ce207682c4c0d726451c39280fc1fadd.

7 years agocolors.constants-docs: update the list of files with named colors
Alexander Iljin [Wed, 10 Aug 2016 21:57:55 +0000 (00:57 +0300)]
colors.constants-docs: update the list of files with named colors

7 years agoui.gadgets.tables-docs: add row-value? to the renderer protocol
Alexander Iljin [Wed, 10 Aug 2016 21:43:06 +0000 (00:43 +0300)]
ui.gadgets.tables-docs: add row-value? to the renderer protocol

7 years agoui.gadgets.tables: fix a typo in a comment
Alexander Iljin [Wed, 10 Aug 2016 21:37:10 +0000 (00:37 +0300)]
ui.gadgets.tables: fix a typo in a comment

7 years agoassocs-docs: mark assoc-partition and partition as related words
Alexander Iljin [Thu, 4 Aug 2016 18:12:19 +0000 (21:12 +0300)]
assocs-docs: mark assoc-partition and partition as related words

7 years agoui.tools-docs: fix description of the context menu behavior
Alexander Iljin [Thu, 4 Aug 2016 18:11:47 +0000 (21:11 +0300)]
ui.tools-docs: fix description of the context menu behavior

7 years agoui.gadgets.tracks-docs: minor documentation improvements
Alexander Iljin [Tue, 9 Aug 2016 23:00:45 +0000 (02:00 +0300)]
ui.gadgets.tracks-docs: minor documentation improvements

7 years agoui.commands-docs: improve define-command-map word description
Alexander Iljin [Tue, 9 Aug 2016 22:56:44 +0000 (01:56 +0300)]
ui.commands-docs: improve define-command-map word description

7 years agoui.gadgets.toolbar-docs: fix <toolbar> word description
Alexander Iljin [Tue, 9 Aug 2016 22:55:22 +0000 (01:55 +0300)]
ui.gadgets.toolbar-docs: fix <toolbar> word description

7 years agoui.render-docs: fix description of graft-state
Alexander Iljin [Tue, 9 Aug 2016 21:34:51 +0000 (00:34 +0300)]
ui.render-docs: fix description of graft-state

7 years agoalien.*: moving the c-type-string word to the alien.c-types vocab
Björn Lindqvist [Wed, 10 Aug 2016 12:26:09 +0000 (14:26 +0200)]
alien.*: moving the c-type-string word to the alien.c-types vocab

This way it can be used in alien.parser instead of return-type-name.

7 years agoalien.parser/prettyprint: moving the predicates
Björn Lindqvist [Wed, 10 Aug 2016 11:45:38 +0000 (13:45 +0200)]
alien.parser/prettyprint: moving the predicates

7 years agoalien.*: frontend varargs support! #1677
Björn Lindqvist [Tue, 9 Aug 2016 23:18:52 +0000 (01:18 +0200)]
alien.*: frontend varargs support! #1677

alien-invoke gets an extra parameter indicating if the call uses varargs
or not. In 99.9% of the cases, the parameter should be f, but is t if
varargs are indicated. E.g

: do-printf ( fmt d -- st ) int f "printf" { c-string double } t alien-invoke ;

7 years agocompiler.cfg.builder.alien: simpler caller-stack-frame word
Björn Lindqvist [Tue, 9 Aug 2016 20:50:16 +0000 (22:50 +0200)]
compiler.cfg.builder.alien: simpler caller-stack-frame word

7 years agoalien.parser: method object return-type-name is redundant
Björn Lindqvist [Tue, 9 Aug 2016 10:19:27 +0000 (12:19 +0200)]
alien.parser: method object return-type-name is redundant

7 years agocuckoo-filters: less duplication in cuckoo-insert.
John Benediktsson [Tue, 9 Aug 2016 02:39:24 +0000 (19:39 -0700)]
cuckoo-filters: less duplication in cuckoo-insert.

7 years agocuckoo-filters: change language to refer to fingerprints.
John Benediktsson [Tue, 9 Aug 2016 00:01:53 +0000 (17:01 -0700)]
cuckoo-filters: change language to refer to fingerprints.

7 years agocuckoo-filters: minor cleanup.
John Benediktsson [Mon, 8 Aug 2016 22:54:58 +0000 (15:54 -0700)]
cuckoo-filters: minor cleanup.

7 years agocuckoo-filters: using alien deref in tag-index.
John Benediktsson [Mon, 8 Aug 2016 22:18:36 +0000 (15:18 -0700)]
cuckoo-filters: using alien deref in tag-index.

7 years agocuckoo-filters: adding some documentation.
John Benediktsson [Mon, 8 Aug 2016 22:15:08 +0000 (15:15 -0700)]
cuckoo-filters: adding some documentation.

7 years agocuckoo-filters: add tests for lookup each value also.
John Benediktsson [Mon, 8 Aug 2016 21:31:36 +0000 (14:31 -0700)]
cuckoo-filters: add tests for lookup each value also.

7 years agocuckoo-filters: new vocabulary.
John Benediktsson [Mon, 8 Aug 2016 17:13:11 +0000 (10:13 -0700)]
cuckoo-filters: new vocabulary.

7 years agobloom-filters: adding summary.txt.
John Benediktsson [Mon, 8 Aug 2016 17:11:58 +0000 (10:11 -0700)]
bloom-filters: adding summary.txt.

7 years agocompiler.*: Backend implementation of varargs
Björn Lindqvist [Mon, 8 Aug 2016 09:03:20 +0000 (11:03 +0200)]
compiler.*: Backend implementation of varargs

It is turned off by default. Support for using it coming soon. :)

7 years agocpu.architecture: new docs
Björn Lindqvist [Mon, 8 Aug 2016 08:37:50 +0000 (10:37 +0200)]
cpu.architecture: new docs

7 years agocpu.*: float-on-stack? word never used
Björn Lindqvist [Mon, 8 Aug 2016 08:29:17 +0000 (10:29 +0200)]
cpu.*: float-on-stack? word never used

7 years agostack-checker.*: infer doesn't need to be generic
Björn Lindqvist [Sat, 6 Aug 2016 17:04:41 +0000 (19:04 +0200)]
stack-checker.*: infer doesn't need to be generic

7 years agostack-checker.alien: new word stack-shape which replaces alien-inputs/outputs
Björn Lindqvist [Sat, 6 Aug 2016 17:00:23 +0000 (19:00 +0200)]
stack-checker.alien: new word stack-shape which replaces alien-inputs/outputs

7 years agocompiler.*, stack-checker.*: fixes to make the tests work on 32bit too
Björn Lindqvist [Fri, 5 Aug 2016 14:44:19 +0000 (16:44 +0200)]
compiler.*, stack-checker.*: fixes to make the tests work on 32bit too

7 years agoVM: new ffi_test functions added
Björn Lindqvist [Fri, 5 Aug 2016 13:29:17 +0000 (15:29 +0200)]
VM: new ffi_test functions added

7 years agoforestdb.ffi: update to latest .h files
Doug Coleman [Sun, 31 Jul 2016 21:51:13 +0000 (14:51 -0700)]
forestdb.ffi: update to latest .h files

7 years agoBuild: adding c99 flag, in case compiler doesn't enable it by default
Björn Lindqvist [Thu, 4 Aug 2016 23:50:54 +0000 (01:50 +0200)]
Build: adding c99 flag, in case compiler doesn't enable it by default

7 years agoterminfo: new platforms.txt
Björn Lindqvist [Thu, 4 Aug 2016 23:07:31 +0000 (01:07 +0200)]
terminfo: new platforms.txt

7 years agocompiler.cfg.builder.*: fix for tests that broke on windows
Björn Lindqvist [Thu, 4 Aug 2016 23:01:25 +0000 (01:01 +0200)]
compiler.cfg.builder.*: fix for tests that broke on windows

7 years agoio.sockets.windows: WSASocket-flags not needed
Björn Lindqvist [Wed, 15 Jun 2016 10:06:10 +0000 (12:06 +0200)]
io.sockets.windows: WSASocket-flags not needed

7 years agostack-checker.*: new tests
Björn Lindqvist [Thu, 4 Aug 2016 18:30:12 +0000 (20:30 +0200)]
stack-checker.*: new tests

7 years agostack-checker.*: removes the in-d and out-d slots from the alien-node-params tuple
Björn Lindqvist [Thu, 4 Aug 2016 16:21:54 +0000 (18:21 +0200)]
stack-checker.*: removes the in-d and out-d slots from the alien-node-params tuple

That data is already on the #alien-node tuple so it doesn't need to be
stored twice.

7 years agostack-checker.*: change pop-literal stack effect to ( -- obj )
Björn Lindqvist [Thu, 4 Aug 2016 14:43:50 +0000 (16:43 +0200)]
stack-checker.*: change pop-literal stack effect to ( -- obj )

The rstate return value is never used so we can remove it

7 years agostack-checker.*: init-known-values word not needed
Björn Lindqvist [Thu, 4 Aug 2016 11:30:24 +0000 (13:30 +0200)]
stack-checker.*: init-known-values word not needed

7 years agovm: fix typo from c++ comment patch causing compile failure.
Doug Coleman [Thu, 4 Aug 2016 16:28:50 +0000 (09:28 -0700)]
vm: fix typo from c++ comment patch causing compile failure.

7 years agoalien: replacing the alien-*-error family of errors with callsite-not-compiled
Björn Lindqvist [Wed, 3 Aug 2016 08:53:48 +0000 (10:53 +0200)]
alien: replacing the alien-*-error family of errors with callsite-not-compiled

All the errors did the same thing anyway. Also adding a summary method
to it.

7 years agotools.cal: adding the "cal" utility.
John Benediktsson [Wed, 3 Aug 2016 18:28:28 +0000 (11:28 -0700)]
tools.cal: adding the "cal" utility.

Example usage:
$ ./factor -run=tools.cal
    August 2016
Su Mo Tu We Th Fr Sa
    1  2  3  4  5  6
 7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

7 years agosequences.extras: adding pad-center.
John Benediktsson [Wed, 3 Aug 2016 18:25:06 +0000 (11:25 -0700)]
sequences.extras: adding pad-center.

7 years agovm: replace line comments // with block comments /**/ for consintency
Alexander Iljin [Sat, 30 Jul 2016 02:23:10 +0000 (05:23 +0300)]
vm: replace line comments // with block comments /**/ for consintency

Fix #1651.

7 years agocompiler.tests.alien: tests for varargs calls
Björn Lindqvist [Tue, 2 Aug 2016 21:36:02 +0000 (23:36 +0200)]
compiler.tests.alien: tests for varargs calls

7 years agocpu.x86.*: improved varargs support
Björn Lindqvist [Tue, 2 Aug 2016 03:03:02 +0000 (05:03 +0200)]
cpu.x86.*: improved varargs support

Now on the x86.64 platform, we set the AL register to contain the nr of
floating point values passed to the function as required by the abi.

7 years agochecksums.crc32: verify checksum-state is working.
John Benediktsson [Tue, 2 Aug 2016 20:16:30 +0000 (13:16 -0700)]
checksums.crc32: verify checksum-state is working.

7 years agochecksums: fix stack effect of with-checksum-state.
John Benediktsson [Tue, 2 Aug 2016 17:58:48 +0000 (10:58 -0700)]
checksums: fix stack effect of with-checksum-state.

7 years agocompiler.cfg.builder.alien.tests: fix for the test case i broke
Björn Lindqvist [Mon, 1 Aug 2016 23:28:49 +0000 (01:28 +0200)]
compiler.cfg.builder.alien.tests: fix for the test case i broke

7 years agochecksums: make checksum-state implement dispose.
John Benediktsson [Mon, 1 Aug 2016 22:46:30 +0000 (15:46 -0700)]
checksums: make checksum-state implement dispose.

7 years agocompiler.cfg.*: lots of new tests
Björn Lindqvist [Mon, 1 Aug 2016 19:51:40 +0000 (21:51 +0200)]
compiler.cfg.*: lots of new tests

7 years agocompiler.*: new docs
Björn Lindqvist [Mon, 1 Aug 2016 19:50:30 +0000 (21:50 +0200)]
compiler.*: new docs

7 years agocompiler.cfg.builder.alien.params: refactors the next-reg-param and reg-class-full...
Björn Lindqvist [Mon, 1 Aug 2016 19:34:58 +0000 (21:34 +0200)]
compiler.cfg.builder.alien.params: refactors the next-reg-param and reg-class-full? words

7 years agocompiler.cfg.builder.alien.*: merge of with-param-regs and with-param-regs*
Björn Lindqvist [Mon, 1 Aug 2016 18:56:21 +0000 (20:56 +0200)]
compiler.cfg.builder.alien.*: merge of with-param-regs and with-param-regs*

7 years agocpu.*: removes the vector-regs hook
Björn Lindqvist [Mon, 1 Aug 2016 17:33:01 +0000 (19:33 +0200)]
cpu.*: removes the vector-regs hook

It is not needed for now as float-regs are always used for vector-reps.

7 years agocpu.*: the %loop-entry word is unused
Björn Lindqvist [Mon, 1 Aug 2016 04:05:38 +0000 (06:05 +0200)]
cpu.*: the %loop-entry word is unused

7 years agoio.sockets: adding docs and tests for port-protocol.
John Benediktsson [Mon, 1 Aug 2016 17:22:16 +0000 (10:22 -0700)]
io.sockets: adding docs and tests for port-protocol.

7 years agourls: better parsing of the scheme component of urls
Björn Lindqvist [Sun, 31 Jul 2016 00:46:39 +0000 (02:46 +0200)]
urls: better parsing of the scheme component of urls

normalize to lowercase and a few more characters are allowed in the
protocol part.

7 years agoio.sockets: adding port-protocol to match protocol-port.
John Benediktsson [Sat, 30 Jul 2016 18:12:40 +0000 (11:12 -0700)]
io.sockets: adding port-protocol to match protocol-port.

7 years agoFUEL: syntax fixes for MAIN-WINDOW:, LOG: and TUPLE: with initial values
Björn Lindqvist [Sat, 30 Jul 2016 17:00:14 +0000 (19:00 +0200)]
FUEL: syntax fixes for MAIN-WINDOW:, LOG: and TUPLE: with initial values

7 years agoio.monitors.recursive: with-qualified-directory-files works here
Björn Lindqvist [Sat, 30 Jul 2016 16:58:03 +0000 (18:58 +0200)]
io.monitors.recursive: with-qualified-directory-files works here

7 years agoui.tools.*: fix swapped argument order for set-tool-dim
Björn Lindqvist [Sat, 30 Jul 2016 16:16:29 +0000 (18:16 +0200)]
ui.tools.*: fix swapped argument order for set-tool-dim

7 years agoterminfo.tests: two sanity tests
Björn Lindqvist [Sat, 30 Jul 2016 15:30:51 +0000 (17:30 +0200)]
terminfo.tests: two sanity tests

7 years agoterminfo: makes it so terminfo files are looked up from a set of dirs
Björn Lindqvist [Sat, 30 Jul 2016 15:28:09 +0000 (17:28 +0200)]
terminfo: makes it so terminfo files are looked up from a set of dirs

On Ubuntu, terminfo files are stored in /lib/terminfo, but they can also
be found in any of the other dirs listed in TERMINFO-DIRS.

7 years agoio.directories.*: move of the qualified directory listing words to io.directories
Björn Lindqvist [Sat, 30 Jul 2016 13:02:37 +0000 (15:02 +0200)]
io.directories.*: move of the qualified directory listing words to io.directories

7 years agoui.tools.*: new docs
Björn Lindqvist [Fri, 29 Jul 2016 22:42:42 +0000 (00:42 +0200)]
ui.tools.*: new docs

7 years agoui.tools.common: it's nicer to store the tool dims as word properties
Björn Lindqvist [Fri, 29 Jul 2016 22:41:30 +0000 (00:41 +0200)]
ui.tools.common: it's nicer to store the tool dims as word properties

7 years agochecksums: making "checksum-state" a universal concept.
John Benediktsson [Sat, 30 Jul 2016 16:31:10 +0000 (09:31 -0700)]
checksums: making "checksum-state" a universal concept.

I'm not super happy with the design yet, partly because OpenSSL doesn't
subclass ``checksum-state`` so all ``initialize-checksum-state`` will not
return a ``checksum-state`` instance.  That could maybe be changed by making
``checksum-state`` a mixin, or perhaps some other way.

7 years agovm: add a comment on possible issues with QueryPerformanceCounter
Alexander Iljin [Sun, 24 Jul 2016 23:02:40 +0000 (02:02 +0300)]
vm: add a comment on possible issues with QueryPerformanceCounter

7 years agocombinators-docs: fix wording
Alexander Iljin [Tue, 26 Jul 2016 17:23:47 +0000 (20:23 +0300)]
combinators-docs: fix wording

7 years agomath.functions-docs: fix wording for abs and absq
Alexander Iljin [Thu, 28 Jul 2016 18:02:14 +0000 (21:02 +0300)]
math.functions-docs: fix wording for abs and absq

Those functions are not specific to complex numbers.

7 years agomath: fix stack effect declaration for the neg? generic
Alexander Iljin [Thu, 28 Jul 2016 17:41:02 +0000 (20:41 +0300)]
math: fix stack effect declaration for the neg? generic

7 years agodocs: replace $description with $class-description for class words
Alexander Iljin [Thu, 28 Jul 2016 17:39:43 +0000 (20:39 +0300)]
docs: replace $description with $class-description for class words

7 years agocalendar.format: add hm>timestamp
Alexander Iljin [Fri, 22 Jul 2016 16:03:40 +0000 (19:03 +0300)]
calendar.format: add hm>timestamp

7 years agoio.files.info-docs: fix links to file-info-tuple parameters
Alexander Iljin [Thu, 21 Jul 2016 07:14:44 +0000 (10:14 +0300)]
io.files.info-docs: fix links to file-info-tuple parameters

7 years agoprogress-bars.models-docs: fix example code for with-file-reader-progress
Alexander Iljin [Tue, 19 Jul 2016 10:24:12 +0000 (13:24 +0300)]
progress-bars.models-docs: fix example code for with-file-reader-progress

7 years agotools.scaffold-docs: add documentation for the scaffold-work word
Alexander Iljin [Thu, 14 Jul 2016 13:58:05 +0000 (16:58 +0300)]
tools.scaffold-docs: add documentation for the scaffold-work word

7 years agoAdd EOL at EOF for all authors.txt files for consistency
Alexander Iljin [Tue, 28 Jun 2016 23:32:32 +0000 (02:32 +0300)]
Add EOL at EOF for all authors.txt files for consistency

In some instances replaced CR/LF with LF.

7 years agomath-docs: fix a copy-paste error
Alexander Iljin [Tue, 28 Jun 2016 21:11:51 +0000 (00:11 +0300)]
math-docs: fix a copy-paste error

7 years agoeditors.emacs: pass alternative-editor param in case emacs isn't running
Björn Lindqvist [Wed, 27 Jul 2016 12:19:05 +0000 (14:19 +0200)]
editors.emacs: pass alternative-editor param in case emacs isn't running

7 years agocpu.x86.*: fix %prepare-var-args
Björn Lindqvist [Mon, 25 Jul 2016 12:15:00 +0000 (14:15 +0200)]
cpu.x86.*: fix %prepare-var-args

EAX EAX XOR over RAX shaves off one byte

7 years agowindows.fonts: call reset-memoized for windows-fonts on startup
Alexander Iljin [Mon, 25 Jul 2016 16:29:25 +0000 (19:29 +0300)]
windows.fonts: call reset-memoized for windows-fonts on startup

7 years agodb.sqlite: Fix NULL returns for INTEGER columns in sqlite
Doug Coleman [Fri, 22 Jul 2016 15:19:54 +0000 (08:19 -0700)]
db.sqlite: Fix NULL returns for INTEGER columns in sqlite

The api for getting integer/double columns from sqlite3 returns a zero, but the value could still be NULL, so an extra api check for the sqlite type is required.

Fixes #1674.

7 years agoregexp.minimize: a little bit simpler, a little bit faster.
John Benediktsson [Mon, 18 Jul 2016 17:05:38 +0000 (10:05 -0700)]
regexp.minimize: a little bit simpler, a little bit faster.

7 years agohelp.lint.checks: adding linux and windows ui disposables.
John Benediktsson [Sat, 16 Jul 2016 23:51:17 +0000 (16:51 -0700)]
help.lint.checks: adding linux and windows ui disposables.

7 years agohelp.lint.checks: factored out to no-ui-disposables word.
John Benediktsson [Sat, 16 Jul 2016 23:28:04 +0000 (16:28 -0700)]
help.lint.checks: factored out to no-ui-disposables word.

7 years agohelp.lint: use vocab-exists? and eliminate UI disposables from check.
John Benediktsson [Sat, 16 Jul 2016 23:22:06 +0000 (16:22 -0700)]
help.lint: use vocab-exists? and eliminate UI disposables from check.