Commit Graph

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

Author SHA1 Message Date
Doug Coleman eb25325f87 simple-flat-file: 1.3s -> 300ms for parsing the unicode txt file.
Somehow it's spending a ton of time in <string> if split-; is not inlined.
2019-07-07 11:01:41 -05:00
Alexander Iljin 4a7644e509 windows.uniscribe: support transparency in text color 2019-06-08 18:47:42 +02:00
Alexander Iljin 3d56183360 windows.uniscribe: speed up pixel array processing for transparent fonts
The approach was suggested by John Benediktsson in a GitHub comment.
2019-06-08 18:47:41 +02:00
Alexander Iljin f445b44af6 windows.uniscribe: support text with transparent background
This fixes issues #152 and #1658.
2019-06-08 18:47:41 +02:00
nicolas-p f84cfc7209 Revert "ui.gadgets.labeled: flat colour on windows because of the gradient bug"
This reverts commit b81a5f9c7a.
2019-06-08 18:47:41 +02:00
John Benediktsson a3b439047f Revert "ui.gadgets.labeled: separate title-bar-interior with a comment why."
This reverts commit cb575c1ba8.
2019-06-08 18:47:41 +02:00
Alexander Iljin 7ad6784911 Revert "ui.gadgets.buttons: workaround for windows gradient bug"
This reverts commit 20a663ab0b.
2019-06-08 18:47:41 +02:00
John Benediktsson 22b5263446 system-info.macosx: adding macOS Catalina 10.15 2019-06-03 20:50:42 -07:00
John Benediktsson bca952ebd2 tools.disassembler.gdb: cleanup using. 2019-05-20 12:52:31 -07:00
John Benediktsson 414a426880 base64: fix stack effect typo. 2019-05-20 08:39:13 -07:00
John Benediktsson bfc133742e base64: cleanup using. 2019-05-19 18:48:50 -07:00
John Benediktsson 2d2ff1ef68 base64: much faster base64. 2019-05-19 18:48:01 -07:00
John Benediktsson d150e5cfe2 io.streams.byte-array.fast: push-all is faster for byte-array. 2019-05-19 18:47:34 -07:00
John Benediktsson 86046dcbf7 sequences.generalizations: adding (nsequence). 2019-05-19 16:31:19 -07:00
John Benediktsson 53d404a150 base16/32/64/85/91: declare base>ch as fixnum. 2019-05-19 16:23:35 -07:00
Doug Coleman c14e571429 ui.backend.windows: GetKeyboardState returns 0 on error 2019-05-02 07:55:40 -05:00
KUSUMOTO Norio 08aa27a112 windows.factor KUSUMOTO Norio plan 2
bug fix for issue #1

Review of the structure of words

NUMPAD&OEM-keydown-codes

plugable keyboard info

keyboard auto detect

conflict

ToUnicode version

resolve conflicts

