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
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
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
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
Sebastian Ullrich
3e09184a39
fix: String.mk, String.toList
2020-10-16 09:42:59 +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
Sebastian Ullrich
ab6b6ac3ba
feat: add dedicated task priority
2020-09-29 08:01:10 -07:00
Sebastian Ullrich
562c7ed5ce
feat: expose task priorities
2020-09-29 08:01:10 -07:00
Sebastian Ullrich
fce8ca304b
fix: reintroduce code that cancels all remaining tasks on task manager shutdown
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
63d60e6564
fix: more robust m_keep_alive implementation not reliant on RC
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
e8a1f36d0c
fix: prevent storing ST closure in MT task
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
b214b27557
fix: prevent storing ST value in MT task object
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
a1c17ade3a
fix: use-after-free in keep-alive tasks
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
ac56a9e79f
fix: run tasks to completion on task_manager shutdown to prevent leaks
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
fc4428f621
fix: mark Task closures as MT
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
469a822cc6
chore: checkInterrupted ~> checkCanceled, requestInterrupt ~> cancel
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
77cbaa752c
fix: Task: make reference and -j0 semantics eager, simplify
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
1782352af1
feat: optionally run tasks even when already cancelled
2020-09-14 17:57:33 +02:00
Sebastian Ullrich
00f176de8d
fix: Windows debug build
2020-08-30 14:28:56 -07:00
Sebastian Ullrich
110ae4b571
feat: replace OS-specific stream redirection with pure-Lean Stream redirection
...
This avoids the temporary files workaround on macOS and Windows, and makes sure
we can process a `#eval` command and write messages to stdout at the same time.
2020-08-28 10:04:32 -07:00
Sebastian Ullrich
56fda835be
feat: add ByteArray <-> String conversions
2020-08-28 10:04:32 -07:00
Sebastian Ullrich
dbebff3a2d
feat: ByteArray.copySlice
2020-08-28 10:04:32 -07:00
Leonardo de Moura
2f1ec93289
chore: move runtime implementation to src/runtime
2020-05-22 14:35:16 -07:00
Leonardo de Moura
1a77ee4f89
chore: delete old runtime directory
2020-05-18 11:33:18 -07:00
Leonardo de Moura
8bdca35282
chore: use #include <lean/runtime/...> for runtime .h files
2020-05-18 11:30:07 -07:00
Leonardo de Moura
e22af8d1ef
feat: add FloatArray
...
cc @dselsam
2020-04-07 18:05:54 -07:00
Leonardo de Moura
8e84a8c9ec
feat: Float from big numbers
2020-04-06 14:05:17 -07:00
Leonardo de Moura
8e952f3c36
chore: style
2020-04-03 17:48:06 -07:00
Leonardo de Moura
c236a179f2
feat: enable externs
2020-04-03 17:19:48 -07:00
Leonardo de Moura
71397aad36
feat: runtime primitives
2020-04-03 15:55:39 -07:00
Leonardo de Moura
3d0bfcd36a
fix: assertion violation
2020-01-31 08:25:59 -08:00
Leonardo de Moura
67fb63c9fd
feat: use mpz_pow_ui to implement Nat.pow
2020-01-21 09:16:38 -08:00
Sebastian Ullrich
f171404530
fix: "superficial" leaks to shut up lsan
2019-12-22 17:23:51 -08:00
Sebastian Ullrich
3b37737c8a
fix: leaks
2019-12-22 15:09:19 -08:00
Leonardo de Moura
74f48414f1
feat: add option --exitOnPanic (short version -e)
...
Lean does not exit on panic anymore.
The old behavior (`std::exit(1)`) produces a horrible debugging
experience for the elaborator since all trace messages are lost.
The new command line option restores the old behavior.
cc @Kha @dselsam
2019-12-19 09:24:37 -08:00
Leonardo de Moura
54e5ca0c7b
fix: lean_nat_abs
...
It must not assume a nonnegative big integer is a big nat.
2019-12-14 08:08:41 -08:00
Sebastian Ullrich
90b91760aa
fix: SMALL_ALLOCATOR=OFF
2019-10-29 13:41:16 -07:00
Sebastian Ullrich
58dd7346e4
fix: build with SMALL_ALLOCATOR=OFF
2019-10-29 17:07:42 +01:00
Leonardo de Moura
411f397654
refactor(library/init/data/list): new name convention for List functions
...
cc @dselsam @kha
2019-10-01 15:15:02 -07:00
Leonardo de Moura
3d7a7c7e91
feat(library/init/util): add panic primitive
2019-09-30 16:23:18 -07:00
Leonardo de Moura
a4b860b92a
fix(runtime): missing Array.data primitive
2019-09-19 10:27:10 -07:00
Leonardo de Moura
a7d616605a
fix(runtime/lean): missing primitive
2019-09-19 09:54:03 -07:00