]>
gitweb.factorcode.org Git - factor.git/log
John Benediktsson [Wed, 15 Jan 2020 18:34:47 +0000 (10:34 -0800)]
classes: use check-instance in a few places, to remove duplication.
John Benediktsson [Wed, 15 Jan 2020 18:29:06 +0000 (10:29 -0800)]
classes: adding a check-instance for checking type of things.
This will replace a bunch of not-a-thingy errors that we have in a few
places. Those should probably go away anyway, in favor of better type
propagation or runtime JIT compilation.
John Benediktsson [Thu, 9 Jan 2020 22:17:01 +0000 (14:17 -0800)]
urls.encoding: support byte-array values for encoding.
John Benediktsson [Thu, 9 Jan 2020 19:57:20 +0000 (11:57 -0800)]
bencode: support decoding byte-arrays.
John Benediktsson [Thu, 9 Jan 2020 01:33:11 +0000 (17:33 -0800)]
bencode: alloe bencode of byte-arrays.
Doug Coleman [Thu, 9 Jan 2020 01:21:58 +0000 (19:21 -0600)]
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
John Benediktsson [Wed, 8 Jan 2020 19:45:42 +0000 (11:45 -0800)]
bencode: use linked-assocs to preserve ordering, fix byte-strings.
the byte-string was being "decoded" with replacement characters, messing
up binary data.
John Benediktsson [Wed, 8 Jan 2020 19:44:45 +0000 (11:44 -0800)]
llvm.ffi: ...
John Benediktsson [Wed, 8 Jan 2020 17:05:06 +0000 (09:05 -0800)]
tensors.tensor-slice: make step-slice not extend slice.
This caused a small regression in compiler.tree.cleanup on this test:
{ t } [
[ { array } declare 2 <groups> [ . . ] assoc-each ]
\ nth-unsafe inlined?
] unit-test
I'm not entirely sure why it wasn't able to infer the slice that was created
for iteration stays a slice, and never becomes a step-slice, so perhaps there
is some improvement to be made in type inference here.
John Benediktsson [Wed, 8 Jan 2020 16:51:41 +0000 (08:51 -0800)]
llvm.ffi: need to fix stack effect for the false case.
John Benediktsson [Mon, 6 Jan 2020 22:20:15 +0000 (14:20 -0800)]
io: fix for win32-error not throwing on zero.
John Benediktsson [Mon, 6 Jan 2020 21:26:19 +0000 (13:26 -0800)]
io.files: quot effects in change-file-lines and change-file-contents.
John Benediktsson [Mon, 6 Jan 2020 21:20:12 +0000 (13:20 -0800)]
game.loop: last-tick-percent-offset counts down to zero, need to subtract from 1.
Alexander Iljin [Tue, 28 Jun 2016 22:55:15 +0000 (01:55 +0300)]
windows.errors: fix a compilation error
Alexander Iljin [Tue, 28 Jun 2016 22:55:15 +0000 (01:55 +0300)]
windows.errors: streamline error handling and throwing
Alexander Iljin [Tue, 28 Jun 2016 22:23:36 +0000 (01:23 +0300)]
Replace "win32-error-string throw" with windows-error instance throwing
Remove win32-error-string, because there was only one place it was used in.
Alexander Iljin [Tue, 28 Jun 2016 22:20:38 +0000 (01:20 +0300)]
Replace "n>win32-error-string throw" with windows-error instance throwing
Alexander Iljin [Tue, 24 May 2016 17:42:48 +0000 (20:42 +0300)]
Delete throw-win32-error, replace with win32-error calls
Alexander Iljin [Tue, 24 May 2016 17:40:11 +0000 (20:40 +0300)]
io.files.windows: replace "-1 <alien>" with INVALID_HANDLE_VALUE
Alexander Iljin [Tue, 24 May 2016 17:33:19 +0000 (20:33 +0300)]
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.
Alexander Iljin [Tue, 24 May 2016 17:30:02 +0000 (20:30 +0300)]
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.
John Benediktsson [Mon, 6 Jan 2020 21:14:59 +0000 (13:14 -0800)]
game.loop: using timer's next-nanos, which is in the future.
Also, use clamp to make sure tick offset is always [0,1].
John Benediktsson [Mon, 6 Jan 2020 03:14:22 +0000 (19:14 -0800)]
llvm.ffi: fix cond.
Doug Coleman [Sun, 5 Jan 2020 19:42:31 +0000 (13:42 -0600)]
gpu.demos.bunny: use while* instead of each-morsel
Doug Coleman [Sun, 5 Jan 2020 19:16:12 +0000 (13:16 -0600)]
io.files.info: Fix linux file-system-info recursion
Doug Coleman [Sat, 4 Jan 2020 20:02:21 +0000 (14:02 -0600)]
game.loop: Fix game loop for timers change
Doug Coleman [Sat, 4 Jan 2020 19:47:13 +0000 (13:47 -0600)]
build: Fix paths...
Doug Coleman [Sat, 4 Jan 2020 19:40:26 +0000 (13:40 -0600)]
mason.disk: fix word name
Doug Coleman [Sat, 4 Jan 2020 19:33:45 +0000 (13:33 -0600)]
io.files.info: Fix find-mount-point.
Doug Coleman [Sat, 4 Jan 2020 19:21:28 +0000 (13:21 -0600)]
Revert "build.cmd: github is source of truth now"
This reverts commit
d7af258eb7c1e115a228cb92098c1ee1b2328917 .
I renamed /git/factor-github.git to /git/factor.git
Doug Coleman [Sat, 4 Jan 2020 15:07:32 +0000 (09:07 -0600)]
io.files.info: fix circularity regression in file-systems on linux
Doug Coleman [Sat, 4 Jan 2020 14:27:16 +0000 (08:27 -0600)]
mason.git: new repo location
Doug Coleman [Fri, 3 Jan 2020 22:30:00 +0000 (16:30 -0600)]
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.
Doug Coleman [Fri, 3 Jan 2020 21:26:02 +0000 (15:26 -0600)]
build.cmd: github is source of truth now
Doug Coleman [Fri, 3 Jan 2020 21:18:14 +0000 (15:18 -0600)]
mason.disk: Fix usage of word
Doug Coleman [Fri, 3 Jan 2020 19:04:38 +0000 (13:04 -0600)]
Revert "windows.errors: make check-invalid-handle throw windows-error instances"
This reverts commit
38ab7289b5db4bdc33b9a0ac76fa4c4daa6c092c .
Doug Coleman [Fri, 3 Jan 2020 19:04:29 +0000 (13:04 -0600)]
Revert "Replace inline INVALID_HANDLE_VALUE checks with check-invalid-handle calls"
This reverts commit
1e61dbfd2af3dcd16053f0f55eabc745dce6f30d .
Doug Coleman [Fri, 3 Jan 2020 19:04:11 +0000 (13:04 -0600)]
Revert "io.files.windows: replace "-1 <alien>" with INVALID_HANDLE_VALUE"
This reverts commit
a6f0b74f03059cab725e13ff83bdfc4b242f8de3 .
Doug Coleman [Fri, 3 Jan 2020 19:04:01 +0000 (13:04 -0600)]
Revert "Delete throw-win32-error, replace with win32-error calls"
This reverts commit
e1be081ec93061d1e236d6d6f4c1778feef854c2 .
Doug Coleman [Fri, 3 Jan 2020 19:03:52 +0000 (13:03 -0600)]
Revert "Replace "n>win32-error-string throw" with windows-error instance throwing"
This reverts commit
70d08ce743d8bae6001f28baf8cc0f13afc93c10 .
Doug Coleman [Fri, 3 Jan 2020 19:03:10 +0000 (13:03 -0600)]
Revert "Replace "win32-error-string throw" with windows-error instance throwing"
This reverts commit
2dfb3b3a73bd2ac1200b9f5f7161a2510a98cebc .
Doug Coleman [Fri, 3 Jan 2020 19:02:57 +0000 (13:02 -0600)]
Revert "windows.errors: streamline error handling and throwing"
This reverts commit
ca474dd154c8ce59b4a1e40281a4b9fc6e182a1a .
Doug Coleman [Fri, 3 Jan 2020 18:42:11 +0000 (12:42 -0600)]
io: Trim using lists.
Doug Coleman [Fri, 3 Jan 2020 16:48:24 +0000 (10:48 -0600)]
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
John Benediktsson [Wed, 18 Dec 2019 04:03:45 +0000 (20:03 -0800)]
timers: simplify by setting delay-nanos directly.
John Benediktsson [Sat, 14 Dec 2019 03:31:17 +0000 (19:31 -0800)]
misc/vim: update syntax for cartesian-find.
John Benediktsson [Sat, 14 Dec 2019 03:30:22 +0000 (19:30 -0800)]
sequences.product: adding product-find.
John Benediktsson [Sat, 14 Dec 2019 03:20:27 +0000 (19:20 -0800)]
sequences: adding cartesian-find.
John Benediktsson [Fri, 13 Dec 2019 23:31:49 +0000 (15:31 -0800)]
timers: allow timers to re-use threads when restarted, simplify.
Throw an error if started twice.
John Benediktsson [Fri, 13 Dec 2019 23:09:24 +0000 (15:09 -0800)]
tensors: faster tensor/number operations by forcing floats.
Nandeeka Nayak [Tue, 29 Oct 2019 17:09:38 +0000 (10:09 -0700)]
tensors: optimize matrix operations.
tensors: Add benchmarking file
tensors: Add addition and multiplication tests for benchmarking
tensors: inlined slicing to improve metrics.
tensors: fix help-lint warnings.
tensors: restore newer matmul
tensors: add fixnum declaration.
tensors: away with you, unsafe!
tensors: transpose added to benchmarks
tensors: optimize matmul to be within an order of magnitude of np.
tensors: remove type declaration.
tensors: optimize matmul.
John Benediktsson [Fri, 13 Dec 2019 22:41:43 +0000 (14:41 -0800)]
misc/vim: update vim syntax keywords.
John Benediktsson [Fri, 13 Dec 2019 22:38:26 +0000 (14:38 -0800)]
core/basis/extra: using while* in a few places.
John Benediktsson [Fri, 13 Dec 2019 22:35:51 +0000 (14:35 -0800)]
kernel: adding while* that passes the predicate result to the body.
nomennescio [Tue, 5 Nov 2019 12:57:09 +0000 (13:57 +0100)]
Support for MinGW compiler. Need to instal MinGW compiler and runtime.
Doug Coleman [Mon, 9 Dec 2019 18:12:07 +0000 (10:12 -0800)]
.travis: Don't upgrade ruby, it takes too long.
Doug Coleman [Mon, 9 Dec 2019 17:56:15 +0000 (09:56 -0800)]
.travis: install correct version of ruby
Doug Coleman [Mon, 9 Dec 2019 17:50:59 +0000 (09:50 -0800)]
.travis: rvm reload
Doug Coleman [Mon, 9 Dec 2019 17:43:27 +0000 (09:43 -0800)]
.travis: use newer ruby and turn off brew updating
Doug Coleman [Mon, 9 Dec 2019 17:35:13 +0000 (09:35 -0800)]
travis: upgrade rvm first
Doug Coleman [Sun, 8 Dec 2019 20:20:30 +0000 (12:20 -0800)]
.travis: more testing
Doug Coleman [Sun, 8 Dec 2019 20:12:37 +0000 (12:12 -0800)]
.travis: fixing ruby?
Doug Coleman [Sun, 8 Dec 2019 20:07:38 +0000 (12:07 -0800)]
.travis: Delete old rubygems after we install it.
Doug Coleman [Sun, 8 Dec 2019 19:58:06 +0000 (11:58 -0800)]
.travis: Trying to fix macos.
/usr/local/Homebrew/Library/Homebrew/brew.rb:10:in `<main>': Homebrew must be run under Ruby 2.6! You're running 2.3.3. (RuntimeError)
The command "if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions snappy > /dev/null || brew install snappy; fi" failed and exited with 1 during .
Your build has been stopped.
Doug Coleman [Sun, 8 Dec 2019 19:48:59 +0000 (11:48 -0800)]
.travis.yml: Don't run long-running tests.
John Benediktsson [Sun, 8 Dec 2019 17:06:55 +0000 (09:06 -0800)]
tools.test: adding a warning for possible long unit tests.
This will help us learn which tests are the slowest on Travis.
Cat Stevens [Sun, 4 Feb 2018 05:00:21 +0000 (00:00 -0500)]
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
Doug Coleman [Sat, 7 Dec 2019 23:54:57 +0000 (15:54 -0800)]
webapps.pastebin: Cleaner url derivation, better variable names
Doug Coleman [Sat, 7 Dec 2019 18:40:35 +0000 (10:40 -0800)]
webapps.pastebin: fix
Doug Coleman [Sat, 7 Dec 2019 18:38:49 +0000 (10:38 -0800)]
webapps.pastebin: fix using. oops.
Doug Coleman [Sat, 7 Dec 2019 18:29:07 +0000 (10:29 -0800)]
webapps.pastebin: Fix the url
Doug Coleman [Sat, 7 Dec 2019 17:58:01 +0000 (09:58 -0800)]
websites.concatenative: endpoint for syncing github to factorcode
Doug Coleman [Sat, 7 Dec 2019 17:48:03 +0000 (09:48 -0800)]
webapps.pastebin: Email a list on every paste.
John Benediktsson [Thu, 5 Dec 2019 22:15:47 +0000 (14:15 -0800)]
llvm.ffi: adding macOS location (when using homebrew).
Rudi Grinberg [Fri, 29 Nov 2019 05:46:53 +0000 (12:46 +0700)]
Redirect when using curl
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Alexander Iljin [Tue, 28 Jun 2016 22:55:15 +0000 (01:55 +0300)]
windows.errors: streamline error handling and throwing
Alexander Iljin [Tue, 28 Jun 2016 22:23:36 +0000 (01:23 +0300)]
Replace "win32-error-string throw" with windows-error instance throwing
Remove win32-error-string, because there was only one place it was used in.
Alexander Iljin [Tue, 28 Jun 2016 22:20:38 +0000 (01:20 +0300)]
Replace "n>win32-error-string throw" with windows-error instance throwing
Alexander Iljin [Tue, 24 May 2016 17:42:48 +0000 (20:42 +0300)]
Delete throw-win32-error, replace with win32-error calls
Alexander Iljin [Tue, 24 May 2016 17:40:11 +0000 (20:40 +0300)]
io.files.windows: replace "-1 <alien>" with INVALID_HANDLE_VALUE
Alexander Iljin [Tue, 24 May 2016 17:33:19 +0000 (20:33 +0300)]
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.
Alexander Iljin [Tue, 24 May 2016 17:30:02 +0000 (20:30 +0300)]
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.
Niklas Larsson [Thu, 31 Oct 2019 12:41:22 +0000 (13:41 +0100)]
Don't use rm from the nmake build.
John Benediktsson [Sun, 24 Nov 2019 23:43:29 +0000 (15:43 -0800)]
tensors: fix help-lint warnings.
Nandeeka Nayak [Tue, 29 Oct 2019 17:09:38 +0000 (10:09 -0700)]
tensors: create basic tensors vocabulary.
tensors: create tensors vocabulary.
tensors: create file heading
tensors: define tensor constructor.
tensors: add additional constructors.
tensors: add reshaping.
tensors: implement add and include tests.
tensors: add binary operations.
tensors: add scalar multiply.
tensors: added >array functionality
tensors: tests for >array
tensors: unit tests fix
tensors: use more idiomatic >array.
tensors: add multi-methods for scalar multiplication.
tensors: cleaned up >array
tensors: combine a few constructors
tensors: added dims function and unit tests.
tensors: add documentation capabilities.
tensors: added multi-methods for scalar addition/subtraction/division
help.lint.coverage: fix for shadowing "empty" word; prevent the other test-only words from being shadowed too
soundex: move to extra as it's unused; fix authors.txt filename
modify arange to match numpy; replace with naturals
create >float-array for efficient float array construction
use combinators
tensors: documentation added for public functions.
tensors: implement t% and matrix multiplication.
tensors: add slice with non-zero step
tensors: add documentation.
tensors: added transposition funcitonality, with documentation and tests
tensors: add error documentation.
Add error documentation
tensors: fix matmul documentation.
extra/tensors: add tests for arange
tensors: make transpose style more similar
tensors: make some of the PR changes.
tensors: separate shape checking.
tensors: add documentation for non-positive-shape-error.
tensors: add missing comment.
tensors: transpose edits for efficiency
Doug Coleman [Sun, 17 Nov 2019 00:58:36 +0000 (18:58 -0600)]
Add description of '-help' switch to documentation. (#2221)
Alexander Iljin [Thu, 14 Nov 2019 18:03:13 +0000 (19:03 +0100)]
random.passwords: new vocab
Cat Stevens [Sun, 10 Nov 2019 00:56:24 +0000 (19:56 -0500)]
soundex: move to extra as it's unused; fix authors.txt filename
Cat Stevens [Sat, 9 Nov 2019 22:08:24 +0000 (17:08 -0500)]
help.lint.coverage: fix for shadowing "empty" word; prevent the other test-only words from being shadowed too
John Benediktsson [Sat, 9 Nov 2019 18:02:29 +0000 (10:02 -0800)]
llvm.ffi: adding LLVMBuildMul.
nomennescio [Fri, 8 Nov 2019 12:58:33 +0000 (13:58 +0100)]
Add description of '-help' switch to documentation.
John Benediktsson [Fri, 8 Nov 2019 05:43:22 +0000 (21:43 -0800)]
math.extras: don't shadow B (breakpoint).
John Benediktsson [Fri, 8 Nov 2019 05:32:07 +0000 (21:32 -0800)]
math.extras: adding integer-sqrt.
John Benediktsson [Thu, 7 Nov 2019 21:13:05 +0000 (13:13 -0800)]
tools.test: add silent-tests? that hides unit-tests.
John Benediktsson [Thu, 7 Nov 2019 17:57:21 +0000 (09:57 -0800)]
ui.tools.listener: better future-proofing with code-completion class.
John Benediktsson [Thu, 7 Nov 2019 04:16:48 +0000 (20:16 -0800)]
project-euler.common: cleanup.
John Benediktsson [Thu, 7 Nov 2019 04:12:55 +0000 (20:12 -0800)]
math.primes.factors: flush in unix-factor.
John Benediktsson [Thu, 7 Nov 2019 04:05:53 +0000 (20:05 -0800)]
project-euler: cleanup main vocab, don't USE: the children.
John Benediktsson [Thu, 7 Nov 2019 04:00:53 +0000 (20:00 -0800)]
project-euler.064: adding description and SOLUTION:.
John Benediktsson [Thu, 7 Nov 2019 03:56:56 +0000 (19:56 -0800)]
project-euler.087: adding description and SOLUTION:.