Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Engine: rewrite in OCaml #32

Closed
panglesd opened this issue May 14, 2024 · 3 comments
Closed

Engine: rewrite in OCaml #32

panglesd opened this issue May 14, 2024 · 3 comments

Comments

@panglesd
Copy link
Owner

The engine was written in javascript a long time ago, when I did not know a lot about static checking!

It will be very convenient to have it in OCaml, compiled to javascript.

In this rewrite, I'd like to change at least one thing: the "step back". Instead of recording the initial step and "go back to the beginning, go forward $n-1$ steps", it would be much better to apply the "reverse effectful" function.

This also raises the question of how much is computed at runtime by the engine and how much is computed at compile-time by the compiler!

@nickbetteridge
Copy link

I just tried [1] - very impressive - towards the end, the rendering got a little lost, especially when I used the back-arrow, forward-arrow a number of times etc. Still, a great tool, thanks for making it available. Can't wait for it to be refactored into ocaml!
[1] https://choum.net/panglesd/slides/slides_CTA/cta_anglesdauriac.html

@panglesd
Copy link
Owner Author

panglesd commented Jun 4, 2024

Thanks a lot!

Yes, one of the reason for the OCaml rewrite is to have a "back arrow" that really works! Can't wait to ... have some time to do it :)

@panglesd
Copy link
Owner Author

Fixed in #74.

Though, [1] mentioned above needs to be updated to use the new engine to benefit it's fixes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants