Re:JEP Draft: Deprecate memory-access methods in sun.misc.un...
by kaba0 on Wednesday January 17, 2024 @03:51AM
(#39025098)
Yes they have, but you can always just go a “scope” higher, and instead of doing a loop that calls out to FFI, you call out to a loop itself.
[ Parent
| on HN ]
Re:JEP Draft: Deprecate memory-access methods in sun.misc.un...
by bitcharmer on Wednesday January 17, 2024 @04:24AM
(#39025391)
You mean expedite whole chunks of logic to a different language, then make your build process much more complicated by having to maintain a completely new ecosystem and compiler infrastructure and make testing more cumbersome?
Sorry, but this is just a bad advice.
Re:JEP Draft: Deprecate memory-access methods in sun.misc.un...
by kaba0 on Wednesday January 17, 2024 @04:52AM
(#39025638)
In the very very rare case you might need it, than I guess, yeah.
But if it turns out to be a real problem, it might still be possible that they will add a way to disable checks with the foreign memory API. It would actually allow for a better user experience, you could do “debug” builds with extensive checking for correctness, which could be disabled via some flag.
Re:JEP Draft: Deprecate memory-access methods in sun.misc.un...
by needusername on Wednesday January 17, 2024 @05:05AM
(#39025731)
You forgot that the deployment also got more complicated.