Commit Graph

30922 Commits (b3bcf537cc360d0ba892391e48b50c704ec6b101)

Author SHA1 Message Date
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
John Benediktsson a3d5e3ffcb crontab: instead of after= make it after. 2019-03-17 09:24:47 -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 112263ca3c crontab: avoid next-time being minutes in the past. 2019-03-17 08:55:36 -07:00
John Benediktsson 64d835e2bf parser: use ?first. 2019-03-16 20:33:40 -07: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
John Benediktsson 49d9d21124 crontab: cleanup empty lines differently. 2019-03-16 16:48:41 -07:00
Doug Coleman 5048c39e0f build.sh: add compile/recopile to docs 2019-03-08 21:35:53 -06:00
Doug Coleman d6c3cff581 debian: Don't install gcc g++ on debian.
gmake assumes default CC is cc, CXX is g++ (not c++).
In order to make this sane (c++), we check if the shell variable CXX was set
and if so we honor it, else we set CXX to c++.
2019-03-08 21:19:33 -06:00
Doug Coleman 4403155dce machine-learning.data-sets: Load mnist data. 2019-03-01 23:14:59 -06:00
Doug Coleman 92648265d2 hacker-news: Add more endpoints to api. 2019-03-01 22:26:14 -06: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 d70148e365 make: We don't need the flag. 2019-02-23 17:46:28 -06:00
Doug Coleman e639f23442 build.sh: Remove debug.. 2019-02-23 16:41:20 -06:00
Doug Coleman a9871b39aa vm: Fix DEBUG flag, make REPRODUCIBLE work like debug, minor fixes to build.sh
- ``make DEBUG=0`` caused debug mode because the check was ``ifdef DEBUG`` which is true even if DEBUG=0
- no need to ``#pragma message`` that we are doing a reproducible build imo
- clang warns about redefining builtin macros, turn the warning off for reproducible builds
- add ``./build.sh info`` as an alias for ``./build.sh report``
- show if we a reproducible in report/info
2019-02-23 16:23:33 -06:00
Cat Stevens 044f7bbe11 vm/master.hpp: optional reproducible VM compilation
The old behaviour of building with `__DATE__` and
    `__TIME__` is still the default, but now it's
    possible to use `-DREPRODUCIBLE=1` and the
    `REPRODUCIBLE=1` parameter to `make` and `nmake`.

Specifically, this replaces the value of
    `FACTOR_COMPILE_TIME` with the string constant
    `"[reproducible]"`. This is purely a cosmetic
    change.
2019-02-20 15:50:06 -05: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 205018869b vm: Add freebsd32 support for completeness.
We need gmake on freebsd.
2019-02-09 19:40:54 +00:00
Doug Coleman 5d78ab55be basis: Load images.{tiff,png} by default for FreeBSD. Add platforms back. 2019-02-09 18:50:15 +00:00
Doug Coleman 123327115d config.freebsd: Link the UI libraries into the Factor VM.
This should happen for other BSD platforms as well.
2019-02-09 18:49:29 +00:00
Doug Coleman 960ff85d31 build.sh: Add a compile option to compile only.
Invoking ``gmake`` only should work, but it uses g++ on OpenBSD instead of clang++. We should fix this.
2019-02-09 18:48:42 +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
Doug Coleman d139924bf5 vm: Use the old FreeBSD os-freebsd.cpp so we don't need procfs installed (it's not mounted by default). 2019-02-08 22:07:02 +00:00
Doug Coleman 080303530a build.sh: Use gmake on FreeBSD and specify the number of cores. 2019-02-08 22:07:02 +00: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
Alexander Iljin 6105055b82 ulid-docs: format errors with $errors 2019-02-07 13:24:06 -08:00
Doug Coleman 184b614e89 protocols.tftp: Fix some bugs.
- needed pack-be
- tftp clients seem to send an ACK even before receiving an error for a missing file
- handles directories now, "File not found"

to improve:
- use the client/server pair as a key maybe
- handle file writing
- throw errors that are not io-timeout once we have a cross-platform timeout error object
2019-02-03 18:09:34 -05:00
Doug Coleman 591a468800 assocs: Add ?delete-at. 2019-02-03 14:51:59 -05:00
Doug Coleman 447b46db97 tftp: Implement a client/server for tftp.
The server needs to handle multiple clients. Refactoring...
2019-02-03 14:51:52 -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
John Benediktsson c8da551a95 hamurabi: fix #percent-died. 2019-01-27 21:34:49 -08:00
Doug Coleman 16a79f1397 tools: Fix some issues and use base85. 2019-01-26 12:12:18 -06:00