Commit Graph

14255 Commits (60c80e4b786b32b292347c428104727d7a503f09)

Author SHA1 Message Date
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 
2019-03-17 12:23:34 -05:00
Doug Coleman f4d17d3ba3 io.sockets: Allow f in the port of an inet4.
Fixes .
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 
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