Re:Removing garbage collection from the Rust language
by snprbob86 on Monday June 03, 2013 @11:17AM
(#5813751)
C#'s stackalloc might be useful for some micro-optimizations, but I think it's main purpose is for interop with unmanaged code.
[ Parent
| on HN ]
Re:Removing garbage collection from the Rust language
by specialist on Monday June 03, 2013 @11:44AM
(#5813898)
That hadn't occurred to me.
In the late 90s, I cowrote OpenGL bindings for Java, which became the model for jogl and so forth. Whereas other bindings using JNI duplicated the native/C structs, I just carried around the native pointer as a long and used it as an "opaque" pointer. Much less copying (thunking) back and forth.