Unsubscribe

2020-03-22 Thread Duan,Bing
Hi: Plz Unsubscribe me. Thanks! - To unsubscribe e-mail: dev-unsubscr...@spark.apache.org

Re: How to implement a "saveAsBinaryFile" function?

2020-01-17 Thread Duan,Bing
re will need to be serializable. // There's some magic to serializing the hadoop conf. see the hadoop wrapper class in the source val writer = FileSystem.get(null).create(new Path("s3://...")) bytes.foreach(b => writer.write(b)) writer.close() }) The more complicated but pretty approa

How to implement a "saveAsBinaryFile" function?

2020-01-16 Thread Duan,Bing
Hi all: I read binary data(protobuf format) from filesystem by binaryFiles function to a RDD[Array[Byte]] it works fine. But when I save the it to filesystem by saveAsTextFile, the quotation mark was be escaped like this: "\"20192_1\"",1,24,0,2,"\"S66.000x001\””,which should be

unsubscribe

2019-09-09 Thread Duan,Bing
Unsubscribe. 发自我的小米手机 在 2019年9月10日 上午8:32,Matei Zaharia 写道: Hi all, The Spark PMC recently voted to add several new committers and one PMC member. Join me in welcoming them to their new roles! New PMC member: Dongjoon Hyun New committers: Ryan Blue, Liang-Chi Hsieh, Gengliang Wang, Yuming

unsubscribe

2019-08-05 Thread Duan,Bing
unsubscribe. - To unsubscribe e-mail: dev-unsubscr...@spark.apache.org

Re: unsubscribe

2019-08-01 Thread Duan,Bing
unsubscribe On Aug 1, 2019, at 6:36 PM, abel palaty mailto:palatya...@gmail.com>> wrote:

Re: Remain an unused import function in wasm

2019-05-04 Thread Duan Bing
. One of the simplest ways would be use wasm-dis to > turn the module into text, when wasm-as to re-assembly it after adding your > new imports and code. > > *From: *Duan Bing > *Date: *Fri, May 3, 2019 at 8:14 AM > *To: * > > Thanks, Floh. >> I didn't compile it int

Re: Remain an unused import function in wasm

2019-05-02 Thread Duan Bing
alled, but will not be removed because of > EMSCRIPTEN_KEEPALIVE > EMSCRIPTEN_KEEPALIVE void dummy_imports(void) { > foo(); > } > > But as I said, this is complete guess. > > On Thursday, 2 May 2019 16:22:28 UTC+2, Duan Bing wrote: >> >> Thanks, Floh.

Re: Remain an unused import function in wasm

2019-05-02 Thread Duan Bing
l C functions > from the JS side). > > On Thursday, 2 May 2019 08:16:43 UTC+2, Duan Bing wrote: >> >> I declare an external function in C source file, but never used by the >> code, then compile it to wasm by EMCC. there is no doubt the external >> function will b

Remain an unused import function in wasm

2019-05-02 Thread Duan Bing
I declare an external function in C source file, but never used by the code, then compile it to wasm by EMCC. there is no doubt the external function will be eliminated by the compiler. Is there any approach to keep this external function and then be compiled to an import function in wasm? The

Re: Can I generate the external function declaration in the specific module?

2019-02-14 Thread Duan Bing
gt; On Tue, Feb 12, 2019 at 11:09 PM Duan Bing > > wrote: > >> I write a C source file, declare an external function by >> extern "C" int say_hello(const char*, int); >> >> So after compiling by `emcc`, I got >> >> (import "env&qu

Can I generate the external function declaration in the specific module?

2019-02-12 Thread Duan Bing
I write a C source file, declare an external function by extern "C" int say_hello(const char*, int); So after compiling by `emcc`, I got (import "env" "_say_hello" (func (;30;) (type 1))) in the math.wast. Everything is ok for now. but I want to change the module of _say_hello to another