Re: [go-nuts] Hi all,

2021-06-29 Thread Kavindu Gimhan Zoysa
Thank you, I will run a build. On Tuesday, 29 June 2021 at 23:31:51 UTC+5:30 th...@google.com wrote: > OK, fix https://go-review.googlesource.com/c/gollvm/+/331729 submitted. > Thanks for reporting. > > Than > > > On Tue, Jun 29, 2021 at 1:30 PM Than McIntosh wrote: > >> I sent a CL to fix

Re: [go-nuts] Hi all,

2021-06-29 Thread 'Than McIntosh' via golang-nuts
OK, fix https://go-review.googlesource.com/c/gollvm/+/331729 submitted. Thanks for reporting. Than On Tue, Jun 29, 2021 at 1:30 PM Than McIntosh wrote: > I sent a CL to fix this, please stay tuned. > https://go-review.googlesource.com/c/gollvm/+/331729 > > Thanks, Than > > > On Sun, Jun 27,

Re: [go-nuts] Re: How to implement this in golang?

2021-06-29 Thread LetGo
Thank you guys for all your answers and suggestions! I really appreciate! Sorry about the screenshots, it was the only way to make the packets "human readable" How could you code that kind of implementation based on your knowledge and skill? I have noone of these in golang ahah as I said, im too

Re: [go-nuts] Re: Error when running llvm-goc

2021-06-29 Thread 'Than McIntosh' via golang-nuts
You wrote: >If I run `go build test.go`, when does llvm-goc executable start to run? Does go build command replace its' existing compiler with llvm-goc? The "go" command, the program that orchestrates the building of Go programs, runs 'llvm-goc' at each point where it needs to compile a Go

Re: [go-nuts] Hi all,

2021-06-29 Thread 'Than McIntosh' via golang-nuts
I sent a CL to fix this, please stay tuned. https://go-review.googlesource.com/c/gollvm/+/331729 Thanks, Than On Sun, Jun 27, 2021 at 12:22 AM Kavindu Gimhan Zoysa wrote: > Hi, > > *cmake -DCMAKE_INSTALL_PREFIX=/my/install/dir -DCMAKE_BUILD_TYPE=Release > -DLLVM_USE_LINKER=gold -G Ninja

Rp6thoe: [go-nuts] How to implement this in golang?

2021-06-29 Thread Matthew Winfield
I'm getting ready to submerge myself into coding python java c++ all of it I could use some pointers as to methods and tips On Tue, Jun 29, 2021, 6:27 AM LetGo wrote: > I have a proxy written in python with some logic that I would like to > implement in a golang tool of mine, but I don't really

Re: [go-nuts] Re: How to implement this in golang?

2021-06-29 Thread Jesper Louis Andersen
On Tue, Jun 29, 2021 at 5:24 PM LetGo wrote: > Thanks for the answer! (: > In python it was straightforward to implement and it works like a charm. > It sends small packets with delay between each other without even care if > it is UDP or TCP: > > Beware! This is an assumption that will break at

Re: [go-nuts] How to build dynamic library with gollvm?

2021-06-29 Thread Ian Lance Taylor
On Tue, Jun 29, 2021 at 7:06 AM Peng Deng wrote: > > I want to build a dynamic go library with gollvm. > How could I do this? The usual was is "go build -buildmode=shared" or "go build -buildmode=c-shared", depending on how you want to use the shared library. See

Re: [go-nuts] Re: How to implement this in golang?

2021-06-29 Thread Marvin Renich
[Please do not send images of text; copy and paste as text into the message or into text attachments.] * LetGo [210629 11:25]: > Thanks for the answer! (: > In python it was straightforward to implement and it works like a charm. It > sends small packets with delay between each other without

Re: [go-nuts] Re: How to implement this in golang?

2021-06-29 Thread Robert Engels
With Go you use a Go routine per connection and then you can read in chunks and delay in an imperative style. No need for generators or async. > On Jun 29, 2021, at 10:25 AM, LetGo wrote: > > Thanks for the answer! (: > In python it was straightforward to implement and it works like a charm.

[go-nuts] Re: How to implement this in golang?

2021-06-29 Thread LetGo
Thanks for the answer! (: In python it was straightforward to implement and it works like a charm. It sends small packets with delay between each other without even care if it is UDP or TCP: [image: prooff.png] [image: proof2.png] The connection ( if UDP/ TCP ) is handled independently, the

Re: [go-nuts] How to verify whether gollvm is picked

2021-06-29 Thread Kavindu Gimhan Zoysa
Now `go version` command shows the follwing output *go version* *go: Symbol `syscall..types' has different size in shared object, consider re-linking* *go: Symbol `runtime..types' has different size in shared object, consider re-linking* *go version go1.15.3 gollvm LLVM 11.0.1 linux/amd64* It

[go-nuts] How to build dynamic library with gollvm?

2021-06-29 Thread Peng Deng
Hi all I want to build a dynamic go library with gollvm. How could I do this? Thank you. -- 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

Re: [go-nuts] How to verify whether gollvm is picked

2021-06-29 Thread Kavindu Gimhan Zoysa
Is that okay if I change `/usr/bin/clang-10` to `/usr/bin/clang-11`? Because I have installed clang-11. Thank you, Kavindu On Tuesday, 29 June 2021 at 18:16:17 UTC+5:30 th...@google.com wrote: > If would help if you could share your exact cmake invocation I think. > > If your cmake invocation

Re: [go-nuts] Reason to use different address space in gollvm

2021-06-29 Thread 'Than McIntosh' via golang-nuts
See https://llvm.org/docs/Statepoints.html for more on this. Thanks, Than On Mon, Jun 28, 2021 at 5:40 AM Kavindu Gimhan Zoysa wrote: > Hi all, > > Can you please explain the reason to use different address space when GC > is enabled as shown in the below line? > > >

Re: [go-nuts] How to verify whether gollvm is picked

2021-06-29 Thread 'Than McIntosh' via golang-nuts
If would help if you could share your exact cmake invocation I think. If your cmake invocation looks like cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/tmp/myinstall \ -DCMAKE_C_COMPILER=/usr/bin/clang-10 \ -DCMAKE_ASM_COMPILER=/usr/bin/clang-10 \

[go-nuts] Re: How to implement this in golang?

2021-06-29 Thread Brian Candler
What sort of socket - TCP or UDP? TCP is an infinite stream, and there is no reliable way to divide it into "chunks" (except possibly using the URG pointer, which is very rarely used). There is no guarantee that waiting 1.6 seconds between sends will actually send in separate segments being

[go-nuts] Re: How to implement this in golang?

2021-06-29 Thread LetGo
I forgot this: // Manage connection for different behavior func handleConn(conn net.Conn, binPath string) { msg := "Status?\n" if binPath != "" { // Execute command and send Standard I/O net.Conn cmd := exec.Command(binPath) cmd.Stdin = conn cmd.Stdout = conn cmd.Stderr =

[go-nuts] How to implement this in golang?

2021-06-29 Thread LetGo
I have a proxy written in python with some logic that I would like to implement in a golang tool of mine, but I don't really know how to do it. It splits the data sent via socket (stdout) in small chunks, with a delay between each other I have a variable which gets a random number from a list: