When using lambdas in a basic setting, they create rather big memleaks:
(define foo (lambda () ()))
or
This makes it sadly impossible to embedd this library into larger, long-running applications like webservices without takeing up large amounts of memory very quickly.
Commit: e0f571b
Command: valgrind --tool=memcheck --leak-check=full --track-origins=yes --show-leak-kinds=all ./target/debug/rust_lisp '(define foo (lambda () ()))'
Valgrind output: https://gist.github.com/Mai-Lapyst/d8a560bf018b04bcf497255772ae8710
When using lambdas in a basic setting, they create rather big memleaks:
or
This makes it sadly impossible to embedd this library into larger, long-running applications like webservices without takeing up large amounts of memory very quickly.
Commit: e0f571b
Command:
valgrind --tool=memcheck --leak-check=full --track-origins=yes --show-leak-kinds=all ./target/debug/rust_lisp '(define foo (lambda () ()))'Valgrind output: https://gist.github.com/Mai-Lapyst/d8a560bf018b04bcf497255772ae8710