Commit Graph

5537 Commits

Author SHA1 Message Date
Elliot Glaysher
4698659bb2
Merge pull request #3575 from urbit/kh-printing-is-a-slog
King Haskell terminal fixes
2020-10-01 12:14:30 -04:00
Elliot Glaysher
4b2d2b5931 king: more review comments 2020-10-01 11:10:30 -04:00
Fang
6b0aa04a0f
vere: don't close slog stream on-heartbeat
It was erroneously flagging the heartbeat responses as "complete".
2020-10-01 15:59:41 +02:00
Fang
1bce077ab4
vere: don't crash when slogging during replay
We're not guaranteed to have the sog_f callback set when
_pier_on_lord_slog gets called, so we should make sure there's a
function there before we call it.
2020-10-01 15:54:36 +02:00
Joe Bryan
b3746e1cba u3: updates u3qe_de_base16() to use slab api 2020-09-30 18:06:17 -07:00
Joe Bryan
e03c8f34a0 u3: updates u3qe_en_base16() to use slab api 2020-09-30 18:02:14 -07:00
Joe Bryan
9d7f3b99ed Merge branch 'release/next-vere' into jb/base16-jets
* release/next-vere: (47 commits)
  u3: updates u3i_slab implementation to normalize zero-length allocations to 1
  u3: updates u3i_slab_grow() to always zero-initialize new space
  u3: adds debug assertion for atom-allocation internal invariant
  u3: renames word-length in u3i_slab
  u3: removes byte-length from u3i_slab
  u3: tweaks u3s_jam_fib() call sites, correcting byte-length calculation
  u3: minor refactoring/dedupication of slab implementation
  u3: simplifies atom slab-allocation in cue implementations
  u3: removes redundant condition in +dis jet
  u3: adds u3i_chub(), refactors u3i_chubs()
  u3: improves effiency of gmp->u3a_atom conversion
  u3: uses c3_d for length arguments in slab api
  u3: removes redundant bitwidth function in serial.c
  u3: refactors u3s_jam_fib to use slab api
  u3: fixes u3i_slab_grow()
  u3: removes unnecessary zero-initialization in +rip jet
  u3: adds u3i_slab_from(), removes unnecessary uses of u3r_chop()
  u3: removes u3a_slab and friends
  u3: refactors +repn jet using u3i_slab api
  u3: refactors u3i_* atom functions using u3i_slab api
  ...
2020-09-30 17:54:40 -07:00
Joe Bryan
854279772a Merge branch 'release/next-vere' into jb/slab
* release/next-vere: (23 commits)
  kh: abolish unicode syntax in favor of ascii
  vere: use cue/test handles for repeated packet parsing
  ur: adds missing serial.h include
  u3: updates u3s_cue_xeno() to return error, not bail on oversized atoms
  u3: factors atoms/backrefs back into u3s_cue_xeno()
  u3: renames u3s_cue_sill* to u3s_cue_xeno*
  u3: removes u3s_cue_xeno()
  u3: removes unused atom measurement function in urth.c
  vere: use u3s_cue_sill() for ivory pill
  vere: use u3s_cue_sill for ipc $plea's
  serf: use u3s_cue_sill() for ipc $writ's
  u3: use u3s_cue_sill_with() in u3u_uncram()
  u3: adds u3s_cue_fill and handle-based api
  u3: factors atoms/backrefs out of u3s_cue_xeno
  u3: refactors u3s_cue_bytes() to use road-stack api
  ur: removes unused variables in tests
  ur: cleans up ur_bsr_log()
  ur: cleans up ur_met(), atom measurement
  ur: refactors unsafe jam into a handle-based api
  ur: adds walk_fore variant with a handle-based api for repeated traversal
  ...
