Commit Graph

2642 Commits

Author SHA1 Message Date
Arya Irani
a4a1dcfd8d
Merge pull request #4948 from unisonweb/fix/more-jit-misc
A couple more miscellaneous JIT issues
2024-05-14 18:21:02 -04:00
Dan Doel
7569e85bed Bump @unison/internal dependency 2024-05-14 17:33:23 -04:00
Mitchell Rosen
3e224bd668 add test <arg> example to transcript 2024-05-14 16:54:53 -04:00
etorreborre
f8063ec42b
test: add an example of checking a RSA signature with an incorrect key 2024-05-12 17:56:04 +02:00
etorreborre
01bb42bbd3
feature: add RSA builtin functions for signing 2024-05-11 00:05:38 +02:00
Arya Irani
4ce7cdf5d4
Merge pull request #4844 from unisonweb/kylegoetz-udp
Kylegoetz udp
2024-05-10 13:03:50 -04:00
Arya Irani
4da7930d11
unmodify jit-tests.sh 2024-05-10 12:03:34 -04:00
Arya Irani
9da0a4f43c Merge remote-tracking branch 'origin/trunk' into kylegoetz-udp 2024-05-10 11:23:38 -04:00
Arya Irani
4c9deb169c update transcript outputs 2024-05-10 11:22:57 -04:00
Dan Doel
f6442c928e Merge remote-tracking branch 'origin/trunk' into topic/jit-long-names 2024-05-06 16:56:34 -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
Kyle Goetz
e2aa974b80 use my branch on Share for testing 2024-05-06 00:07:12 -05:00
Dan Doel
043a202b63 Add test. Fix a corresponding EROR mismatch in boot.ss 2024-05-03 15:49:43 -04:00
Kyle Goetz
7b2e520baa temp JIT test script 2024-05-01 00:15:08 -05:00
Kyle Goetz
0bc69c31a8 Merge remote-tracking branch 'origin/trunk' into kylegoetz-udp 2024-04-30 12:55:18 -05:00
Arya Irani
ad09964825
Merge pull request #4886 from unisonweb/builtins.merge-in
add an optional destination path to `builtins.merge{,io}`
2024-04-29 01:20:09 -04:00
Arya Irani
16596c4566 add an optional destination path to builtins.merge{,io} 2024-04-28 23:01:02 -04:00
Arya Irani
d0bdd55ace Merge branch 'trunk' into transcripts-cleanup 2024-04-28 22:34:49 -04:00
Arya Irani
2cf96a36ae
deprecate cd, up; add find-in (#4883)
* deprecate `cd`, `up`, hide `reset-root`, add `find-in`, hides unimplemented `update.builtins`
Co-authored-by: Chris Penner <christopher.penner@gmail.com>
2024-04-28 21:30:02 -04:00
Dan Doel
5564317903 Transcript updates
Modify watch-expressions transcript to use new array predefs
2024-04-19 10:32:30 -04:00
Arya Irani
ac4d817f5e
Merge pull request #4887 from unisonweb/topic/jit-eval-side-channel
Use a socket to communicate with the jit runtime process
2024-04-17 16:06:06 -04:00
Dan Doel
da74c38f0e Test for partially applied builtins 2024-04-16 15:23:21 -04:00
Dan Doel
12ec621d23 Add back padding when errors/traces actually occur 2024-04-16 14:26:28 -04:00
Dan Doel
9f2089798f Transcript output updates for error formatting 2024-04-16 13:52:17 -04:00
Arya Irani
ab75cc89cf don't need builtins.mergeio when using base 2024-04-14 20:20:36 -04:00
Arya Irani
b052524f52 didn't use base 2024-04-14 20:20:04 -04:00
Arya Irani
5a7e3b4932 cleanup 2024-04-14 20:01:39 -04:00
Arya Irani
a987756b41 unnecessary builtins.mergeio 2024-04-14 19:57:08 -04:00
Arya Irani
ec8ae539c3 deprecate cd, up, reset-root, add find-in
also hides unimplemented `update.builtins`

removing some unnecessary `cd`s from these files produced different slurp output,
because we are no longer moving away to typecheck, meaning different names are in scope at slurp time
- propagate.md
- sum-type-update-conflicts.md

similarly, in `todo.md` it shifted the hashes for the same reason
2024-04-14 16:35:11 -04:00
Dan Doel
ce8dfd2a73 Bump jit share dependency to 0.0.15 2024-04-10 18:18:50 -04:00
Arya Irani
eef5dda29c Merge remote-tracking branch 'origin/trunk' into kylegoetz-udp
# Conflicts:
#	unison-core/src/Unison/Type.hs
2024-04-06 10:45:10 -06:00
Arya Irani
41046d599a
Merge pull request #4864 from unisonweb/fix/jit-cloud-tests
Some jit fixes for cloud tests
2024-04-05 16:36:18 -06:00
Arya Irani
19be0a5efd Merge remote-tracking branch 'origin/trunk' into kylegoetz-udp
# Conflicts:
#	unison-cli/unison-cli.cabal
#	unison-src/builtin-tests/interpreter-tests.md
#	unison-src/builtin-tests/testlib.u
#	unison-src/builtin-tests/tests.u
2024-04-05 14:39:07 -06:00
Arya Irani
eb355bfa3e code review ftw 2024-04-05 11:21:29 -06: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
Arya Irani
4def6bc310 update instructions in {jit,interpreter}-tests.tpl.md 2024-04-04 15:19:49 -06:00
Arya Irani
3ba74632f2 added threadKilledTypeLinkTest to common tests on Share 2024-04-04 15:19:16 -06:00
Arya Irani
8f9237251f update readmes 2024-04-04 11:44:12 -06:00
Arya Irani
6d3746e8bb jit-tests.sh to accept a "ucm" arg 2024-04-04 11:34:34 -06:00
Arya Irani
4289192d36 delete superfluous builtin-tests/*.u files 2024-04-04 01:36:54 -06:00
Arya Irani
f5d187ef84 let jit tests run on jit; among other things 2024-04-04 01:20:26 -06:00
Arya Irani
cac59a7edb try retrieving runtime tests from Share 2024-04-03 15:29:16 -06:00
Arya Irani
b202656454 Merge branch 'kylegoetz-udp' of github.com:unisonweb/unison into kylegoetz-udp
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2024-04-02 10:46:56 -06:00
Kyle Goetz
178fa7d96e Merge branch 'kylegoetz-udp' of https://github.com/unisonweb/unison into kylegoetz-udp 2024-04-02 10:51:08 -05:00
Kyle Goetz
9341656bea fixed UDP tests 2024-04-02 10:50:32 -05:00
Arya Irani
0f6246904e fixup testlib and add udp-tests.u to interpreter-tests.md 2024-04-02 01:15:21 -06:00
Arya Irani
1be5cf2d1d Merge branch 'trunk' into kylegoetz-udp
# Conflicts:
#	unison-src/transcripts-using-base/all-base-hashes.output.md
#	unison-src/transcripts/builtins-merge.output.md
#	unison-src/transcripts/emptyCodebase.output.md
#	unison-src/transcripts/merges.output.md
#	unison-src/transcripts/move-all.output.md
#	unison-src/transcripts/move-namespace.output.md
#	unison-src/transcripts/reflog.output.md
#	unison-src/transcripts/reset.output.md
#	unison-src/transcripts/squash.output.md
#	unison-src/transcripts/upgrade-happy-path.output.md
2024-04-02 00:19:42 -06:00
Arya Irani
96a5be9b07 update transcript output 2024-04-02 00:12:34 -06:00
Arya Irani
668c9b0691 disambiguate transcripts 2024-04-02 00:11:34 -06:00
Arya Irani
6ac7a3a6a5 disambiguation 2024-04-01 23:37:52 -06:00