]> gitweb.factorcode.org Git - factor.git/log
factor.git
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.

7 years agovocabs.loader: one vocab-exists? word.
John Benediktsson [Sat, 16 Jul 2016 23:21:45 +0000 (16:21 -0700)]
vocabs.loader: one vocab-exists? word.

7 years agousing ``H{ } zip-index-as``.
John Benediktsson [Sat, 16 Jul 2016 17:53:36 +0000 (10:53 -0700)]
using ``H{ } zip-index-as``.

instead of ``<enum> [ swap ] H{ } assoc-map-as``.

7 years agoui: some more dark theme polish.
John Benediktsson [Sat, 16 Jul 2016 17:16:29 +0000 (10:16 -0700)]
ui: some more dark theme polish.

7 years agoui.gadgets.panes: fix #1661.
John Benediktsson [Sat, 16 Jul 2016 14:37:15 +0000 (07:37 -0700)]
ui.gadgets.panes: fix #1661.

Using old "split-lines" behavior that was needed by documents vocabulary,
rather than the new "string-lines" behavior that doesn't indicate if the
string is newline terminated.

7 years agoFUEL: fix name of customization variable
Björn Lindqvist [Wed, 13 Jul 2016 15:34:40 +0000 (17:34 +0200)]
FUEL: fix name of customization variable