2020-09-29 13:01:41 -07:00
Joe Bryan
54d7b85cab u3: updates u3i_slab implementation to normalize zero-length allocations to 1 2020-09-29 12:55:06 -07:00
Joe Bryan
e189aa13a6 u3: updates u3i_slab_grow() to always zero-initialize new space 2020-09-29 12:46:16 -07:00
Joe Bryan
f6279181bb u3: adds debug assertion for atom-allocation internal invariant 2020-09-29 12:36:13 -07:00
Joe Bryan
190297266a u3: renames word-length in u3i_slab 2020-09-29 12:33:37 -07:00
Joe Bryan
e8a042cb25 u3: removes byte-length from u3i_slab 2020-09-29 12:28:22 -07:00
Joe Bryan
5be91ad7b2 u3: tweaks u3s_jam_fib() call sites, correcting byte-length calculation 2020-09-29 12:24:00 -07:00
Joe Bryan
5c8fac43d4 u3: minor refactoring/dedupication of slab implementation 2020-09-29 12:20:48 -07:00
Joe Bryan
187fee0406 u3: simplifies atom slab-allocation in cue implementations 2020-09-29 11:48:28 -07:00
Joe Bryan
c551b2a9ab
Merge pull request #3579 from urbit/jb/ur-handles-ames
vere: adds/uses apis for repeated deserialization
2020-09-29 11:16:48 -07:00
Joe Bryan
ef3ea31683 u3: removes redundant condition in +dis jet 2020-09-28 22:15:22 -07:00
Joe Bryan
1ca3fdcf5e u3: adds u3i_chub(), refactors u3i_chubs() 2020-09-28 18:20:46 -07:00
Joe Bryan
02804f8d21 u3: improves effiency of gmp->u3a_atom conversion 2020-09-28 17:49:41 -07:00
Joe Bryan
cdb94ae70e u3: uses c3_d for length arguments in slab api 2020-09-28 17:49:17 -07:00
Joe Bryan
667a5a71db u3: removes redundant bitwidth function in serial.c 2020-09-28 12:38:27 -07:00
Joe Bryan
f026343713 u3: refactors u3s_jam_fib to use slab api 2020-09-28 12:28:57 -07:00
Joe Bryan
9620fb1545 u3: fixes u3i_slab_grow() 2020-09-28 12:28:57 -07:00
Joe Bryan
a0b7f852ee u3: removes unnecessary zero-initialization in +rip jet 2020-09-28 12:28:57 -07:00
Joe Bryan
ecb9c23e08 u3: adds u3i_slab_from(), removes unnecessary uses of u3r_chop() 2020-09-28 12:28:57 -07:00
Joe Bryan
ea9328a4db u3: removes u3a_slab and friends 2020-09-28 12:28:57 -07:00
Joe Bryan
1116652b2a u3: refactors +repn jet using u3i_slab api 2020-09-28 12:28:57 -07:00
Joe Bryan
58267092fa u3: refactors u3i_* atom functions using u3i_slab api 2020-09-28 12:28:57 -07:00
Joe Bryan
5f75ad0055 u3: moves all use of u3a_slab/slaq to new u3i_slab api 2020-09-28 12:28:57 -07:00
Joe Bryan
c01134bf10 u3: moves slab atom-builder to "imprison" module, refactors 2020-09-28 12:28:46 -07:00
Elliot Glaysher
dd18bf6f0f king: review comments 2020-09-28 10:56:51 -04:00
Joe Bryan
012991310b u3: adds u3a_wtrim(), for shrinking word-aligned allocations 2020-09-25 19:21:18 -07:00
Joe Bryan
4ce4ce1974 u3: adds new bigatom allocation/builder api 2020-09-25 17:21:23 -07:00
Joe Bryan
5ea372be12 vere: adds basic tests for base16 jets 2020-09-25 10:51:35 -07:00
Elliot Glaysher
20a6c0331c king: set initial terminal size and react to resizes
This changes startup so we get the size of the current terminal
to send to Urbit on startup. We then subscribe to terminal size
change notifications and send those to your Urbit via the terminal
muxing system.

