Commit Graph

21107 Commits

Author SHA1 Message Date
fang
7a40b1137e
herm: send prompt & cursor on-connect 2020-11-05 20:13:36 +01:00
fang
485a15c913
dill: add scry endpoints for current line & cursor
This will let connecting clients get the rendering-relevant parts of the
current state of the session on demand.
2020-11-05 20:13:03 +01:00
fang
185b553c99
herm: userspace dill proxy
Listens to the default dill session and passes its %blits on to
subscribers. Passes any %belt pokes it gets into dill.

Updates webdojo to make use of it, which is the primary motivation for
herm's existence.
2020-11-05 19:39:08 +01:00
fang
83d46dae88
dill: fall back to default session
This lets us support the "random userspace app sending dill belts".
Ultimately, we'll want to be able to specify a session identifier
alongside the belt, instead of strictly relying on the duct.
2020-11-04 20:12:01 +01:00
fang
eb824f1866
dill: allow watching output of arbitrary sessions
Adds a %view task, which opens a subscription on the output sent to the
specified session. %flee closes the same.
Whenever dill sends a blit to the session, any subscribers get the
output also.

The structures here will become more reasonable once we replace ducts
with proper dill session identifiers.
2020-11-04 20:11:42 +01:00
fang
18494f8a9d
dill: if styled prompt has no style, emit as plain
People using older runtimes might not support the %klr blit. It's not
uncommon for prompts without style to get passed in as %pom though, so
here we catch that case and turn it into a %pro, which gets rendered as
a traditional %lin.
2020-11-04 17:28:05 +01:00
fang
b96e071eb2
Merge branch 'release/next-sys' into release/next-dill 2020-11-04 17:25:35 +01:00
fang
f5e08bae03
Merge pull request #3883 from urbit/m/<eyre>
eyre: forego <atom> in favor of (scow %aura atom)
2020-11-04 15:57:59 +01:00
fang
c992e4ce9d
eyre: forego <atom> in favor of (scow %aura atom)
Pretty-printing is expensive, yet we do it whenever we construct the cookie
string, at least once (but usually twice) per authenticated request.

Here we call out the the specific to-tape functions we need, instead of relying
on the pretty-printer for converting... tapes to tapes, among other things.  
The primary gains come from the cookie-related instances, we update the others
mostly for good style.

For the "receive request and immediately send response" case, that is processed
synchronously within eyre (ie, client sends channel ack), speeds thing up by
roughly 55%.
2020-11-04 01:02:11 +01:00
fang
37c0383a79
Merge pull request #3864 from urbit/m/ream-to-zapcom
clay: replace ream with nouns and !, zapcom
2020-11-03 21:55:49 +01:00
fang
acf0f8d0e1
clay: %limb instead of %wing 2020-11-03 16:35:28 +01:00
fang
06be3cf72a
Merge pull request #3603 from pkova/daft
zuse: improve url extension parsing
2020-11-03 15:51:21 +01:00
pkova
b114956870 zuse: improve url extension parsing
Previously extensions ending with numbers such as .woff2 were not recognized.
2020-11-03 15:54:10 +02:00
fang
e7afc51018
clay: replace ream with nouns and !, zapcom
Motivation for the change is performance improvements on the un-`^~`d uses of
ream. Parsing turns out to be slow, making ream slow in turn. So we construct
the hoon ast manually instead.

!, is arguably better style than ream, since it doesn't require a ^~ for static
input, and lets syntax highlighting function properly.

For the investigated case, in +get-cast's +grow flow, improves performance by
over 80%.
2020-11-03 00:27:10 +01:00
fang
a35cad457a
Merge pull request #3830 from urbit/m/respect-forwarded-more
eyre: respect protocol from Forwarded header
2020-10-31 00:38:41 +01:00
fang
f8a2235d6e
Merge pull request #3835 from urbit/m/silent-subs
eyre: ignore facts directly after clog
2020-10-29 22:13:04 +01:00
fang
42229657ca
eyre: respect protocol from Forwarded header
If the Forwarded header specifies the original connection is secure,
update the flag to reflect that, regardless of whether the connection
directly to the urbit was made securely.
2020-10-29 14:24:24 +01:00
fang
82dcad4c59
zuse: if empty, unpack header into empty list
Previously, would give a ~[{}] for the '' header. This makes it parse
that as "no entries" rather than "one entry without data".
2020-10-29 14:19:57 +01:00
Philip Monk
f548deaff6
Merge pull request #3787 from urbit/philip/symbols
hoon: update glyph names
2020-10-26 18:06:53 -07:00
Joe Bryan
aa200cf25a
Merge pull request #3786 from urbit/jb/ames-peek-forward-lane
ames: updates forward-lane scry-handling to prevent routing loops
2020-10-26 11:56:23 -07:00
fang
93475aa756
eyre: remove fact-without-subscription printf 2020-10-26 15:52:39 +01:00
fang
8c28fbf4fc
Merge pull request #3798 from urbit/m/clog-order
eyre: produce moves in correct order
2020-10-26 15:43:06 +01:00
fang
26049a3da0
eyre: ignore facts directly after clog
When an application would send multiple facts during a single event, it
was possible for the first fact to trigger a clog, removing the
subscription and sending a quit, but then the second fact still getting
sent out at normal.

