Commit Graph

61 Commits

Author SHA1 Message Date
Greg Pfeil
0031542faf
Add a space before code block info strings
This is for consistency with the `cmark` style. Now the blocks we still
pretty-print ourselves will match the bulk of them that `cmark`
produces.
2024-07-10 13:56:07 -06:00
Greg Pfeil
1dc181b99a
Update the transcripts with cmark
`cmark`’s pretty-printer matches our output pretty well, with a few differences:
- it puts a space between the fence and the info string for in code blocks;
- it prefers `-` over `*` for bulleted lists (as do I) and it indents them;
- it `\`-escapes certain chars very conservatively;
- it prefers indented/unfenced code blocks if there is no info string; and
- it prefers `*` over `_` (unlike any sane person).

This also shows how the change fixes a number of issues:
- fix2158-1.output.md also illustrates how this change fixes #1809;
- alias-many.output.md and input-parse-errors.output.md show how fenced
  code blocks without an info string would use the beginning of the
  content as the info string;
- transcripts-round-trip/main.output.md shows how output blocks for
  generated `unison` stanzas (which could contain nested fenced blocks)
  might not have long-enough fences; and
- error-messages.output.md and generic-parse-errors.output.md show how
  Unison errors were reported on the wrong line number (and thus the
  printed error lines were also incorrect).
2024-07-10 13:37:51 -06:00
Dan Doel
8a04bf4f87 Merge remote-tracking branch 'origin/trunk' into topic/jit-cont 2024-06-27 16:21:25 -04:00
Chris Penner
937ac50e0a Don't pull base in docs.to-html 2024-06-27 11:29:00 -07:00
Chris Penner
b6b2adb075 Resolve merge conflicts with trunk 2024-06-27 10:55:45 -07:00
Dan Doel
c1bd940ce1 Bump share dependency 2024-06-27 12:28:39 -04:00
Greg Pfeil
1a753ffb5b
Group test results by definition
Follow-up to #5140.
2024-06-26 23:40:16 -06:00
Chris Penner
20b5e93381 Update rewrites.md output 2024-06-26 16:06:26 -07:00
Chris Penner
7122d595cf Merge trunk 2024-06-26 12:54:15 -07:00
Chris Penner
5ca1eb3b8d Replace '.' references with scratch/main 2024-06-25 11:11:07 -07:00
Paul Chiusano
97838c4883 Merge remote-tracking branch 'origin/trunk' into topic/force-syntax
# Conflicts:
#	unison-src/transcripts-round-trip/main.output.md
#	unison-src/transcripts-round-trip/reparses-with-same-hash.u
2024-06-24 18:53:04 -05:00
Greg Pfeil
3a9e8e51a0
Test that docs.to-html actually writes files 2024-06-23 20:21:16 -05:00
Paul Chiusano
ff05361e40 update transcripts 2024-06-21 08:48:08 -05:00
Chris Penner
815c1b1f1c
Auto-create project-branches referenced in transcript prompts (#5077) 2024-06-12 09:28:12 -04:00
Arya Irani
d20d30d475
update workflows for lib.install 2024-05-22 18:34:08 -04:00
Dan Doel
7569e85bed Bump @unison/internal dependency 2024-05-14 17:33:23 -04:00
Dan Doel
a1ef6a76d1 Use full length hashes for jit names
This should avoid any possibility of picking conflicting names for
distinct functions. I'm not aware of any actual examples of this, but it
could in principle happen.

I decided to use the full length hashes because picking just-long-enough
names starts to become very cumbersome when doing dynamic loading. You
need to keep track of all your past choices, not just the choices for
the module you're loading, because the one you're loading could refer to
things in previously loaded modules. It would be possible to use shorter
names in a compile-time context, since you have all the names up front.
But you'd still have to remember _those_ for runtime loading, and it
seemed not worth it.

This doesn't include any custom error formatting, because I'd like to
see error messages in the wild before doing anything, but if they're too
verbose, it's possible to override the Racket error reporting to produce
shorter names there, rather than generating them up front.
2024-05-06 14:59:06 -04:00
Arya Irani
a987756b41 unnecessary builtins.mergeio 2024-04-14 19:57:08 -04:00
Dan Doel
ce8dfd2a73 Bump jit share dependency to 0.0.15 2024-04-10 18:18:50 -04:00
Dan Doel
3cb89e42b3 Exception and debugging related work
Makes various internal values print more nicely, which makes debugging
more tractable. Links now print as base32hex strings like they would in
ucm. Functions inside unison structures print as their hash if possible.
Also, short hashes are printed in most cases, rather than the full hash.

Had to shuffle around some bytevector stuff to make the above work.

Pulled `tryEval` completely into primops, and made it directly do an
exception request, rather than implementing the TFRC pseudo instruction.
This requires a share bump, as does a fix to the `Failure` data info.

Some of the exception/failure related internal functions were wrapping
the last argument in Any when they shouldn't have, causing errors for
code expecting a single wrapper.
2024-04-05 13:00:45 -04:00
Dan Doel
702318a6e4 A few fixes/tweaks
- Changes the naming convention for builtin types/data to avoid clashes
  between builtins and pregenerated data types. For instance, both had a
  Value type in scheme, because of the in-unison representation. Instead
  of just `unison-`, now either `builtin-` or `ref-` prefixes are used.

- Fixes several places where invalid values were being used in
  exceptions. Raw scheme values were being returned that do not
  correspond to unison values, and this was causing problems with
  reflection.

- Fixes some code loading operations returning in-unison `Reference`
  values instead of term link values. Parts of these are implemented in
  unison, so both types are in play, and need to be correctly mediated.
2024-03-22 13:09:23 -04:00
Dan Doel
9ef24b2b2c Bump depended @unison/internal version 2024-03-20 15:57:46 -04:00
Arya Irani
b7530a56ac remove compile.native.{fetch,genlibs} commands
existing ucm commands can be used instead, i.e. `gen-racket-libs.md`
2024-03-08 13:11:49 -05:00
Dan Doel
aa537848c6 Bump gen-racket-libs version for @unison/internal 2024-03-04 11:52:19 -05:00
Dan Doel
3048be647e Merge remote-tracking branch 'origin/trunk' into topic/native-compiler 2024-03-01 17:19:54 -05:00
Mitchell Rosen
fd74c51100 commit transcript diff that fixes forall display bug 2024-02-20 13:17:55 -05:00
Arya Irani
b3cad2ce2a refactor ci.yaml with jit setup steps (attempt 1)
recommend moving support scheme files to another repo
if they aren't deeply related to ucm; but maybe they are.
2024-02-11 21:02:04 -05:00
Dan Doel
5f946e202e Merge remote-tracking branch 'origin/trunk' into topic/native-compiler 2024-02-07 16:43:47 -05:00
Dan Doel
7ce4ad224d Add information on further building to gen-racket-libs.md 2024-02-07 12:00:42 -05:00
Dan Doel
2e98e1a7c2 Add a transcript to create generated racket libs 2024-02-06 14:04:43 -05:00
Rúnar
9ad4583e66 Merge branch 'runarorama/improve-tdnr-message' of https://github.com/unisonweb/unison into runarorama/improve-tdnr-message 2024-01-26 12:54:05 -05:00
Rúnar
3b7e2586a2 Fix type rendering for existentials, other tweaks 2024-01-26 12:53:29 -05:00
Rúnar
ed3c84a7b3
Discard changes to unison-src/transcripts-manual/benchmarks/output/2024-01-25T15:48:31.296974000Z-bench.txt 2024-01-25 23:16:20 -05:00
Rúnar
13cc8cfcf4 Minor tweaks to output 2024-01-25 20:46:31 -05:00
Rúnar
cb226e1446 Rewrites output changed 2024-01-25 10:59:53 -05:00
Arya Irani
9833ef08b3 don't have to use /private/tmp/rewrites-tmp.u now 2024-01-09 13:27:05 -10:00
Chris Penner
b5e3e1efc5 unique types are the default 2024-01-09 14:19:18 -08:00
Chris Penner
4f062d2db6 Remove superfluous folds from transcript output 2024-01-09 13:23:35 -08:00
Chris Penner
83b5a09636 Rerun rewrites transcripts 2024-01-09 13:15:55 -08:00
Chris Penner
0739178554 Rerun manual rewrite transcript 2024-01-04 15:40:35 -08:00
andrii
493dd6874f fix transcript + rename ReloadingFile to LoadingFile 2023-12-22 14:08:37 +01:00
Paul Chiusano
3d629beaaf fixup benchmarks 2023-09-13 16:06:53 -05:00
Paul Chiusano
eebb43db3e refresh transcript 2023-08-17 17:56:29 -05:00
Paul Chiusano
3d7a61de0a fix issue with delay pretty-printing after rewrites, attempt 4 with CI 2023-07-24 14:47:35 -04:00
Paul Chiusano
fdca008000 tweak test case 2023-07-14 15:53:55 -04:00
Paul Chiusano
091f2afbeb fix #4198 and add docs and regression test 2023-07-14 15:43:42 -04:00
Paul Chiusano
16990009b6 make sure that rewrite rules have access to scratch file names when pretty-printing
and add regression test that failed previously
2023-07-13 17:51:34 -04:00
Paul Chiusano
b6abc956a7 move rewrites transcript to transcripts-manual, run after diff check 2023-07-10 22:23:39 -04:00
Paul Chiusano
8df6ba7387 update output 2022-12-08 16:22:48 -06:00
Paul Chiusano
b2f1d40a32 add forkbomb(40k) benchmark 2022-12-08 16:21:13 -06:00