Re:An Elm Fork
by brabel on Sunday June 11, 2023 @03:39AM
(#36279146)
Those links you provided seem to have nothing to do with "whitelist of projects allowed to use native code". Can you be more specific about what you're referring to?
[ Parent
| on HN ]
Re:An Elm Fork
by josephcsible on Sunday June 11, 2023 @07:41PM
(#36286892)
The articles linked by each of those posts contain numerous references to "native modules" and "kernel code".
To be fair: you can definitely call JS from Elm/Gren using ports, which exposes the JS world as an async service you can call. This seperation means you lose none of the guarantees of the language, while being able to communicate with the outside world. Kernel code is completely unprotected, and would allow mutations, exceptions and side-effects in "Elm world".
The main problem with ports is that (1) it's an async API, which can be awkward for certain operations and (2) you cannot define a package that contains ports.