Commit Graph

14383 Commits (revert-2214-feature-commandline-documentation)

Author SHA1 Message Date
Alexander Iljin 71ad025aaf random.passwords: new vocab 2019-11-15 09:58:32 -08:00
Cat Stevens cee0229b20 soundex: move to extra as it's unused; fix authors.txt filename 2019-11-11 09:54:12 -08:00
nomennescio 1f75d6985d Add description of '-help' switch to documentation. 2019-11-08 09:59:56 -08:00
John Benediktsson ec71ef22ee tools.test: add silent-tests? that hides unit-tests. 2019-11-07 13:13:05 -08:00
John Benediktsson 69849bc925 ui.tools.listener: better future-proofing with code-completion class. 2019-11-07 09:57:21 -08:00
John Benediktsson 388dc83efd math.primes.factors: flush in unix-factor. 2019-11-06 20:12:55 -08:00
John Benediktsson 6492f1c9cb math.floats.half: improve the roundtrip of subnormal float16. 2019-11-06 19:40:37 -08:00
John Benediktsson 17aa52f51c ui.tools.listener: handle history-completion popup differently. 2019-11-06 12:16:19 -08:00
John Benediktsson 972fa0fbab ui.tools.listener: close completion-popup when completion-mode changes. 2019-11-06 09:29:31 -08:00
John Benediktsson 83fd6b65e0 command-line.startup: adding version argument.
$ ./factor -version
Factor 0.99
2019-11-06 08:12:39 -08:00
John Benediktsson 745840dfca listener: adding quiet mode.
This skips printing the version info when starting the listener.

    ./factor -q
    ./factor -q -run=listener
    ./factor -q -run=readline-listener
2019-11-06 08:09:16 -08:00
Cat Stevens 715283d11d basis/system-info.linux: fix test for Linux kernel 5.x 2019-11-05 20:50:26 -08:00
John Benediktsson da64b05e6d math.functions: adding e^-1.
This is for calculating e^x-1 for small values more accurately.  You can also
call expm1(x) function if you want, and it's available on your platform.

FUNCTION: double expm1 ( double x )
2019-11-05 10:19:32 -08:00
John Benediktsson e256a4ba18 math.intervals: workaround possible compiler bug by widening interval-bitor.
IN: scratchpad [
                   { byte-array } declare
                   [ 0 alien-unsigned-4 32 shift ]
                   [ 4 alien-unsigned-4 ] bi bitor
                   64 >signed
               ] optimized.

! working
[
    dup >R 0 alien-unsigned-4 32 fixnum-shift
    R> 4 alien-unsigned-4 over tag 0 eq?
    [ fixnum-bitor ] [ fixnum>bignum bignum-bitor ] if
    18446744073709551615 >R >bignum R> bignum-bitand
    dup 63 bignum-bit? [ 18446744073709551616 bignum- ] [ ] if
]

! broken
[
    dup >R 0 alien-unsigned-4 32 fixnum-shift
    R> 4 alien-unsigned-4 over tag 0 eq?
    [ fixnum-bitor ] [ fixnum>bignum bignum-bitor ] if
    dup 63 bignum-bit? [ 18446744073709551616 bignum- ] [ ] if
]

The second case correctly eliminates the bitand but incorrectly assumes
that the item on the stack (which is an integer -- either a fixnum or a
bignum), was converted to a bignum.
2019-10-31 10:45:54 -07:00
John Benediktsson f68df75b84 math.intervals: simplify interval-bitand. 2019-10-31 10:45:36 -07:00
John Benediktsson 52123559f3 math.partial-dispatch: simplify using fry. 2019-10-31 10:27:29 -07:00
John Benediktsson bccdb5419b math.intervals: improve interval-bitand. 2019-10-31 10:27:17 -07:00
John Benediktsson 29ebfe5129 compiler.tree.propagation: fix test for improved interval-bitor. 2019-10-31 10:03:44 -07:00
John Benediktsson 20c4e2feaa math.intervals: remove extra non-interval tests. 2019-10-30 09:47:04 -07:00
timor 30f2d6e78f math.intervals.tests: clean up literal syntax 2019-10-30 09:44:39 -07:00
timor 449224878f math.intervals: more exact interval-bitxor operation
- fixed: `interval-bitxor` caused bit-growth
- improved: `interval-bitxor` more exact case for negative intervals
2019-10-30 09:44:23 -07:00
timor 713cfa79f8 math.intervals: more exact interval-bitor operation
Addresses #2170

