Comments (5)
@balajirrao Thanks for taking the interest! I'm going to start a wiki for this repo, including architecture, guide, etc. I'll make sure to make an issue list and include some low-hanging fruits for beginners.
from asterius.
Any news about this? I want to try Asterius in my pet project, but I don't even know how to start. I hope Haskell to WASM is more right way than Haskell to JS or other similar languages like PureScript.
from asterius.
@PinkaminaDianePie Hi Igor, sorry for missing documentation on current status. Can you elaborate a bit on your own project, and how you intend to fit asterius
into that picture?
Right now JavaScript FFI is not implemented yet. I can prioritize implementing a prototype of importing JavaScript objects if you're interested, so it shall be possible to invoke JavaScript functions in Haskell (see #23 for details). Also keep in mind that we don't have GC yet.
from asterius.
@TerrorJack nothing serious, I have some logic in webworker, which map one 65k array to few other 65k arrays, using some complex algorithms, but since I don't have any work with DOM, user IO etc I thought that it could be interesting to write such logic on Haskell and use JS to communicate between main thread and worker. So I don't even need to invoke any JS logic, I have just the opposite case, where I want to pass some data to haskell and receive some result after some time. I'm not sure about the performance of such solution, but I hope it won't be worse than JS at least. And again, chunks of data are 65k arrays and for me, it takes about ~60ms to transform it by JS, so context switching between JS and WASM won't be an issue.
So don't hurry, it's not something serious, I already have JS version of this code, it's totally not a blocker or any kind of issue for me, I just want to test some tools which I can use together with plain JS (Haskell to WASM / ELM / PureScript ) and maybe even transition to them someday.
Thank you for details, it would be super nice to see some roadmap/milestones somewhere and watch for the progress, I think I'm not only one who wait when it will be possible to use Haskell in the browser without significant performance slowdown.
from asterius.
It's been a long time, apologies but closing this one for the moment.
We'll be exploring a more fine-grained workflow from now on; instead of just pushing a weekly report, we'll record our current task in projects, disassemble them into smaller issues, and do more frequent writeup as we proceed. This shall increase the transparency of this project, and in the meantime, issues suitable for beginners will be tagged so.
There are already various written materials, including docs and blog posts. The docs are the right place to check for the moment; the code in blog posts are outdated.
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.