Page 1 of 1

OCaml on the TI 84+ CE

Unread postPosted: 11 Sep 2024, 04:01
by squishy
Hey all,

If you also happen to be an OCaml enthusiast, you can now write OCaml programs for your calculator!

https://github.com/nathanfarlow/c-of-ocaml

You will probably run into bugs if you try to use it seriously, since it's more of a proof of concept at the moment.

I wonder, is there more of an interest in OCaml in France due to its French academic history? Is it something that is taught schools? Or is it still niche in France?

Enjoy!

Re: OCaml on the TI 84+ CE

Unread postPosted: 11 Sep 2024, 08:07
by Epharius
Wow congrats! There aren't many people learning OCaml either in france, but some students learn it during their MPSI preparatory class (2 years after the Bac to prepare competitive exams for engineering schools).

But as far as I know the use cases are limited to academic purposes.

Re: OCaml on the TI 84+ CE

Unread postPosted: 11 Sep 2024, 09:10
by Adriweb
Indeed congratulations, this is very cool! I like the usual rotating 3D cube demo ;)

I've only heard about Ocaml, never learned it, I guess my school didn't really bothered with it, we only did C/C++/ObjC/Java/JS :P

Re: OCaml on the TI 84+ CE

Unread postPosted: 14 Sep 2024, 23:06
by Bobb
I learned OCaml, and I know people who love this language. That's a very good project !

Re: OCaml on the TI 84+ CE

Unread postPosted: 14 Sep 2024, 23:23
by redgl0w
Epharius wrote:some students learn it during their MPSI preparatory class

Don't forget about the MP2I/MPI student too ;) (but for both of these case almost all of the prepa high school's students have easy access to computer with ocaml, and during the contest the calculator are forbidden, so this reduce the usage of ocaml on calculator for them tbf).

Edit : I missunderstood the project, I though the project was an ocaml compiler on calculator (somehow like micropython) and not an ocaml compiler for calculator. That's why the previous message isn't that relevant, but this project is still interesting.

Re: OCaml on the TI 84+ CE

Unread postPosted: 15 Sep 2024, 16:27
by Bisam
Unfortunately, the main lines of what is taught to these MPSI/MP2I/MP/MPI guys and girls isn't really useful on a calc. Not a thing about drawing. Even printing is not a purpose. They are taught that OCaml isn't really made for that.

Though, I encouraged one my student a few years ago who wrote an OCaml to C compiler on his computer (sort of a project for the year I teach in), and started to make a GUI for it to being used directly oncalc... but of course he hadn't enough time to finish it. He had a very good mark for his excellent work.