Repository navigation
Conversation
+rest accepted a list of type-hoon pairs, but was only ever called with a single item (in +repo). Here, we update it and its callsite to only accept and pass the single argument. This lets us simplify and modernize the code slightly, and avoids some call overhead. In practice, the performance gains from this are negligible. It may be _very slightly_ faster, certainly not any slower. Even without performance gains, the legibility gains here seem worth the change. Co-authored-by: mopfel-winrux <amadeo.bellotti@gmail.com>
This makes parsing ~3.5x faster. We leave the types untouched, inserting bunts where necessary, to minimize the diff of this commit. Further work to follow, but not strictly required to reap the perf benefits here.
Since we no longer parse for them, we can rip them out entirely. This gives us approximately 15% perf improvement on compilation. The most invasive part of this change is taking the $what off of $tomes, which affects a lot of code, but mostly in very trivial ways. Note that we retain a nesting sample type on +loot, because that's jetted. This way we don't have to coordinate a jet update. We eat a +run:by to make this work, but those maps shouldn't ever be huge in practice.
Bumps the hoon kelvin version to 136 and restores the original 137 types inside of a `+h137` core. There we also include `+next-*` arms for converting 137 types to their 136 equivalents. We sprinkle `~+` on a handful of the upgrade arms to make running them on real-world values feasible.
To accommodate the hoon 136 changes, we need to migrate all the types we stored in state. We add an `+a236` core that contains the old types (using hoon's `+h137`) and helpers for migrating. This includes one for `$cage`: it's not used inside arvo proper, but will be helpful to vanes.
Upgrade from hoon 137 to 136.
Upgrade from hoon 137 to 136. Because of how the `+load` is written, we end up touching a bunch of the old types and their migration functions. Restructuring this to prevent this in the future is out of scope (for now).
Upgrade from hoon 137 to 136. Because of how the `+load` is written, we end up touching a bunch of the old types and their migration functions. Restructuring this to prevent this in the future is out of scope (for now).
Hoon 136 no longer includes the doccord types. This affects the xray and pprint libraries, and removes the dprint library's raison d'être.
Removes doccords-related types and logic, and migrates the types of bound variables.
Migrate the vases in `.starting` to the new type.
For 3650ef3, where these were forgotten.
These should've been included in a33c47e but slipped through somehow.
Prior to removing doccords, presumably due to doccords parser behavior, we allowed comments at the direct end of file, without a trailing newline. 60af617 broke this behavior. It's probably sane to allow comments without a trailing newline in general, so here we update the comment parser +vul to either parse a newline or, failing that, check for end of the string.
That library was removed in a33c47e.
Telescoping kelvins and all that.
Previously, the `@da` literal syntax never allowed leading zeroes in its month and day segments. In its hour, minute and second segments however, it allows leading zeroes during parsing, and actively includes them during rendering to ensure consistent double-digit representations. Here, we extend the leading zero behavior of the time segments into the `@da` format's month and day segments for both parsing and rendering, accepting and displaying `~2025.1.1` as `~2025.01.01`. This is an implementation of the specification in UIP-135, see that for additional context.
And remove the old cases from the $heir. Right now they don't travel across version boundaries anyway, so we can just drop them and their conversion functions. Also adds a =, to the top of +a235 so we won't need to touch it again in the future.
We had left in a ~ preceding the tomes to remain compatible with the old jets. But since we're moving to a new jet dashboard for the new hoon version anyway, and we do hit this code a bunch, better to remove the unnecessary cell.
If you =, the old hoon before the current arvo, then the context of the current arvo shadows the old types that we want to use. Slightly annoying, but hopefully still beats manually pointing into the old hoon core.
Instead of accepting infinite leading zeroes, accept only leading zeroes used to pad a single digit out to double digits. New factoring adds `+dap` as dedicated day segment parser, as a distant cousing of `+mot`.
hoon: UIP-135 style date parsing and rendering
hoon: make +rest take unary arg instead of list
hoon: remove doccords
Previously, +inde would reparse all contiguous parts of the input that had the same (or deeper) indentation level, even after the block's closing. Here, we make it take the opening and closing parse rules as explicit arguments, automatically include the leading and trailing newlines in the implementation, and reparse only up to the block's closing. Parsing hoon.hoon becomes ~2% faster. Negligible. Parsing a degenerate version of hoon.hoon, where the first arm is a `'''` block-cord without any indentation, becomes ~25% faster. Parsing /lib/language-server/rune-snippet, which contains many `"""` block-tapes, becomes ~45% faster. This also turns +iny, whose implementation was a one-to-one copy of +inde, into an alias for +inde.
Nearly all of the different cases in +rope are distinguishable by their first character, making it a good candidate for +stew. This change improves the performance of parsing hoon.hoon by ~10%.
mesa: migrate and handle halted flows
eyre: +tap:by the map, not +tap:in
ames: add %mesa migration version 2
spider: cache marks
and add pending acks
here we can display bot the user-level path, and the namespace binding associated with it
dbug: update /~debug dashboard with %mesa state
ames: fully check test $ahoy path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.