I would like people to be able to compile as much of the C++ library
as possible with wasm. If someone is interested in this project, it
seems like starting to set up some build and tests scripts to help
would be a good step to take (also compiling all the dependencies is
probably a pretty good sized job)

On Tue, Feb 19, 2019 at 1:47 PM Sebastien Binet <bi...@cern.ch> wrote:
>
> Franco,
>
> On Tue, Feb 19, 2019 at 8:31 PM Brian Hulette <hulet...@gmail.com> wrote:
>
> > Hi Franco,
> > I'm not aware of anyone trying this in Rust, but Tim Paine at JPMC recently
> > contributed a patch [1] to make it possible to compile the C++
> > implementation with emscripten, so that he could use it in Perspective [2].
> > Could you use the C++ lib instead?
> >
> > It would be great if either implementation could target WebAssembly though
> > - do any Rust contributors know more about the libc/wasm issue? Maybe the
> > rustwasm community [3] could be of assistance?
> >
>
> there's also the Go backend :)
> I've just tried compiling this example:
> -  https://godoc.org/github.com/apache/arrow/go/arrow#example-package--Table
> to wasm.
> compilation went fine:
>
> $> GOOS=js GOARCH=wasm go build -o foo.wasm foo.go
> $> go-wasm ./foo.wasm
> rec[0]["f1-i32"]: [1 2 3 4 5]
> rec[0]["f2-f64"]: [1 2 3 4 5]
> rec[1]["f1-i32"]: [6 7 8 (null) 10]
> rec[1]["f2-f64"]: [6 7 8 9 10]
> rec[2]["f1-i32"]: [11 12 13 14 15]
> rec[2]["f2-f64"]: [11 12 13 14 15]
> rec[3]["f1-i32"]: [16 17 18 19 20]
> rec[3]["f2-f64"]: [16 17 18 19 20]
>
> and it ran fine once this patch was added:
> - https://github.com/apache/arrow/pull/3707
>
> hth,
> -s
>
> PS: go-wasm is an alias of mine for this file:
> https://github.com/golang/go/blob/master/misc/wasm/go_js_wasm_exec
>
>
> > Brian
> >
> > [1] https://github.com/apache/arrow/pull/3350
> > [2] https://github.com/jpmorganchase/perspective
> > [3] https://github.com/rustwasm/team
> >
> > On Tue, Feb 19, 2019 at 11:06 AM Franco Nicolas Bellomo <
> > fnbell...@gmail.com>
> > wrote:
> >
> > > Hi!
> > >
> > > Actually, Apache Arrow have a really nice implementation on Rust. I
> > > try to compile this to webAssembly but I have a problem with libc. I
> > > understand that this is a general problem of libc and wasm.
> > > In the road map of Arrow, you plan support wasm?
> > >
> > > Thanks!!
> > >
> >

Reply via email to