Commit Graph

14707 Commits (master)

Author SHA1 Message Date
John Benediktsson 42cf41e616 Revert "basis: Move any vocabularies required by basis into basis."
This reverts commit 59c2956570.
2020-04-01 21:37:28 -07:00
John Benediktsson 33eb8a7837 Revert "basis: Move more extra to basis."
This reverts commit 2d85dafa98.
2020-04-01 21:37:28 -07:00
Doug Coleman 2d85dafa98 basis: Move more extra to basis.
I missed these because they were already loaded in my saved image.
2020-03-28 10:39:06 -05:00
Doug Coleman 59c2956570 basis: Move any vocabularies required by basis into basis. 2020-03-28 09:30:37 -05:00
John Benediktsson 497d6491e6 formatting: simplify using assoc>map instead of unzip map map zip. 2020-03-24 11:13:55 -07:00
John Benediktsson 5525313757 formatting: support other sequences in printf. 2020-03-24 11:11:15 -07:00
Doug Coleman 5cc97a4d1b unix.process: Add posix_spawn stub.
I couldn't get this to work in all cases to replace spawn-process yet.

```
! works
{ "/bin/ls" "-al" } posix-spawn-args-with-path

! Broken on Linux64 for some reason
{
    "/usr/bin/code"
    "-g"
    "-r"
    "/home/erg/factor-master/basis/io/launcher/launcher.factor"
} posix-spawn-args-with-path
```
2020-03-15 17:23:21 -05:00
Doug Coleman c23230ed82 windows: Move types to ole32 2020-03-15 13:31:46 -05:00
Doug Coleman 1abde46c79 windows: Move IStream to windows.com to fix bootstrap. 2020-03-15 13:21:38 -05:00
Cat Stevens 426d8f09b2 fix various typos; cleanup and fully document boyer-moore 2020-03-15 14:58:43 +00:00
John Benediktsson ee4e977fbb ui.text.core-text: apply @kusumotonorio patch. 2020-03-11 20:59:20 -07:00
Doug Coleman 85d15e865a windows: Add more COM code. 2020-03-10 18:34:24 -05:00
John Benediktsson 717dce055a images.loader: fix tests. 2020-03-10 10:20:21 -07:00
Doug Coleman d98f0134ab images.loader: fix using and kick the tires 2020-03-10 09:57:47 -05:00
Doug Coleman 39f8abc764 images.loader: Disable saving a bmp on win32.
This is probably fixable with enough auditing of the gdiplus flat
interface.
2020-03-10 03:53:14 -05:00
Doug Coleman 96d3482475 windows: Fix user32/shcore DPI functions. 2020-03-09 21:59:10 -05:00
Doug Coleman 37871d87f4 windows: Add a bunch of HighDPI functions. 2020-03-07 13:26:25 -06:00
Benjamin Pollack bafb101b7a windows; add functions to determine DPI scaling 2020-03-06 23:21:02 -06:00
Niklas Larsson 8df1d1fbe6 cache: Don't use in-place filter
This solves a UI corruption problem by not reusing the hashtable when
purging the cache. The root cause of why the hashtable gets corrupted
when filtering in place hasn't been found.

Fixes #1978.
2020-03-06 23:14:44 -06:00
Doug Coleman 96b891f5d8 images.loader: Windows can save bmp files.
If there is a crasher, we can debug it.
2020-03-06 22:59:30 -06:00
Doug Coleman d188bcf592 images.loader.gdiplus: Allow writing .bmp and do a better lookup. 2020-03-06 19:35:16 -06:00
Doug Coleman 97532d020a ui.gadgets: Stale gestures can lose the associated gadget.
The gesture queue can send messages where the
focusable-child has disappeared.

Handle ``M: f focusable-child*`` by doing nothing.

