Commit Graph

13985 Commits (a9ebc772df8d90a36b772cdebf5d85e3670a54ab)

Author SHA1 Message Date
Doug Coleman 6ddeeac3dc tools.ps.windows: If we can't read the process command-line args, just
ignore the error.

Fixes #1788.
2017-12-30 20:30:28 +00:00
Doug Coleman 97a928a1bd images.loader.gtk: Add with-destructors. Fixes #1893.
Also did this on imac: cd /usr/local/lib && ln -s /opt/local/lib/libgobject-2.0.dylib .
2017-12-29 15:25:16 -06:00
Doug Coleman 6ab59c4446 present: add callable and pointer defs. 2017-12-28 17:56:50 -08:00
Doug Coleman 9dbfc9351c math.functions: nan: -> NAN: oops 2017-12-28 00:43:51 -08:00
Doug Coleman 099549940a math.functions: disable a test. 2017-12-27 22:28:20 -08:00
Doug Coleman c6f2cbdeaf glib.ffi: look for glib-2.0.dylib not glib-2.0.0.dylib 2017-12-18 17:02:06 -06:00
Doug Coleman 45766ff4e9 tools.deploy: cheat on file sizes. 2017-12-17 21:44:57 -06:00
Doug Coleman f6f15b9c82 io.socketes.secure: Use TLS 1.0 or TLS 1.2 certs.
Fixes #1887.
2017-12-17 20:02:29 -06:00
Doug Coleman db9073d98d openssl: Add TLS 1.0 test certs back for macOS 10.11.6.
Fixes #1887.
2017-12-17 20:01:27 -06:00
Doug Coleman 7d8fe2b54c io.sockets.secure.unix: Stop these tests from hanging on errors.
Specifically, the server writes its port to a mailbox. On Mac 10.11.6, the last macOS for my old computers, TLS1.0 is the last supported SSL protocol, and there is a yet-undebugged error. This patch at least exposes the error for debugging.
2017-12-17 18:49:52 -06:00
Doug Coleman 02a9bbefe7 concurrency.messaging: Fix a couple of confusing typos. 2017-12-17 18:49:30 -06:00
Doug Coleman 53951c4ade ui.gadgets.labeled: Fix a random failing unit test. 2017-12-09 04:02:11 -06:00
Doug Coleman 034337fd02 factor: latest -> master 2017-12-09 01:56:12 -06:00
Doug Coleman f96f6d787e bootstrap.image.upload: Downloads moved. 2017-12-09 00:25:17 -06:00
John Benediktsson c95a565619 ui.render: fix ghosting in gpu.demos.raytrace. fixes #1881. 2017-11-20 15:02:39 -08:00
Jon Harper 2a2aa7f915 ui.backend.x11, implement (fullscreen?) 2017-11-19 13:24:40 -08:00
John Benediktsson d2f3977768 ui.backend.cocoa.views: remove listener touchbar support (temporarily).
... it breaks deploys of other UI apps that aren't the listener.
2017-10-29 15:38:20 -07:00
John Benediktsson da0ca21fc8 ui.traverse: cleanup tests a little. 2017-10-25 19:00:47 -07:00
John Benediktsson e06b1d7ded ui.traverse: some cleanup, use locals to understand logic better. 2017-10-25 18:06:47 -07:00
John Benediktsson c22e55ce48 ui.gadgets.slots: move to ui.tools.inspector.slots. 2017-10-25 16:17:08 -07:00
John Benediktsson b90f37b13e ui.tools.common: only save tool-dim when not fullscreen. 2017-10-25 16:16:53 -07:00
John Benediktsson c2c879c999 ui.gadgets: remove dependence on ui.tools.common. 2017-10-25 15:56:40 -07:00
John Benediktsson 59af2ae3d7 ui.gadgets.slots: use with-lines like other tools. 2017-10-25 15:48:20 -07:00
John Benediktsson e376724aa8 ui.gadgets.search-tables: remove slot-protocol.
... too much complexity for not enough gain, I think.
2017-10-25 15:41:23 -07:00
John Benediktsson d1f5282c6d ui.gadgets.labeled: cleanup labeled-gadget words. 2017-10-25 15:00:22 -07:00
John Benediktsson b28bb90167 docs: fix models-range article link. 2017-10-25 14:59:57 -07:00
John Benediktsson 5b4339e429 ui: use (poorly named) white-interior theme word in a few places. 2017-10-25 13:57:35 -07:00
John Benediktsson 10d5d471fe tools.errors.model: remove in favor of ui.tools.error-list. 2017-10-25 12:42:33 -07:00
John Benediktsson af254f7f0f models: change some article names. 2017-10-25 12:10:51 -07:00
John Benediktsson 1a38a6f63a calendar.model: delete in favor of inline timers in lcd vocab. 2017-10-25 11:53:37 -07:00
John Benediktsson 88eff49c13 docs: cleanup some article titles that can be strings. 2017-10-25 11:11:44 -07:00
John Benediktsson 013adec055 source-files.errors: rename <definition-error> to new-source-file-error. 2017-10-25 10:45:46 -07:00
John Benediktsson 37794a326c sequences: rename setup-each to (each).
...to match (each-from), (2each), and (3each), etc.
2017-10-24 17:22:55 -07:00
John Benediktsson 1a952a1fdc combinators.smart: using each-from. 2017-10-24 17:05:23 -07:00
John Benediktsson aa5623eede math: using ``v.`` instead of ``v* sum`` in a few places. 2017-10-24 12:26:39 -07:00
John Benediktsson c3354c3167 ui.tools.deploy: cleanup using. 2017-10-24 11:32:35 -07:00
John Benediktsson 0b47618cb7 ui.gadgets.search-tables: change search-tables to use default-text. 2017-10-24 10:05:23 -07:00
John Benediktsson 02d6c8df1f ui.gadgets.editors: allow all editors to have default text. 2017-10-24 10:05:09 -07:00
John Benediktsson c6953d5d62 help.markup: simpler $url. 2017-10-23 16:55:41 -07:00
John Benediktsson 1006b4afc4 help.markup: allow $url to have display text that's not just the url. 2017-10-23 16:44:59 -07:00
Pi 4cb04165db use lists vocab in factor handbook 2017-10-23 16:33:36 -07:00
John Benediktsson 021e595c58 ui.tools.listener: change to just reset line-height so it can be recomputed lazily when needed. 2017-10-16 11:24:40 -07:00
Alexander Iljin 6de6cb687f ui.tools.listener: update interactor's line-height in set-listener-font 2017-10-16 10:28:10 -07:00
John Benediktsson dc001f9a34 ui.pixel-formats: apply @jonenst's patch for #1859. 2017-10-09 10:01:41 -07:00
Alexander Iljin 9cdb209d01 ui.backend.windows: explicate quotation parameters in add-wm-handler 2017-10-09 09:58:07 -07:00
Alexander Iljin d1d3a33617 windows.user32: add some of the power setting notifications API 2017-10-09 09:58:07 -07:00
Alexander Iljin 6c04569536 windows.ole32: add LPCGUID type 2017-10-09 09:58:07 -07:00
Doug Coleman b8a0feea5c Revert "openssl.libssl: The SSL struct has grown a lot."
This reverts commit af7a248131.

