Hi,

I like to announce my open source project, https://gowebapi.github.io that 
is Go Web Assembly bindings for things like DOM, HTML, WebGL 1 & 2, SVG 2, 
CSS, media streams, payment etc, etc. It currently consists of about 80 
different standards, see status page for details.

Godocs: https://godoc.org/github.com/gowebapi/webapi (don’t forget the 
directory section)

The bindings is actually generated from WebIDL. The binding program is part 
of the project. WebIDL is commonly used in browser specification and to 
generate the browser javascript api. By taking these files, we get a very 
up to date version of what is supported. There is however a philosophical 
dilemma of what IDL files to use. It currently using an extraction of 
specification document. Maybe it’s better to get the files from Chrome or 
Firefox source code tree instead?

Currently most of the focus have been on creating the binder program, not 
on the API itself. There is a lot of work left to do, like the Promise 
class (that actually require generic) and doing “styling”. Binder can 
perform transformation on final output like moving types into packages and 
renaming (notification.NotificationRequest to notification.Request). 

It doesn’t also have full WebIDL support yet and that is the main blocker 
of the remaining 50 specs.

Another important part is documentation. Does anyone know a good source 
with machine readable API doc that can be used to create godoc’s?

In theory the binder program can be used to create bindings for any 
javascript library as long its API can be expressed within the limitation 
of WebIDL. Some sort of extension is probably needed in the future as 
javascript modules can’t be properly expressed, but that is more a long 
term goal. 

I hope you all will find the project useful as binding code between go web 
assembly and javascript should be generated and not manually written :-)


Martin


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to