7 years agoFUEL: add (require 'smie), fixes #1672
Björn Lindqvist [Wed, 13 Jul 2016 15:34:08 +0000 (17:34 +0200)]
FUEL: add (require 'smie), fixes #1672

7 years agoproject-euler.265: fix bad refactor.
John Benediktsson [Tue, 12 Jul 2016 16:07:10 +0000 (09:07 -0700)]
project-euler.265: fix bad refactor.

7 years agomath.approx: fix typo in docs.
John Benediktsson [Tue, 12 Jul 2016 04:09:11 +0000 (21:09 -0700)]
math.approx: fix typo in docs.

7 years agousing [ ... ] [ drop ] if* instead of dup [ ... ] [ 2drop ] if.
John Benediktsson [Tue, 12 Jul 2016 04:01:03 +0000 (21:01 -0700)]
using [ ... ] [ drop ] if* instead of dup [ ... ] [ 2drop ] if.

7 years agochecksums.sha: speedup, still more to do.
John Benediktsson [Tue, 12 Jul 2016 02:51:28 +0000 (19:51 -0700)]
checksums.sha: speedup, still more to do.

7 years agousing [ ] [ ... ] ?if instead of [ nip ] [ ... ] if*.
John Benediktsson [Tue, 12 Jul 2016 02:50:37 +0000 (19:50 -0700)]
using [ ] [ ... ] ?if instead of [ nip ] [ ... ] if*.

7 years agochecksums.md5: minor thing.
John Benediktsson [Mon, 11 Jul 2016 21:02:33 +0000 (14:02 -0700)]
checksums.md5: minor thing.

7 years agorandom: no need to zero bytes in M\ object random-bytes*.
John Benediktsson [Mon, 11 Jul 2016 21:00:53 +0000 (14:00 -0700)]
random: no need to zero bytes in M\ object random-bytes*.

7 years agorandom.mersenne-twister: simplify seed-random.
John Benediktsson [Mon, 11 Jul 2016 21:00:15 +0000 (14:00 -0700)]
random.mersenne-twister: simplify seed-random.

7 years agouse ?delete-file instead of [ delete-file ] ignore-errors.
John Benediktsson [Mon, 11 Jul 2016 03:28:46 +0000 (20:28 -0700)]
use ?delete-file instead of [ delete-file ] ignore-errors.

7 years agomath.integers: use must-fail instead of ignore-errors.
John Benediktsson [Mon, 11 Jul 2016 03:28:28 +0000 (20:28 -0700)]
math.integers: use must-fail instead of ignore-errors.

7 years agounicode: add the number of tests...
John Benediktsson [Mon, 11 Jul 2016 01:18:41 +0000 (18:18 -0700)]
unicode: add the number of tests...

...so we don't accidentally stop testing things that should be tested.

7 years agounicode.normalize: better tests that don't spam the console.
John Benediktsson [Sun, 10 Jul 2016 23:54:02 +0000 (16:54 -0700)]
unicode.normalize: better tests that don't spam the console.

7 years agounicode.collation: better tests that don't spam the console.
John Benediktsson [Sun, 10 Jul 2016 23:36:14 +0000 (16:36 -0700)]
unicode.collation: better tests that don't spam the console.

7 years agohttp.server.responses: less dynamic but equal.
John Benediktsson [Sun, 10 Jul 2016 22:44:54 +0000 (15:44 -0700)]
http.server.responses: less dynamic but equal.

7 years agohttp.server.responses: load trivial responses from a text file.
John Benediktsson [Sun, 10 Jul 2016 22:26:58 +0000 (15:26 -0700)]
http.server.responses: load trivial responses from a text file.

7 years agochecksums.common: don't need next-level anymore thanks to cleanup.
Doug Coleman [Sun, 10 Jul 2016 16:40:16 +0000 (11:40 -0500)]
checksums.common: don't need next-level anymore thanks to cleanup.

7 years agochecksums.common: simplify add-checksum-bytes.
John Benediktsson [Sun, 10 Jul 2016 03:58:14 +0000 (20:58 -0700)]
checksums.common: simplify add-checksum-bytes.

7 years agochecksums: Ugly fix for incremental checksums. Add randomized unit tests to ensure...
Doug Coleman [Sat, 9 Jul 2016 21:59:15 +0000 (16:59 -0500)]
checksums: Ugly fix for incremental checksums. Add randomized unit tests to ensure that varying length payloads are the same incrementally or all at once.

7 years agochecksums: Really fix... only add the number of extra bytes in the last unchecksummed...
Doug Coleman [Sat, 9 Jul 2016 19:17:59 +0000 (14:17 -0500)]
checksums: Really fix... only add the number of extra bytes in the last unchecksummed block.

7 years agochecksums.common: Checksums was calculating the new length based on the entire array...
Doug Coleman [Sat, 9 Jul 2016 18:53:30 +0000 (13:53 -0500)]
checksums.common: Checksums was calculating the new length based on the entire array, not on the number of recently added bytes.
Reported by Александр Ilin.

7 years agohttp.server.static: add sorts on columns 1671/head
Jon Harper [Sun, 26 Jun 2016 18:35:25 +0000 (20:35 +0200)]
http.server.static: add sorts on columns

7 years agohttp.server.static, html table listings
Jon Harper [Wed, 22 Jun 2016 21:20:48 +0000 (23:20 +0200)]
http.server.static, html table listings

7 years agoFUEL: readding factor-method-definition-regex
Björn Lindqvist [Sat, 2 Jul 2016 13:27:33 +0000 (15:27 +0200)]
FUEL: readding factor-method-definition-regex

It is needed by the fuel-refactor--def-word function.

7 years agoFUEL: unused function removed
Björn Lindqvist [Sat, 2 Jul 2016 13:26:41 +0000 (15:26 +0200)]
FUEL: unused function removed

7 years agoFUEL: better symbol-capturing regexp and support for X-FUNCTION
Björn Lindqvist [Sat, 2 Jul 2016 01:28:19 +0000 (03:28 +0200)]
FUEL: better symbol-capturing regexp and support for X-FUNCTION

7 years agoFUEL: new indentation system based on smie
Björn Lindqvist [Sat, 2 Jul 2016 01:24:46 +0000 (03:24 +0200)]
FUEL: new indentation system based on smie

smie makes writing the indentation code much simpler. It also takes care
of some corner cases that led to bad indentation before like stack
effects split over multiple lines.

See: http://emacs.1067599.n5.nabble.com/SMIE-examples-or-guides-td400784.html

7 years agoVM: fixing small style issues
Björn Lindqvist [Thu, 30 Jun 2016 11:44:18 +0000 (13:44 +0200)]
VM: fixing small style issues

Like aligning comments and changing //-comments to /* */

7 years agowindows.ole32: use sets in tests.
John Benediktsson [Fri, 1 Jul 2016 14:55:50 +0000 (07:55 -0700)]
windows.ole32: use sets in tests.

7 years agohashcash: quick fix for string argument to checksum-bytes.
John Benediktsson [Thu, 30 Jun 2016 21:50:47 +0000 (14:50 -0700)]
hashcash: quick fix for string argument to checksum-bytes.

7 years agochecksums: fix test using.
John Benediktsson [Thu, 30 Jun 2016 21:47:18 +0000 (14:47 -0700)]
checksums: fix test using.

7 years agoio.backend: remove unused normalize-directory word.
John Benediktsson [Thu, 30 Jun 2016 21:11:24 +0000 (14:11 -0700)]
io.backend: remove unused normalize-directory word.

7 years agochecksums: remove doc for stream-checksum.
John Benediktsson [Thu, 30 Jun 2016 19:34:36 +0000 (12:34 -0700)]
checksums: remove doc for stream-checksum.

7 years agochecksums: some cleanup.
John Benediktsson [Thu, 30 Jun 2016 18:41:27 +0000 (11:41 -0700)]
checksums: some cleanup.

- define checksum-bytes and checksum-stream in terms of each other
- delete stream-checksum now that it's no longer needed
- move checksum-state stuff into checksums.common
- add a block-checksum that uses the checksum-state stuff
- change checksums.openssl to not use the checksum-state

7 years agoio.encodings.binary: move to core.
John Benediktsson [Thu, 30 Jun 2016 18:36:08 +0000 (11:36 -0700)]
io.encodings.binary: move to core.

7 years agochecksums.common: some cleanup, remove unused stuff.
John Benediktsson [Thu, 30 Jun 2016 18:13:51 +0000 (11:13 -0700)]
checksums.common: some cleanup, remove unused stuff.

7 years agoFUEL: makes accessors and tuple slots with backslashes highlight correctly
Björn Lindqvist [Thu, 30 Jun 2016 00:42:23 +0000 (02:42 +0200)]
FUEL: makes accessors and tuple slots with backslashes highlight correctly

7 years agoFUEL: fix highlighting of strings escaping quote characters
Björn Lindqvist [Wed, 29 Jun 2016 23:00:42 +0000 (01:00 +0200)]
FUEL: fix highlighting of strings escaping quote characters

(modify-syntax-entry ?\\ "_" table) was wrong, instead a bigger regexp
is needed.

7 years agochecksums.openssl: make evp-md-context private.
John Benediktsson [Wed, 29 Jun 2016 21:31:32 +0000 (14:31 -0700)]
checksums.openssl: make evp-md-context private.