Leonardo de Moura
393adadf9a
chore: leftovers
2021-04-07 10:26:05 -07:00
Sebastian Ullrich
46ec999a71
fix: don't leak thread-local stream objects
...
Fixes #245
2021-04-03 10:00:17 +02:00
Leonardo de Moura
9901898258
feat: add Nat.gcd
...
This commit also fix some theorem names to new naming convention.
2021-03-07 18:47:02 -08:00
Leonardo de Moura
709eaf6873
chore: use lean_internal_panic
2021-03-04 15:46:33 -08:00
Joe Hendrix
9bd60c7519
feat: Nat/Fin/UInt instances of bitwise classes
2021-03-04 15:42:43 -08:00
Leonardo de Moura
130a087ecf
feat: Lean 3 french single quote notation
2021-03-04 09:43:59 -08:00
Leonardo de Moura
bbed4aed50
chore: remove old code
2021-03-04 07:54:21 -08:00
Leonardo de Moura
51200c916e
chore: make explicit user and internal panics
2021-03-04 07:37:33 -08:00
Leonardo de Moura
09ad6cc50a
fix: fixes #306 fixes #307
2021-02-06 12:31:51 -08:00
Leonardo de Moura
10a10b38d8
fix: fixes #303
2021-02-05 07:53:18 -08:00
Leonardo de Moura
22a7a9e313
fix: missing lean_inc
2021-01-31 12:07:24 -08:00
Leonardo de Moura
f9ebfb466f
fix: missing lean_inc
2021-01-31 11:18:57 -08:00
Leonardo de Moura
36e70e9a08
fix: Int.mod implementation in the runtime
2021-01-31 08:50:06 -08:00
Leonardo de Moura
3fa1f355eb
fix: mod implementation
2021-01-31 08:19:32 -08:00
Leonardo de Moura
52c4b7219f
chore: document fix
2021-01-30 17:15:16 -08:00
Leonardo de Moura
29a56db732
fix: check if reused segment is full
2021-01-30 17:02:29 -08:00
Leonardo de Moura
95ebd58ae9
chore: add assertions
2021-01-30 15:49:13 -08:00
Leonardo de Moura
1ca916d9b4
fix: assertion violation
2021-01-30 14:04:47 -08:00
Leonardo de Moura
cde7fd97fa
chore: set page size back to 8192
...
@Kha @Vtec234 The server crashes whenever I try to use a page size
different from 8192. Any ideas?
Note that, we can compile lean, and all tests succeed but `leanserver`
ones. I am wondering whether this is a problem with the process API,
or another API that is currently being used only by the server.
2021-01-30 10:58:34 -08:00
Leonardo de Moura
cf5adbd4fe
chore: increase LEAN_MAX_SMALL_OBJECT_SIZE and simplify code
2021-01-30 10:58:34 -08:00
Leonardo de Moura
4848533717
fix: make sure we have "heartbeats" even when `-D SMALL_ALLOC=OFF"
2021-01-24 19:42:45 -08:00
Leonardo de Moura
da5d46cd5d
fix: memory access violation
2021-01-24 18:21:20 -08:00
Leonardo de Moura
acfac85ac0
feat: add IO.getNumHeartbeats
2021-01-24 17:45:50 -08:00
vvs-
b15e770231
fix: crash in IO.Process.wait on 32-bit architecture
...
The implemetation of unbox_uint32 is the same as unbox on 64-bit
but it is different for 32-bit platforms
Fixes #290
2021-01-24 14:37:23 +01:00
Wojciech Nawrocki
d5ba10a316
feat: IO API for retrieving monotonic time
2021-01-22 18:02:31 +01:00
Wojciech Nawrocki
8addea6e74
chore: remove Handle.size
2021-01-22 18:02:31 +01:00
Sebastian Ullrich
38911d1be3
feat: Nix: support leanpkg print-paths setup
2021-01-19 19:06:01 +01:00
Sebastian Ullrich
23c3995ae2
fix: Windows cmdline arg quoting
...
...
2021-01-19 19:06:01 +01:00
Sebastian Ullrich
e662992533
feat: IO.removeFile
2021-01-19 19:06:01 +01:00
Leonardo de Moura
b3703739af
chore: internal panic meesage
2021-01-13 10:26:25 -08:00
Leonardo de Moura
f6e5b13591
feat: "implement" sorry using panic
2021-01-13 09:43:25 -08:00
Sebastian Ullrich
5aab1cadc0
chore: remove debug print
2021-01-02 22:00:30 +01:00
Sebastian Ullrich
d58b02a0be
fix: translate Windows error codes
2020-12-30 21:07:07 +01:00
Sebastian Ullrich
4a262fbc5b
fix: remove auto-cancellation of IO tasks
...
Chained tasks were never auto-canceled, so let's be explicit everywhere
2020-12-30 17:03:09 +01:00
Sebastian Ullrich
91dac6ccff
fix: race condition in Task.bind
2020-12-30 17:01:05 +01:00
Wojciech Nawrocki
3fca58ea8c
feat: IO.FS.Handle.size
2020-12-23 20:00:36 +01:00
Leonardo de Moura
c71eebde8c
chore: remove util/buffer.h dependency from runtime
2020-12-14 18:07:28 -08:00
Leonardo de Moura
bbafaf8805
fix: Array.mk and Array.data externs
2020-12-13 11:10:01 -08:00
Leonardo de Moura
6a41d04827
fix: missing panics
2020-12-08 10:36:53 -08:00
Leonardo de Moura
b95c4788c1
refactor: OfDecimal ==> OfScientific
...
`decimalLit` ==> `scientificLit`
2020-12-03 08:08:19 -08:00
Leonardo de Moura
d1f4d4f57e
feat: scientific notation
2020-12-03 07:49:20 -08:00
Leonardo de Moura
962cffbaaa
feat: add lean_float_of_decimal using GMP
2020-12-03 06:15:18 -08:00
Leonardo de Moura
dfd1f23030
fix: avoid unnecessary page allocation
...
When import objects deleted by other threads, we may add elements to
`p` free list.
2020-11-29 13:33:59 -08:00
Leonardo de Moura
6dd3616298
fix: import pending objects *before* moving segments
...
@Kha I stopped getting the assertion violation after this fix.
There is another unrelated issue that I will fix in a separate commit.
2020-11-29 13:26:10 -08:00
Sebastian Ullrich
a22d234e93
fix: Thunk.get: mark result as MT before storing it in the task object
2020-11-29 18:59:39 +01:00
Wojciech Nawrocki
b1e6edefde
fix: redirect child I/O to null on Process.Stdio.null
...
And don't use errno for Win32 API errors.
2020-11-27 13:17:32 -08:00
Sebastian Ullrich
3e09184a39
fix: String.mk, String.toList
2020-10-16 09:42:59 +02:00
Sebastian Ullrich
32b98a1d4a
chore: remove obsolete build options & other stuff
...
TODO: remove JSON with the old frontend
2020-10-14 18:57:11 +02:00
Sebastian Ullrich
8b62665788
chore: print dbg* output to stderr
2020-10-12 10:01:29 +02:00
Sebastian Ullrich
c83529810d
fix: avoid deadlock on freeing task-carrying task
2020-10-11 17:43:28 +02:00