https://melange.re/unstable/communicate-with-javascript.html has gotten very long. It can give a first-time reader the mistaken impression that you need to read a novella in order to understand JavaScript FFI. Let's move it into its own sidebar section (on the same level as Learn, Reference, Try, etc) and split it into multiple pages:
Overview: this would be a new page that summarizes what will be covered in this section. Another idea is that it could be a Getting started page that includes a small example which gives you a taste of how FFI works.
Language concepts
Data types and runtime representation
List of attributes and extension nodes
Bind to JavaScript objects
Bind to JavaScript functions or values
Generate getters, setters, and constructors
Bindings cookbook
There are a number of smaller sections that are sprinkled around the current page and I haven't quite figured out where they should go yet. They could go in their own pages, but I'm not sure it makes sense.
Overview: this would be a new page that summarizes what will be covered in this whole section. Another idea is that it could be a Getting started page that includes a small example which gives you a taste of how FFI works.
Language concepts
Data types and runtime representation
Non-shared data types, but expanded a bit (I notice it lacks some detail)
List of attributes and extension nodes Melange attributes and extension nodes
All attributes (table)
All extension nodes (table)
Generate raw JavaScript
Debugger
Detect global values (feels like this should be renamed though)
Inlining constant values
Bind to JavaScript objects
Bind to JavaScript values and functions
Advice for making more type-safe interfaces
Generate getters, setters, and constructors
Use Melange code from JavaScript (will be a small page but not sure what to put it under)
https://melange.re/unstable/communicate-with-javascript.html has gotten very long. It can give a first-time reader the mistaken impression that you need to read a novella in order to understand JavaScript FFI. Let's move it into its own sidebar section (on the same level as Learn, Reference, Try, etc) and split it into multiple pages:
There are a number of smaller sections that are sprinkled around the current page and I haven't quite figured out where they should go yet. They could go in their own pages, but I'm not sure it makes sense.