In the case where there are multiple terminal connections to your
Urbit, set the terminal size to the minimum of the widths.
2020-09-25 12:40:24 -04:00
Elliot Glaysher
e9f09e32c1 king: put slogs in the muxed scrollback
If you connect to an urbit using the remote terminal code,
slogs would not be printed to them since they were hard
coded to be printed to stderr. This threads slog printing
to the terminal driver, and puts them in scrollback.

(It does not actually fix slogs being printed on one line.)
2020-09-25 12:40:23 -04:00
Joe Bryan
2541ccbbec vere: refactors u3qe_de_base16() to properly handle odd lengths 2020-09-24 23:27:38 -07:00
Joe Bryan
a5c51aed0b vere: adds jets for en/decoding base16 2020-09-24 19:59:53 -07:00
Fang
6659c859f1
kh: abolish unicode syntax in favor of ascii 2020-09-25 01:43:03 +02:00
Fang
a6af035532
vere: add heartbeat to slog endpoint
Because ISPs might close connections that have no data going over them.
2020-09-24 23:30:42 +02:00
Fang
c4a2088bff
vere: add /~/slog http endpoint
Acts as a SSE endpoint for streaming slogs emitted by the runtime. Takes care
of tank rendering, emitting the lines resulting from printing the tank at
whatever the current terminal width is.

Adds siginfo logic to http.c, showing how many connections to that endpoint are
open.
2020-09-24 23:29:50 +02:00
Elliot Glaysher
bf2aa9d2e6 king: remove dead code in noun conversion. 2020-09-23 11:27:53 -04:00
Joe Bryan
592b61fa86 vere: use cue/test handles for repeated packet parsing 2020-09-22 11:55:57 -07:00
Joe Bryan
7493f98480 ur: adds missing serial.h include 2020-09-22 11:42:28 -07:00
Fang
d6c14eea35
term: don't print styles in non-interactive mode 2020-09-19 00:41:06 +02:00
Joe Bryan
be1cfc16c4 Merge branch 'master' into release/next-vere
* master: (187 commits)
  glob: update to 0v3.u1ets.ipgbo.eo23m.md70h.djpj0
  chat: fixes
  glob: update to 0v6.cvqlg.l55tn.kk8qp.lv4q3.f06lj
  groups: restore previous virtualiser
  chat: fixes new scroll implementation behavior
  soto: address #3484 review
  soto: call resetControllers on mount
  leap: ensure selected is always an array
  glob: update to 0v4.kdc52.27is2.c7mnh.7vsrb.ij4jo
  chat: hotfix new message indicator
  leap: safety check state.selected
  glob: update to 0v6.vnpkl.sq452.quabg.73g7k.dhi55
  chat: show pending messages again
  statusBar: prepend sig to ship settings button
  links: pipe remoteContentPolicy to pending comments
  interface: always show home button
  publish: mobile scrolling fix
  publish: scroll markdown editor correctly
  chat: prevent message rerender
  interface: embeds on by default
  ...