Here, we drop any facts for subscriptions we don't have registered in
state, which should only happen in the described case.
2020-10-24 11:45:21 +02:00
fang
b92cfdb242
eyre: produce moves in correct order
Because storing in reverse order means producing in reverse reverse
order.

The tests didn't catch this because they, too, were infected with the
"reverse moves" meme.
2020-10-24 01:48:51 +02:00
Philip Monk
fc15f0d735
Merge branch 'pr' into HEAD 2020-10-22 20:47:53 -07:00
Matilde Park
235bfbbd2f release: urbit-os-v1.0.62 2020-10-22 22:30:34 -04:00
Matilde Park
6a97ebb54f Merge branch 'release/next-userspace' 2020-10-22 22:21:18 -04:00
Matilde Park
1930a75d73 glob: update to 0v2.1vtfh.0l23v.30s7f.n57l9.dpjvi 2020-10-22 22:19:58 -04:00
matildepark
d8c83f886f
Merge pull request #3773 from urbit/mp/landscape/dm-restoration
chat: create dm route, restore participants option
2020-10-22 22:12:17 -04:00
Liam Fitzgerald
4f3b17412c landscape: make link relative for DM 2020-10-23 12:09:47 +10:00
Liam Fitzgerald
c96cf96c86 landscape: use invite popover for DM 2020-10-23 12:05:00 +10:00
Liam Fitzgerald
bfc412042e landscape: add DM dropdown 2020-10-23 11:48:31 +10:00
matildepark
85ea3a88d3
Merge pull request #3776 from urbit/mp/publish/groupify
landscape: add 'admin only' check to groupify form
2020-10-22 21:27:39 -04:00
matildepark
20240a8d36
Merge pull request #3785 from tylershuster/clock-mask
clock: svg with mask
2020-10-22 21:27:19 -04:00
matildepark
87ae39defc
Merge pull request #3784 from urbit/lf/ordered-map-fix
graph-js: normalize keys in reducer
2020-10-22 21:24:08 -04:00
Liam Fitzgerald
8e7d9a5e01 graph-js: save original keys and indices 2020-10-23 11:21:36 +10:00
Liam Fitzgerald
bf1a206ae1 graph-js: normalize node.post.index 2020-10-23 10:59:02 +10:00
Liam Fitzgerald
236769f3b6 graph-js: cleanup and comment normalizeKey 2020-10-23 10:40:18 +10:00
Matilde Park
f6a49d52a8 chat: remove paddingTop from input 2020-10-22 20:38:13 -04:00
Tyler Brown Cifu Shuster
955ee8fd36 clock: svg with mask 2020-10-22 17:38:06 -07:00
Joe Bryan
da928bed10 ames: updates forward-lane scry-handling to match +send-blob 2020-10-22 17:37:46 -07:00
Liam Fitzgerald
9ed01c4602 graph-js: normalize keys in reducer
Pre-graph-store links that were brought over use @da as their index,
however new links use a unix timestamp as their index. Pending a proper
fix, we instead just normalize all the indexes to be unix timestamps
inside the reducer.
2020-10-23 10:31:48 +10:00
Matilde Park
be73c8e487 landscape: add 'dm' to sidebar in home workspace 2020-10-22 20:10:44 -04:00
Matilde Park
9f234dad63 launch: keep base hash on top layer 2020-10-22 20:08:57 -04:00
matildepark
157bf18028
Merge pull request #3782 from urbit/revert-3767-svg-clock
Revert "clock: render in SVG, show moon phase"
2020-10-22 20:04:56 -04:00
matildepark
8165f4d150
Revert "clock: render in SVG, show moon phase" 2020-10-22 20:03:39 -04:00
matildepark
d794d5bb05
Merge pull request #3781 from urbit/lf/link-comment-fix
links: fix comment submission
2020-10-22 19:40:41 -04:00
Liam Fitzgerald
fb220cf2a8 links: fix comment submit 2020-10-23 09:36:05 +10:00
Matilde Park
3b39122984 Merge branch 'release/next-userspace' into mp/landscape/dm-restoration 2020-10-22 16:54:32 -04:00
matildepark
e147599bbe
Merge pull request #3767 from tylershuster/svg-clock
clock: render in SVG, show moon phase
2020-10-22 16:50:15 -04:00