lean4-htt/src/runtime
Mac Malone 2a8cd373ca
feat: respect lean --setup module name in code generation (#8780)
This PR makes Lean code generation respect the module name provided
through `lean --setup`.

This is accomplished by porting to Lean the portion of `shell.cpp` that
spans running the frontend to exiting the process. This makes it easier
to load the module setup and control how its name is passed to the code
generation functions. This port attempts to minimize the changes made to
Lean. It marks the new Lean functions `private` and tries to preserve as
faithfully as possible the behavior of the original C++ code. Exposing
the new Lean interface publicly and/or further improving the code now
that is written in Lean is left for the future.
2025-06-15 01:11:58 +00:00
..
uv fix: include libuv outside of namespace (#8166) 2025-04-29 22:19:17 +00:00
alloc.cpp fix: heartbeats from realizeConst should be ignored (#7473) 2025-03-13 15:10:29 +00:00
alloc.h fix: heartbeats from realizeConst should be ignored (#7473) 2025-03-13 15:10:29 +00:00
allocprof.cpp
allocprof.h
apply.cpp
apply.h
array_ref.h perf: fix implementation of move constructors and move assignment ope… (#4700) 2024-08-02 17:55:03 +00:00
buffer.h chore: re-land "perf: use C23's free_sized when available" (#6844) 2025-02-04 12:43:56 +00:00
CMakeLists.txt chore: avoid mimalloc warnings (#7800) 2025-04-03 13:52:16 +00:00
compact.cpp chore: lean --stats gives number of imported bytes (#8725) 2025-06-12 08:29:42 +00:00
compact.h chore: lean --stats gives number of imported bytes (#8725) 2025-06-12 08:29:42 +00:00
debug.cpp
debug.h
exception.cpp
exception.h
flet.h
hash.cpp
hash.h feat: define Int8 (#5790) 2024-10-25 06:06:40 +00:00
init_module.cpp feat: implement basic async IO with timers (#6505) 2025-01-13 18:11:04 +00:00
init_module.h
int.h feat: define ISize and basic operations on it (#5961) 2024-11-05 15:08:19 +00:00
interrupt.cpp fix: Windows build (#4628) 2024-07-02 20:32:00 +00:00
interrupt.h fix: Windows build (#4628) 2024-07-02 20:32:00 +00:00
io.cpp fix: resolve symbolic links through IO.FS.realPath on windows (#8534) 2025-06-13 13:16:13 +00:00
io.h feat: use libuv for tempfiles (#5135) 2024-10-14 13:56:56 +00:00
libuv.cpp fix: include libuv outside of namespace (#8166) 2025-04-29 22:19:17 +00:00
libuv.h fix: include libuv outside of namespace (#8166) 2025-04-29 22:19:17 +00:00
list_ref.h perf: fix implementation of move constructors and move assignment ope… (#4700) 2024-08-02 17:55:03 +00:00
memory.cpp
memory.h
mpn.cpp
mpn.h
mpz.cpp feat: optimized division without remainder for Int and Nat (#8089) 2025-04-29 07:23:35 +00:00
mpz.h feat: optimized division without remainder for Int and Nat (#8089) 2025-04-29 07:23:35 +00:00
mutex.cpp feat: add Std.SharedMutex (#7770) 2025-04-03 08:30:54 +00:00
mutex.h
object.cpp perf: update free_sized declaration to be compatible with glibc (#8661) 2025-06-13 13:13:00 +00:00
object.h feat: socket support using LibUV (#6683) 2025-03-19 13:54:51 +00:00
object_ref.cpp
object_ref.h perf: add lean_instantiate_level_mvars (#4910) 2024-08-04 18:31:44 +00:00
option_ref.h perf: add lean_instantiate_level_mvars (#4910) 2024-08-04 18:31:44 +00:00
optional.h perf: fix implementation of move constructors and move assignment ope… (#4700) 2024-08-02 17:55:03 +00:00
pair_ref.h
platform.cpp feat: respect lean --setup module name in code generation (#8780) 2025-06-15 01:11:58 +00:00
platform.h
process.cpp feat: IO.Process.SpawnArgs.inheritEnv (#6081) 2025-04-16 00:25:32 +00:00
process.h
sharecommon.cpp feat: support mpz in the shareCommon APIs (#7838) 2025-04-06 19:52:50 +00:00
sharecommon.h perf: use mimalloc with important C++ hash maps (#7868) 2025-04-11 16:23:33 +00:00
sstream.h
stack_overflow.cpp fix: Do not overwrite existing signal handlers (#5062) 2024-08-19 09:11:38 +00:00
stack_overflow.h
stackinfo.cpp fix: make the stack handling more robust to sanitizers and -O3 (#6143) 2024-11-22 15:10:20 +00:00
stackinfo.h
string_ref.h perf: fix implementation of move constructors and move assignment ope… (#4700) 2024-08-02 17:55:03 +00:00
thread.cpp chore: missing include on Windows (#4919) 2024-08-05 15:50:43 +00:00
thread.h feat: add Std.SharedMutex (#7770) 2025-04-03 08:30:54 +00:00
utf8.cpp
utf8.h