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

Marshal #6115

Closed
wants to merge 1 commit into from
Closed

Marshal #6115

wants to merge 1 commit into from

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Apr 6, 2023

Begin experimenting with marshal/unmarshal native binary data

More context: #6110

ocaml gen_aaa.ml
node jscomp/test/marshal_test.js

@cristianoc cristianoc changed the base branch from master to untagged_variants April 6, 2023 14:27
Base automatically changed from untagged_variants to master April 8, 2023 01:34
No need for @as(unboxed) anymore.

Move type defs around.

Unify type definitions for untagged.

Add handling of float.

Add partial treatment of unknown. wip

Clean up names of types.

Rename: literal

More renaming.

rename: Block

Handle unknown case.

Add Object.

Add typeof to body of switch.

Complete classification of blocks.

Check that the type def is in one of the forms allowed.

Fix well-formedness test

no other blocks when there's an unknown

rename

More renaming.

Add specific function compile_untagged_cases

Add support for array types.

Simplify well-formedness check.

Add Json example.

And add built-in knowledge that Js.Dict.t is an object.

Fix instanceof array.

flip

Fix compilation of unknown.

Add untagged variant support to genType.

Explore (un)marshaling binary data from the compiler

dune build marshal_test.bc.js

node ./_build/default/marshal_test.bc.js

Explore (un)marshaling binary data from the compiler

Expose caml_read_file_content

Build up the example to counting elements in a list

```
ocaml gen_aaa.ml
node jscomp/test/marshal_test.js
```
@cknitt
Copy link
Member

cknitt commented May 26, 2024

Closing after discussion with @cristianoc.
Can be found under the "experiment" label.

@cknitt cknitt closed this May 26, 2024
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.

None yet

2 participants