-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
datetime picker #2
Comments
I build get this error:
the 748 line is: D betterC TypeInfo error dose not print call chain, very hard to find where is call come from. |
I time I will definitely write up some examples showing common web use cases. Maybe even port some basic material-ui components. But at this point it is still too early for that. I am still focusing on generating bindings to web api from webidl files. I hope to showcase some components soon, maybe as early as January. To help you I would first suggest writing a plain text input element and respond to user events (keydown, focus, blur, etc.) and get a full interaction cycle going (render -> event -> callback -> rerender).
The point of spasm is to write completely in D. Although you could definitely mix the two, but then it begs the question why not write fully in JS. I am sorry I cannot help you more at this point. But as of yet I am not in a stage where I can focus on ease of use. Try to get some of the examples in the README.md running to get a feel for how it works. |
I suspect you are using Right now spasm only works in betterC mode. Open https://dlang.org/spec/betterc.html to see what features are unavailable. You can examine the todo-mvc example to understand how to allocate, etc. |
I just clone this repo and run dub without modify any code to get this error. |
Ahh yes. You need |
run stdx-allocator 2.77.3: building configuration "library"...
spasm 0.0.8: building configuration "library"...
underrun ~master: building configuration "application"...
Running ./underrun
Failed to execute program (Exec format error) I will try reinstall and try again. |
Without the build command, dub will also run the binary after building it. But since it is webassembly, it won't run. After building you'll need to run it in the browser. In the Or run To generate the js boiletplate in your own project, just run |
thanks for explain. now the todo mvc is work with check on console devtool, ClickableLabel.onDblClick is not get fired. fixed by I try play underrun and switch to other browser page, then switch back get this error: memory access out of bounds |
Nice that you got it to run. The events array you found is one of the lists I have created manually. It is incomplete and only has what I needed at the time. It is one of those things that gets fixed by generating the bindings instead of hand-writing them. The To get down to that size read the readme, I added a section on optimizing for size Sorry for all the loose ends, it is all still very much a work in progress. |
You need to install/clone binaryen and disassemble the wasm binary to text so that you can remove all _initZ global entries by hand. Then you can assemble the text to wasm binary again. Look for |
can you explain how show I made a datetime picker with spasm ?
Or maybe use interHTML with outer side Javascript implement, but how do I get callback from javascript into spasm @callback ?
The text was updated successfully, but these errors were encountered: