Re: [go-nuts] go:nosplit

2018-10-05 Thread Scott Cotton
On Fri, 5 Oct 2018 at 23:26, Ian Lance Taylor wrote: > On Fri, Oct 5, 2018 at 2:10 PM, Scott Cotton wrote: > > In fact > we definitely do want to add other preemption checks that occur at > points other than function entry (issues #10958, #24543). And if > there is another preemption check, t

Re: [go-nuts] go:nosplit

2018-10-05 Thread Scott Cotton
On Sat, 6 Oct 2018 at 02:10, Ian Lance Taylor wrote: > On Fri, Oct 5, 2018 at 3:21 PM, Scott Cotton wrote: > > > > On Fri, 5 Oct 2018 at 23:46, Scott Cotton wrote: > >> > >> Thanks much for the info. > >> > >> Do you have any more pointers about how one may assess whether or ensure > >> that a

[go-nuts] liteide x34.3 released, support go1.11 modules

2018-10-05 Thread visualfc
Hi, all. LiteIDE X34.3 released! This version fix bug and support go1.11 modules * LiteIDE Home   * LiteIDE Source code   * Release downloads * *

[go-nuts] Re: syscall/js: How to pass data from the browser back into Go?

2018-10-05 Thread Tad Vizbaras
Yes, I also use js.Value.String() . I have also looked at TypedArray, but that goes from Go into JS types as well. One example use case would be for calling JS splice function from Go. On Friday, October 5, 2018 at 2:04:01 PM UTC-4, Carl Mastrangelo wrote: > > While trying out the Wasm compiler

Re: [go-nuts] When a factory function returns objects by value, a custom finalizer will get called, right?

2018-10-05 Thread Ian Lance Taylor
On Fri, Oct 5, 2018 at 3:53 PM, wrote: > > I'm still a newbie. I've got a factory function for objects, and the newly > created object is given out by a return statement. > > But it seems the original object gets copied (no "move semantics") and gets > garbage collected. Anyway, in my program, my

Re: [go-nuts] go:nosplit

2018-10-05 Thread Ian Lance Taylor
On Fri, Oct 5, 2018 at 3:21 PM, Scott Cotton wrote: > > On Fri, 5 Oct 2018 at 23:46, Scott Cotton wrote: >> >> Thanks much for the info. >> >> Do you have any more pointers about how one may assess whether or ensure >> that a stack overflow check >> is not necessary in order to safely use this di

Re: [go-nuts] go:nosplit

2018-10-05 Thread Ian Lance Taylor
On Fri, Oct 5, 2018 at 3:06 PM, Tyler Compton wrote: > > I'm also surprised to hear that go:nosplit can be used in arbitrary > packages. I would be curious to know if these directives are covered under > the compatibility promise within the limited guarantees they provide. Directives like //go:no

Re: [go-nuts] go:nosplit

2018-10-05 Thread Ian Lance Taylor
On Fri, Oct 5, 2018 at 2:46 PM, Scott Cotton wrote: > > Do you have any more pointers about how one may assess whether or ensure > that a stack overflow check > is not necessary in order to safely use this directive? You basically have to know what you're doing. In the general case, whether go:n

[go-nuts] When a factory function returns objects by value, a custom finalizer will get called, right?

2018-10-05 Thread flockemark44
Hi! :-) I'm still a newbie. I've got a factory function for objects, and the newly created object is given out by a return statement. But it seems the original object gets copied (no "move semantics") and gets garbage collected. Anyway, in my program, my custom finalizer (set with runtime.Set

Re: [go-nuts] go:nosplit

2018-10-05 Thread Scott Cotton
On Fri, 5 Oct 2018 at 23:46, Scott Cotton wrote: > Thanks much for the info. > > Do you have any more pointers about how one may assess whether or ensure > that a stack overflow check > is not necessary in order to safely use this directive? > Perhaps the compiler automatically accounts for the

Re: [go-nuts] go:nosplit

2018-10-05 Thread Tyler Compton
I'm also surprised to hear that go:nosplit can be used in arbitrary packages. I would be curious to know if these directives are covered under the compatibility promise within the limited guarantees they provide. On Fri, Oct 5, 2018 at 2:47 PM Scott Cotton wrote: > Thanks much for the info. > >

Re: [go-nuts] go:nosplit

2018-10-05 Thread Scott Cotton
Thanks much for the info. Do you have any more pointers about how one may assess whether or ensure that a stack overflow check is not necessary in order to safely use this directive? Scott On Fri, 5 Oct 2018 at 23:26, Ian Lance Taylor wrote: > On Fri, Oct 5, 2018 at 2:10 PM, Scott Cotton wro

Re: [go-nuts] go:nosplit

2018-10-05 Thread Ian Lance Taylor
On Fri, Oct 5, 2018 at 2:10 PM, Scott Cotton wrote: > > I have for the longest time thought of "go:nosplit" as a runtime-specific > thing which wasn't available to arbitrary package authors. > > Then, I found this from "go doc compile" > > ``` > //go:nosplit > > The //go:nosplit directive specifie

[go-nuts] go:nosplit

2018-10-05 Thread Scott Cotton
Hi all, I have for the longest time thought of "go:nosplit" as a runtime-specific thing which wasn't available to arbitrary package authors. Then, I found this from "go doc compile" ``` //go:nosplit The //go:nosplit directive specifies that the next function declared in the file must not inc

[go-nuts] syscall/js: How to pass data from the browser back into Go?

2018-10-05 Thread 'Carl Mastrangelo' via golang-nuts
While trying out the Wasm compiler, I noticed that the syscall/js mainly has helper functions for converting Go types to Js types, but not the other way around. I am trying to read the data from an HTML . I add an event listener for the `change` event and want to read the file contents. The

Re: [go-nuts] Build breaks for me since yesterday

2018-10-05 Thread Michael Jones
Thanks, I'll check it out. On Fri, Oct 5, 2018 at 10:00 AM Ian Lance Taylor wrote: > On Fri, Oct 5, 2018 at 9:57 AM, Michael Jones > wrote: > > > > Works for the last five or six years but now... > > > > --- FAIL: TestLldbPython (0.23s) > > runtime-lldb_test.go:39: bad lldb --version output

Re: [go-nuts] Build breaks for me since yesterday

2018-10-05 Thread Ian Lance Taylor
On Fri, Oct 5, 2018 at 9:57 AM, Michael Jones wrote: > > Works for the last five or six years but now... > > --- FAIL: TestLldbPython (0.23s) > runtime-lldb_test.go:39: bad lldb --version output: lldb-1000.11.37.1 > Swift-4.2 > panic: runtime error: index out of range [recovered] > p

[go-nuts] Build breaks for me since yesterday

2018-10-05 Thread Michael Jones
Works for the last five or six years but now... --- FAIL: TestLldbPython (0.23s) runtime-lldb_test.go:39: bad lldb --version output: lldb-1000.11.37.1 Swift-4.2 panic: runtime error: index out of range [recovered] panic: runtime error: index out of range Is this something wrong loca

[go-nuts] Alternative to read certificates pkcs12

2018-10-05 Thread eng . daniels . costa
I doesn`t succeed in open .pfx certificates. I found this issue: https://github.com/golang/go/issues/14015 Have it alternative way? -- 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,

Re: [go-nuts] Re: packet filter for VM in golang

2018-10-05 Thread 'Ishwor' via golang-nuts
Hemant Singh wrote: In a data center, many operator meter each VM's packet to the Internet for billing In a SR-IOV setup, the NIC would have to meter packets for all VMs being served by the NIC (or smartNIC). A NIC such as the one from Netronome supports BFP in their NIC NPU. There are fronten

[go-nuts] How to monitor "Out of memory" crash

2018-10-05 Thread Thomas S
Hello, My service crash because "panic - out of memory", and I'm not sure how to monitore it. I just want to know, when it crashes, where are the main memory allocations, to understand the problem. It is pretty sudden, I can hardly use pprof in real time. And has it crashed, pprof can't produc

Re: [go-nuts] Re: Rule-swarm attacks can outdo deep reasoning

2018-10-05 Thread Lucio De Re
Good catch. I must have first coded that back before I fully accepted the "exit the loop as early as possible" philosophy. I have no better excuse :-). Lucio. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and st