Commit Graph

3339 Commits

Author SHA1 Message Date
Edwin Brady
ad9a2a187f Fix Char casting
For the same behaviour as Idris 1, the primitive cast should return 0 if
the integer is out of bounds. (We should probably drop the Cast
implementation though, since ideally they won't be lossy in general, but
that's an issue for another time...)

All the tests pass in racket now, for me.
2020-05-23 22:19:10 +01:00
wchresta
262f5bb213 Add GitHub CI action that bootstraps on Ubuntu 2020-05-23 16:38:32 -04:00
Edwin Brady
cff5fc2625 Workaround for byte vectors in Racket
Racket appears to have a different notion of current directory than the
system does, so we need to tell it which directory we think we're in
when reading and writing bytevectors using the scheme file functions.
2020-05-23 21:37:31 +01:00
Jan de Muijnck-Hughes
3e810b1de7 Add venv for rtd docs to .gitignore. 2020-05-23 20:03:36 +01:00
Jan de Muijnck-Hughes
43c5075f6e Use reST directives to make warnings and TODOs explicit in the documentation. 2020-05-23 19:57:50 +01:00
Kamil Shakirov
307265aaab Update C support header files 2020-05-24 00:41:53 +06:00
Kamil Shakirov
278dc1ca29 Merge branch 'master' into better-names 2020-05-24 00:37:05 +06:00
Kamil Shakirov
f02722bed9 Update .gitignore 2020-05-24 00:32:00 +06:00
Edwin Brady
08e4955c0b Update scheme/racket again
Bootstrapping needs IDRIS2_CG set up properly
2020-05-23 19:30:53 +01:00
Kamil Shakirov
e61e44205b Merge branch 'master' into better-names 2020-05-24 00:26:52 +06:00
Niklas Larsson
2d93b18b01
Merge pull request #124 from melted/fix_win_bootstrap
Fix win bootstrap
2020-05-23 20:17:37 +02:00
Edwin Brady
0d5c709fc6 Add IDRIS2_CG environment variable
This allows setting code generators globally, which makes building with
alternative back ends smoother.
2020-05-23 19:03:56 +01:00
Niklas Larsson
709ca9d152 Unbreak Windows bootstrap 2020-05-23 20:00:15 +02:00
Niklas Larsson
a92fb3a3b0
Merge pull request #120 from idris-lang/fix_build
Fix Windows build
2020-05-23 19:12:19 +02:00
Niklas Larsson
6054e86b55 Always load the socket lib on windows 2020-05-23 18:48:17 +02:00
Tim Süberkrüb
5dde7063f8 Add popen and pclose from Idris 1 2020-05-23 18:42:05 +02:00
Edwin Brady
ae81e9140a Fix Racket buffer loading code
Should return #f on failure, not an empty buffer, for consistency with
Chez
2020-05-23 17:39:07 +01:00
Edwin Brady
e7d27bc46a Fix IDRIS2_BOOT_PATH
I don't know why I removed network, it's still needed...
2020-05-23 17:32:52 +01:00
Niklas Larsson
81c59fd5d1
Fix Windows build 2020-05-23 18:05:55 +02:00
Edwin Brady
1857e4b3fe Add flag for windows in support Makefile 2020-05-23 16:47:10 +01:00
Edwin Brady
006236fde8 Add racket bootstrap script 2020-05-23 16:08:43 +01:00
Edwin Brady
c8896290a6 Update scheme given network code move 2020-05-23 15:57:20 +01:00
Edwin Brady
e17f66244a Move network support to libidris2_support
This makes the support stuff much simpler, and also makes the racket
bootstrap process easier
2020-05-23 15:52:33 +01:00
Edwin Brady
561123d49d Update generated Scheme
Mostly because of the racket, which needs to put the libraries in the
right place to bootstrap properly.
2020-05-23 15:21:59 +01:00
Edwin Brady
e3df2d59b0 Tidy up Racket CG
Instead of dumping the required dynamic libraries in the working
directly, where the executable won't necessarily find them, take the
same approach as the Chez backend and create a subdirectory for the
required runtime files and use a shell script to start up with the right
library paths.
2020-05-23 15:18:18 +01:00
Niklas Larsson
14831bfd0a
Merge pull request #118 from melted/chez017
Fix comparison in gen_expected.sh
2020-05-23 16:06:39 +02:00
Guillaume ALLAIS
53a7cf36a1 [ fix ] preserve spacing during update 2020-05-23 14:41:44 +01:00
Guillaume ALLAIS
3869233ce0 [ doc ] Type aliases for documentation
Use this opportunity to move definitions around and do some small
refactoring.
2020-05-23 14:41:44 +01:00
Guillaume ALLAIS
60855adddf [ refactor ] get rid of ad-hoc function getLine 2020-05-23 14:41:44 +01:00
Niklas Larsson
4f97e0822b
Fix comparison in gen_expected.sh 2020-05-23 15:34:41 +02:00
Niklas Larsson
971104a358
Merge pull request #117 from melted/merge_bootstrap_scripts
Merge bootstrap for unix and windows
2020-05-23 15:11:18 +02:00
Niklas Larsson
dbffcce112 Merge bootstrap for unix and windows 2020-05-23 14:51:00 +02:00
Guillaume ALLAIS
9737f863a6 [ typo ] in test coverage007 2020-05-23 13:38:33 +01:00
Edwin Brady
1524b865c0 Remove needless %cg directives
These now refer to an old library file that is no longer used since the
network library was ported to the new FFI
2020-05-23 13:06:39 +01:00
Edwin Brady
b263533db4 Merge branch 'ohad-emacs-mode-compatibility' 2020-05-23 12:31:32 +01:00
Edwin Brady
65605d1f93 Remove merge error 2020-05-23 12:31:11 +01:00
Edwin Brady
5b04cc34ae Merge branch 'emacs-mode-compatibility' of https://github.com/ohad/Idris2 into ohad-emacs-mode-compatibility 2020-05-23 12:30:54 +01:00
Edwin Brady
3fa4a9768f Small addition to FAQ on scheme performance 2020-05-23 12:26:05 +01:00
Edwin Brady
0f2236baf3
Merge pull request #115 from melted/actions
Windows CI
2020-05-23 12:24:08 +01:00
Edwin Brady
c4b8c90687
Merge pull request #111 from err0r500/minusProofsOnNats
minus proofs on Nats from Idris1
2020-05-23 12:23:14 +01:00
Edwin Brady
aeea2b80c9
Merge pull request #109 from ziman/with-disamb
`with` expressions for name disambiguation
2020-05-23 12:22:35 +01:00
Edwin Brady
cad0c0e878
Merge branch 'master' into emacs-mode-compatibility 2020-05-23 12:21:03 +01:00
Edwin Brady
7be54ef849
Merge pull request #103 from keram/gambit-blodwen-os
Define blodwen-os in Gambit support.scm
2020-05-23 12:18:37 +01:00
Edwin Brady
5cf64499ec
Merge pull request #102 from ziman/101-module-hashes
Convert to full names before computing hashes
2020-05-23 12:17:23 +01:00
Niklas Larsson
61ec7757ed
Merge pull request #107 from melted/fix_win_tests
Fix windows tests
2020-05-23 13:08:41 +02:00
Edwin Brady
38ad480478 Use name root for generating clauses
Not the internal name, since that's no use in a program...
Fixes #68
2020-05-23 12:02:40 +01:00
Edwin Brady
65e3f63598 Make sure literals are normalise on LHS
The hack (optimisation?) to normalise integer literals when below some
threshold is fine on the RHS, but on the LHS causes problems since we
need them in normal form for pattern matching. Fixes #112
2020-05-23 11:48:15 +01:00
Niklas Larsson
368fe55515 Add badge 2020-05-23 12:37:51 +02:00
Niklas Larsson
efa7357730 Improve the name of the job 2020-05-23 12:18:42 +02:00
Edwin Brady
eb3cba5f85 Better checking for empty types
This improves coverage checking, because it can now see that things like
(Z = S x) and (x = S x) are empty. Previously, it only checked that all
possible constructors had a disjoint index. Now, it looks for matches
and checks for disjointness in the matches, which catches a lot more
things especially with equality.
2020-05-23 11:03:54 +01:00