News for hackers. Stuff that matters.
Re:Show HN: Hsrs – Type-Safe Haskell Bindings Generator for ... by suis_siva on Tuesday May 19, 2026 @12:29PM (#48195554)
Oh wow, that does seem quite painful. That crate reminds me of how JSC' internal bindings work:

```cpp JSC_DEFINE_HOST_FUNCTION(jsMyFunction, (JSC::JSGlobalObject* globalObject, JSC::CallFrame* callFrame)) { JSC::VM& vm = globalObject->vm(); auto scope = DECLARE_THROW_SCOPE(vm); ... ```

kind of the same thing, seems like -- passing data around to be managed by the GC.

There are no comments on this comment yet.