ui.backend.windows: fix whitespace
2019-05-02 07:52:27 -05:00
Alexander Iljin 968fea56d0 windows.user32: add the GetKeyboardType function 2019-04-22 22:16:58 -07:00
Alexander Iljin 0007789795 continuations[-docs]: add the finally word 2019-04-22 21:57:51 -07:00
Alexander Iljin 867fc1e3fc calendar[-docs]: add week-number 2019-04-18 14:34:54 -07:00
Doug Coleman 3f777a6fdd tools: use base91 instead of base85 2019-04-06 11:39:07 -05:00
John Benediktsson fa1f9aa5a0 base64/32/85: adding tests for all byte values. 2019-04-05 13:38:00 -07:00
John Benediktsson ab88710e74 base64: adding urlsafe base64 and specify RFC 3548. 2019-04-05 12:03:00 -07:00
John Benediktsson a8b6d7bd4f io.crlf: adding read-ignoring-crlf and read1-ignoring-crlf. 2019-04-05 11:34:34 -07:00
Alexander Iljin e2b689a636 windows.ole32: add a couple of constants 2019-03-29 19:45:58 -05:00
Alexander Iljin bbd7a112f1 prettyprint-docs: fix the obsolete parser code in an example 2019-03-24 17:00:22 -07:00
Alexander Iljin ea4f061461 prettyprint-docs: fix the slot accessors in a code example 2019-03-24 16:45:31 -07:00
Doug Coleman a1a0bdfa4e windows.kernel32: add almost useless timezone function 2019-03-22 21:30:01 -05:00
John Benediktsson ebc1c1ef58 ascii: faster capitalize. 2019-03-21 20:11:46 -07:00
John Benediktsson 4f401a1585 windows.dragdrop-listener: cleanup using. 2019-03-21 19:54:06 -07:00
John Benediktsson 25b29e084d io.directories.search: a better fix for the linux entry ordering issue. 2019-03-21 19:36:05 -07:00
John Benediktsson 1c44494b32 Revert "io.directories.search: Fix the order of the depth/breadth traversals."
This reverts commit c3cfc177cd.
2019-03-21 19:23:13 -07:00
Doug Coleman d6ffd15185 libc.freebsd: platforms.txt not platform.txt
Fixes linux bootstrap
2019-03-21 19:52:07 -05:00
Doug Coleman c3cfc177cd io.directories.search: Fix the order of the depth/breadth traversals.
This unit test kind of sucks.
2019-03-21 19:41:26 -05:00
Doug Coleman 0b794f5a07 windows.dragdrop-listener: Fix using 2019-03-21 18:38:47 -05:00
John Benediktsson 26abdf4a23 regexp: try again to fix the issue with backslashes.
the new simple rule is inside R/ syntax all backslashes should be
escaped to allow easy regexp literal tokenization:

R/ [\/]/

but in the constructor <regexp> they shouldn't be:

"[/]" <regexp>

When the regexp is prettyprinted we make sure to visually escape the
backslashes in the raw regexp.
2019-03-21 13:29:15 -07:00
John Benediktsson b3bcf537cc Revert "regexp: fix take-until to handle escapes at the end of a regexp."
This reverts commit 2136abc1d6.
2019-03-18 10:42:40 -07:00
John Benediktsson 6339558368 Revert "regexp: slightly more complicated tokenization to handle another case."
This reverts commit 9f0bce7622.
2019-03-18 10:42:29 -07:00
John Benediktsson 1ab1ef7f68 Revert "globs: simpler separator regexp."
This reverts commit 31f309a829.
2019-03-18 10:42:23 -07:00
John Benediktsson 31f309a829 globs: simpler separator regexp. 2019-03-17 13:14:28 -07:00
John Benediktsson 9f0bce7622 regexp: slightly more complicated tokenization to handle another case.
R/ [^/]/
R/ (/|abc)/
2019-03-17 13:14:28 -07:00
Doug Coleman d59292faf6 io.sockets: fix for inet6 too.
"::1" 0 <inet4> utf8 <server>
"::1" f <inet4> utf8 <server>

Fixes #2109
2019-03-17 12:23:34 -05:00
Doug Coleman f4d17d3ba3 io.sockets: Allow f in the port of an inet4.
Fixes #2019.
2019-03-17 12:14:56 -05:00
John Benediktsson 2136abc1d6 regexp: fix take-until to handle escapes at the end of a regexp.
this worked:
R\ //.\

this didn't:
R\ //\
2019-03-17 09:52:53 -07:00
Doug Coleman 4df7773a58 io.files.windows: Reloading io.pathnames overwrites these two object
methods.

