1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 18:48:12 +03:00
Commit Graph

3 Commits

Author SHA1 Message Date
Joel Martin
150011e4b6 plsql: add step9 basics. Refactor arg list passing. 2016-05-22 00:16:01 -06:00
Joel Martin
0fc0391825 plsql: refactor with memory pool. step5,7,8 basics.
Ran into the same problem with macroexpand that prevented TCO in
step5. Apparently objects as parameters cannot be re-assigning (or
copied and re-assigned even) in a loop. When trying to do so, the
server process crashes with a memory error.

Move away from try to allocate and pass full structures around.
Instead pass integer references into a memory pool of the objects
(nested table of mal objects) and then pass this memory pool around by
reference. Passing the memory pool around all over the place is ugly,
but it allows TCO and macroexpand to work at all and seems to have
better performance anyways.
2016-05-22 00:16:01 -06:00
Joel Martin
06951f55e8 plsql: step6 basics. File I/O in io.sql and wrap.sh 2016-05-22 00:16:01 -06:00