Skip to content

Alternative interface for JsooTop. #435

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

Closed
wants to merge 4 commits into from
Closed

Alternative interface for JsooTop. #435

wants to merge 4 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 10, 2016

This is part of the code developped for the OCaml MOOC.

A new submodule JsooTop.Wrapped provides an alternative implementation of the execute function (and of others functions from 'Toploop') where error and warnings are not printed on stderr but kept as first class value.

An alternative Lwt-based implementation is also provided : JsooTopAsynchronous. The toplevel is runned in a WebWorker that communicates with trivial massage passing (see JsooTopWorkerIntf).

An quick example is provided in toplevel/index_async.html.

@ghost
Copy link
Author

ghost commented Mar 10, 2016

Some part of this code requires ocaml-4.02.2. We used optcomp in our project, but what would prefer ?

@Drup
Copy link
Member

Drup commented Mar 10, 2016

@OCamlPro-Henry js_of_ocaml already uses cppo.

@ghost
Copy link
Author

ghost commented Mar 10, 2016

@Drup Thanks, I updated the PR.

@ghost
Copy link
Author

ghost commented Mar 21, 2016

I just updated the PR with a WebWorker-based minimal toplevel

@hhugo
Copy link
Member

hhugo commented Mar 21, 2016

Thanks, I'll try to take a look at this this week.

@ghost
Copy link
Author

ghost commented Mar 21, 2016

@hhugo Thanks. While the part lib/toplevel should be OK, the example in toplevel is rather a quick hack. It does not include any UI that would allow to interrupt the WebWorker after a while.

@hhugo hhugo added this to the 3.0 milestone Mar 28, 2016
hnrgrgr added 4 commits April 9, 2016 14:07
This is part of the code developped for the OCaml MOOC.

A new submodule `Wrapped` provides an alternative implementation of the
`execute` function (and of others functions from 'Toploop') where error
and warnings are not printed on stderr but kept as first class value.
Custom printers for compiler warnings are only available for:
ocaml >= 4.02.2
@ghost
Copy link
Author

ghost commented Apr 9, 2016

I just rebased the PR.

@hhugo hhugo mentioned this pull request Apr 12, 2016
4 tasks
@hhugo hhugo removed this from the 3.0 milestone Jun 18, 2016
@hhugo hhugo closed this Jul 14, 2019
@hhugo hhugo mentioned this pull request Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants