jbdoderlein / BetterOCaml

A small but efficient, intuitive and responsive OCaml IDE right in your browser! Ships OCaml v5.1.1, interpreter by your browser (so it works offline!), compiled with js_of_ocaml.
https://jbdoderlein.github.io/BetterOCaml/
Apache License 2.0
38 stars 8 forks source link

Change the description (GitHub meta data) to say: web IDE + offline-ready #8

Closed Naereen closed 3 years ago

Naereen commented 3 years ago

Hi there again,

I just realized that the description was a little bit misleading

An efficient, intuitive and cross-platform Ocaml IDE

Maybe it could be changed to

A small but efficient, intuitive and responsive OCaml IDE right in your browser! Ships OCaml v4.08.1, interpreter by your browser (so it works offline!), compiled with js_of_ocaml.

It's longer, but it makes things clearer:

Of course this is a just a suggestion, feel free to pick only some of the items I suggest to add. But it should at least make these points clear :ok !

jbdoderlein commented 3 years ago

This is a good idea ! It's true that this is not a complete IDE today, but I have some idea to make it better (autocompletion is one of the next feature i want to implement)

Naereen commented 3 years ago

Great thanks for the update.

I will applaud if you obtain autocompletion. But that's not vital. It's quite hard to implement correctly...

Naereen commented 3 years ago

I'm trying to get my head around service workers and app manifest... to make it installable as offline app on mobiles.

jbdoderlein commented 3 years ago

I've created a web dev branch on the repo and invite you as collaborator, so it's easier to work and make some modification Also if you want, I have also created a mini discord server if you :)

Naereen commented 3 years ago

I'll see in a few days.

This morning I managed to write a Progressive Web App (PWA) manifest JSON file (extending the one that I found, afterward, in the src/icon folder). I successfully installed the website as a "native PWA" on my Android phone. It works, but... so many things are not perfect!

I'll stop there... This is not meant to be aggressive, just to give some feedback about my experiments. So far, if I were to teach using OCaml, I'll still be recommending to use OCaml Toplevel for Android (2011, OCaml v3.12.0) despite its age and old OCaml version.

Naereen commented 3 years ago

And I got a reply from its author, the source code is no longer usable, and he recommends that if someone wants to build a native OCaml editor for Android (or iOS) they should start from scratch.

This really is something I would like to do, but it's also a very low priority, so I'll see in a few months.