with cursor movements, instead of passing in functions as parameters (callbacks/higher order functions), functorise the cursor movement functions instead so we can take advantage of defunctorisation and avoid the runtime cost of closures/higher order functions/function pointers

This commit is contained in:
2025-01-09 22:30:51 +00:00
parent 7045b69ce8
commit deb24c2063
5 changed files with 152 additions and 111 deletions

View File

@@ -1,10 +1,10 @@
$(SML_LIB)/basis/basis.mlb
(* FUNCTIONAL CORE *)
(* LIBRARIEES *)
lib/brolib-sml/src/line_gap.sml
lib/cozette-sml/fonts/cozette-ascii.mlb
(* FUNCTIONAL CORE *)
message-types/input-msg.sml
message-types/draw-msg.sml
message-types/mailbox-type.sml
@@ -26,8 +26,9 @@ end
fcore/cursor.sml
fcore/text-window.sml
fcore/finish.sml
fcore/move.sml
fcore/app-update.sml
(* TEST FILES *)
test/Railroad/src/railroad.mlb