Make them windows methods instead.
2019-03-17 10:56:57 -05:00
Doug Coleman baafbb8b34 windows: Add all shell32 function stubs. Add more com. 2019-03-17 10:56:57 -05:00
John Benediktsson 447e30ad41 ui.tools.listener: use ?first. 2019-03-16 20:33:16 -07:00
John Benediktsson b942caf3d7 io.directories.search: fix traversal test case cross-platform issues.
on Linux and macOS mojave they entries might traverse (a,c,b)
instead of (a,b.c) so we preserve the traversal method order
but sort for cross-platform testing.
2019-03-16 20:29:19 -07:00
John Benediktsson ada81e77f5 generalizations: fix funny mnapply/nspread* bug for n > 3.
It accidentally worked for n <= 3, now it purposefully works.
2019-03-16 19:58:07 -07:00
John Benediktsson d4fc53f10e models.delay: use restart-timer, it should actually be working. 2019-03-16 16:56:05 -07:00
Doug Coleman 3f0ff53369 math.functions: add logit function and a test.
sigmoid is known as expit in scipy
2019-02-24 11:15:58 -06:00
Doug Coleman 29da71e2bf unix.kqueue: fix platforms. 2019-02-10 22:18:34 -06:00
Jack Lucas bddfb57dbe remove useless structure definition 2019-02-10 11:04:48 -05:00
Jack Lucas df90be1229 Fix stat so io test will finish 2019-02-10 11:01:31 -05:00
Jack Lucas 0c02a7c247 type name consistency 2019-02-10 03:28:28 -05:00
Jack Lucas 729518c5b1 Fix stat declarations, function: names, and dirent structure in ffi.freebsd 2019-02-10 03:24:34 -05:00
Doug Coleman 5d78ab55be basis: Load images.{tiff,png} by default for FreeBSD. Add platforms back. 2019-02-09 18:50:15 +00:00
Jack Lucas c6c2377072 Fix typo in monitor file 2019-02-09 18:43:51 -05:00
Jack Lucas b259a2725c Fix monitor errors on startup 2019-02-09 18:38:20 -05:00
Jack Lucas e3c189fa56 Fix merge error 2019-02-08 20:19:10 -05:00
Jack Lucas 6ab0996b1a Remove one mistaken author file 2019-02-08 19:20:20 -05:00
Jack Lucas 3154242a3a Re-add Freebsd Support 2019-02-08 19:17:30 -05:00
Doug Coleman 3b5cbaff8c pack: Implement write-c-string for tftp.
Ruby has hella more string directives we could implement:
https://apidock.com/ruby/Array/pack
2019-02-03 13:34:33 -05:00
Doug Coleman 16a79f1397 tools: Fix some issues and use base85. 2019-01-26 12:12:18 -06:00
Doug Coleman 0ae9b17734 mime.multipart: Simplify the code a bit.
Fixes #2107
2019-01-21 15:08:07 -06:00
John Benediktsson 4f240e0d25 timers: add test showing stopping timer doesn't stop a running quotation. 2019-01-15 17:31:14 -08:00
Doug Coleman 77515aa2a9 syndication: Remove dead code I added on accident.. 2019-01-12 18:06:03 -06:00
Doug Coleman f00bc7e08c syndication: Fix atom parsing.
This is the problematic feed:
  https://rfc1149.net/blog/tag/factor/feed/

Here's the validator saying it's ok:
  https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Frfc1149.net%2Fblog%2Ftag%2Ffactor%2Ffeed%2F
2019-01-12 17:52:55 -06:00
Doug Coleman c3569f02fa io.sockets: When we throw an error upon failing to resolve a host, report the host name. 2019-01-12 16:31:13 -06:00
John Benediktsson 88617a9e65 io.monitors: cleanup using. 2019-01-11 08:19:59 -08:00
John Benediktsson b66c23133e heaps: cleanup using. 2019-01-11 08:19:50 -08:00
John Benediktsson b7c43d6e04 models.delay: cache the timer, bug with restart-timer. 2019-01-10 21:41:34 -08:00
John Benediktsson c2684d5875 io.streams.duplex: use >duplex-stream<. 2019-01-10 20:35:32 -08:00
John Benediktsson 75f36fa9c5 heaps: fix minor doc typo. 2019-01-10 16:47:45 -08:00
John Benediktsson d29052c7b9 heaps: simplify code a little, use locals to expose heap-delete logic. 2019-01-10 16:44:22 -08:00
Jon Harper 1c28d326b1 heaps: add comments referring to pypy's heapq.py 2019-01-10 21:52:16 +01:00
Jon Harper cc70de32a7 heaps: fix heap delete: sometimes we need to sift-down 2019-01-10 21:40:28 +01:00
Jon Harper be24351a29 heaps.tests: remove dead code 2019-01-10 21:37:28 +01:00
Jon Harper 8a052aed92 heaps: check heap invariant during tests 2019-01-10 21:37:27 +01:00
Jon Harper 2a8643e936 heaps: bring back data-compare as heapdata-compare
It is useful in several places. Change the name because
0d7233f2da changed the convention and data-* words now
operate on the data directly
2019-01-10 18:21:02 +01:00
Samuel Tardieu 2cfa457258 Fix bugs in heap-delete
When an entry is kept to be use later with `heap-delete`, its `index`
in the owning heap is automatically updated as the entry sifts up
or down.