Fixes #2117.
2020-03-06 19:05:27 -06:00
Doug Coleman 8da5c2fc91 windows.ole32: Add more LONG: constants. 2020-03-06 19:05:07 -06:00
Doug Coleman 92cb20163f windows.ole32: Add more error constants as long.
These are -2B..2B instead of positive integers because long is s32 on
Windows.
2020-03-06 17:53:38 -06:00
John Benediktsson 7eee21ab94 vocabs.metadata: cleanup a couple uses of metadata paths. 2020-03-05 09:33:41 -08:00
John Benediktsson d94b135087 vocabs.metadata: cleanup paths to be fully specified. 2020-03-05 08:59:36 -08:00
John Benediktsson 3efe23cc71 ui.gadgets.panes: fix tests under dark-theme. 2020-03-03 15:23:18 -08:00
John Benediktsson a462587833 html.templates.chloe: adding missing tests. 2020-03-02 19:01:01 -08:00
John Benediktsson 711297690b websites.concatenative: navbar background. 2020-03-02 17:01:01 -08:00
John Benediktsson 290d0ed7d2 html.templates: adding meta tag and some chloe tests. 2020-03-02 15:57:19 -08:00
John Benediktsson 3b18827044 tools.errors: fix to match current behavior: "show". 2020-03-02 15:40:37 -08:00
John Benediktsson ab9eca2454 bootstrap.image: add make-my-image to docs. 2020-03-02 15:40:22 -08:00
John Benediktsson 9abc2ae873 webapps.help: matching style for navbar. 2020-03-02 08:48:25 -08:00
John Benediktsson a8d35345c4 extra: moving hash-sets.numbers, hashtables.numbers to basis. 2020-03-01 20:50:58 -08:00
John Benediktsson 50bd41d82f help.html: move pre-wrap to css style fixup. 2020-03-01 18:32:47 -08:00
John Benediktsson 2c43df72ea html.streams: fix tests. 2020-03-01 18:32:35 -08:00
John Benediktsson 5967033fe5 html.templates: adding t:script and t:write-script. 2020-03-01 12:05:59 -08:00
John Benediktsson c64d9032b5 help.html: more responsive help docs. 2020-03-01 10:27:22 -08:00
John Benediktsson e07abedafe html.streams: monospace uses pre-wrap, wrap-margin sets width. 2020-03-01 10:27:22 -08:00
Cat Stevens 573e4ed198 math.matrices: fix/rename mnorm, update all norms
closes #2244

- `mnorm` has been renamed to `normalize-matrix`
	to reflect what it actually does, which
	is normalize a matrix, not find a norm
	of a matrix.

- `mnorm` is no longer a word defined here.

- bugfix: previously, `normalize-matrix` found
	the supremum of a matrix (`mmax`),
	before taking the supremum's absolute
	value (`abs`) and dividing the matrix
	by it (`m/n`).
	for matrices containing only negative
	values and 0, the supremum is 0, and
	a `div-by-zero` error was thrown.

	`normalize-matrix` has been fixed to
	first `abs` all the matrix elements,
	and then find the supremum and divide,

	it also receieved a zero-matrix? guard
	for optimization and preventing
	`div-by-zero`.

- new alias: `hilbert-schmidt-norm` for
	`frobenius-norm`,  to go along with
	`math.matrices.extras.<hilbert-matrix>`
	and improve searchability by physicists.

- new word: `matrix-p-norm`, written as an
	analogue of `math.vectors.p-norm`.

- new word: `matrix-p-q-norm`, which generalizes
	entrywise matrix norm over the L^p,q
	vector space.

- new word: `matrix-p-norm-entrywise`:
	`matrix-p-norm`'s fallback
	for p =/= 1, 2, inf; analogue of
	`math.vectors.p-norm-default`.

- all norm words have gotten new docs,
	`zero-matrix?` guards as an optimisation,
	and most have gotten new tests.
