]> gitweb.factorcode.org Git - factor.git/log
factor.git
7 years agouse with-variable in some places with-scope was used.
John Benediktsson [Wed, 4 Jan 2017 03:12:29 +0000 (19:12 -0800)]
use with-variable in some places with-scope was used.

7 years agocalendar.english: new vocab for english names for days and months
Björn Lindqvist [Tue, 3 Jan 2017 14:48:08 +0000 (15:48 +0100)]
calendar.english: new vocab for english names for days and months

This moves all the english-centric words from the calendar vocab which
was getting kind of big to calendar.english. It should make it easier to
see which vocabs make language assumptions.

7 years agowikipedia: strftime + tests
Björn Lindqvist [Tue, 3 Jan 2017 14:37:53 +0000 (15:37 +0100)]
wikipedia: strftime + tests

7 years agotools.cal: using strftime + tests
Björn Lindqvist [Tue, 3 Jan 2017 14:30:59 +0000 (15:30 +0100)]
tools.cal: using strftime + tests

7 years agoclasses.mixin,classes.union: moves the check-self-reference test
Björn Lindqvist [Tue, 3 Jan 2017 05:10:12 +0000 (06:10 +0100)]
classes.mixin,classes.union: moves the check-self-reference test

Should make it so you can't define self-referencing mixins, just like
you can't define self-referencing unions.

7 years agocalendar.format.tests: stray char
Björn Lindqvist [Tue, 3 Jan 2017 05:09:09 +0000 (06:09 +0100)]
calendar.format.tests: stray char

7 years agoclasses.mixin.tests: fix tc not to break when forget-tests? is on
Björn Lindqvist [Tue, 3 Jan 2017 03:15:13 +0000 (04:15 +0100)]
classes.mixin.tests: fix tc not to break when forget-tests? is on

7 years agomath.combinatorics: cleaner next-permutation.
John Benediktsson [Mon, 2 Jan 2017 17:34:15 +0000 (09:34 -0800)]
math.combinatorics: cleaner next-permutation.

7 years agomath.statistics-docs: make cum-product example less ambiguous
Alexander Iljin [Fri, 16 Dec 2016 21:44:32 +0000 (00:44 +0300)]
math.statistics-docs: make cum-product example less ambiguous

In the previous version of the example it was not clear whether the result
always starts with 1 (as is the case with cum-product1) or with the first
item of the input sequence.

7 years agomath.parser: add missing blank line between words
Alexander Iljin [Wed, 16 Nov 2016 06:45:25 +0000 (09:45 +0300)]
math.parser: add missing blank line between words

7 years agodb-docs: remove double period at the end of a sentence
Alexander Iljin [Wed, 9 Nov 2016 13:36:57 +0000 (16:36 +0300)]
db-docs: remove double period at the end of a sentence

7 years agodb-docs: add a missing newline to separate groups of items
Alexander Iljin [Wed, 9 Nov 2016 13:34:40 +0000 (16:34 +0300)]
db-docs: add a missing newline to separate groups of items

7 years agogrouping-docs: add wrap-around note
Shane Pelletier [Mon, 2 Jan 2017 15:57:03 +0000 (11:57 -0400)]
grouping-docs: add wrap-around note

7 years agoui.gadgets.slots: removing unnecessary tuples.
John Benediktsson [Sun, 1 Jan 2017 02:54:18 +0000 (18:54 -0800)]
ui.gadgets.slots: removing unnecessary tuples.

7 years agohtml.components: protect M\ code render* from ``f`` value.
John Benediktsson [Sat, 31 Dec 2016 21:53:56 +0000 (13:53 -0800)]
html.components: protect M\ code render* from ``f`` value.

7 years agocalendar.format: parse rfc822 military and named timezones.
John Benediktsson [Sat, 31 Dec 2016 21:50:08 +0000 (13:50 -0800)]
calendar.format: parse rfc822 military and named timezones.

7 years agocalendar.format: allow UTC to be in rfc822 timestamps.
John Benediktsson [Sat, 31 Dec 2016 21:22:49 +0000 (13:22 -0800)]
calendar.format: allow UTC to be in rfc822 timestamps.