However, if the entry is removed from the heap via either a `heap-pop`
or a `heap-delete` operation, its index is not invalidated and
the entry can still be used later with `heap-delete` and remove the
wrong element from the heap.

This patch invalidates entries when they leave the heap by setting
their index to `f`, and check the index in `entry>index`.
2019-01-04 07:27:28 -08:00
John Benediktsson f8de0c1caa db.sqlite: make sure select-tuple throws sql-table-missing etc. 2019-01-03 12:39:37 -08:00
Alexander Iljin b8daf396e2 db.tuples[{-docs,-tests}]: add reject-tuples 2019-01-01 14:23:40 -06:00
Doug Coleman 4ba2ac3e78 Revert "db.tuples[{-docs,-tests}]: add reject-tuples"
This reverts commit 6cae2046b5.
2018-12-30 22:29:54 -06:00
Alexander Iljin 6cae2046b5 db.tuples[{-docs,-tests}]: add reject-tuples 2018-12-30 20:31:35 -06:00
Doug Coleman 4db062cc1b tools.directory-to-file: Fix using 2018-12-30 19:20:39 -06:00
Doug Coleman ffcb7839f6 directory-to-file: Better nested syntax. 2018-12-30 17:08:00 -06:00
John Benediktsson d9df9fc3cc ui.tools.inspector: string inspection shows characters. 2018-12-30 12:51:10 -08:00
Doug Coleman 319e1e6ac3 editors.visual-studio-code: Don't memoize the vscode path and add code.cmd per melted's suggestion:
450730b612
2018-12-24 13:12:53 -06:00
Doug Coleman 9572c87646 io.standard-paths: Add yet another path for Windows.
My vscode is in ``C:\Users\erg\AppData\Local\Programs\Microsoft VS
Code`` for some reason and vscode stopped working. This fixes it.
2018-12-24 13:08:28 -06:00
Doug Coleman 08e5340c9d furnace.auth: Rather have clean builds than loaded docs.
Fixes #2068
Fixes #2077
2018-12-16 12:35:31 -06:00
Doug Coleman 17ed798178 *.txt: Add newlines, fix some spacing 2018-12-16 12:04:35 -06:00
John Benediktsson f879a012c5 ui.backend.cocoa.views: fix macOS mojave opengl issue with new windows. 2018-12-11 15:40:41 -08:00
Alexander Iljin df7d4040bf stack-checker-docs: fix articles "a" -> "an" 2018-12-04 18:43:32 -08:00
Alexander Iljin 6590e5d25d stack-checker-docs: fix a typo 2018-12-04 18:43:32 -08:00
John Benediktsson f3d1d785cd xdg: remove memoize. 2018-10-19 22:28:15 -07:00
Benjamin Pollack b52fc788bf Support PUT and PATCH requests
Resolves #1431
2018-09-16 08:34:25 -07:00
Benjamin Pollack 84d480700c furance.recaptcha: update to reCAPTCHA2 2018-09-14 20:58:52 -04:00
John Benediktsson b246c06345 ui.gadgets.frames: default filled-cell to { 0 0 }. 2018-09-12 07:01:23 -07:00
John Benediktsson 91b17cb28b furance.auth: fix some help-lint errors...
...if only loading furance.auth.
2018-09-07 15:25:50 -07:00
Pi fd7e19b6a0 pick a better caret color for the dark theme 2018-09-07 10:02:25 -07:00
Pi 7a248c0cda actually remove caret-color slot 2018-09-07 10:02:25 -07:00
Pi 7c383a52ba make the caret color themeable 2018-09-07 10:02:25 -07:00
John Benediktsson a51fd04d0b editors.emacs: change emacsclient-args to fully override default arguments. 2018-09-03 08:06:26 -07:00
Doug Coleman d4729bdde2 cocoa.messages: Add a Cocoa union type to import NSData.
Fixes bootstrap for macOS 10.14 for the error:
```
no-objc-type
name "("
```