2020-03-01 03:31:28 +00:00
John Benediktsson 6599869f73 prettyprint.backend: make +nil+ render as L{ }. 2020-02-29 07:16:46 -08:00
John Benediktsson dc8e6e6799 ui.gadgets.paragraphs: need to merge height/metrics.
Sometimes cap-height is false and we handle that differently.
2020-02-27 21:53:39 -08:00
John Benediktsson 086269ba34 help.html: default font size should be 12pt, less line-height for pre. 2020-02-27 21:44:32 -08:00
John Benediktsson 2379d27950 ui.gadgets.paragraphs: faster pref-dim.
Now computing gadget-metrics once, before called (measure-metrics) twice,
the first time adding the result, the second time dropping the top of stack.
2020-02-27 18:10:37 -08:00
John Benediktsson ba09d70b8b help.html: raise line-height to 150%. 2020-02-27 16:49:48 -08:00
John Benediktsson d732e87cfa help.html: less css reset. 2020-02-27 16:08:33 -08:00
John Benediktsson 7ec954ec05 help.html: use protocol agnostic link. 2020-02-27 14:40:50 -08:00
John Benediktsson 83f47eb209 help.html: make these match new wiki css. 2020-02-27 13:15:53 -08:00
John Benediktsson 43b82b03ad math.vectors: rename "h." to "hdot" 2020-02-26 13:06:52 -08:00
John Benediktsson da5d010c5b math.vectors.simd: fix typo in simd vdot intrinsic. 2020-02-26 12:56:52 -08:00
John Benediktsson 07a5912afa math.matrices: rename m./m.v/v.m to mdot/mdotv/vdotm. 2020-02-26 12:51:04 -08:00
John Benediktsson 1c5d417100 math.vectors: rename "v." to "vdot" 2020-02-26 12:40:16 -08:00
John Benediktsson 29054e53e8 help.markup: make sure lists wrap wider. 2020-02-26 12:02:20 -08:00
John Benediktsson 385c5edf1a calendar: remove unnecessary effects on generics. 2020-02-26 11:34:02 -08:00
John Benediktsson 6ee821e061 prettyprint.stylesheet: s/stack-effect-style/base-effect/style/. 2020-02-26 11:18:18 -08:00
John Benediktsson 049271d04e help.markup: cleanup using. 2020-02-26 11:08:13 -08:00
John Benediktsson 59ddb844e9 prettyprint.stylesheet: change stack effects to not be green. 2020-02-26 11:07:46 -08:00
John Benediktsson 2cbcacad88 core/basis/extra: update some tags.txt. 2020-02-26 10:57:08 -08:00
John Benediktsson 522f30e520 xml.writer: remove M\ number write-xml.
This is likely an artifact from when numbers were treated as sequences,
which isn't needed anymore.
2020-02-26 10:24:23 -08:00
John Benediktsson 994ecb655b help.html: assume even padding started out odd. 2020-02-26 10:03:35 -08:00
John Benediktsson 6796daab79 help.html: clone attrs in css-styles-to-classes and double padding. 2020-02-26 09:44:14 -08:00
John Benediktsson 15d6762449 help.markup: change $breadcrumbs to unicode. 2020-02-26 09:40:27 -08:00
John Benediktsson 6aa7d52473 ui.tools.browser: use unicode next/prev arrows. 2020-02-26 09:22:48 -08:00
John Benediktsson c03a7b5ec2 ui.gadgets.panes: simplify <styled-label>. 2020-02-25 12:33:01 -08:00
John Benediktsson 94fcf3f2b6 html.streams: allow div-css-style to use span-css-style. 2020-02-25 12:30:51 -08:00
John Benediktsson 404aa1bc92 Revert "html.streams: use style-stream."
This reverts commit 6f9a7dcc9e.
2020-02-25 12:10:42 -08:00
John Benediktsson 08dd854b15 lists: check for errors like L{ . 3 }. 2020-02-24 09:11:46 -08:00
John Benediktsson 20f0b8aa28 lists: make multiple dots a syntax error. 2020-02-23 07:29:02 -08:00
John Benediktsson 79add00e24 help.html: don't use sprintf. 2020-02-22 20:40:11 -08:00
John Benediktsson 83e46eb030 lists: simplify parse-list-literal to fix bootstrap issue. 2020-02-22 20:37:10 -08:00
kusumotonorio 0f6ec42e3e lists.factor: rest: --> . 2020-02-22 19:58:55 -08:00
kusumotonorio 384f976deb lists.factor: Added some vocab 2020-02-22 19:58:55 -08:00
kusumotonorio a38b3dfd83 Supports dotted pair notation 2020-02-22 19:58:55 -08:00
John Benediktsson 189b54998d Revert "help.markup: separate examples using newlines."
This reverts commit 76fcbdc690.
2020-02-22 19:49:41 -08:00
John Benediktsson 2ee8635f1e help.stylesheet: make some fonts bigger. 2020-02-19 21:55:29 -08:00
John Benediktsson b73b3e04f9 help: simplify navigation-table. 2020-02-19 21:47:01 -08:00
John Benediktsson 76fcbdc690 help.markup: separate examples using newlines. 2020-02-19 21:47:01 -08:00
John Benediktsson e0e58a62c5 ui.tools.browser: change $navigation to not use title-style. 2020-02-19 21:47:01 -08:00
John Benediktsson 1a84cede3b ui.gadgets.panes: change approach to nested-pane-stream. 2020-02-19 21:47:01 -08:00
John Benediktsson a7682c9854 io.styles: change style-stream to inherit all styles by default. 2020-02-19 21:47:01 -08:00
John Benediktsson fa31902975 ui.tools.error-list: adding table header emphasis. 2020-02-19 21:47:01 -08:00
Doug Coleman a91fbb54b0 syndication: Property can be present but f, handle this.
Test case:
    "http://www.spreaker.com/show/2952221/episodes/feed" http-get nip parse-feed
