Commit Graph

30896 Commits (044f7bbe11db26fc98580d1f6a84af35b04740b4)

Author SHA1 Message Date
Samuel Tardieu 2cfa457258 Fix bugs in heap-delete
When an entry is kept to be use later with `heap-delete`, its `index`
in the owning heap is automatically updated as the entry sifts up
or down.

However, if the entry is removed from the heap via either a `heap-pop`
or a `heap-delete` operation, its index is not invalidated and
the entry can still be used later with `heap-delete` and remove the
wrong element from the heap.

This patch invalidates entries when they leave the heap by setting
their index to `f`, and check the index in `entry>index`.
2019-01-04 07:27:28 -08:00
John Benediktsson 2d0e716362 ryu: minor locals cleanup, don't use 5drop. 2019-01-03 21:29:53 -08:00
John Benediktsson aa67ab6ec4 ryu: faster and simpler using number>string for integer conversion. 2019-01-03 21:13:55 -08:00
Alexander Iljin b26fa1b318 ryu: accept some lint vocab suggestions 2019-01-03 17:05:12 -08:00
Alexander Iljin 47c3f7d56d lint: add suggestion to replace "-roll -roll" with 2swap 2019-01-03 15:36:34 -08:00
Alexander Iljin 97a91d66fc syntax-docs: add a couple of missing CHAR: syntax examples 2019-01-03 15:36:03 -08:00
John Benediktsson f8de0c1caa db.sqlite: make sure select-tuple throws sql-table-missing etc. 2019-01-03 12:39:37 -08:00
John Benediktsson d66ea1e09c base32: adding Douglas Crockford's Base 32 encoding/decoding. 2019-01-03 12:27:11 -08:00
Alexander Iljin b8daf396e2 db.tuples[{-docs,-tests}]: add reject-tuples 2019-01-01 14:23:40 -06:00
Alexander Iljin bb1e6943e6 ulid: new vocab
This corresponds to commit 1bd3b5681bf1ba7155a42e75a937ec4b2520a202 of the
original repository at https://github.com/AlexIljin/ulid.
2019-01-01 14:22:52 -06:00
Doug Coleman 4ba2ac3e78 Revert "db.tuples[{-docs,-tests}]: add reject-tuples"
This reverts commit 6cae2046b5.
2018-12-30 22:29:54 -06:00
Alexander Iljin 6cae2046b5 db.tuples[{-docs,-tests}]: add reject-tuples 2018-12-30 20:31:35 -06:00
Doug Coleman 4db062cc1b tools.directory-to-file: Fix using 2018-12-30 19:20:39 -06:00
Alexander Iljin 94af9254bd ryu: add new vocab to convert double-precision floats to strings
This commit corresponds to commit 5e1591c3cbee3c667e400d936e924c0d25d55aeb
in the original repo https://github.com/AlexIljin/ryu (minus README.md).
2018-12-30 19:14:29 -06:00
Doug Coleman ffcb7839f6 directory-to-file: Better nested syntax. 2018-12-30 17:08:00 -06:00
John Benediktsson d9df9fc3cc ui.tools.inspector: string inspection shows characters. 2018-12-30 12:51:10 -08:00
Doug Coleman 1e2bb358c2 zoneinfo: Remove dumb unit test 2018-12-30 14:45:31 -06:00
Doug Coleman 9dc54b8584 travis: Disable windows for now. Can't find the compiler...help? 2018-12-30 14:26:27 -06:00
Doug Coleman 5e710fa9f9 zoneinfo: Add updated files. 2018-12-30 14:26:17 -06:00
Alexander Iljin 738b17e143 totp: add new vocab 2018-12-30 12:23:17 -08:00
Doug Coleman 382e43889b build.sh: Add the correct travis platform. 2018-12-29 16:29:40 -06:00
Doug Coleman 5e16c067ef travis.yml: Run ``uname -s`` to find the right platform string. 2018-12-29 16:27:12 -06:00
Doug Coleman eb57b8a6c2 build.sh: Add target for TravisCI Windows. 2018-12-29 16:24:33 -06:00
Doug Coleman c997438502 travis: Don't build udis on windows 2018-12-29 16:18:08 -06:00
Doug Coleman 7ed7c84383 travisci: Test on Windows!
Let's fix this til it's clean.

Blog post: https://blog.travis-ci.com/2018-10-11-windows-early-release
2018-12-29 16:00:44 -06:00
Doug Coleman 0f996e9342 random.xoshiro: Implement xoshiro256starstar.
It's rather slow because Factor doesn't have 64bit integers.