Fixes #2059.
2018-08-27 21:03:04 -05:00
John Benediktsson 4dcfefc0b9 timers: simplify stop-timer. 2018-08-23 20:37:20 -07:00
John Benediktsson a27f560475 timers: fix issue with restart-timer after timer went off. 2018-08-23 20:32:01 -07:00
John Benediktsson 91e55dc02a Revert "alien.data: Make with-scoped-allocation an $unchecked-example because it's breaking travisci"
This reverts commit 739fb5d94f.
2018-08-21 13:12:28 -07:00
Alexander Iljin 0637557cca *-docs: remove extra space character at the end of paragraghs 2018-08-21 10:45:52 -07:00
John Benediktsson 1b95fba178 Revert "io.files.temp: When using temp-file, it's possible that it fails since"
This reverts commit a274f99437.
2018-08-21 10:44:10 -07:00
Doug Coleman a274f99437 io.files.temp: When using temp-file, it's possible that it fails since
the temporary-directory does not exist yet.

Always check if the directory exists and create it if not.
2018-08-12 21:16:21 -05:00
Benjamin Pollack 2284178489 furnance.auth: fix documentation
The docs were attempting to reference the CouchDB auth provider, but
that fails, because the help vocab didn't include furnance.auth.couchdb.
Since the CouchDB auth vocab has some pretty serious caveats (see its
docs), remove it entirely for now.

Also fixes two minor typos in the furnace.auth.couchdb docs.
2018-08-12 11:12:22 -04:00
Mohamed Akram ab53893cfe
help.tutorial: use array for test output 2018-08-04 17:24:39 +04:00
Mohamed Akram 6b97111735
help.tutorial: fix unicode vocabulary path 2018-08-04 17:23:29 +04:00
Doug Coleman 62f672c84d editors.ui: merge the authors file hanging around on my local repo. 2018-08-03 10:39:30 -04:00
Doug Coleman 739fb5d94f alien.data: Make with-scoped-allocation an $unchecked-example because it's breaking travisci 2018-08-03 10:38:42 -04:00
John Benediktsson 8d07e763d9 tools.hexdump: use re-decode. 2018-08-02 13:34:38 -07:00
John Benediktsson dc25fe3688 ui.tools.listener: minor cleanup to completion stuff. 2018-08-01 21:08:43 -07:00
Doug Coleman 7999e72aec Revert "lists: Add list literal doc example."
This reverts commit 47408528d0.
2018-07-30 12:02:42 -05:00
Doug Coleman 6810fc42b0 Revert "lists: Add list literals."
This reverts commit ae74a794e1.

