Trying to make a list of all the examples of extensions to low-level languages for interop into high-level GC’d object models. (New languages and C preprocessor macros don’t count.) Objective-C/C++, Managed C++, C++/CLI, and C++/CX are the big ones. What others?
My current thinking is to do something like Objective-C, where native->JS handles are very rare and explicitly rooted. Most native objects that hold onto JS objects should be JS objects instead.
-
-
The more I look into Objective-C the more I realize its design is brilliant—native->managed is nasty, so the entire ecosystem discourages it. As an example, people just don’t put Objective-C objects in C containers and use NSArray instead.
-
That seems fairly reasonable, assuming you can get good enough ergonomics. You wouldn't want to have to explicitly downcast from an untyped JSValue every time you access a private array member for example.
- 8 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.