Crashes on Linux?

We should fix the SSL struct in another patch soon.
2017-09-24 23:17:35 -05:00
Doug Coleman af7a248131 openssl.libssl: The SSL struct has grown a lot.
Maybe this is related to #1860.
2017-09-24 23:10:44 -05:00
John Benediktsson 705e7018c8 random: minor doc improvement with $snippet. 2017-09-11 15:47:39 -07:00
Robert Vollmert 8ab4e94475 random-bytes: fix docs, aligning with random-bytes* 2017-09-11 15:44:36 -07:00
Alexander Iljin 504c9959a1 Update some copyright headers to follow the current convention
Had to look through the history to find years for some headers. Added
authors to some files as well.
2017-09-11 15:43:03 -07:00
Doug Coleman 7b150204b1 windows.kernel32: Don't use /* */ 2017-09-08 23:42:56 -05:00
Doug Coleman fc14a13335 windows.dragdrop-listener: Remove unfinished autogenerated docs.
To regenerate docs do ``"windows.dragdrop-listener" scaffold-undocumented`` and also run ``"windows.dragdrop-listener" help-lint``
2017-09-06 21:39:46 -05:00
Doug Coleman 8c4a7c0402 windows.dragdrop-listener: Fix an error when calling
``windows.dragdrop-listener" load``
2017-09-06 19:05:29 -05:00
Doug Coleman cfed04a373 windows.dragdrop-listener: Fix compilation bug. 2017-09-02 02:00:25 +00:00
Doug Coleman 6c965dbe21 game.input: This test fails on Windows machines without mice. Disable
for now
2017-09-01 09:19:24 -05:00
Doug Coleman 9a2af5a312 windows: Fix some drag and drop apis.
Attempting to define IDropTarget::QueryInterface-callback-1 outside of a compilation unit
Re-definition of LPD3DXPRTCOMPBUFFER
2017-08-31 23:24:12 -05:00
Doug Coleman 081b642dee bootstrap.image.upload: Upload images per-branch. 2017-08-31 21:06:17 -05:00
Alexander Iljin c457c019bb stack-checker.backend-docs: fix help on ensure-d (issue #1854) 2017-08-27 13:06:14 +03:00
Alexander Iljin 5cc7023f16 io.crlf-docs: mark related words 2017-08-25 11:57:41 -07:00
Doug Coleman f8ce34b1db functors: C: no longer needs a stack effect. 2017-08-20 11:36:56 -05:00
Doug Coleman 8675e51489 opengl.gl: Try libGL.so.1 before libGL.so
This patch makes it prefer nvidia/amd drivers on Debian and hopefully other systems.
Related to #1827.
2017-08-17 21:38:33 -05:00
Alexander Iljin 7a554e302f windows.dragdrop-listener: add a short documentation and a summary 2017-08-18 02:21:57 +03:00
Alexander Iljin 94b67b52a8 windows.dragdrop-listener: add copyright comments and the authors file 2017-08-18 02:21:56 +03:00
Alexander Iljin 52b6cee8e4 windows.dragdrop-listener: optimize the DragEnter implementation 2017-08-18 02:21:55 +03:00
Alexander Iljin db24910497 windows.dragdrop-listener: generalize some code for reuse 2017-08-18 02:21:55 +03:00
Alexander Iljin 75f5f08810 windows.dragdrop-listener: fix filenames-from-hdrop implementation 2017-08-18 02:21:54 +03:00
Alexander Iljin cc5333694a windows.dragdrop-listener: add a helper word 2017-08-18 02:21:54 +03:00
Alexander Iljin 5c0ca7c41b windows.dragdrop-listener: list all function parameters in the comments 2017-08-18 02:21:53 +03:00
Alexander Iljin e1bd46faee windows.dragdrop-listener: balance the stack effects to pass compilation 2017-08-18 02:21:53 +03:00
Alexander Iljin aa3d2ae5c4 windows.dragdrop-listener: fix a COM interface reference 2017-08-18 02:21:52 +03:00
Alexander Iljin bd10484dc1 windows.dragdrop-listener: fix compilation of dragdrop-listener-window
The actual code needs to be updated to work with the current UI.
2017-08-18 02:21:52 +03:00
Alexander Iljin 111d73a901 windows.dragdrop-listener: replace construct-boa with boa 2017-08-18 02:21:51 +03:00
Alexander Iljin d6c7a7437f windows.dragdrop-listener: fix the USING: list 2017-08-18 02:21:51 +03:00
Alexander Iljin d91d820e70 windows.dragdrop-listener: replace set-ulong-nth with set-alien-unsigned-4 2017-08-18 02:21:50 +03:00
Alexander Iljin 5f87b1d577 windows.dragdrop-listener: move from unmaintained to basis 2017-08-18 02:20:31 +03:00
Doug Coleman ed62640f83 Revert "ui.backend.cocoa.views: call super.prepareOpenGL()."
This reverts commit 864912f446.

This patch breaks the UI on 10.13
2017-08-08 15:29:59 -05:00
Doug Coleman c469bfaf0c ui.backend.cocoa.tools: install-app-delegate is a confusing word name to
reuse.
2017-08-06 17:48:03 -05:00
Doug Coleman 2920d2ee71 factor: Rename [curry] -> currier, remove some [foo] words.
The [foo] convention is not descriptive and looks like special syntax.
2017-08-06 00:20:35 -05:00
Doug Coleman fad9e9d002 peg.ebnf: Add EBNF-PARSER: to define a word that returns an EBNF parser
This is in contrast to defining a word that parser.
2017-08-06 00:17:25 -05:00
Doug Coleman 8a6094229d cocoa.apple-script: Make APPLESCRIPT: take a string. 2017-08-05 22:33:47 -05:00
Doug Coleman 15b13870ae peg.ebnf: Clean up EBNF: syntax.
The syntax for an EBNF parser is now ``EBNF: identifier string``. The
inline syntax went from [EBNF ...  EBNF] to EBNF[[ ]], EBNF[=[ ]=], etc.

<EBNF looked for a main word, but this functionality is just EBNF[[ ]]
now.
2017-08-05 22:23:57 -05:00
Doug Coleman de1cdfec52 windows.directx: Fix some TYPEDEF: lines that end in a semicolon. 2017-08-05 20:57:42 -05:00
Doug Coleman 7d47def4c9 cocoa: CLASS: ; -> <CLASS: ;CLASS>
<CLASS: is a container like <PRIVATE and <FUNCTOR:
2017-08-05 20:54:02 -05:00
Doug Coleman 27b3c4cccf functors: FUNCTOR: ;FUNCTOR -> <FUNCTOR: ;FUNCTOR>
Functors contain nested definitions, much like <PRIVATE PRIVATE> blocks.
A new parser will be able to parse nested definitions unambigiously without
knowledge of the definition of <FUNCTOR: itself, which is not the case if
it looks like FUNCTOR: instead.
2017-08-05 20:41:19 -05:00
Doug Coleman b92a3e109d io: Add with-ensure-directory and ?file-info. 2017-08-03 18:42:32 -05:00
Alexander Iljin a515af7d68 checksums.ripemd-docs: fix some typos. 2017-07-29 08:54:53 -07:00
John Benediktsson 154de53470 tools.test: less duplication in unit-test~/v~. 2017-07-25 11:31:30 -07:00
John Benediktsson 47b45ccad3 tools.test: better errors when unit-test-~/v~ fail. 2017-07-25 11:26:50 -07:00
Doug Coleman 0ac181c797 tools.test: Fix unit-test~ and a couple of tests. 2017-07-23 11:50:52 -05:00
Doug Coleman 49b01011c7 math.vectors.simd.intrinsics: Add a comment so I am not tempted to delete this word. 2017-07-23 11:44:01 -05:00
Doug Coleman 62129ffea4 basis: Add unit-test~ and unit-test-v~ for testing floats.
Use unit-test~ in math.functions in some places to make sure we like it.
2017-07-22 18:47:59 -05:00
Jon Harper 9adddfc5e5 checksums: add ripemd-160 (based on the md5 implementation) 2017-07-16 17:32:01 +02:00
Björn Lindqvist 9103d1546f basis/: more docs 2017-07-09 15:08:49 +02:00
Jon Harper e470a5bb28 formatting, workaround bug for "%.0e" and "%.0f" on windows
On windows, the underlying formatting implementation
uses a precison of 6 when asked to do a precision of 0.
Improve the post-processing so that it doesn't fully break
the formatted number. The previous implementation would change
"1.00000" to "10000", and 1.00000e0 to 10000e0...

With this, windows has a different formatting for "%.0f" and "%.0e"
but at least it's the right number
2017-07-08 18:40:08 +02:00
Jon Harper 7c2e964fc9 formatting: fix exception when formatting the integer 0 using "%e" 2017-07-08 18:39:56 +02:00
Björn Lindqvist 8675cb2c25 basis/,core/,extra/: more tags 2017-07-08 18:31:39 +02:00
Björn Lindqvist ba9a1ca5ef basic/, extra/: even more tags 2017-07-07 01:45:13 +02:00
Björn Lindqvist 1ca8276df4 basis/,core/,extra/: many new tags 2017-07-06 23:04:18 +02:00
John Benediktsson d78972e045 hash-sets/hashtables: remove wrapped-key, use slot-types for errors. 2017-07-06 11:25:11 -07:00
John Benediktsson 1eff2b3dbc hashtables/hash-sets: add some error checking...
...to the sequence/number wrapped versions.
2017-07-05 18:41:45 -07:00
John Benediktsson 46d4b33349 sorting.slots: make sort-keys-by and sort-values-by support hashtables. 2017-07-05 16:46:06 -07:00
John Benediktsson 94e285e6de vocabs.metadata: remove filter-don't-test (inline it instead). 2017-07-05 09:41:05 -07:00
Björn Lindqvist 178701f117 compiler.crossref: stray char broke bootstrap, sorry 2017-07-05 11:56:03 +02:00
Björn Lindqvist f8e34c7392 vocabs.metadata: removing words not used anymore 2017-07-05 01:50:39 +02:00
Björn Lindqvist 72807720f2 basis/,extra/: lots of new tags.txt files 2017-07-05 01:50:39 +02:00
Björn Lindqvist 5903f8f6b6 openssl.test: updating cert for openssl 1.1 (#1843)
The password is "password" as it was
2017-07-05 01:50:39 +02:00
Björn Lindqvist aab79a655c compiler.*: more docs 2017-07-05 00:51:26 +02:00
Doug Coleman 6cfa87a379 alien.endian: Add a couple more types. This vocab needs better
compatibility with c-types.
2017-07-03 19:15:22 -07:00
Doug Coleman 01aab7c884 Factor: Rename <enum> to <enumerated> to not confuse with ENUM:s 2017-07-03 12:47:19 -07:00
Björn Lindqvist e9764621c9 io.standard-paths.unix: ofc /bin/ps should be included... 2017-07-03 00:56:55 +02:00
Björn Lindqvist 6f1f4e5968 io.standard-paths.unix: ifconfig isnt installed everywhere, but ps is 2017-07-02 17:17:46 +02:00
Björn Lindqvist 5156d250b9 checksums,openssl.libcrypto: make it work with openssl 1.1 2017-07-01 22:19:42 +02:00
Björn Lindqvist 97cf96b668 openssl: docs 2017-07-01 13:50:29 +02:00
Björn Lindqvist 2a5f5ca6b9 openssl.*,io.sockets.*: support for openssl 1.1
In the new version, a lot of c function names have changed. So a new
global ssl-new-api? is needed to know if the new or old names should be
used.
2017-07-01 13:41:22 +02:00
Björn Lindqvist 8b6ae235ab openssl.*: adding functions that are different in libbsl 1.1.x 2017-07-01 09:25:09 +02:00
Björn Lindqvist 522eb559e4 ui.tools: setting the initial tool dim as a multiple of the default font 2017-06-30 22:47:11 +02:00
Björn Lindqvist 7a9817aeb6 formatting.tests: conditioning some tests to pass on windows 2017-06-28 11:18:40 +02:00
Björn Lindqvist 3aac5a6591 ui: more docs and tests 2017-06-27 23:47:35 +02:00
Björn Lindqvist 9e9b70005b ui: the ui-thread variable isn't needed 2017-06-27 23:47:35 +02:00
Björn Lindqvist fe41e99437 ui: better handling of cascading errors
The second update-ui is wrapped in a recover so that if it fails
again, the UI system is stopped. That should fix the cascade problem
in #1827.
2017-06-27 23:47:35 +02:00
Björn Lindqvist 21500f2b2f help: fix to make the orphan articles index page render in fuel-help 2017-06-26 15:57:58 +02:00
Björn Lindqvist 0d8338ceb8 io.sockets.secure.openssl,openssl.libssl: ENUM: over syntax
The enum does the same thing as the custom syntax did and is a little
easier to understand.
2017-06-24 16:46:00 +02:00
Björn Lindqvist f2a8a79a1a basis/,extra/: removing some unnecessary EXCLUDE declarations 2017-06-24 16:38:34 +02:00
Björn Lindqvist 3f818637cd tools.trace: we can surely hardcode the excluded vocab list 2017-06-24 00:14:52 +02:00
Alexander Iljin c53895e03d pixel-format-docs: add a missing space 2017-06-21 12:36:39 +03:00
Alexander Iljin df576aa6c3 models-docs: update documentation 2017-06-21 12:36:38 +03:00
Alexander Iljin 5cc07a1c5f ui.gadgets.panes-docs: add a missing parenthesis 2017-06-21 12:36:32 +03:00
Alexander Iljin 24a071d6e6 ui.gadgets-docs: fix wording 2017-06-21 12:35:37 +03:00
John Benediktsson 3bd0776630 ui.gadgets.line-support: even though 1/.0 parses, change to 1/0. 2017-06-12 07:28:33 -07:00
John Benediktsson 7202cf0fb4 prettyprint: make sure float number-base is tested. 2017-06-11 13:45:22 -07:00
John Benediktsson 7b65b5193f prettyprint: remove tests for float .b and .o. 2017-06-11 13:43:02 -07:00
John Benediktsson bf6300b7b0 prettyprint: fix .b, .o, and .h for negative numbers.
Also makes these useful for nested printing in different number bases.
2017-06-11 10:57:01 -07:00
John Benediktsson 634df46db9 prettyprint.backend: allow octal and binary float printing. 2017-06-11 10:54:13 -07:00
John Benediktsson 3018010f67 prettyprint.sections: don't create empty strings with zero indent. 2017-06-11 10:53:55 -07:00
John Benediktsson e8cef24486 ui.tools.inspector: improve performance for large arrays and hashtables.
Using trick suggested by @AlexIljin, we compute the longest key and then
set the column widths to be { length-of-longest-key 0 }.
2017-06-11 08:59:45 -07:00
John Benediktsson 0fddbc2af1 formatting: revert change to %d, %o, %b, %x for now.
We should have a format character in the future to format using our Factor
binary, octal, and hex parser.  Maybe using the "alternate form" format
character like Python does? And if we do that, maybe print the 0b, 0o, 0x
prefixes? TBD.
2017-06-10 13:33:01 -07:00
John Benediktsson c503659a93 math.functions: fix another test impacted by float truncate change. 2017-06-10 13:33:01 -07:00
Doug Coleman 67c44bcf62 base64: Fix base64 for strings that don't end in equal signs.
Some uses of base64 in the wild do not have trailing ==, such as JWT (JSON Web Token) strings.
2017-06-08 21:03:40 -05:00
John Benediktsson 57de1f5ab0 math.functions: make -0.3 truncate return 0.0 instead of -0.0. 2017-06-08 11:27:48 -07:00
Jon Harper 1dceb069ad formatting: fix bug when using %e and the number rounds up in magnitude
99/10 0 format-scientific-simple was outputting 1.0e0 because
the mantissa was rounded up, so it had one extra character, and
the exponent was wrong.
2017-06-08 11:23:38 -07:00
Jon Harper 4df21818f5 formatting: change %.0f and %.0e to remove the radix character. It's more standard. 2017-06-08 11:23:38 -07:00
Jon Harper 756184607b formatting: make these tests actually test the expected code path 2017-06-08 11:23:38 -07:00
Jon Harper 552791d1cf formatting: don't force the presence of ".0" for %f and %e when precision is 0
It's misleading because you can think you have more precision than you really
do when looking at the output. So instead of "1.0", we can format it as "1" or
"1.".  And instead of "1.0e+00" we can format "1e+00" or "1.e+00".  In C,
printf does not print the radix character, it's prettier. But since the factor
parser accepts both styles, and keeping the radix character gives a stronger sense
that the number is approximate, I prefer to keep the radix character..
2017-06-08 11:23:38 -07:00
Jon Harper 762b22e1a8 formatting-docs, document ' ' as an alternative to '+' for positive numbers sign prefixing 2017-06-08 11:23:38 -07:00
Jon Harper 6061da92be formatting, allow uppercase exponent for bin floats in base 2 and 8 2017-06-08 11:23:37 -07:00
Jon Harper ccbb8116fc formatting, make %d, %o, %b work for ratios and floats 2017-06-08 11:23:37 -07:00
Jon Harper 438e22fceb formatting, fix %f and %e for ratios and integers 2017-06-08 11:23:37 -07:00
Jon Harper e1df9df735 formatting: fix missing '+' for %+e with negative exponent 2017-06-08 11:23:37 -07:00