Commit Graph

3874 Commits

Author SHA1 Message Date
Philip Monk
71fa03457c
jets: restore fond/play/peek hooks 2020-06-24 13:42:51 -07:00
Philip Monk
6c3b7aeef5
jam: add commented-out functionality to count size of atom
This is a convenient way to count memory usage of noun by simplying
running `(jam 1.337 noun-1 noun-2 ... ~)`.  This should
be a hint, but for debugging this is sufficient.
2020-06-22 19:29:00 -07:00
Philip Monk
fa6748a7e1
jets: cap memo cache and remove peek, play, and fond jets
With these changes, about 90% less memory and 15% less time is needed to
compile hoon.hoon.  The produced noun is within 3% of the same size,
which suggests this results in little if any duplication.

These are three of the four most commonly hit +ut jets.  The other is
+nest, which cannot be un-memoized without taking much longer to compile
(it didn't finish in my test).  These four jets combined for 2.3 million
out of the 2.4 million cache entries, the other +ut jets combine for
less than 100k, and literal ~+ accounted for about 50k entries.

This also caps the memo cache at 50k entries.  Even with these jets not
memoized, the memo cache grows to 357k entries and 122 MB.  Capping at
50k entries has no effect on time and reduces memory usage of the hash
table to about 25MB.  Entries are reclaimed with the clock algorithm,
which seems to be sufficient for this use.
2020-06-22 19:29:00 -07:00
Philip Monk
d8aed4d4af
noun: add functions to count size of noun
Adds a few functions to count the size of nouns in the current road.
Since this marks the nouns (high bit of refcount), you need to
"discount" them immediately after to unmark them.  Parallel functions
exist for the counting the size of a hashtable.

It would nice to hook this up to a hint, but these are useful to have
available to run in the debugger or by inserting callsites as necessary.
It's also possible to hook them up to the +jam jet gated on a special
value.
2020-06-22 19:29:00 -07:00
Isaac Visintainer
4fded00005 release: urbit-os-v1.0.23 2020-06-18 17:51:16 -06:00
Matilde Park
506c8996d6 interface/config: fix production build 2020-06-18 18:04:30 -04:00
Liam Fitzgerald
0ac7a75896 soto: run +on-load migration once 2020-06-18 21:47:44 +10:00
Matilde Park
08b4a47589 publish, links: restore full height 2020-06-17 19:13:34 -04:00
Matilde Park
35edce597b interface/CONTRIBUTING: amend for SPA / webpack 2020-06-17 17:41:12 -04:00
Matilde Park
a65edb52cd Merge branch 'master' into feat/spa 2020-06-17 17:12:13 -04:00
Logan Allen
08e1abb139 hood + apps: fix OTA process for feat/SPA 2020-06-17 15:51:13 -04:00
Logan Allen
eaf523e3c2 hood: add version %6 for %file-server upgrade 2020-06-17 14:27:30 -04:00
Matilde Park
304438009e chat: equally size both code + s3 buttons 2020-06-17 13:09:07 -04:00
Matilde Park
2fdbdccae1 Merge branch 'feat/spa' into lf/ios-spa-fixes 2020-06-17 12:56:51 -04:00
Liam Fitzgerald
81a9b0d08e chat: prevent reflow from image loading
Sets a static height on inline images in chat to prevent loss of scroll
position.

Fixes #2883
2020-06-17 16:10:46 +10:00
Liam Fitzgerald
77731f6ca0 chat: scroll on code overflow
Adds a scroll container if code is posted and the code will overflow the
width of the page.

Fixes #2829
2020-06-17 16:08:32 +10:00
Liam Fitzgerald
a2970ce929 chat: cap maximum backlog size at 1000
Caps maximum unread backlog that chat will fetch at 1000 messages.
2020-06-17 15:24:22 +10:00
Matilde Park
5757fd8f5d chat, publish: Filter unreads for current group
Fixes #2897.
2020-06-16 22:27:51 -04:00
Philip Monk
1acd8fe6d6
Merge branch 'ixv/fix-chat-hook' (#3020)
* origin/ixv/fix-chat-hook:
  chat-hook: pull on store path when removing

Signed-off-by: Philip Monk <phil@pcmonk.me>
2020-06-15 19:58:29 -07:00
Philip Monk
4e3aace970
Merge branch 'jb/aes-siv-fix' (#3013)
* origin/jb/aes-siv-fix:
  tests: updates aes-siv regression test comment
  pill: updates solid
  zuse: propagates fix to aes-128-siv and aes-192-siv as well
  Revert "test: disable aes-siv jets to demonstrate test failure"
  pill: updates solid
  zuse: fixes bug in aes-256-siv iv calculation (+s2vc:aes:crypto)
  test: disable aes-siv jets to demonstrate test failure
  test: add test case for aes-256-siv jet mismatch, observed in the wild

Signed-off-by: Philip Monk <phil@pcmonk.me>
2020-06-15 19:57:01 -07:00
Philip Monk
9410b4f66d
arvo: +mure is taken 2020-06-15 19:34:30 -07:00
Isaac Visintainer
f0d36f6a52 chat-hook: pull on store path when removing 2020-06-15 16:01:46 -06:00
Matilde Park
34dcc9f971 chat, links, publish: join upon api instantiation 2020-06-15 15:19:00 -04:00
Matilde Park
ef00dc71e4 group-filter: close modal on navigation 2020-06-15 12:45:02 -04:00
Joe Bryan
6d56a95837 tests: updates aes-siv regression test comment 2020-06-12 23:26:10 -07:00
Joe Bryan
faa4956969 zuse: propagates fix to aes-128-siv and aes-192-siv as well 2020-06-12 22:21:19 -07:00
Joe Bryan
3bf0c232d8 Revert "test: disable aes-siv jets to demonstrate test failure"
This reverts commit bb45a47de4.
2020-06-12 21:53:44 -07:00
Joe Bryan
0ddeb6526b zuse: fixes bug in aes-256-siv iv calculation (+s2vc:aes:crypto) 2020-06-12 21:34:04 -07:00
Joe Bryan
bb45a47de4 test: disable aes-siv jets to demonstrate test failure 2020-06-12 21:28:32 -07:00
Joe Bryan
2d66e596cd test: add test case for aes-256-siv jet mismatch, observed in the wild 2020-06-12 21:26:48 -07:00
Philip Monk
4e466214e3
arvo: compile hoon/arvo in separate roads
Adds +mure to run a trap in a separate road.  This should eventually be
just a hint.

Vega was running inside a mule, but since +load was called within vega,
the new kernel was all run within the same mule, so it didn't actually
get to reclaim the space after hoon compiled.

We verified this with printfs in u3m_fall.  On the test ship (from
mainnet) which had 800MB used, vega was taking interior free space from
950MB to 450 over the course of compiling hoon, then each vane would go
from about 450 to 350 and then back to 450 once it finished (which
proves they were correctly isolated).  With this change, after hoon
compiles the free space goes back up to 950MB.  This gives us a lot more
space to compile OTAs.

We had to slightly refactor the logic for doubly-recompiling hoon, since
+mure as written produces a ?(!! _trap), and you can't find faces in the
result of the trap.  We could bake mure, but that's rather awkward.  I
wonder if there's a way to fix this as a wet gate.
2020-06-12 20:51:23 -07:00
Logan Allen
3d3ab7e178 weather: better error printing 2020-06-11 20:15:32 -04:00
Logan Allen
6a49b2f20f landscape-js: clear animation timer set by clock upon page navigation 2020-06-11 16:50:44 -04:00
Logan Allen
3ba4c14deb landscape-js: make clock and weather load data properly 2020-06-11 16:44:59 -04:00
matildepark
60b5fe658f
Merge pull request #2995 from urbit/lf/drum-file-server-order
drum: add %file-server to boot priority
2020-06-10 13:45:47 -04:00
matildepark
deda6722a0
Merge pull request #2998 from urbit/lf/eyre-chat-view
chat-view: bind eyre in ++on-init
2020-06-10 13:45:34 -04:00
Liam Fitzgerald
daaf9201ae contact-hook: fix /~/default poke
We don't maintain a synced entry in the state for /~/default, so ignore
the synced check if modifying the /~/default contacts.
2020-06-10 13:14:25 +10:00
Liam Fitzgerald
4f1711a02f chat-view: bind eyre in ++on-init
chat-view bound to eyre in ++on-load but not in ++on-init, causing
freshly booted ships to be unable to access chat backlog
2020-06-10 12:54:10 +10:00
Liam Fitzgerald
c087044212 various-js: improve scrolling experience on iOS
Removes use of vh units, as they don't play well with safari
(https://bugs.webkit.org/show_bug.cgi?id=141832). Adjusts layouts
accordingly.
2020-06-10 12:46:38 +10:00
Matilde Park
10262a243f groups: align sigil color box in firefox 2020-06-09 16:48:45 -04:00
Matilde Park
b425fb6723 chat, publish: restore sidebar toggler actions 2020-06-09 16:35:55 -04:00
Matilde Park
1b28ea1345 soto: add graphical tweaks for spa 2020-06-09 16:13:56 -04:00
Matilde Park
da0d149828 publish: add contactreducer 2020-06-09 16:05:30 -04:00
Matilde Park
5481deae30 publish: raise comment input line height 2020-06-09 15:58:11 -04:00
Matilde Park
c2f655878d publish: update API actions for new arch 2020-06-09 14:42:45 -04:00
Matilde Park
3e81faeac1 publish: fix settings display overflow 2020-06-09 14:39:13 -04:00
Matilde Park
fdb1d1f849 spa: add 404 page 2020-06-09 14:22:40 -04:00
Liam Fitzgerald
900da34fa9 drum: add %file-server to boot priority
File server needs to be started with priority in order to ensure the
-view apps can poke it, regardless of set ordering.
2020-06-09 13:02:24 +10:00
matildepark
26d4f33968
Merge pull request #2980 from urbit/lf/webpack-qol
interface: improve webpack dev config
2020-06-08 21:12:34 -04:00
Matilde Park
217e770008 chat: restore 6836135 api change 2020-06-08 15:53:53 -04:00