Re: [go-nuts] developing local packages with modules

2020-06-07 Thread 'Michael Stiller' via golang-nuts
Hi, if the you want to use is on the local system you can add something like this to the go.mod file: replace github.com/yourrepo/module => ../pkg/module See also here: https://thewebivore.com/using-replace-in-go-mod-to-point-to-your-local-module/ and here: https://starkandwayne.com/blog/sw

Re: [go-nuts] tail -F with cmd.StdoutPipe, tail blocks in write

2020-05-16 Thread 'Michael Stiller' via golang-nuts
>> >> tail is from coreutils 8.25-2ubuntu3~16.04, kernel 4.4.0-1083-aws >> >> It looks like i cannot read lines that way and tail is blocking in write(1, >> ... > > Running "tail -F" never terminates. That's how it works. Your call > to Wait will never complete. Hi Ian, of course you are co

[go-nuts] tail -F with cmd.StdoutPipe, tail blocks in write

2020-05-16 Thread 'Michael Stiller' via golang-nuts
Hi, i try to read tailed lines of a logfile using this approach: if env.TailEnabled { log.Println("setup tail command") cmd := exec.Command("/usr/bin/tail", "-F", "logfile.log") log.Println("setup tail pipe") tailPipe, err := cmd.StdoutPipe() if err != nil { log.Fatalln("coul

Re: [go-nuts] link order in executable

2020-01-25 Thread 'Michael Stiller' via golang-nuts
Thank you Ian. Best regards, Michael > On 24. Jan 2020, at 22:19, Ian Lance Taylor wrote: > > On Fri, Jan 24, 2020 at 1:10 PM 'Michael Stiller' via golang-nuts > wrote: >> >> playing around with tamago i noticed that if i compile with this command: >>

[go-nuts] link order in executable

2020-01-24 Thread 'Michael Stiller' via golang-nuts
Hi, playing around with tamago i noticed that if i compile with this command: GO_EXTLINK_ENABLED=0 CGO_ENABLED=0 GOOS=tamago GOARM=6 GOARCH=arm \ ${TAMAGO} build -ldflags "-v -T 0x8000 -E _rt0_arm_tamago -R 0x1000" $@ The generated (elf) binary has the following symbols: nm main | sort |

Re: [go-nuts] A question about performance when traverse the array with row-wise and column-wise

2019-09-29 Thread 'Michael Stiller' via golang-nuts
On my machine using an intel 9880H with a L2 Cache: Unified, 256 KiB, 4-way set associative, rows vs. columns performance is basically the same as long as the array size fits into the L2 cache. This seems to be the case for a rowSize = colSize = 180. For slightly higher values (190) the colum

Re: [go-nuts] sudo ./main command throwing error

2019-06-24 Thread 'Michael Stiller' via golang-nuts
Hi, i think sudo kills the LD_LIBRARY_PATH variable. But this is configurable, try something like: Defaultsenv_keep += “LD_LIBRARY_PATH" in /etc/sudoers and / or consult the sudo man page. Best regards, Michael > On 24. Jun 2019, at 18:48, Nitish Saboo wrote: > > Hi , > > I am u