logoalt Hacker News

miniBilltoday at 1:57 PM1 replyview on HN

FFI is still mostly done through ports (or web components, for the view part). This is an intentional choice and likely to stay until 1.0 and beyond


Replies

1-moretoday at 3:52 PM

You can also do lunatic things like overload the `Object` prototype and get synchronous FFI by encoding then decoding an object. I do this at work to get locale-aware sorting. I know you know this, but it'll be news to others in the thread.