7 years agostack-checker.backend: no need to add extra dependencies on wrappers
Björn Lindqvist [Sat, 31 Dec 2016 10:41:29 +0000 (11:41 +0100)]
stack-checker.backend: no need to add extra dependencies on wrappers

This makes it so that if you declare a symbol it won't have an effect
dependency on itself.

7 years agoclasses.mixin: fix type checking in add-mixin-instance
Björn Lindqvist [Fri, 30 Dec 2016 15:24:34 +0000 (16:24 +0100)]
classes.mixin: fix type checking in add-mixin-instance

One test in classes.mixin.tests intermittently breaks otherwise.

7 years agoclasses.mixin: better name for the type checking error
Björn Lindqvist [Fri, 30 Dec 2016 15:02:55 +0000 (16:02 +0100)]
classes.mixin: better name for the type checking error

7 years agosequences.extras: fix map-concat to be row-polymorphic.
John Benediktsson [Thu, 29 Dec 2016 20:35:39 +0000 (12:35 -0800)]
sequences.extras: fix map-concat to be row-polymorphic.

7 years agosequences.extras: little more cleanup.
John Benediktsson [Thu, 29 Dec 2016 20:29:09 +0000 (12:29 -0800)]
sequences.extras: little more cleanup.

7 years agosequences.extras: fix doc for find-all.
John Benediktsson [Thu, 29 Dec 2016 20:04:29 +0000 (12:04 -0800)]
sequences.extras: fix doc for find-all.

7 years agosequences.extras: removing a couple words that aren't used.
John Benediktsson [Thu, 29 Dec 2016 20:03:16 +0000 (12:03 -0800)]
sequences.extras: removing a couple words that aren't used.

7 years agoassocs: M\ enum >alist can be no-op because it's a sequence.
John Benediktsson [Thu, 29 Dec 2016 19:58:55 +0000 (11:58 -0800)]
assocs: M\ enum >alist can be no-op because it's a sequence.

7 years agosequences.extras: simpler find-all and a test.
John Benediktsson [Thu, 29 Dec 2016 17:20:32 +0000 (09:20 -0800)]
sequences.extras: simpler find-all and a test.

7 years agosequences: remove (indices).
John Benediktsson [Thu, 29 Dec 2016 00:40:27 +0000 (16:40 -0800)]
sequences: remove (indices).

7 years agotools.destructors: use collect-by.
John Benediktsson [Thu, 29 Dec 2016 00:21:08 +0000 (16:21 -0800)]
tools.destructors: use collect-by.

7 years agotools.profiler.sampling: cleanup using.
John Benediktsson [Wed, 28 Dec 2016 21:40:05 +0000 (13:40 -0800)]
tools.profiler.sampling: cleanup using.

7 years agomath.statistics: change minmax to not look at first element twice.
John Benediktsson [Wed, 28 Dec 2016 21:39:52 +0000 (13:39 -0800)]
math.statistics: change minmax to not look at first element twice.

7 years agoassocs: moving collect-by from math.statistics.
John Benediktsson [Wed, 28 Dec 2016 20:56:19 +0000 (12:56 -0800)]
assocs: moving collect-by from math.statistics.

7 years agoforestdb.ffi: some updates.
John Benediktsson [Tue, 27 Dec 2016 22:03:50 +0000 (14:03 -0800)]
forestdb.ffi: some updates.

7 years agogoogle.charts: fix tests, add comments
Alexander Iljin [Sat, 24 Dec 2016 23:24:13 +0000 (02:24 +0300)]
google.charts: fix tests, add comments

7 years agowebapps.calculator: fix using.
John Benediktsson [Thu, 22 Dec 2016 13:50:31 +0000 (05:50 -0800)]
webapps.calculator: fix using.

7 years agogoogle.charts: make the tests check more things.
John Benediktsson [Wed, 21 Dec 2016 23:25:00 +0000 (15:25 -0800)]
google.charts: make the tests check more things.