2020-02-18 18:43:49 -06:00
John Benediktsson 3aa71bcb84 help.html: cleanup stylesheet a bit. 2020-02-17 14:50:48 -08:00
John Benediktsson ff35f79f3e help.html: change fixed font-size to relative. 2020-02-17 14:50:30 -08:00
John Benediktsson 2e5cec428a help.markup: adding a $slots word to document slots, use it. 2020-02-16 22:36:19 -08:00
John Benediktsson 7de25b9f20 ui.gadgets.panes: make it clear that pane/pack/paragraph are not streams. 2020-02-16 19:23:29 -08:00
John Benediktsson f651c8fd9a ui.gadgets.pane: rename pane-clear to clear-pane. 2020-02-16 19:17:29 -08:00
John Benediktsson 8976014697 help.html: support style/class replacement in more tags. 2020-02-15 10:27:22 -08:00
John Benediktsson 7b0f6efe7f ui.gadgets.panes: use style-stream. 2020-02-15 09:35:09 -08:00
John Benediktsson 6f9a7dcc9e html.streams: use style-stream. 2020-02-15 09:33:55 -08:00
John Benediktsson 4a05a845bc io.styles: rename do-nested-style, make private. 2020-02-15 09:22:41 -08:00
John Benediktsson d0a44d665e io.styles: only allow character styles to inherit. 2020-02-15 08:42:06 -08:00
John Benediktsson be746c1f6d help: unify code-char-style and code-style. 2020-02-15 08:40:21 -08:00
John Benediktsson 647a477d68 help.html: vertical-align images. 2020-02-14 22:31:12 -08:00
John Benediktsson 75db2b0d4a help.markup: change default-style to use with-nesting. 2020-02-14 22:18:38 -08:00
John Benediktsson 1da20adc63 help: change $title to only use with-nesting. 2020-02-14 22:17:41 -08:00
John Benediktsson 6adabbdf2d io.styles: simplify style-stream by depending on style words. 2020-02-14 21:28:05 -08:00
John Benediktsson 3b08633604 help.html: whoops, need to remove the extra links. 2020-02-13 21:52:43 -08:00
John Benediktsson ba81ca3fa6 help.html: tweak the navbar a bit. 2020-02-13 21:43:24 -08:00
John Benediktsson d890f410bf help.html: use max-width for content. 2020-02-13 21:07:25 -08:00
John Benediktsson de294563d1 help.html: wrap contents in a div, update style a little. 2020-02-13 21:01:47 -08:00
John Benediktsson a3730c329a help: change $title to nest then style.
This changnes the HTML we produce to look like:

    <div><span>...</span></div>

Instead of:

    <span><div>...</div></span>
