Comments (2)
Fixing this turns out to be a harder challenge than expected. I'm keeping this issue open, but before we properly move the JSFFI logic to renamer/typechecker, we'll improve the current hacks a bit:
- Users can define
newtype
s toJSVal
s. They just still need to writeJSVal
s in JSFFI type decls, and manually do the wrapping/unwrapping in order to make the runtimeJSVal
mappings work. - We'll put several types like
JSVal
,JSString
,JSArrayBuffer
, etc along with theirfrom
/to
conversion functions in a real module:Asterius.Types
. Users need toimport Asterius.Types
to make those types available. Also, they no longer need to paste the conversion code around.
from asterius.
This is actually already delivered, so closing.
from asterius.
Related Issues (20)
- Source code for demos HOT 3
- Asterius-compiled code is very slow
- Support for wasm2c
- Crash by "table index is out of bounds"
- confusing Uncaught (in promise) JSException
- Official bindists?
- ahc --help
- Haskell + C++ project? HOT 1
- Information about upgrading GHC and libraries
- Docs outdated? HOT 1
- JavaScript heap out of memory
- support upload 'docx' file and output 'html' string in the asterius pandoc online demo
- Fixes for the FFI blog post
- support the cabal condition "impl(ahc-ghc)"
- --export-function doesn't work with ahc-dist HOT 2
- Stack installation files missing, Docker image is huge and unwieldy to use HOT 1
- Order of --output-directory flag matters
- Building error on multi-packages cabal project. HOT 1
- How to trace the "unreachable" runtime error back to Haskell modules or functions?
- Runtime error related with GC options `--gc-threshold` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asterius.