Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mthadley/elm-js-ffi-experiment
https://github.com/mthadley/elm-js-ffi-experiment
elm elm-demos
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mthadley/elm-js-ffi-experiment
- Owner: mthadley
- License: wtfpl
- Created: 2020-04-24T02:07:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T14:09:06.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T17:40:35.258Z (3 months ago)
- Topics: elm, elm-demos
- Language: JavaScript
- Size: 63.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
An experiment in synchronously calling JavaScript functions using
[Proxies](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) and
Elm's [json decoders](https://guide.elm-lang.org/effects/json.html).Should you try to use this pattern in your own programs? **Definitely not**.
This is really just a funny idea I had, and wanted to see if it would actually work.
It sort of does, but it's more of a hack or exploit, rather than a legitimate
alternative to ports or custom elements.