Commit Graph

15857 Commits

Author SHA1 Message Date
Benjamin Summers
707c546cda Implemented lockfile with correct handling of SIGINT (^C) and SIGTERM (send by kill). 2019-09-12 23:55:10 -07:00
Elliot Glaysher
13f6d97545
Merge pull request #1725 from urbit/king-sync
Clay syncing.
2019-09-12 17:09:05 -07:00
Elliot Glaysher
af7605a7fc Over the shoulder code review. 2019-09-12 17:08:04 -07:00
Elliot Glaysher
c9ae7eef89
Merge pull request #1728 from urbit/king-progress-bar
Display a progress bar on startup when we have to replay the log.
2019-09-12 16:42:31 -07:00
Elliot Glaysher
4aeb137ea5 Address comments. 2019-09-12 16:20:15 -07:00
Elliot Glaysher
860f59d46f Display a progress bar on startup when we have to replay the log.
Use the terminal-progress-bar package to display a progress bar
during replay, when there are jobs that need to be replayed. Bumps
the lts resolver so we get access to this package.
2019-09-12 12:49:27 -07:00
Jared Tobin
1a6e5ce9fa
Merge branch 'treapfactor' (#1724)
* treapfactor:
  u3: refactors disabled map treap jets (+int:by and +uni:by)
  u3: refactors map treap jets (+by)
  u3: refactors disabled set treap jet (+int:in)
  u3: refactors set treap jets (+in)
  u3: adds u3r_vmean (explicit varargs list), u3x_mean
  u3: cleans up xtract.c (mostly style, minor refactoring)

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-09-12 06:49:54 -02:30
Jared Tobin
5cdbee9418
Merge branch 'muk-alloc-less' (#1722)
* muk-alloc-less:
  u3: rewrites +muk jet to skip heap allocations where possible

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-09-12 06:48:46 -02:30
Elliot Glaysher
3927e4d50a Clay syncing.
This performs all normal filesystem operations. We can take
filesystem hash snapshots on startup, write the contents of an
%ergo to disk, send changes to Urbit with an %into, and finally
delete mount points when they are %ogre.

This doesn't deal with updating an initial filesystem on first
run with -A, or with acquiring a lockfile, which should happen
elsewhere.

Can take filesystem hash snapshots on startup, and can write the
contents of an %ergo to disk.
2019-09-11 16:20:05 -07:00
Joe Bryan
076d3879cd u3: refactors disabled map treap jets (+int:by and +uni:by)
blah by
2019-09-11 13:37:23 -07:00
Joe Bryan
145bf47c27 u3: refactors map treap jets (+by) 2019-09-11 13:32:24 -07:00
Joe Bryan
358088a826 u3: refactors disabled set treap jet (+int:in) 2019-09-11 13:32:25 -07:00
Joe Bryan
722b961d3a u3: refactors set treap jets (+in) 2019-09-11 13:32:20 -07:00
Joe Bryan
22f10d755f u3: adds u3r_vmean (explicit varargs list), u3x_mean 2019-09-11 11:15:40 -07:00
Joe Bryan
95fe078b9f u3: cleans up xtract.c (mostly style, minor refactoring) 2019-09-11 11:15:36 -07:00
Joe Bryan
3612f508a5 u3: rewrites +muk jet to skip heap allocations where possible 2019-09-11 11:05:13 -07:00
Jared Tobin
472c27ef6c
Merge branch 'barbus' (#1712)
* barbus:
  hoon: removed unused parser type
  hoon: remove extraneous cast
  hoon: removed barhax. No hax!
  hoon: replace barhax with barbus
  hoon: changed barbus to match barhax
  hoon: replaced barbus usage with barhax
  hoon: add parsing for barhax
  hoon: added barhax to replace barbus
  hoon: update tall parsing for |$
  hoon: replace +* name usage with ++  name  |$
  hoon: add parsing rules for |$
  hoon: add ast for |$
2019-09-11 15:27:04 -02:30
Jared Tobin
8e08b057bd
Merge branch 'philip/clay-next-fix' (#1720)
* philip/clay-next-fix:
  clay: answer ~ to %next request if file is deleted

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-09-11 10:56:59 -02:30
Jared Tobin
9dc7f1d62b
Merge branch 'event-time' (#1719)
* event-time:
  worker: fixes scope issue inside #ifdef U3_EVENT_TIME_DEBUG

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-09-11 10:54:50 -02:30
Joe Bryan
a2dcabd38e
worker: fixes scope issue inside #ifdef U3_EVENT_TIME_DEBUG 2019-09-11 10:53:56 -02:30
Jared Tobin
8a4fdc5843
Merge branch 'noun-tests' (#1718)
* noun-tests:
  cleans up tests from previous commit, backporting to 32-bit
  64-bit noun tests

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-09-11 10:52:35 -02:30
Jared Tobin
be6d93d09b
Merge branch 'gmp-copy-less' (#1717)
* gmp-copy-less:
  noun: remove extra allocations from u3a_atom->gmp and reverse conversions

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-09-11 10:47:51 -02:30
Joe Bryan
d0c26edd24
noun: remove extra allocations from u3a_atom->gmp and reverse conversions
Our conversions to and from GMP structs and our indirect atoms (a
heap-allocated array of uint_32_t) used alloca() and copied twice out of
an apparent abundance of caution. This PR removes the unnecessary
intermediate copy from both conversions.
2019-09-11 10:41:29 -02:30
Jared Tobin
483d12936f
Merge branch 'sample-profile-file' (#1716)
* sample-profile-file:
  noun, worker: write -P profile into pier

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-09-11 10:35:10 -02:30
Joe Bryan
a124dfe61f
noun, worker: write -P profile into pier
The -P argument makes urbit send itself SIGPROF every 10ms. Sample
profile data is interpolated into a structure on the home road, which is
summarized and printed when urbit exits gracefully. (Note that this
profile will be useless without the CPU_DEBUG build option).

As of v0.8.0, the profiling became much more awkward. The multi-process
shutdown doesn't include affordances for sending the profiling data over
IPC, so it just prints to the terminal after urbit appears to have
shutdown. This PR changes the profiling printout, unconditionally
writing it to a file in the pier (at .urb/put/profile/~DATE.txt).
2019-09-11 10:33:16 -02:30
David Kerschner
46b681e96a hoon: removed unused parser type 2019-09-11 01:20:38 -07:00
David Kerschner
b32fb23166 hoon: remove extraneous cast 2019-09-11 01:20:33 -07:00
David Kerschner
09575c4915 hoon: removed barhax. No hax! 2019-09-11 01:20:28 -07:00
David Kerschner
60c6d4fed1 hoon: replace barhax with barbus 2019-09-11 01:20:21 -07:00
David Kerschner
5762140ebb hoon: changed barbus to match barhax 2019-09-11 01:20:15 -07:00
David Kerschner
504e4fcac1 hoon: replaced barbus usage with barhax 2019-09-11 01:20:10 -07:00
David Kerschner
b752cf660e hoon: add parsing for barhax 2019-09-11 01:20:01 -07:00
David Kerschner
0935b87dc6 hoon: added barhax to replace barbus
barhax will implement changes request in pr and is used to stage changes to barbus
2019-09-11 01:19:45 -07:00
Elliot Glaysher
9b8ce8d9de
Merge pull request #1705 from urbit/king-snapshot-shutdown
Make the compute thread take a request instead of an event.
2019-09-10 14:04:03 -07:00
Philip Monk
263b151dcb
clay: answer ~ to %next request if file is deleted 2019-09-10 13:49:12 -07:00
Elliot Glaysher
3ed4683f4b 80 cols + order of operations 2019-09-10 13:34:11 -07:00
Elliot Glaysher
6d2b94ac7b Per review, use separate TMVars to control saving and shutdown. 2019-09-10 13:31:18 -07:00
Joe Bryan
6cb7a1a97a cleans up tests from previous commit, backporting to 32-bit 2019-09-10 13:14:39 -07:00
BernardoDeLaPlaz
b9d893fc80 64-bit noun tests
cherry-picked from 9702a313157cd2bde703fc2082ebb295027fd481
2019-09-10 13:14:34 -07:00
David Kerschner
936c79d616 hoon: update tall parsing for |$ 2019-09-10 11:59:32 -07:00
David Kerschner
b226d24a50 hoon: replace +* name usage with ++ name |$ 2019-09-10 11:59:22 -07:00
David Kerschner
755515463c hoon: add parsing rules for |$ 2019-09-10 11:59:14 -07:00
David Kerschner
043dec26cf hoon: add ast for |$
|$ is being added as a mold builder rune. This change is ultimately part of
reclaiming +* for use as aliases on cores.
2019-09-10 11:58:10 -07:00
Jared Tobin
d7f9d9aefc
Merge pull request #1708 from urbit/mp-publish-info
Publish: Add a check for publish-info when importing a notebook
2019-09-09 08:38:42 -02:30
Jared Tobin
785a42ce33
Merge branch 'scry-safe-mule' (#1678)
* scry-safe-mule:
  pills: update solid, brass, ivory
  talk, chat: disables scry in hoon eval
  hoon: enable scry in +mule
  arvo, ford: add type safety to scry

Signed-off-by: Jared Tobin <jared@tlon.io>
2019-09-09 07:59:42 -02:30
Jared Tobin
53f4b5c258
pills: update solid, brass, ivory 2019-09-09 07:59:15 -02:30
Joe Bryan
f5263e0395
talk, chat: disables scry in hoon eval
We don't care about the static types in the use-cases where we need to
prevent scry (to prevent accidental data disclosure). We can evaluate
the expression, virtualized and untyped, and then just clam.
2019-09-08 19:45:20 -02:30
Joe Bryan
d461ec40b0
hoon: enable scry in +mule
Enables .^ in +mule (statically-typed virtualization), by specifying a
scry-handler function that punts the namespace read to a higher
virtualization layer via virtual-nock (mock) 12.
2019-09-08 19:45:00 -02:30
Joe Bryan
a6272a97a8
arvo, ford: add type safety to scry
Adds a nest-check to the scry-wrapper functions +sloy and +sloy-light,
plugging a type hole in .^ namespace reads (scry).
2019-09-08 19:44:06 -02:30
Matilde Park
645e60c55d Publish: Add positive assertion for publish-info
Publish's %serve command makes builds for notes even if the
publish-info file is missing. It now crashes the build if the file is
missing with a one-line ?> asserting that the file is found in the
list of paths associated with the collection.
2019-09-06 22:37:18 -04:00