- fixed: `interval-bitor` caused bit-growth
- improved: `interval-bitor` more exact about lower bounds

The added utility words could be used as a basis to make the other bitwise
interval operations more exact also.
2019-10-30 09:43:44 -07:00
John Benediktsson 522d176762 math.vectors: use $sequence in docs. 2019-10-24 20:38:05 -07:00
John Benediktsson cb091281bb math.floats.env: use $sequence in docs. 2019-10-24 13:54:58 -07:00
John Benediktsson f513a14e1c prettyprint.backend: print up to length-limit lists. 2019-10-24 09:09:17 -07:00
John Benediktsson 6cc7ca2a97 prettyprint.backend: print only cons-states. 2019-10-16 10:11:46 -07:00
John Benediktsson 4b45df48f8 prettyprint.backend: lists only print car and "~more~" for cdr. 2019-10-16 10:01:56 -07:00
Doug Coleman 114f58d894 lists: Add list literals.
Fixes #2019.
2019-10-16 09:10:41 -07:00
Doug Coleman abf36e89ae furnace.utilities: Allow for unloaded vocab to pass help-lint. 2019-10-05 12:02:30 -05:00
Doug Coleman c19d6517a9 furnace.redirection: Fix for unloaded vocabularies in lint. 2019-10-05 16:03:22 +00:00
John Benediktsson 0e958ca21c fry: update docs for syntax change. 2019-10-04 18:55:30 -07:00
John Benediktsson 0a64678c2d stack-checker.values: fix for fry change. 2019-10-04 18:31:04 -07:00
John Benediktsson fcfe24f98b fry: improve syntax for _ and @ to throw when not used in a fry quotation. 2019-10-04 18:15:59 -07:00
John Benediktsson e17b911929 sequences.generalizations: fix finish-nfind use of times.
(that didn't work in optimizing compiler).
2019-10-04 18:15:19 -07:00
John Benediktsson 0dc71ab053 memoize: fix memoize-quot for zero input effects. 2019-09-29 18:38:41 -07:00
Doug Coleman 17a0a6e1a4 tools.deploy: Trying to get clean binaries. 2019-09-28 13:51:39 -05:00
Doug Coleman dc10c08158 tools.deploy: Bump the deploy size.
We should look at deploy sizes and try to fix them correctly.
2019-09-28 09:43:07 -05:00
Doug Coleman afe188efb3 openssl: Fallback for versions of macOS < 10.15.
We probably want a word that finds libssl.x.dylib where x is the highest version so that we don't have to update the libary-loading code in the future.

This is all because loading libssl.dylib causes a SIGABORT signal 6, perhaps there's another workaround?
2019-09-28 09:40:47 -05:00
Doug Coleman 6f6bc00cb1 io.launcher.unix: Fix test. 2019-09-27 23:13:51 -05:00
Doug Coleman 50cf54ddde basis: Move signal word and fix tests. 2019-09-27 22:59:36 -05:00
Doug Coleman 4faab8a00f basis: Fix bootstrap to display unix signals instead of "Error in print-error!" 2019-09-27 17:17:56 -05:00
Doug Coleman bf719c4cca openssl: macOS 10.15 beta needs explicit paths for these libraries.
10.14 has versions that are .2 lower than 10.15.
2019-09-27 17:17:22 -05:00
John Benediktsson 06b72b8a0d peg: less stack shuffling in define-parser-word. 2019-09-27 08:24:53 -07:00
John Benediktsson f2e4a36c2c peg: reuse code in compile-parsers-quots. 2019-09-26 08:56:42 -07:00
John Benediktsson e643afa168 peg.parsers: use splitting. 2019-09-26 07:57:31 -07:00
John Benediktsson 0150e4c303 peg.parsers: simplify range-pattern. 2019-09-25 21:34:28 -07:00
John Benediktsson c1ebf5451f peg.ebnf: minor cleanup. 2019-09-25 20:38:19 -07:00
John Benediktsson c3bee31342 peg: some cleanup. 2019-09-25 20:26:12 -07:00
Doug Coleman 1d3779e3ba openssl.libcrypto: nginx factorcode.org server upgrades to https by default.
Change the unit test to expect a 301. We should probably make all tests work with networking disabled instead of hitting remote servers.
2019-09-25 00:15:44 -05:00
John Benediktsson a3d5789fd4 regexp.classes: use \v\a escapes. 2019-09-24 20:56:29 -07:00