Commit Graph

3495 Commits

Author SHA1 Message Date
Bretton
387a15e14c Add FFI presentation slides 2022-09-08 18:28:30 -07:00
Ryan Scott
3d4492a058
CI: Work around GHC installation issues on Windows (#1430)
This should avoid nasty linker errors as observed in
https://gitlab.haskell.org/ghc/ghc/-/issues/21111 until the upstream tools can
be fixed.
2022-09-08 15:57:13 -04:00
Iavor S. Diatchki
39dea16096
Merge pull request #1422 from GaloisInc/update-changes-md
Update CHANGES.md with language changes
2022-09-03 08:38:10 +03:00
Bretton
08fa31c0d5 CHANGES: Move new features before bug fixes 2022-08-31 11:41:25 -07:00
Bretton
1be45cfc20 Merge branch 'master' into update-changes-md 2022-08-31 11:37:40 -07:00
Iavor S. Diatchki
e261894654
Merge pull request #1420 from GaloisInc/time-command
Add `:time` command
2022-08-31 16:33:08 +03:00
Bretton
7fd1e4dd9a time command: Add note on laziness 2022-08-30 16:34:46 -07:00
Bretton
d1a9971edd time command: Add test 2022-08-30 14:42:47 -07:00
Bretton
0b49544aa9 time command: add timeQuiet option 2022-08-30 14:36:32 -07:00
Bretton
f5fc53d2b0 time command: Add Cryptol.Utils.Types 2022-08-30 14:25:28 -07:00
Bretton
09cf06a8e8 time command: bind result to it 2022-08-30 14:24:47 -07:00
Bretton
130ae18573 Add :time to CHANGES.md 2022-08-29 23:05:58 -07:00
Bretton
e4b4611711 Move Benchmark module to Cryptol.Utils 2022-08-29 22:56:04 -07:00
Bretton
cde5f18daf time command: Add comments 2022-08-29 22:49:52 -07:00
Bretton
4af4f6d7bb time command: Document command output 2022-08-29 22:39:42 -07:00
Bretton
752bb86325 CHANGES: Mention warnPrefixAssoc option 2022-08-29 22:29:35 -07:00
Bretton
29053f47a5 Update CHANGES.md with language changes 2022-08-29 22:23:57 -07:00
Bretton
25d3467890 time command: Print measurement period 2022-08-29 22:07:46 -07:00
Bretton
0d53c059ec time command: Improve command description 2022-08-29 22:04:14 -07:00
Bretton
1c8ff60dc9 time command: Fix average calculation 2022-08-29 15:22:57 -07:00
Bretton
7ee80344c3 time command: Make measurement period configurable 2022-08-29 15:15:12 -07:00
Ryan Scott
91c8227828
Merge pull request #1419 from taimoorzaeem/issue1253
Improve error message for ModuleNameMismatch error and add regression test.
2022-08-29 15:10:01 -04:00
Bretton
c988829693 time command: Improve output formatting 2022-08-29 11:47:04 -07:00
Bretton
c1ede357cb benchmark: BenchmarkStats deriving Show 2022-08-29 11:43:21 -07:00
Bretton
8dafb86dc6 Add :time command 2022-08-29 10:44:59 -07:00
Taimoor Zaeem
c003895a2b Add regression test for issue #1253. 2022-08-29 18:53:56 +05:00
Taimoor Zaeem
2d9da2d55b Improve error message for ModuleNameMismatch error. 2022-08-28 17:13:35 +05:00
M. Taimoor Zaeem
bc92cd0820
Update regression test for issue #835. (#1417) 2022-08-26 09:01:24 -04:00
Ryan Scott
46d2e05847
CI: Drop GHC 8.8 (#1414)
This is motivated by a couple of reasons:

* GHC 8.8 on Windows suffers from a bug that can cause building certain code
  to loop forever or even segfault. As far as I can tell, this bug doesn't
  affect GHC 8.10 or later, so dropping 8.8 is a fairly reliable way to avoid
  this problem.
* GHC 8.8 is outside of the three most recent stable GHC releases, so it
  doesn't make as much sense to keep maintaining support for it.
2022-08-25 14:27:03 -04:00
Ryan Scott
d04aa87e72
CI: Don't sign build artifacts on forks (#1409)
The GPG signing step requires access to repository secrets that (apparently)
aren't visible to forks. Let's just not sign build artifacts on forks to avoid
this issue.

This mirrors a corresponding change made to `saw-script`'s CI in
GaloisInc/saw-script@eedcba1126 and
GaloisInc/saw-script@ac082b0dd9.
2022-08-22 11:23:33 -04:00
Iavor S. Diatchki
2b425be4d5
Merge pull request #1406 from GaloisInc/ffi-nested-seq
Support nested sequences in FFI
2022-08-22 09:11:17 +03:00
Bretton
dd733f8155 FFI: Simplify array write function in marshalArg 2022-08-19 15:18:36 -07:00
Iavor S. Diatchki
28277957dc
Merge pull request #1401 from GaloisInc/print-loading-shared-lib
Print message in REPL when loading dynamic library for FFI
2022-08-18 11:12:12 +03:00
Bretton
2f4b821eab FFI: Add docs for nested sequences 2022-08-17 14:50:26 -07:00
Bretton
25fc1254a8 FFI: Add test for nested sequences 2022-08-17 14:33:00 -07:00
Bretton
d4768adeb3 FFI: Support nested sequences 2022-08-17 14:12:45 -07:00
Ryan Scott
583ccc2be6
Merge pull request #1403 from GaloisInc/ubuntu-22.04
CI: Use Ubuntu 22.04, drop 18.04
2022-08-15 12:17:34 -04:00
Ryan Scott
0d4b555cf0 CI: Upgrade from 9.2.2 to 9.2.4
This is needed to work around https://gitlab.haskell.org/ghc/ghc/-/issues/20592
on macOS.
2022-08-15 08:16:19 -04:00
Ryan Scott
287a7f0f71 CI: Use Ubuntu 22.04, drop 18.04
GitHub Actions has deprecated its Ubuntu 18.04 runners, and they will be
removed by December 1, 2022. Moreover, GitHub Actions now offers Ubuntu 22.04
runners.  It seems like a good time to upgrade our CI accordingly.

Somewhat annoyingly, the `haskell` Docker images that we use in our Dockerfiles
use such an old version of Debian that their version of `glibc` is incompatible
with any of the `what4-solvers` built for Ubuntu 20.04 or 22.04. As a result, I
switched them from the `haskell` Docker image to the `ubuntu` one. This
required some minor tweaks to how dependencies are installed, but nothing too
serious.
2022-08-15 08:16:19 -04:00
Ryan Scott
486db7b149 Regenerate cabal.GHC-*.config files 2022-08-15 08:16:17 -04:00
Bretton
e8a9edc071 CI: Add macOS case for test-lib outputs 2022-08-12 20:31:17 -07:00
Bretton
00d5913a07 FFI: Fix imports when FFI disabled 2022-08-12 19:07:23 -07:00
Bretton
b525ada873 FFI: Fix getForeignSrcPath 2022-08-12 18:35:13 -07:00
Bretton
39cb718843 FFI: Define getForeignSrcPath when FFI disabled 2022-08-12 18:28:05 -07:00
Bretton
57a385b311 FFI: Print message when loading dynamic library 2022-08-12 17:58:04 -07:00
Bretton
807d376604 FFI: Refactor foreign loading code 2022-08-12 17:46:02 -07:00
Iavor S. Diatchki
8298ca3c64
Merge pull request #1376 from GaloisInc/ffi
Foreign Function Interface
2022-08-12 11:46:47 +03:00
Bretton
d933fa6307 FFI: Improve docs 2022-08-11 19:45:50 -07:00
Bretton
4fd7e175d9 FFI: Add test for runtime errors 2022-08-11 17:23:37 -07:00
Bretton
8a274d08b1 FFI: Don't panic in reference evaluator
Bind foreign functions to a Cryptol runtime error instead.
2022-08-11 17:22:10 -07:00