7 years agoMake sure URLs are cloned before using set-query-param on them
Alexander Iljin [Tue, 13 Dec 2016 15:31:02 +0000 (18:31 +0300)]
Make sure URLs are cloned before using set-query-param on them

7 years agogoogle.charts: fix side-effects of set-query-param, add tests
Alexander Iljin [Tue, 13 Dec 2016 13:41:38 +0000 (16:41 +0300)]
google.charts: fix side-effects of set-query-param, add tests

7 years agovocabs.loader: stop add-vocab-root spawning extra monitoring threads
Alexander Iljin [Wed, 14 Dec 2016 13:40:49 +0000 (16:40 +0300)]
vocabs.loader: stop add-vocab-root spawning extra monitoring threads

This fixes issue #1758.

7 years agographviz.render: forgot to change open-file to open-item
Björn Lindqvist [Sun, 18 Dec 2016 15:02:25 +0000 (16:02 +0100)]
graphviz.render: forgot to change open-file to open-item

7 years agowebbrowser.windows: calling absolute-path doesnt work on urls (#1759)
Björn Lindqvist [Sun, 18 Dec 2016 03:13:37 +0000 (04:13 +0100)]
webbrowser.windows: calling absolute-path doesnt work on urls (#1759)

7 years agotools.deploy.*: new word maybe-open-deploy-directory
Björn Lindqvist [Sun, 18 Dec 2016 03:12:56 +0000 (04:12 +0100)]
tools.deploy.*: new word maybe-open-deploy-directory

7 years agowebbrowser: let's change the name open-file -> open-item
Björn Lindqvist [Sun, 18 Dec 2016 02:23:24 +0000 (03:23 +0100)]
webbrowser: let's change the name open-file -> open-item

Because the word can open more stuff than just files.

7 years agofarkup,webbrowser: better url validation
Björn Lindqvist [Sun, 18 Dec 2016 01:58:04 +0000 (02:58 +0100)]
farkup,webbrowser: better url validation

7 years agoVM: undo 7d9bad465ca447dc5b407044a6ce4f49c4f40686
Björn Lindqvist [Wed, 14 Dec 2016 23:49:38 +0000 (00:49 +0100)]
VM: undo 7d9bad465ca447dc5b407044a6ce4f49c4f40686

It cause the code heap to run out of memory to soon and without growth,
it crashed windows.

7 years agoVM: this struct isn't used anymore
Björn Lindqvist [Wed, 14 Dec 2016 23:29:37 +0000 (00:29 +0100)]
VM: this struct isn't used anymore

7 years agotools.memory: moving the code-block types to the vm vocab
Björn Lindqvist [Fri, 9 Dec 2016 10:53:59 +0000 (11:53 +0100)]
tools.memory: moving the code-block types to the vm vocab

7 years agotools.memory: fix code-room. word, no more profiling stubs
Björn Lindqvist [Fri, 9 Dec 2016 10:37:37 +0000 (11:37 +0100)]
tools.memory: fix code-room. word, no more profiling stubs

7 years agostack-checker.dependencies: moving the add-depends-on-class word + new docs
Björn Lindqvist [Tue, 6 Dec 2016 21:19:02 +0000 (22:19 +0100)]
stack-checker.dependencies: moving the add-depends-on-class word + new docs

7 years agotools.deprecation: use filter-word-defs.
John Benediktsson [Wed, 7 Dec 2016 00:31:33 +0000 (16:31 -0800)]
tools.deprecation: use filter-word-defs.

7 years agoparser.tests: fix test that broke
Björn Lindqvist [Tue, 6 Dec 2016 08:08:42 +0000 (09:08 +0100)]
parser.tests: fix test that broke

7 years agocompiler.*: places where filter-word-defs can be used
Björn Lindqvist [Mon, 5 Dec 2016 16:08:23 +0000 (17:08 +0100)]
compiler.*: places where filter-word-defs can be used

7 years agoclasses.*: new words contained-classes and all-contained-classes
Björn Lindqvist [Mon, 5 Dec 2016 16:01:39 +0000 (17:01 +0100)]
classes.*: new words contained-classes and all-contained-classes

it is to generalize the logic used for checking if union classes
self-references

7 years agolocals.parser: use with-variables instead of with-scope.
John Benediktsson [Tue, 6 Dec 2016 00:00:37 +0000 (16:00 -0800)]
locals.parser: use with-variables instead of with-scope.

7 years agolocals.parser: maybe we can use unuse-words.
John Benediktsson [Mon, 5 Dec 2016 23:56:30 +0000 (15:56 -0800)]
locals.parser: maybe we can use unuse-words.

7 years agoxml.entities: use with-variable in with-entities.
John Benediktsson [Mon, 5 Dec 2016 18:38:26 +0000 (10:38 -0800)]
xml.entities: use with-variable in with-entities.

7 years agoxmode.loader: use with-variable instead of with-scope.
John Benediktsson [Mon, 5 Dec 2016 18:35:01 +0000 (10:35 -0800)]
xmode.loader: use with-variable instead of with-scope.

7 years agowebapps.calculator: using run-test-httpd word
Björn Lindqvist [Mon, 5 Dec 2016 08:40:29 +0000 (09:40 +0100)]
webapps.calculator: using run-test-httpd word

7 years agocompiler.units: utility word filter-word-defs
Björn Lindqvist [Mon, 5 Dec 2016 07:55:32 +0000 (08:55 +0100)]
compiler.units: utility word filter-word-defs

requires new boot images

7 years agolinked-assocs: fixing stack effect
Björn Lindqvist [Mon, 5 Dec 2016 07:49:31 +0000 (08:49 +0100)]
linked-assocs: fixing stack effect

7 years agostack-checker.dependencies: removing the add-depends-on-<blah> words
Björn Lindqvist [Sat, 3 Dec 2016 14:50:55 +0000 (15:50 +0100)]
stack-checker.dependencies: removing the add-depends-on-<blah> words

7 years agobasis/,extra/: using parse-array-def in a bunch of places
Björn Lindqvist [Sat, 3 Dec 2016 12:16:08 +0000 (13:16 +0100)]
basis/,extra/: using parse-array-def in a bunch of places

7 years agoparser: new parsing word parse-array-def
Björn Lindqvist [Sat, 3 Dec 2016 11:56:47 +0000 (12:56 +0100)]
parser: new parsing word parse-array-def

The idea behind this word is that in many cases parsing to an array is
much more convenient than parsing to a quotation.

7 years agocompiler.cfg.builder.alien.tests: fix test that broke windows
Björn Lindqvist [Thu, 1 Dec 2016 18:52:02 +0000 (19:52 +0100)]
compiler.cfg.builder.alien.tests: fix test that broke windows

7 years agoalien.libraries.tests: fix for test that broke windows
Björn Lindqvist [Wed, 30 Nov 2016 18:10:53 +0000 (19:10 +0100)]
alien.libraries.tests: fix for test that broke windows

7 years agoimages.loader.gtk: remove call to deprecated g_type_init.
John Benediktsson [Wed, 30 Nov 2016 17:21:42 +0000 (09:21 -0800)]
images.loader.gtk: remove call to deprecated g_type_init.

7 years agocpu.*: docs
Björn Lindqvist [Wed, 30 Nov 2016 14:05:38 +0000 (15:05 +0100)]
cpu.*: docs

7 years agocompiler.cfg.*,compiler.tree.*: more docs and tests
Björn Lindqvist [Wed, 30 Nov 2016 13:42:29 +0000 (14:42 +0100)]
compiler.cfg.*,compiler.tree.*: more docs and tests

7 years agodlists,http,ui.gadgets.*: nicer formatting of tuples
Björn Lindqvist [Wed, 30 Nov 2016 13:34:28 +0000 (14:34 +0100)]
dlists,http,ui.gadgets.*: nicer formatting of tuples

7 years agoVM: don't need the data_roots here
Björn Lindqvist [Wed, 30 Nov 2016 13:28:39 +0000 (14:28 +0100)]
VM: don't need the data_roots here

7 years agoalien.libraries: word>dlsym was a stupid idea that didn't work
Björn Lindqvist [Wed, 30 Nov 2016 15:34:53 +0000 (16:34 +0100)]
alien.libraries: word>dlsym was a stupid idea that didn't work

The def>> attribute is stripped when deploying. So return dlsym? and use
that.

7 years agoimages.loader.gtk: startup hook for type registration
Björn Lindqvist [Wed, 30 Nov 2016 10:57:14 +0000 (11:57 +0100)]
images.loader.gtk: startup hook for type registration

7 years agoio.sockets.secure,alien.libraries: new word word>dlsym to replace the dlsym? word
Björn Lindqvist [Wed, 30 Nov 2016 10:46:40 +0000 (11:46 +0100)]
io.sockets.secure,alien.libraries: new word word>dlsym to replace the dlsym? word

7 years agocompiler,stack-checker.dependencies: init-dependencies isn't needed
Björn Lindqvist [Tue, 29 Nov 2016 04:21:09 +0000 (05:21 +0100)]
compiler,stack-checker.dependencies: init-dependencies isn't needed

7 years agocompiler.crossref: changes the way in which dependencies are stored on words
Björn Lindqvist [Mon, 28 Nov 2016 05:33:58 +0000 (06:33 +0100)]
compiler.crossref: changes the way in which dependencies are stored on words

Previosly, they were stored in three sequences in the properties
"conditional-dependencies" "effect-dependencies" and
"definition-dependencies". It seem to better to store all three
types in one big property called "dependencies".

7 years agomath.factorial: reverse-factorial only undo factorial.
John Benediktsson [Wed, 30 Nov 2016 03:01:36 +0000 (19:01 -0800)]
math.factorial: reverse-factorial only undo factorial.

The other way doesn't make sense.

7 years agoinverse: cleanup using.
John Benediktsson [Wed, 30 Nov 2016 01:02:01 +0000 (17:02 -0800)]
inverse: cleanup using.

7 years agomath.factorials: implement "undo" for factorials.
John Benediktsson [Wed, 30 Nov 2016 00:56:48 +0000 (16:56 -0800)]
math.factorials: implement "undo" for factorials.

7 years agomath.factorials: adding reverse-factorial.
John Benediktsson [Tue, 29 Nov 2016 03:09:03 +0000 (19:09 -0800)]
math.factorials: adding reverse-factorial.

7 years agotrails: stop the thread when gadget is no longer visible
Alexander Iljin [Sun, 27 Nov 2016 21:36:25 +0000 (00:36 +0300)]
trails: stop the thread when gadget is no longer visible

7 years agotrails: name the thread for debugging
Alexander Iljin [Sun, 27 Nov 2016 21:35:34 +0000 (00:35 +0300)]
trails: name the thread for debugging

7 years agostack-checker.dependencies: +definition+ can't use $class-description.
John Benediktsson [Mon, 28 Nov 2016 17:38:44 +0000 (09:38 -0800)]
stack-checker.dependencies: +definition+ can't use $class-description.

Also, placeholders for +effect+ and +conditional+.

7 years agocompiler.crossref: better way to store the dependencies on words
Björn Lindqvist [Mon, 28 Nov 2016 03:13:58 +0000 (04:13 +0100)]
compiler.crossref: better way to store the dependencies on words

7 years agostack-checker.dependencies: docs
Björn Lindqvist [Sat, 26 Nov 2016 15:09:16 +0000 (16:09 +0100)]
stack-checker.dependencies: docs

7 years agostack-checker.dependencies: changes the names of the dependency constants
Björn Lindqvist [Sat, 26 Nov 2016 14:44:09 +0000 (15:44 +0100)]
stack-checker.dependencies: changes the names of the dependency constants

Now named using the +blah+ convention which we're using elsewhere for
symbolic constants.

7 years agocompiler.crossref: better code for getting dependencies-of + tests
Björn Lindqvist [Sat, 26 Nov 2016 11:58:09 +0000 (12:58 +0100)]
compiler.crossref: better code for getting dependencies-of + tests

7 years agovocabs.metadata.resources,help.pdf: gather used
Björn Lindqvist [Sat, 26 Nov 2016 08:40:54 +0000 (09:40 +0100)]
vocabs.metadata.resources,help.pdf: gather used

7 years agoclasses.mixin: add-mixin-instance doesn't need to be generic
Björn Lindqvist [Sat, 26 Nov 2016 08:16:32 +0000 (09:16 +0100)]
classes.mixin: add-mixin-instance doesn't need to be generic

7 years agocompiler.codegen: we don't need the init-fixup word
Björn Lindqvist [Fri, 25 Nov 2016 14:59:46 +0000 (15:59 +0100)]
compiler.codegen: we don't need the init-fixup word

7 years agotrees.avl: fix it (broken since 2010)
Jon Harper [Sun, 27 Nov 2016 13:49:35 +0000 (14:49 +0100)]
trees.avl: fix it (broken since 2010)

rotate creates cycles in the tree and drops nodes...
This either breaks everything (infinite recursion) or silently
loses data.

Improve the tests to ensure rotate does what it's supposed to do.

This is a partial revert from 15226d8

7 years agotrees.avl: fix typo in test
Jon Harper [Sun, 27 Nov 2016 13:37:11 +0000 (14:37 +0100)]
trees.avl: fix typo in test

7 years agoio.launcher: wait for new processes faster.
John Benediktsson [Sun, 27 Nov 2016 15:35:26 +0000 (07:35 -0800)]
io.launcher: wait for new processes faster.

This starts at 5 milliseconds, then backs off 5 milliseconds at a time,
until 100 milliseconds. In case the processes are short-lived, they
will be detected sooner, and long-running processes will still be checked
at intervals of 100 millseconds like before.

7 years agohelp.tutorial: use arrays for test output in first-program.
John Benediktsson [Sun, 27 Nov 2016 06:33:55 +0000 (22:33 -0800)]
help.tutorial: use arrays for test output in first-program.

7 years agosome cleanup.
John Benediktsson [Sun, 27 Nov 2016 06:01:03 +0000 (22:01 -0800)]
some cleanup.

7 years agocolors.hex: support varying length hex notations.
John Benediktsson [Sun, 27 Nov 2016 05:13:12 +0000 (21:13 -0800)]
colors.hex: support varying length hex notations.

6 characters: rrggbb (1.0 alpha)
8 characters: rrggbbaa
3 characters: rgb (1.0 alpha)
4 characters: rgba

7 years agokernel.private: adding OBJ-SAMPLE-CALLSTACKS + test case
Björn Lindqvist [Thu, 24 Nov 2016 04:11:46 +0000 (05:11 +0100)]
kernel.private: adding OBJ-SAMPLE-CALLSTACKS + test case

7 years agoFUEL: fix smie indentation of some syntax words
Björn Lindqvist [Thu, 24 Nov 2016 04:00:12 +0000 (05:00 +0100)]
FUEL: fix smie indentation of some syntax words

7 years agocompiler.cfg.debugger: also print the instruction number
Björn Lindqvist [Wed, 23 Nov 2016 17:56:03 +0000 (18:56 +0100)]
compiler.cfg.debugger: also print the instruction number

it's useful to see when debugging some compiler passes

7 years agoVM: the unimplemented error isn't used anymore
Björn Lindqvist [Wed, 23 Nov 2016 09:20:09 +0000 (10:20 +0100)]
VM: the unimplemented error isn't used anymore

Cause all the primitives are implemented so it can never ever be
thrown. Probably requires new boot images.

7 years agoVM: storing some sample data in the heap (#337)
Björn Lindqvist [Wed, 23 Nov 2016 08:44:17 +0000 (09:44 +0100)]
VM: storing some sample data in the heap (#337)

This is the first half of it. In the second half the samples array
should also be stored in the heap.

7 years agoVM: here, going through the data_root isn't needed
Björn Lindqvist [Wed, 23 Nov 2016 07:17:39 +0000 (08:17 +0100)]
VM: here, going through the data_root isn't needed