Jon Harper
bf852cea6a
add basis.math.functions.integer-logs: exact integer logarithms
2017-06-08 11:22:40 -07:00
Jon Harper
34f36a529e
math.functions, speed up truncate for floats
2017-06-08 11:22:40 -07:00
Jon Harper
c74cfe6c54
math.functions: fix truncate and round to output -0.0 for negative floats near 0
2017-06-08 11:22:40 -07:00
Jon Harper
271c7d9519
math.functions, fix round for ratios between -1/2 and -1
...
it was outputting 1 instead of -1
2017-06-08 11:22:40 -07:00
Alexander Iljin
acf14a7bd1
io.directories.windows: add size slot to windows-directory-entry tuple
2017-06-05 16:47:01 -07:00
Alexander Iljin
6d355c998b
help.lint.spaces: new vocab
2017-06-05 13:16:07 -07:00
Alexander Iljin
2ffa446f5b
*-docs: replace double spaces with single spaces
...
Code examples and other places where multiple spaces were used to align
text were left intact.
2017-06-05 13:16:07 -07:00
Robert Vollmert
445b55b3e5
test runner: non-zero exit code in case of failed tests
...
This makes it easier to detect unit test failures from the
command line.
2017-06-05 13:13:09 -07:00
Doug Coleman
9e76899dbd
tools.test: Make the flag public. Finish porting tester changes to fuzzer.
2017-06-04 14:47:35 -05:00
Doug Coleman
50fbf0457a
tools.deploy: Change unit-test to long-unit-test for deploy tests.
...
long-unit-tests are enabled by default.
2017-06-04 12:55:58 -05:00
Doug Coleman
be1175b3c5
tools.test: Add long-unit-test and refactor a bit.
2017-06-04 12:55:52 -05:00
Doug Coleman
72eaa9d466
compiler.tree.propagation.call-effect: I deleted an important method on compose on accident.
2017-06-02 23:31:35 -05:00
Doug Coleman
7a703658f1
sequences: Remove start for real in favor of subseq-start.
...
Update a usage of start that was masked by the ALIAS:
Compatibility/migration is a .99 feature.
2017-06-02 17:41:10 -05:00
Doug Coleman
48344ab55c
factor: last iota -> <iota> fix.
2017-06-02 17:39:40 -05:00
Doug Coleman
32710df620
core/basis: Rename tuples kernel:curry -> curried, kernel:compose -> composed.
...
Also rename the stack-checker curried -> curried-effect, composed -> composed-effect.
2017-06-02 17:39:20 -05:00
Doug Coleman
195630f637
iota: Fix second iota -> <iota> in line several times.
2017-06-02 15:41:51 -05:00
Doug Coleman
e189954ecc
core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ;
2017-06-02 11:57:05 -05:00
Doug Coleman
0ca1b4656f
ui.backend.cocoa.views: Use ?-> to avoid objc lookup errors if backingScaleFactor selector does not exist.
2017-06-01 16:53:10 -05:00
Doug Coleman
d838f95370
cocoa: Allow ?-> syntax for methods that might not exist.
...
If a method doesn't exist we need to provide a signature so the stack is balanced. This should also allow deploying from macOS versions that do not contain methods to ones that do. This is an alternative to asking a class if it provides a selector.
2017-06-01 16:53:05 -05:00
Doug Coleman
42a7a8e572
compiler: Rename start -> start-compilation, finish -> finish-compilation.
...
These start/finish are cute names, but ``finish`` is pretty vague even in the same file in the ``deoptimize-with`` word.
2017-06-01 14:51:18 -05:00
Doug Coleman
c5b563ed09
factor: Rename start -> subseq-start, start* -> subseq-start-from.
...
I also removed aliases for start/end from interval-maps and interval-sets and added a comment. I don't think it's any less clear what's going on.
2017-06-01 14:45:54 -05:00
Doug Coleman
7c7bb93c55
factor: Rename GENERIC# to GENERIC#:.
...
Fixes #1670 .
2017-06-01 13:58:58 -05:00
Doug Coleman
5aa89e6251
factor: Add newlines to every line.
2017-06-01 13:46:32 -05:00
Doug Coleman
df189eada5
io.files.info.windows: Fix using list.
...
We are using fry twice and it shows up in bootstrap.
2017-05-31 18:40:08 -05:00
Doug Coleman
dd22d6efa4
cocoa.touchbar: Add platforms file.
2017-05-30 18:14:39 -05:00
Doug Coleman
a632337ba2
cocoa: Add basic support for TouchBar.
2017-05-30 15:33:48 -05:00
Doug Coleman
75d6395849
multiline: Add [[ as string/comment parsers.
2017-05-30 12:04:35 -05:00
Doug Coleman
f3ed43dc74
cocoa: Import more classes for TouchBar support.
2017-05-29 12:36:35 -05:00
John Benediktsson
55d5577961
tools.test: fix fake unit test to notify observers after clearing test failures.
2017-05-29 08:42:32 -07:00
John Benediktsson
68e7a69572
cocoa.dialogs: simple fix for split-path errors with empty string input.
2017-05-29 08:27:58 -07:00
nicolas-p
c1d33065ad
editors: added pref-dim* for action-editor
2017-05-29 08:08:21 -07:00
Alexander Iljin
646f14f249
ui-docs: mark an optional output parameter with the "/f" suffix
2017-05-26 14:39:33 +03:00
Alexander Iljin
632961798f
alien.data-docs: add a missing space between sentences
2017-05-26 14:39:25 +03:00
Alexander Iljin
72e6699279
ui.tools.listener-docs: wrap a hotkey in the $snippet tag
2017-05-14 20:04:39 -07:00
John Benediktsson
ca51f43b3f
locals: modify examples to use new "--- Data stack:" output.
2017-05-05 08:41:52 -07:00
John Benediktsson
b1c0a1be33
help.lint.checks: improve check-example to print the stack (if any).
...
Any output from the example will be preserved like it currently is,
and any objects on the stack will be printed the same way they are
in the listener prefixed by ``--- Data stack:``.
2017-05-05 08:40:47 -07:00
John Benediktsson
4982bcce27
binary-search: improve example for search.
...
(But use prettyprint, the help.lint.checks patch wasn't ready)
2017-05-03 18:23:05 -07:00
John Benediktsson
7f38fd5ae9
Revert "binary-search: improve example for search."
...
This reverts commit aac6780285
.
2017-05-03 18:21:31 -07:00
John Benediktsson
e1b7d5db1f
Revert "help.lint.checks: prettyprints the examples stack automatically."
...
This reverts commit 1f4bcc2d56
.
2017-05-03 18:21:25 -07:00
John Benediktsson
aac6780285
binary-search: improve example for search.
2017-05-03 18:16:38 -07:00
John Benediktsson
1f4bcc2d56
help.lint.checks: prettyprints the examples stack automatically.
...
This allows us to not have to "USE: prettyprint" and "." in the examples.
Much cleaner this way!
2017-05-03 18:15:36 -07:00
John Benediktsson
0fd663e25d
editors.emacs: add an emacsclient-args on request.
2017-05-03 18:14:28 -07:00
Alexander Iljin
e44104c8d2
calendar.format: restore the deleted duration>hm
...
It was replaced with duration>hms, but the version without the seconds is
also useful.
2017-04-25 15:38:51 -04:00
Alexander Iljin
6819db7e8f
tools.test-docs: fix the order of parameters for must-fail-with
2017-04-07 19:01:38 +03:00
Alexander Iljin
a6caeb6e80
math.functions-docs: update description of e^
2017-04-07 19:01:33 +03:00
Alexander Iljin
c6208e4677
math.functions[-docs]: rename the output parameters of the power functions
2017-04-07 19:01:24 +03:00
John Benediktsson
cdf0dbd038
io.standard-paths.unix: use $USER's configured shell.
...
Hope that '-l -c "echo $PATH"' works.
2017-03-21 16:05:23 -07:00
Alexander Iljin
bad5408c76
*-docs: fix a typo in the word parametErized
2017-03-17 08:22:18 -07:00
nicolas-p
20a663ab0b
ui.gadgets.buttons: workaround for windows gradient bug
2017-03-14 17:26:19 -07:00
John Benediktsson
d60970c0a5
io.standard-paths.windows: fix find-in-program-files.
...
Remove stale bfs? flag.
2017-03-05 19:17:14 -08:00
John Benediktsson
2ede9f09be
io.standard-paths.windows: fix to use find-file-in-directories.
2017-03-05 15:58:59 -08:00
John Benediktsson
495d27a502
io.directories.search: fix linux tests.
...
Linux doesn't return alphabetic ordering like Windows and macOS, so
we just assert the paths are iterated in the correct order by depth.
2017-03-05 15:56:28 -08:00
John Benediktsson
8b455d2306
tools.deploy.shaker: support "stop-after-last-window?".
...
This only works on macOS right now, but since most every deploy.factor
has it set, we should read it and use it.
2017-03-05 15:13:24 -08:00
John Benediktsson
96a0c30baf
ui.backend: adding ui-stop-after-last-window?.
...
This defaults to true, except for the "ui.tools". Also, this only
works on macOS right now. Linux and Windows always stop after the
last window closes.
2017-03-05 14:51:33 -08:00
John Benediktsson
79983feed7
inverse: simplify, a little cleanup.
2017-03-05 13:32:34 -08:00
John Benediktsson
368e1c8e47
io.directories.search: simplify interface.
...
Now we use a ``traversal-method`` variable that controls whether
we do a depth-first or breadth-first search rather than a stack
argument or a fixed default specified in each word.
This also fixes an issue where breadth-first traversal would
iterate across children in reverse order, now it does the normal
ordering which is typically alphabetical.
2017-03-05 09:16:00 -08:00
John Benediktsson
92bddad476
linked-assocs.prettyprint: only print LH{ } for linked-assoc classes.
...
Not subclasses.
2017-03-02 16:09:46 -08:00
nicolas-p
55834faba7
slots: added margins
2017-02-14 13:49:30 -08:00
Alexander Iljin
9ab0e5d6f8
checksums.sha1-docs: fix wording
2017-02-14 23:02:43 +03:00
Alexander Iljin
226d8a2397
ui.baseline-alignment-docs: replace $snippet with $slot
2017-02-14 23:02:36 +03:00
Alexander Iljin
3503bf86e2
ui.render-docs: replace $snippet with $slot
2017-02-14 23:02:29 +03:00
John Benediktsson
e826546c6d
cocoa.messages: simplify (objc-class).
2017-02-11 20:58:25 -08:00
John Benediktsson
52932cf2e1
delegate.protocols: adding deque-protocol.
2017-02-11 14:23:57 -08:00
John Benediktsson
3a6eefcc8e
using ignore-errors instead of [ drop ] recover.
2017-02-09 15:50:33 -08:00
John Benediktsson
119ba84998
math.primes.safe: this looks nicer.
2017-02-08 11:32:34 -08:00
John Benediktsson
a8b66764d5
compiler.utilities: move conjoin-at tests.
2017-02-08 11:16:00 -08:00
John Benediktsson
b5dd40cc53
math.primes.factors: support command-line args like factor(1).
2017-02-08 11:14:24 -08:00
John Benediktsson
9d2e62f8e1
math.primes.safe: simplify.
2017-02-08 11:14:10 -08:00
John Benediktsson
f4ccfa0f71
sets: moving unique/conjoin/conjoin-at to compiler.utilities.
2017-02-07 18:54:24 -08:00
John Benediktsson
92d7f6bc5a
tools.deploy.shaker: change compiler-classes to return a set.
2017-02-07 15:30:50 -08:00
John Benediktsson
75ebd0eacd
io.servers: using ?adjoin and ?delete in add/remove-running-server.
...
Also fixed a small bug in add-running-server where the error was
mistakenly constructed with running-servers instead of threaded-server.
2017-02-07 13:31:57 -08:00
John Benediktsson
de48558d12
sets: adding ?delete that returns a boolean if elt was deleted from set.
2017-02-07 13:31:07 -08:00
John Benediktsson
0f1d08a372
using map-reduce instead of unclip reduce.
2017-02-07 12:16:12 -08:00
John Benediktsson
365a9203a8
alien.libraries.finder: use find instead of map-find.
2017-02-07 10:59:24 -08:00
John Benediktsson
210209ead2
io.files.temp.macosx: use find instead of map-find.
2017-02-07 10:57:37 -08:00
John Benediktsson
b101f9d61b
documents: split-lines is used by ui.gadgets.panes.
2017-02-06 16:06:00 -08:00
John Benediktsson
337d554c09
documents: simplify to use ``string-lines``.
2017-02-06 11:11:42 -08:00
John Benediktsson
b517f06b91
colors: adding links to some of the other color implementations.
2017-02-06 10:48:06 -08:00
John Benediktsson
1bbaa340b4
colors.hsv: simplify by just calling the generic >hsva.
2017-02-06 10:30:42 -08:00
John Benediktsson
f342fd04d9
simple-flat-file: rename flat-file>biassoc to load-codetable-file.
2017-02-03 11:47:28 -08:00
John Benediktsson
efbc417728
simple-flat-file: link interval-map in docs.
2017-02-02 16:48:35 -08:00
John Benediktsson
3af10f3366
simple-flat-file: update docs for data change.
2017-02-02 16:45:56 -08:00
John Benediktsson
7e9cd45624
simple-flat-file: factor out drop-comment word.
2017-02-02 16:39:56 -08:00
John Benediktsson
b93bc1ac5e
simple-flat-file: rename ``data`` to ``load-data-file``.
2017-02-02 16:21:06 -08:00
John Benediktsson
88f661936e
simple-flat-file: faster drop-comments.
2017-02-02 16:03:01 -08:00
John Benediktsson
665c6587a9
command-line: fix rename of nosignals to no-signals.
2017-02-02 15:46:13 -08:00
John Benediktsson
3f8c9e4150
wrap: faster (and simpler) wrapping algorithm.
2017-02-02 14:02:13 -08:00
John Benediktsson
fe4093d67a
command-line.startup: -help isn't going to be set.
2017-02-02 10:00:23 -08:00
John Benediktsson
f7ce76aa4b
wrap: remove line-ideal, we only ever use a max-width.
2017-02-01 20:30:57 -08:00
Björn Lindqvist
39811fc7e7
ui.*: using pixel-format-attributes>int-array in even more places
...
So now we don't need the PIXEL-FORMAT-ATTRIBUTE-TABLE: syntax anymore.
2017-01-30 06:17:37 +01:00
Björn Lindqvist
4756c30d3f
ui.pixel-formats,ui.backend.*: new word pixel-format-attributes>int-array
...
This word replaces usages of the PIXEL-FORMAT-ATTRIBUTE-TABLE: syntax
2017-01-30 05:43:19 +01:00
Björn Lindqvist
1b1842f62d
ui.pixel-formats,ui.backend.*: removing the (pixel-format-attribute) generic
...
It appears to be unused code.
2017-01-30 05:07:28 +01:00
John Benediktsson
b93aa90486
roman: aesthetics.
2017-01-25 09:48:15 -08:00
John Benediktsson
85e6dc6369
alien.data: minor doc fix.
2017-01-24 21:43:40 -08:00
John Benediktsson
1829c73bb1
simple-flat-file: add back string interning.
2017-01-24 20:04:20 -08:00
John Benediktsson
1613bdfed2
pack: add test for M\ object >n-byte-array.
2017-01-24 17:52:35 -08:00
John Benediktsson
9c13aa4b4c
pack: M\ string heap-size doesn't exist.
2017-01-24 16:11:33 -08:00
John Benediktsson
2e9dce0b97
promises: simplify LAXY:.
2017-01-24 16:06:17 -08:00
John Benediktsson
dcc3bf64a6
simple-flat-file: simplify expand-ranges.
2017-01-24 14:50:44 -08:00
John Benediktsson
65e4c37a30
xml.data: use <vector> instead of V{ } new-sequence.
2017-01-24 14:48:09 -08:00
John Benediktsson
f68502e9b5
circular: use <array> instead of { } new-sequence.
2017-01-24 14:47:58 -08:00
John Benediktsson
5f187bbd29
alien.libraries.finder.linux: make more robust to i18n.
2017-01-24 14:45:34 -08:00
John Benediktsson
e6b8837f2f
changer: moving to extra for now.
2017-01-23 10:40:55 -08:00
Jon Harper
14f51e2dd5
ui.backend.gtk, use a separate widget for drawing opengl. Fixes #1487
...
Apparently you can't use opengl calls in a configure event signaled from
the window. If you do, on ubuntu 14.04 with unity, each and every frame
will be drawn. Since they are drawn slower than the event are emitted,
it continues to redraw after the resize is done, 'replaying' the resize
motion.
opengl calls from a configure event on the single child of the
window are ok.
Also, now that the window is not used to draw opengl, it doesn't produce
expose events, instead the drawable child must be used.
This also makes moving the window much smoother.
2017-01-23 10:04:43 -08:00
John Benediktsson
134be588cf
no need to clone empty byte-array.
2017-01-22 15:41:07 -08:00
John Benediktsson
c5ec44cc2c
xml: cleanup using.
2017-01-22 14:47:58 -08:00
John Benediktsson
33f2fbd099
oauth2: move set-query-params to urls.
2017-01-22 14:44:33 -08:00
John Benediktsson
baaa06278c
Revert "sequences: swap stack arguments for start/start*/subseq?."
...
This reverts commit 63b0593824
.
2017-01-21 07:20:14 -08:00
John Benediktsson
9dbd70ddd3
Revert "html.templates.fhtml: fix start refactor typo."
...
This reverts commit d2c4079358
.
2017-01-21 07:20:08 -08:00
John Benediktsson
d2c4079358
html.templates.fhtml: fix start refactor typo.
2017-01-20 23:09:33 -08:00
John Benediktsson
63b0593824
sequences: swap stack arguments for start/start*/subseq?.
...
It is more natural to be ( seq subseq -- ? ).
2017-01-20 22:49:53 -08:00
John Benediktsson
42ef8adec6
vm: change -nosignals to -no-signals.
2017-01-20 22:36:22 -08:00
John Benediktsson
bfc1794091
command-line.startup: s/Common/Factor.
2017-01-20 21:02:52 -08:00
Alexander Iljin
b5c71c4846
splitting.monotonic-docs: update documentation
2017-01-20 08:21:54 -08:00
John Benediktsson
0f9836e73c
math.statistics: fix docs for harmonic-mean.
...
(needs to match prettyprint)
2017-01-20 08:20:41 -08:00
Björn Lindqvist
0701902122
math.statistics: fix calculation of the harmonic mean
2017-01-15 21:27:55 +01:00
Alexander Iljin
5fac469a8c
tools.test-docs: add missing $syntax entries
...
Previously only the unit-test help had $syntax.
2017-01-13 13:31:42 +03:00
Alexander Iljin
ee7ced2f37
binary-search-docs: supplement the search description
2017-01-13 13:31:34 +03:00
Alexander Iljin
3434008750
binary-search-docs: remove extra find-last from related-words
2017-01-13 13:31:30 +03:00
John Benediktsson
5743ed204c
classes.struct: use unparse in tests.
2017-01-11 10:22:51 -08:00
John Benediktsson
8453582484
Revert "locals.parser: remove << >> from tests to see if it works now."
...
This reverts commit 7c24c671b0
.
2017-01-08 18:10:32 -08:00
John Benediktsson
7c24c671b0
locals.parser: remove << >> from tests to see if it works now.
2017-01-08 14:52:55 -08:00
Björn Lindqvist
28801e8d5f
threads: fix slot name: status -> state
2017-01-07 15:26:19 +01:00
Björn Lindqvist
7874f5a547
io.servers: refactored words for adding & removing servers
2017-01-07 15:26:19 +01:00
Benjamin Pollack
7184771c31
io.directories: improve file moving words
...
move-file previously had inconsistent behavior on Windows and unixes.
This unifies the behavior to the common case (just get 'er done), while
also introducing an obviously named word, move-file-atomically, to
handle the case where you need an atomic file primitive.
Fixes #1772
2017-01-06 15:43:34 -08:00
John Benediktsson
dac41e1bf7
sequences.deep: adding deep-reject.
2017-01-06 14:09:14 -08:00
Björn Lindqvist
6b29a50cd4
calendar.parser: invalid date checking for the parsing words
2017-01-05 23:35:10 +01:00
Björn Lindqvist
4c097a396a
calendar: value checking to make it hard to create invalid timestamps
2017-01-05 23:35:10 +01:00
John Benediktsson
48c69cb8ea
use reject instead of [ ... not ] filter.
2017-01-05 13:29:58 -08:00
Alexander Iljin
ca08bfd4b0
concurrency.distributed-docs: update the Example article
2017-01-05 12:48:50 -08:00
Alexander Iljin
d5c555462b
command-line-docs: fix wording
2017-01-05 12:48:50 -08:00
John Benediktsson
9836dd7734
html.templates.fhtml: fix example test.
2017-01-05 12:10:16 -08:00
Jon Harper
5af166b8f5
add DOCTYPE html in most places.
...
4ef4235
started it. This is also good for html emails like in
extra/webapps/mason/backend/watchdog/watchdog.factor .
I just grepped for "<html>".
2017-01-05 09:03:46 -08:00
Björn Lindqvist
97a57f4041
calendar.parser: fixing rfc822 so it doesn't break in trailing space
2017-01-05 12:38:05 +01:00
Björn Lindqvist
b17590db24
calendar.*: replacing hms>timestamp and timestamp>hms with duration variants
...
hms>duration is better because a timestamp without a date is
invalid. This also makes it so the SQL TIME column maps to duration. Now
we can add some validation so that you aren't allowed to create invalid
timestamps.
2017-01-05 12:38:05 +01:00
Björn Lindqvist
c48319cb35
calendar.format: unused word
2017-01-05 12:38:05 +01:00
Jon Harper
dc3ee923ca
compiler.cfg: add peephole opt to never untag the input of ##bit-count. fixes #1764
2017-01-04 07:29:08 -08:00
Jon Harper
ccbf1c1429
core layouts, remove hardcoded tag width
...
109aa88b06
showed the places were it was hardcoded
2017-01-04 07:29:08 -08:00
Björn Lindqvist
3bbc784fad
calendar.parser,robots: hhmm>timestamp -> hhmm>duration
...
Better to parse it as a duration because it is not a valid timestamp.
2017-01-04 09:10:15 +01:00
Björn Lindqvist
2895d5e095
calendar.format: moving parsing words to a new vocab calendar.parser
...
The vocab was getting big so the idea is to have all the time parsing in
calendar.parsing and only keep formatting words in calendar.format.
2017-01-04 08:50:24 +01:00
John Benediktsson
3974ba8ba3
use with-variable in some places with-scope was used.
2017-01-03 19:12:29 -08:00
Björn Lindqvist
f9b9ce20f2
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.
2017-01-03 15:48:08 +01:00
Björn Lindqvist
13ec2e41b9
calendar.format.tests: stray char
2017-01-03 06:09:09 +01:00
John Benediktsson
59ce436dab
math.combinatorics: cleaner next-permutation.
2017-01-02 09:34:15 -08:00
Alexander Iljin
e9f6a56c53
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.
2017-01-02 09:33:15 -08:00
Alexander Iljin
631707b496
db-docs: remove double period at the end of a sentence
2017-01-02 09:33:02 -08:00
Alexander Iljin
b7e64aed9f
db-docs: add a missing newline to separate groups of items
2017-01-02 09:32:58 -08:00
Shane Pelletier
93d11224eb
grouping-docs: add wrap-around note
2017-01-02 08:07:42 -08:00
John Benediktsson
1c9909cd76
ui.gadgets.slots: removing unnecessary tuples.
2016-12-31 18:54:18 -08:00
John Benediktsson
98b6fdeaa3
html.components: protect M\ code render* from ``f`` value.
2016-12-31 13:53:56 -08:00