2020-09-18 14:21:32 -07:00
Joe Bryan
d2047862d8 u3: updates u3s_cue_xeno() to return error, not bail on oversized atoms 2020-09-18 12:25:47 -07:00
Joe Bryan
00df76c214 u3: factors atoms/backrefs back into u3s_cue_xeno() 2020-09-18 12:24:34 -07:00
Joe Bryan
c3a854363e u3: renames u3s_cue_sill* to u3s_cue_xeno* 2020-09-18 12:04:04 -07:00
Joe Bryan
5f8dcecbe3 u3: removes u3s_cue_xeno() 2020-09-18 12:02:38 -07:00
Joe Bryan
77754c974c u3: removes unused atom measurement function in urth.c 2020-09-18 11:35:36 -07:00
Joe Bryan
e4e8c4e9e8 vere: use u3s_cue_sill() for ivory pill 2020-09-18 11:24:20 -07:00
Joe Bryan
830df0d86e vere: use u3s_cue_sill for ipc $plea's 2020-09-18 11:24:02 -07:00
Joe Bryan
a79a0e9437 serf: use u3s_cue_sill() for ipc $writ's 2020-09-18 11:23:12 -07:00
Joe Bryan
fe01695594 u3: use u3s_cue_sill_with() in u3u_uncram() 2020-09-18 11:22:36 -07:00
Joe Bryan
bf117f63a8 u3: adds u3s_cue_fill and handle-based api 2020-09-17 22:45:53 -07:00
Joe Bryan
55c4fa2079 u3: factors atoms/backrefs out of u3s_cue_xeno 2020-09-17 22:45:53 -07:00
Joe Bryan
81e38c7b72 u3: refactors u3s_cue_bytes() to use road-stack api 2020-09-17 22:45:53 -07:00
Joe Bryan
6ef6acbddc ur: removes unused variables in tests 2020-09-17 22:45:53 -07:00
Joe Bryan
bc3c1eb0c7 ur: cleans up ur_bsr_log() 2020-09-17 22:45:53 -07:00
Joe Bryan
bf20b93e4d ur: cleans up ur_met(), atom measurement 2020-09-17 22:45:53 -07:00
Joe Bryan
8b5bc77565 ur: refactors unsafe jam into a handle-based api 2020-09-17 22:45:53 -07:00
Joe Bryan
6b10dd0f7e ur: adds walk_fore variant with a handle-based api for repeated traversal 2020-09-17 22:45:53 -07:00
Joe Bryan
efe4479f23 ur: refactors unsafe cue variants into a handle-based api 2020-09-17 22:45:49 -07:00
Joe Bryan
06cf6386aa ur: renames bitstream-write reinit test helper for clarity 2020-09-17 16:19:07 -07:00
Joe Bryan
bd0432f84e ur: adds initialization/finalization to bitstream-write api 2020-09-17 16:19:01 -07:00
Joe Bryan
f6589adf05 Merge branch 'release/next-vere' into jb/hashcons
* release/next-vere: (346 commits)
  kh: support rendering +stub as ansi escape codes
  vere: disables sample profiling in the king
  u3: fixes -P profiling by moving alloc hints in imprison.c
  u3: corrects comments in allocate.h
  u3: refactors +reel and +stir jets, removing obsolete stack bookkeeping
  u3: const-qualifies u3_pile pointer in road-stack api (where appropriate)
  vere: restores a necessary layer of reallocation
  u3: clarifies forward-declaration comment in allocate.h
  u3: only perform road stack checks in +stir jet if necessary
  u3: removes redundant stack reads from +reel and +stir jets
  u3: adds further improvements to road-stack api
  u3: refactors road stack api, limiting overflow checks
  vere: incorporate term.c review feedback, updates comments
  vere: avoids allocations by attempting synchronous terminal writes
  vere: comments-out unused ansi input sequences
  vere: directly implements utf-32 to utf-8 conversion
  vere: refactors terminal rendering to limit utf-32->utf-8 conversions
  vere: refactors terminal jam-file blits
  vere: refactors %lin blit handling in term.c
  vere: refactors _term_it_show_cursor()
  ...