The listener forces lazy lists, which is not what we want. We need a different approach for prettyprinting lazy lists.
2018-07-30 12:01:28 -05:00
Doug Coleman 3a5533dc44 layouts: Add 32bit? and 64bit? words. 2018-07-22 11:46:01 -05:00
Doug Coleman 12918ae2a5 escape-strings: Add a tag-payload word to make a string payload and tag. 2018-07-21 15:19:42 -05:00
Doug Coleman 279acbc53e io.launcher: Add process-lines word. 2018-07-16 21:02:11 -05:00
Doug Coleman 39cbe60fd2 vocabs.platforms: Add <LINUX LINUX> sections that ignore code for the wrong platform. 2018-07-15 22:30:45 -05:00
Doug Coleman 47408528d0 lists: Add list literal doc example. 2018-07-13 22:58:57 -05:00
Doug Coleman ae74a794e1 lists: Add list literals.
Fixes #2019.
2018-07-13 20:36:50 -05:00
Doug Coleman 4b614cc15b factor: Make source files/resources 644 instead of 755. 2018-07-13 20:36:50 -05:00
Alexander Iljin 7298918029 windows.registry: add change-registry-value and delete-value 2018-07-12 23:33:14 -05:00
Doug Coleman b21f9ed3eb editors.ui: Make the editors ui its own thing. 2018-07-11 21:52:17 -05:00
Doug Coleman cd2b8eee42 Revert "editors: Add a MAIN-WINDOW: to editors to easily reload editors."
This reverts commit cb4ca7cca4.
2018-07-11 21:51:26 -05:00
Doug Coleman cb4ca7cca4 editors: Add a MAIN-WINDOW: to editors to easily reload editors. 2018-07-11 21:41:46 -05:00
Doug Coleman e17a352af3 system-info.macosx: Fix using 2018-07-09 09:10:27 -05:00
Doug Coleman 8a8399e633 tools.directory-to-file: Add a command-line program to make a directory into a file and restore it. 2018-07-09 01:59:58 -05:00
Doug Coleman 9b97da0658 calendar.format: Add a word to format time to a string for convenience. 2018-07-08 22:57:24 -05:00
Doug Coleman 97097fae2c system-info: Add computer-name 2018-07-08 22:46:18 -05:00
Doug Coleman 565ac276cd help.lint.checks: Ignore linux-monitors as not real leaks.
Fixes #2014.
2018-07-07 17:32:06 -05:00
Doug Coleman 3ac520a8ec io.pathnames: Add canonicalize-path.
The idea is to make a canonical representation of any path, taking into
account . and .. and unicode-prefix on Windows.

The use case is in a shell you have a current-directory and you can do
crazy commands like ``cd ../foo/bar/baz/../.././././`` and get the
canonical/shortened directory name. You can also use this word to
compare if two paths are the same.
2018-07-07 11:59:59 -05:00
Doug Coleman f4ac9fcfca cocoa.messages: fix docs.. 2018-07-07 11:16:23 -05:00
Doug Coleman 57ee2553b3 grouping: Fix some spacing. 2018-07-07 11:14:57 -05:00
Doug Coleman e5bd5f6719 help.lint.checks: Save lint disposables in hash. 2018-07-07 11:14:16 -05:00
Doug Coleman 79db3ca594 docs: fix docs for help-lint 2018-07-07 08:24:20 -05:00
Doug Coleman 4e9d383fe5 docs: Fix help-lint-all mistakes. 2018-07-07 01:13:19 -05:00
Doug Coleman 411a55314c help.lint: Add a MAIN: to help-lint to test lint from command line like we already have for unit tests.
Also flush stdout for both MAIN: test apps.
2018-07-07 01:13:19 -05:00
Doug Coleman 06b07b9e9c help.lint.checks: Fix regression in help-lint introduced in 8c158aa68f.
We haven't been checking words in help-lint for two years! Ack!
2018-07-07 01:13:19 -05:00
Doug Coleman e21125ac2c tools.test: Print out test failures at the end of test main. 2018-07-07 01:13:19 -05:00
Doug Coleman a3abec6f5c ui.backend.windows: And fix the UI for LoadCursor.
Related to #2011
2018-07-06 21:26:27 -05:00
Doug Coleman 0f2466e6fb windows.user32: Fix signature of LoadCursorW.
Also change a couple more that weren't exactly right.

Fixes #2011.
2018-07-06 21:21:29 -05:00
Doug Coleman 0e51880199 math.matrices: Add some more matrix norms. 2018-07-04 16:14:44 -05:00
Doug Coleman 211d69561a escape-strings: Add a way to find the shortest lua-string escape.
Also add a way to escape a string as either 'foo "foo" or [[foo]] depending on which delimiters will do the job.

Add a couple helper words to assocs.extras
2018-06-30 00:39:39 -05:00
Doug Coleman 05c72e8690 factor: trim some long using lists. 2018-06-23 11:43:00 -07:00