Commit Graph

20701 Commits

Author SHA1 Message Date
Fang
e90258627f
vere: reset instead of decrement scry fail counter
If scries succeed, they work. No need to make this smarter.
2020-08-31 22:36:32 +02:00
Fang
7aa452b2fa
vere: ames.c stylistic improvements
Primarily, be consistent about parenthesis spacing around conditionals.
2020-08-31 22:34:10 +02:00
Matilde Park
86135772c8 Merge branch 'release/next-userspace' into mp/links-indigo 2020-08-31 15:18:35 -04:00
matildepark
966c6aea74
Merge pull request #3397 from tylershuster/dm-name-dedupe
chat: only show other participant in dms
2020-08-31 15:12:13 -04:00
Matilde Park
293e3261f1 Merge branch 'mp/maintainers-rfc' (#3381)
* origin/mp/maintainers-rfc:
  arvo/README: update maintainers

Signed-off-by: Matilde Park <matilde.park@sunshinegardens.org>
2020-08-31 15:01:38 -04:00
matildepark
3c3691f688
Merge pull request #3391 from urbit/mp/profile/log-out-all
profile: log out of all sessions
2020-08-31 14:52:09 -04:00
matildepark
c9e4ddfbcf
Merge pull request #3409 from urbit/lf/eager-title-update
interface: update title eagerly
2020-08-31 14:23:19 -04:00
matildepark
07265435a6
Merge pull request #3414 from urbit/lf/dm-comet-cite
chat: cite patps in DM title
2020-08-31 14:21:23 -04:00
Liam Fitzgerald
11b913b746 chat: cite patps in DM title 2020-09-01 02:17:47 +10:00
matildepark
531d106d31
Merge pull request #3392 from urbit/mp/publish/long-titles
publish: fix unread counts for long titles
2020-08-31 12:10:36 -04:00
matildepark
e58b48a8c1
Merge pull request #3393 from urbit/mp/chat/inline-blocks
chat: break up inline code
2020-08-31 12:09:56 -04:00
Liam Fitzgerald
149ffd32e6 publish: make input form expand to screen 2020-09-01 01:25:51 +10:00
Liam Fitzgerald
bafe213d45 publish: check roles correctly for tags 2020-09-01 01:13:33 +10:00
Liam Fitzgerald
7519838cd2 interface: update title eagerly 2020-09-01 00:38:11 +10:00
Fang
585fb248ec
vere: only touch forward queue counter if scrying
Slightly simplify the logic around changing the queue size counter by
only modifying it when we're _actually_ scrying, instead of
synchronously processing the forward.
2020-08-29 17:33:31 +02:00
Fang
5f77200d0d
vere: cache lanes for stateless forwarding
While stateless forwarding doesn't need to touch disk, there's still
overhead in needing to communicate with the serf over IPC. By caching
lanes, we get to skip the IPC pipeline, and can respond to forwarding
requests synchronously.

We include timestamps alongside the entries in the cache, and consider
entries older than two minutes as stale.

The cache is capped at around ~100mb of memory use. Further commentary
is provided inline.

Previously, ~nus would drop 3 forward requests, for every one it
fulfilled. Now, it seems able to keep up with demand, only dropping
forwards shortly after boot, while the cache isn't primed yet.
2020-08-29 17:17:45 +02:00
Joe Bryan
7fa6499e37 build: updates benchmarks 2020-08-28 16:04:25 -07:00
Joe Bryan
6f3d83f4dc ur: adds ur_jam_unsafe() 2020-08-28 16:04:25 -07:00
Joe Bryan
7b42f540b4 ur: fixes buffer over-read bugs in bitstream in tests 2020-08-28 16:04:25 -07:00
Joe Bryan
1ea8e73104 build: adds microbenchmark for virtualized cue 2020-08-28 16:04:25 -07:00
Joe Bryan
f6042e440f u3: removes double atom allocation in u3s_cue_bytes() 2020-08-28 16:04:25 -07:00
Joe Bryan
daf463c4be ur: fixes a buffer over-write in ur_bsr_bytes_any() 2020-08-28 16:04:25 -07:00
Logan Allen
90a6282b4e interface: integrated and tested all scries with reducer 2020-08-28 14:16:38 -05:00
Philip Monk
9d4003d415
Merge pull request #3400 from urbit/philip/diff
clay: minimal -diff thread
2020-08-28 11:39:37 -07:00
Fang
024c16cd97
vere: give up ames scry after successive failures
Instead of giving up on scrying at the first sight of a u3_none result,
keep trying for a little bit. If five scries fail in direct succession,
consider scrying not worth the effort, and stop trying as before.
2020-08-28 15:34:19 +02:00
Fang
d76a5e9077
vere: properly clean up dropped laneless packets
Previously, if ames told us there was no lane for a target, we would
drop the packet, but fail to register this in the queue, or even reclaim
the memory it was using.

Now, we do all the required book-keeping when dropping packets in the
"no lane for this" case.
2020-08-28 12:53:18 +02:00
Joe Bryan
b9fd36e47b u3: removes u3s_cue_smol, hoped-for performance never materialized 2020-08-27 23:45:30 -07:00
Joe Bryan
4eb3e1217e u3: fixes indirect-atom allocation bug in u3s_cue_smol/full 2020-08-27 23:45:30 -07:00
Joe Bryan
851f03294d build: adds jam/cue microbenchmarks (make bench) 2020-08-27 23:45:25 -07:00
Joe Bryan
899f431284 ur: cleans up hashtable grow, adds consistent wipe operations 2020-08-27 23:42:07 -07:00
Joe Bryan
aee89f6a64 ur: removes trailing whitespace in tests 2020-08-27 23:42:07 -07:00
Joe Bryan
5b9c48c3fd u3: adds jam/cue roundtrip tests of new implementations 2020-08-27 23:42:02 -07:00
Philip Monk
4c758372d6
clay: minimal -diff thread
Barebones 2-way diff thread.  Further development should include:

- recognize at least %txt and %hoon diff types as (urge:clay cord) and
print them prettily

- check if they're directories and recurse through them, noting files
that exist in one or the other and diffing ones that exist in both

- support 3-way diffs.  Since we know the desks they're on, we can find
a mergebase (see how +trouble gets the base-hash in #3378) and do a
3-way diff.

- extend the above to support all the useful diffs, including
diff3(a,b), diff2(mergebase(a,b),a) and any other useful ones.
2020-08-27 21:14:47 -07:00
matildepark
c2cf17c417
Merge pull request #3394 from urbit/mp/chat/hide-avatars-input
chat: hideAvatars hides chat input avatar
2020-08-27 20:47:58 -04:00
Tyler Brown Cifu Shuster
b51046d258 chat: only show other participant in dms 2020-08-27 16:17:25 -07:00
Logan Allen
c9bfe272e3 interface: added graph API and stubbed out graph scries 2020-08-27 17:34:46 -05:00
Logan Allen
bbf854d956 graph-store: updated scry interface to return %graph-store marks so as to properly do %json conversion 2020-08-27 17:31:36 -05:00
Joe Bryan
9addb545c0 u3: refactors jam_tests to run all and capture results 2020-08-27 15:14:52 -07:00
Joe Bryan
baf8b884fa u3: adds u3s_jam_xeno() 2020-08-27 15:14:53 -07:00
Joe Bryan
ac7d0731f6 u3: adds u3s_cue_smol/full/bytes/atom 2020-08-27 15:14:32 -07:00
Matilde Park
a4b945b4a3 chat: hideAvatars hides chat input avatar
Fixes #3386.
2020-08-27 16:42:02 -04:00
Joe Bryan
dd8a74cea2 u3: replaces u3_serf_uncram with u3u_uncram() 2020-08-27 12:52:19 -07:00
Joe Bryan
24b91af888 u3: refactors _cu_rock_save(), splitting out path/directory format/creation 2020-08-27 12:52:19 -07:00
Joe Bryan
11e7afdefc u3: adds u3s_cue_xeno() 2020-08-27 12:52:19 -07:00
Matilde Park
f2eeb7a14f chat: break up inline code
Doesn't affect %code messages.

Fixes #3358.
2020-08-27 15:49:48 -04:00
Matilde Park
c08509535f publish: fix unread counts for long titles
Fixes #3283.
2020-08-27 15:35:20 -04:00
Matilde Park
3c0dc59747 profile: log out of all sessions
This was hidden in urbit-os-v1.0.44 until we could ensure it actually
logged you out of all sessions. It requires a hidden input to function,
so it's added here.

Fixes #2649.
2020-08-27 15:11:03 -04:00
Matilde Park
13b5851b71 Merge branch 'master' into release/next-userspace 2020-08-27 14:50:27 -04:00
Logan Allen
20c94d34fe interface: added graph reducer, store state, and subscription 2020-08-27 11:46:46 -05:00
Fang
723548ba02
Merge pull request #3389 from urbit/m/server-json-response
lib: take json as argument to /lib/server's +json-response
2020-08-27 17:31:37 +02:00