[
	1,000,000 <iota>
	1 2 3 4 <xoshiro-256-star-star> '[ drop _ next-256 ] map
] profile

Reference implementation: http://xoshiro.di.unimi.it/xoshiro256starstar.c
Debugging C code: https://paste.factorcode.org/paste?id=3949

Related issue: 
2018-12-29 13:27:41 -06:00
Doug Coleman b73f1bd8b1 mason.test: Help travisci complete the testing without false errors. 2018-12-24 19:23:53 -06:00
Doug Coleman 688c1df534 travis: Apparently we already had some code for this, but it needs the second key. 2018-12-24 18:02:46 -06:00
Doug Coleman 0ae80531e8 travis: Try the workaround since travis doesn't like the url to the gpg keys. 2018-12-24 17:45:56 -06:00
Doug Coleman 2404660b68 travis.yml: Wow, ordering. install gnupg before trying to use it 2018-12-24 17:23:29 -06:00
Doug Coleman 5348dee486 travis: Try to fix rvm on macos. 2018-12-24 17:13:20 -06:00
Doug Coleman 319e1e6ac3 editors.visual-studio-code: Don't memoize the vscode path and add code.cmd per melted's suggestion:
450730b612
2018-12-24 13:12:53 -06:00
Doug Coleman 9572c87646 io.standard-paths: Add yet another path for Windows.
My vscode is in ``C:\Users\erg\AppData\Local\Programs\Microsoft VS
Code`` for some reason and vscode stopped working. This fixes it.
2018-12-24 13:08:28 -06:00
Alexander Iljin 2f605617a1 sodium: the add essential crypto-box-* words and a unit-test 2018-12-24 00:51:08 +01:00
Alexander Iljin 0f57380074 sodium: prepare some code for reuse 2018-12-24 00:51:08 +01:00
Alexander Iljin ce6f4ee249 sodium: move some words into the <PRIVATE> section 2018-12-24 00:51:08 +01:00
Alexander Iljin c84410f3c6 sodium.ffi: add the remaining APIs 2018-12-24 00:31:23 +01:00
Alexander Iljin edbe701626 sodium.ffi: add the year 2018 to the copyright notice 2018-12-24 00:31:22 +01:00
Alexander Iljin 682817bef8 sodium.ffi: fix source code formatting for consistency 2018-12-24 00:31:22 +01:00
Doug Coleman 9c29759775 sequences.extras: Allow row variables in loop>array etc. 2018-12-16 13:30:55 -06:00
Doug Coleman 08e5340c9d furnace.auth: Rather have clean builds than loaded docs.
Fixes 
Fixes 
2018-12-16 12:35:31 -06:00
Doug Coleman 17ed798178 *.txt: Add newlines, fix some spacing 2018-12-16 12:04:35 -06:00
Doug Coleman 00fd59aa39 notifications.macos: Notifications for macOS.
They don't seem to always pop up. I think the delegate needs to be set to respond to a message to always show the notification.
2018-12-16 11:38:14 -06:00
John Benediktsson f879a012c5 ui.backend.cocoa.views: fix macOS mojave opengl issue with new windows. 2018-12-11 15:40:41 -08:00
Alexander Iljin df7d4040bf stack-checker-docs: fix articles "a" -> "an" 2018-12-04 18:43:32 -08:00
Alexander Iljin 6590e5d25d stack-checker-docs: fix a typo 2018-12-04 18:43:32 -08:00
Doug Coleman f77d46f0c8 imap: Add a word to list all folders and fix a couple issues.
- Fix a bug where the regex assumes double-quotes around a string but Outlook doesn't put them.
- Fix all the \\ escapes in the regexps to look a little better.
- Cleaner looping for reading emails.

! Example query to get some spams
imap-settings get [
  "[Gmail]/Spam" select-folder
  "ALL" "" search-mails 10 head
  "(BODY[1] BODY[HEADER.FIELDS (SUBJECT TO FROM CC BCC)])" fetch-mails
] with-imap-settings
2018-11-21 19:27:42 -06:00
John Benediktsson d82ce045ea metar: fix for timestamps like "2124" meaning "2200". 2018-11-20 11:41:18 -08:00
Craig Allen 9804c3c744 fix absolute path on windows
append-path ignores the first argument if the second is an absolute path, breaks the vocab on windows
2018-10-24 09:46:48 -07:00
John Benediktsson f3d1d785cd xdg: remove memoize. 2018-10-19 22:28:15 -07:00