Commit Graph

31484 Commits (flac)

Author SHA1 Message Date
John Benediktsson 085436a156
tensors: cleanup using, and make a few float math operations faster. 2020-04-11 20:33:47 -05:00
John Benediktsson c196f9f022
gobject-introspection: support more number type constants. 2020-04-11 20:33:46 -05:00
Chris Double 34f1f836eb
Fix linux find-so failure if no old ld entries exist
If '/etc/ld.so.cache' does not contain any old entries
using the 'HeaderOld' struct then it fails with a bad-magic
error before looking for the HeaderNew entries.

My Ubuntu 19.10 system doesn't have any old entries so always
fails here when using 'load-all', which results in the
'extra/llvm' vocab failing due to using 'find-so'.

The fix implemented here is to catch the error and recover from
it by seeking back to the start of the header before looking for
the new header entries.
2020-04-11 20:33:45 -05:00
John Benediktsson 2d55a76eb9
math.matrices: use any? and all? directly in tests. 2020-04-11 20:33:44 -05:00
John Benediktsson 8ce628014a
math.matrices: update using on tests. 2020-04-11 20:33:43 -05:00
John Benediktsson 14d45c1b6e
bittorrent: fix check-bitfield, add a test. 2020-04-11 20:33:42 -05:00
John Benediktsson 3555f86bb9
persistent.hashtables: cleanup. 2020-04-11 20:33:41 -05:00
John Benediktsson ebd1b62a30
math: use sorted-histogram values in a few places. 2020-04-11 20:33:40 -05:00
John Benediktsson 200465c121
ui.gadgets.panes: fix for big strings on windows and linux.
Using 3639 grapheme length, which is win32 limit. Maybe cairo supports
4681 graphemes, but use the lower limit for now.
2020-04-11 20:33:40 -05:00
John Benediktsson 42b6fbec70
ui.backend.cocoa.views: some formatting cleanup. 2020-04-11 20:33:39 -05:00
kusumotonorio c8f82ecf2c
Tests for System V AMD64 ABI (#2233)
* Adds Tests for System V AMD64 ABI

* Remove TABs, etc.

* Adds a test

* Some Cleanup

* Add Callback Tests

* Add More Tests
2020-04-11 20:33:38 -05:00
kusumotonorio 50ad877da7
unix.factor: Bug fix etc., boxing.factor: Improves record/unrecord-reps 2020-04-11 20:33:37 -05:00
kusumotonorio 93066f1868
boxing.factor: Swap first and second positions 2020-04-11 20:33:36 -05:00
kusumotonorio dd6a82eb65
boxing.factor: Use count 2020-04-11 20:33:35 -05:00
kusumotonorio 1893f72d55
unix.factor: Use count 2020-04-11 20:33:34 -05:00
kusumotonorio 82d8b8409e
put alien.factor, ffi_test.* back 2020-04-11 20:33:33 -05:00
kusumotonorio 20d44c8c14
put alien.factor back 2020-04-11 20:33:33 -05:00
kusumotonorio 11cd58a5d7
Add Callback Tests 2020-04-11 20:33:32 -05:00
kusumotonorio 14b8cfeba9
Stop inc-not-f and dec-not-f, etc 2020-04-11 20:33:31 -05:00
kusumotonorio 38b64043f8
boxing.factor: Change Stack Effects 2020-04-11 20:33:30 -05:00
kusumotonorio 94a595cf5e
Remove an extra space 2020-04-11 20:33:29 -05:00
kusumotonorio 6801472db4
Improve System V AMD64 ABI compliance 2020-04-11 20:33:28 -05:00
John Benediktsson 4e0161c999
bittorrent: initial commit of message parsing. 2020-04-11 20:33:27 -05:00
Doug Coleman 4b44a0f875
LICENSE.txt: Update the copyright year! 2020-04-11 20:33:26 -05:00
Doug Coleman 470f774e20
byte-arrays: Add a byte-sequence protocol for byte-{array,vector}
Allow hexdumping strings as utf8 for convenience.
2020-04-11 20:33:25 -05:00
John Benediktsson 3001c20b24
tuple-arrays: final-class wasn't a predicate class. 2020-04-11 20:33:24 -05:00
John Benediktsson 3a66238c8e
classes: fix a couple of check-instance uses. 2020-04-11 20:33:23 -05:00
John Benediktsson 2f9c8c6bca
continuations: more use of check-instance. 2020-04-11 20:33:22 -05:00
John Benediktsson 4631eb5a7e
classes: use check-instance in a few places, to remove duplication. 2020-04-11 20:33:21 -05:00
John Benediktsson a8416f24b2
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.
2020-04-11 20:33:21 -05:00
John Benediktsson 8d9894c57a
urls.encoding: support byte-array values for encoding. 2020-04-11 20:33:20 -05:00
John Benediktsson f3dc124db2
bencode: support decoding byte-arrays. 2020-04-11 20:33:19 -05:00
John Benediktsson 1adabc3168
bencode: alloe bencode of byte-arrays. 2020-04-11 20:33:18 -05:00
Doug Coleman 55a69c492a
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
2020-04-11 20:33:17 -05:00
John Benediktsson b284d188e8
bencode: use linked-assocs to preserve ordering, fix byte-strings.
the byte-string was being "decoded" with replacement characters, messing
up binary data.
2020-04-11 20:33:16 -05:00
John Benediktsson a2cce5a0d9
llvm.ffi: ... 2020-04-11 20:33:15 -05:00
John Benediktsson 3e428b1754
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.
2020-04-11 20:33:14 -05:00
John Benediktsson a270b4797a
llvm.ffi: need to fix stack effect for the false case. 2020-04-11 20:33:13 -05:00
John Benediktsson 6e7cd0f131
io: fix for win32-error not throwing on zero. 2020-04-11 20:33:12 -05:00
John Benediktsson dfac484e00
io.files: quot effects in change-file-lines and change-file-contents. 2020-04-11 20:33:11 -05:00
John Benediktsson 7a933a5af0
game.loop: last-tick-percent-offset counts down to zero, need to subtract from 1. 2020-04-11 20:33:10 -05:00
Alexander Iljin d111ecfeec
windows.errors: fix a compilation error 2020-04-11 20:33:09 -05:00
Alexander Iljin 7c69f0d548
windows.errors: streamline error handling and throwing 2020-04-11 20:33:08 -05:00
Alexander Iljin e2a6f037fe
Replace "win32-error-string throw" with windows-error instance throwing
Remove win32-error-string, because there was only one place it was used in.
2020-04-11 20:33:08 -05:00
Alexander Iljin e333278e47
Replace "n>win32-error-string throw" with windows-error instance throwing 2020-04-11 20:33:07 -05:00
Alexander Iljin 699f8a837d
Delete throw-win32-error, replace with win32-error calls 2020-04-11 20:33:06 -05:00
Alexander Iljin 77dfb95763
io.files.windows: replace "-1 <alien>" with INVALID_HANDLE_VALUE 2020-04-11 20:33:05 -05:00
Alexander Iljin d8e246389d
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.
2020-04-11 20:33:04 -05:00
Alexander Iljin e273c77873
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.
2020-04-11 20:33:03 -05:00
John Benediktsson bf6c280903
game.loop: using timer's next-nanos, which is in the future.
Also, use clamp to make sure tick offset is always [0,1].
2020-04-11 20:33:02 -05:00