2020-02-13 21:01:03 -08:00
John Benediktsson 02ec3531c3 help.markup: more bold table headings. 2020-02-13 15:20:17 -08:00
John Benediktsson 38bfcd4bf1 help: add more bold table headings. 2020-02-13 15:18:43 -08:00
John Benediktsson dc0a5ba216 help: add some bold table headings. 2020-02-13 15:07:15 -08:00
John Benediktsson b94d9662f9 bootstrap.image: define MAIN: to make-my-image. 2020-02-13 14:56:35 -08:00
Doug Coleman 5cb26d546f windows.gdiplus: flags{ } is in literals, fix using 2020-02-13 06:25:21 +03:00
John Benediktsson bd0369e4e1 x11.xim: fix use of flags. 2020-02-12 08:37:13 -08:00
John Benediktsson d2ab01a5d9 core/basis/extra: use flags{ } in places. 2020-02-11 13:27:42 -08:00
John Benediktsson fe929be0f4 io.directories.windows: don't need to wrap. 2020-02-11 13:25:44 -08:00
John Benediktsson 4e91f55f1e vocabs.hierarchy: change sorting to sort visible-dirs. 2020-02-09 10:00:18 -08:00
John Benediktsson 1a1ee4b4a8 vocabs.hierarchy: faster all-disk-vocabs-recursive.
The old technique caused a high amount of redundant ``exists?`` checks,
even though we are traversing the directory tree.  That happens to be a
little slow on Windows, for some pathological reason, the first time
it's run. This should make it better while we also investigate why
``windows_stat`` is slower in that case.
2020-02-09 09:04:14 -08:00
John Benediktsson b430f8e0a7 io.files.windows: make win32-file-attributes a little faster. 2020-02-07 14:11:43 -08:00
John Benediktsson dfc4901857 math.statistics: adding interquartile-range, midhinge, and fivenum. 2020-02-06 11:40:53 -08:00
John Benediktsson 2200468755 gobject-introspection: support more number type constants. 2020-01-30 08:23:13 -08:00
John Benediktsson dfdbde9f33 math.matrices: use any? and all? directly in tests. 2020-01-28 20:44:19 -08:00
John Benediktsson 464f0a11ef math.matrices: update using on tests. 2020-01-28 20:38:43 -08:00
John Benediktsson 6aa8f640c8 persistent.hashtables: cleanup. 2020-01-28 16:22:33 -08:00
John Benediktsson 548109bf4b math: use sorted-histogram values in a few places. 2020-01-28 16:21:33 -08:00
John Benediktsson 94cbe2b479 ui.gadgets.panes: fix for big strings on windows and linux.
Using 3639 grapheme length, which is win32 limit. Maybe cairo supports
4681 graphemes, but use the lower limit for now.
2020-01-28 16:16:09 -08:00
John Benediktsson a62ea78d73 ui.backend.cocoa.views: some formatting cleanup. 2020-01-24 14:47:42 -08:00
kusumotonorio fb3928f807 Tests for System V AMD64 ABI (#2233)
* Adds Tests for System V AMD64 ABI

* Remove TABs, etc.

* Adds a test

* Some Cleanup

* Add Callback Tests

* Add More Tests
2020-01-24 21:54:33 +00:00
John Benediktsson 4e17fb13cb
Merge pull request #2235 from kusumotonorio/system-v-amd64-abi
Improved System V AMD64 ABI compliance
2020-01-24 21:52:40 +00:00
kusumotonorio 1eaa895c8a unix.factor: Bug fix etc., boxing.factor: Improves record/unrecord-reps 2020-01-23 20:02:03 +09:00
kusumotonorio 95519b0130 boxing.factor: Swap first and second positions 2020-01-20 20:47:16 +09:00
kusumotonorio 7349f9d953 boxing.factor: Use count 2020-01-20 20:38:43 +09:00
kusumotonorio aba3d66849 unix.factor: Use count 2020-01-20 18:53:26 +09:00
kusumotonorio e6726acd02 put alien.factor back 2020-01-19 22:27:17 +09:00
kusumotonorio c258a4e2f4 Add Callback Tests 2020-01-19 21:57:05 +09:00
kusumotonorio 2ee51f50e2 Stop inc-not-f and dec-not-f, etc 2020-01-19 14:30:38 +09:00
Doug Coleman ada064d9c3 byte-arrays: Add a byte-sequence protocol for byte-{array,vector}
Allow hexdumping strings as utf8 for convenience.
2020-01-16 18:18:46 -06:00
kusumotonorio bb7777e0cf boxing.factor: Change Stack Effects 2020-01-16 23:34:24 +09:00
kusumotonorio d581322225 Remove an extra space 2020-01-16 21:06:22 +09:00
kusumotonorio 5bee1ba3a1 Improve System V AMD64 ABI compliance 2020-01-16 20:57:13 +09:00
John Benediktsson d593d3d953 tuple-arrays: final-class wasn't a predicate class. 2020-01-15 13:54:40 -08:00
John Benediktsson 8c5e9a7df4 classes: fix a couple of check-instance uses. 2020-01-15 13:33:50 -08:00
John Benediktsson 77cd3aaede classes: use check-instance in a few places, to remove duplication. 2020-01-15 10:34:47 -08:00
John Benediktsson b3582dd323 urls.encoding: support byte-array values for encoding. 2020-01-09 14:17:01 -08:00
Doug Coleman 4acb08d905 tools.deploy: Up the deploy sizes for mac32.
Looks like upgrading to unicode 12 caused the sizes to grow. These are mostly graphics demos which should not depend on unicode, but the tools can't detect this easily, so punt for now.

Here's a command to show the last clean deploy to where it broke.

git log -p 4201c2149b66d5ce45a9e45be95459256486a7ea..8eb7621b549a7956665affc9e53a48e8e8b29ea3
2020-01-08 19:23:37 -06:00
John Benediktsson ca1612cc57 io: fix for win32-error not throwing on zero. 2020-01-06 14:20:15 -08:00
Alexander Iljin c77cc4c205 windows.errors: fix a compilation error 2020-01-06 13:18:53 -08:00
Alexander Iljin 049356574a windows.errors: streamline error handling and throwing 2020-01-06 13:18:33 -08:00
Alexander Iljin 3733b13daf Replace "win32-error-string throw" with windows-error instance throwing
Remove win32-error-string, because there was only one place it was used in.
2020-01-06 13:18:33 -08:00
Alexander Iljin 563a3b1a47 Replace "n>win32-error-string throw" with windows-error instance throwing 2020-01-06 13:18:33 -08:00
Alexander Iljin 135390968b Delete throw-win32-error, replace with win32-error calls 2020-01-06 13:18:33 -08:00
Alexander Iljin 407c7bc216 io.files.windows: replace "-1 <alien>" with INVALID_HANDLE_VALUE 2020-01-06 13:18:33 -08:00
Alexander Iljin 294be2cca3 Replace inline INVALID_HANDLE_VALUE checks with check-invalid-handle calls
On error find-first-file will now throw a windows-error instance instead of
a string.
2020-01-06 13:18:33 -08:00
Alexander Iljin 77db1b1df3 windows.errors: make check-invalid-handle throw windows-error instances
There are two consequences:
- the thrown object is now a windows-error, previously it was a string;
- if GetLastError returns zero, nothing is thrown. Previously the string
"The operation completed successfully." was thrown in that case.
2020-01-06 13:18:33 -08:00
Doug Coleman f9c90583d0 io.files.info: Fix linux file-system-info recursion 2020-01-05 13:27:22 -06:00
Doug Coleman 9beeedfe18 io.files.info: Fix find-mount-point. 2020-01-04 13:33:45 -06:00
Doug Coleman 4da6f51c91 io.files.info: fix circularity regression in file-systems on linux 2020-01-04 09:07:32 -06:00
Doug Coleman 16442c27ac io: Fix word to find disk space if a file is missing.
Add canonicalize-drive because Windows likes C: instead of c:.

Add >windows-path for path string comparison.

Add canonicalize-path-full for fixing the path, drive, and / to \\ on
Windows.
2020-01-03 16:30:00 -06:00
Doug Coleman 0625b85b47 Revert "windows.errors: make check-invalid-handle throw windows-error instances"
This reverts commit 38ab7289b5.
2020-01-03 13:04:38 -06:00
Doug Coleman 75e98b4bc3 Revert "Replace inline INVALID_HANDLE_VALUE checks with check-invalid-handle calls"
This reverts commit 1e61dbfd2a.
2020-01-03 13:04:29 -06:00
Doug Coleman 8a3b7cbd18 Revert "io.files.windows: replace "-1 <alien>" with INVALID_HANDLE_VALUE"
This reverts commit a6f0b74f03.
2020-01-03 13:04:11 -06:00
Doug Coleman d9f1093cf8 Revert "Delete throw-win32-error, replace with win32-error calls"
This reverts commit e1be081ec9.
2020-01-03 13:04:01 -06:00
Doug Coleman c308d794db Revert "Replace "n>win32-error-string throw" with windows-error instance throwing"
This reverts commit 70d08ce743.
2020-01-03 13:03:52 -06:00
Doug Coleman 7f395ba7f0 Revert "Replace "win32-error-string throw" with windows-error instance throwing"
This reverts commit 2dfb3b3a73.
2020-01-03 13:03:10 -06:00
Doug Coleman 0f7672c25e Revert "windows.errors: streamline error handling and throwing"
This reverts commit ca474dd154.
2020-01-03 13:02:57 -06:00
Doug Coleman 16c153411d io: Trim using lists. 2020-01-03 12:42:11 -06:00
Doug Coleman 3419d34cbf mason.disk: Better handling of free disk space.
- Works if the build directory does not exist, assuming it would be created on the root disk containing the path of the first existing parent directory
- Space calculation is wrong, we should be using the available space
- MB is GB, comment was wrong
- Call find-mount-point-info to get the real disk mount point even if the dir does not exist
2020-01-03 11:10:53 -06:00
John Benediktsson 2235eadf04 timers: simplify by setting delay-nanos directly. 2019-12-17 20:03:45 -08:00
John Benediktsson 2d1da05bc5 sequences.product: adding product-find. 2019-12-13 19:30:22 -08:00
John Benediktsson cc15116323 timers: allow timers to re-use threads when restarted, simplify.
Throw an error if started twice.
2019-12-13 15:31:49 -08:00
John Benediktsson 77b13fbdc2 core/basis/extra: using while* in a few places. 2019-12-13 14:38:26 -08:00
John Benediktsson 8e8c62a2d9 tools.test: adding a warning for possible long unit tests.
This will help us learn which tests are the slowest on Travis.
2019-12-08 09:06:55 -08:00
Cat Stevens 4350bcbfcd math.matrices: rewrite, modernize and overhaul
math.matrices.elimination: move to extra
math.matrices.extras: expand with esoteric, less-used and unfinished code from basis

- math.matrices and .extras receive more words, tests, and docs
- matrix has become a predicate class
- 94% of matrices words have complete docs
- 77% of matrices.extras words have complete docs
- much more consistent naming for constructors etc
- added missing words / features such as main-diagonal and anti-transpose
- optimizations
- lots of documentation
2019-12-08 08:08:54 -08:00
Alexander Iljin ca474dd154 windows.errors: streamline error handling and throwing 2019-11-25 07:06:59 -08:00
Alexander Iljin 2dfb3b3a73 Replace "win32-error-string throw" with windows-error instance throwing
Remove win32-error-string, because there was only one place it was used in.
2019-11-25 07:06:59 -08:00
Alexander Iljin 70d08ce743 Replace "n>win32-error-string throw" with windows-error instance throwing 2019-11-25 07:06:59 -08:00
Alexander Iljin e1be081ec9 Delete throw-win32-error, replace with win32-error calls 2019-11-25 07:06:59 -08:00
Alexander Iljin a6f0b74f03 io.files.windows: replace "-1 <alien>" with INVALID_HANDLE_VALUE 2019-11-25 07:06:59 -08:00
Alexander Iljin 1e61dbfd2a Replace inline INVALID_HANDLE_VALUE checks with check-invalid-handle calls
On error find-first-file will now throw a windows-error instance instead of
a string.
2019-11-25 07:06:59 -08:00
Alexander Iljin 38ab7289b5 windows.errors: make check-invalid-handle throw windows-error instances
There are two consequences:
- the thrown object is now a windows-error, previously it was a string;
- if GetLastError returns zero, nothing is thrown. Previously the string
"The operation completed successfully." was thrown in that case.
2019-11-25 07:06:59 -08:00
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