2020-09-16 23:30:38 -07:00
Matilde Park
4e82588cc0 glob: update to 0v3.u1ets.ipgbo.eo23m.md70h.djpj0 2020-09-16 00:32:23 -04:00
Matilde Park
b9c1b7afb3 Merge branch 'release/next-userspace' 2020-09-16 00:26:44 -04:00
Tyler Brown Cifu Shuster
ec99d96112 chat: fixes 2020-09-15 21:13:04 -07:00
Matilde Park
405c4792dc glob: update to 0v6.cvqlg.l55tn.kk8qp.lv4q3.f06lj 2020-09-15 22:14:46 -04:00
Matilde Park
b1573ccae5 groups: restore previous virtualiser 2020-09-15 22:09:26 -04:00
matildepark
e35bd1a2c9
Merge pull request #3476 from tylershuster/scroll-behavior
chat: Scroll behavior
2020-09-15 21:23:44 -04:00
Tyler Brown Cifu Shuster
dc1c23921b chat: fixes new scroll implementation behavior
Fixes #3482, fixes #3465, fixes #3440
2020-09-15 18:21:16 -07:00
matildepark
15593d69f0
Merge pull request #3484 from urbit/mp/dojo-subscription-tweak
soto: call resetControllers on mount
2020-09-15 19:22:43 -04:00
Matilde Park
a053f59970 soto: address #3484 review 2020-09-15 18:59:34 -04:00
Joe Bryan
a6a7b557a9 serf: adds comments re: unnecessary failure-mode of %uncram 2020-09-15 15:12:14 -07:00
Joe Bryan
0064271e7d ur: refactors bitstream length calculatings, using bloq-conversion macros 2020-09-15 15:09:17 -07:00
Joe Bryan
9bd04f2075
Merge pull request #3433 from urbit/jb/stir-tail
u3: rewrites +stir jet, eliminating recursion and optimizing allocations
2020-09-15 14:49:40 -07:00
Joe Bryan
6477f63045 ur: refactors ur_met, deduplicating and using bloq-conversion macros 2020-09-15 14:06:46 -07:00
Joe Bryan
76f1b78218 ur: refactors scalar/direct-atom measurement macros 2020-09-15 14:06:28 -07:00
Joe Bryan
39a82fe66d ur: updates api to consistently use (len, bytes) for vectors 2020-09-15 13:50:22 -07:00
fang
55d98dfacb
Merge pull request #3487 from urbit/m/term-escape-kh
kh: support rendering +stub as ansi escape codes
2020-09-15 21:39:14 +02:00
Fang
dd3112985e
kh: support rendering +stub as ansi escape codes
Adds support to term.hs for a %klr blit, containing a +stub describing
styled text.

Dill will start making use of this in a separate commit, for release
cutting reasons.
2020-09-15 16:50:25 +02:00
Joe Bryan
ab60025438 vere: disables sample profiling in the king 2020-09-15 01:13:20 -07:00
Joe Bryan
7cb15d77f2 u3: fixes -P profiling by moving alloc hints in imprison.c
broken by yours truly, in 406a823ddd
2020-09-15 01:13:18 -07:00
Joe Bryan
e389220d18 u3: refactors u3r_sing internals, adding comments 2020-09-15 01:12:38 -07:00
Joe Bryan
e014baacac u3: refactors u3r_sing internals to use road stack api 2020-09-15 01:12:38 -07:00
Joe Bryan
c1d22949af u3: rewrites u3s_cue to use road stack api 2020-09-15 01:12:38 -07:00
Joe Bryan
740c0bbf81 u3: splits u3a_take into north/south implementations 2020-09-15 01:12:38 -07:00
Joe Bryan
fae8980660 u3: refactors "retreat" block of u3a_take in to do/while loop 2020-09-15 01:12:38 -07:00
Joe Bryan
c591eb220d u3: factors out "advance" block of u3a_take() 2020-09-15 01:12:38 -07:00
Joe Bryan
8b08a8b5c8 u3: refactors u3a_take() to use road stack api 2020-09-15 01:12:38 -07:00
Joe Bryan
a0621f2bbf u3: refactors cell reallocation, stack struct in u3a_take() 2020-09-15 01:12:38 -07:00
Joe Bryan
00ed9b1c1c u3: refactors atom reallocation in u3a_take() 2020-09-15 01:12:38 -07:00
Joe Bryan
6f39faeb7d u3: refactors u3a_walk_fore/unsafe(), using road stack api 2020-09-15 01:12:38 -07:00
Matilde Park
28c019c9cb Merge branch 'release/next-userspace' into mp/chat/copy-notice 2020-09-14 21:05:58 -04:00
Matilde Park
3482f4ae59 soto: call resetControllers on mount 2020-09-14 14:36:57 -04:00
Joe Bryan
10a674b0a5 u3: rewrites u3r_mug for clarity 2020-09-12 22:35:02 -07:00