Re: [go-nuts] Obtaining compiled module information at run time

2019-01-21 Thread Maxim Khitrov
Info > > On Mon, 21 Jan 2019 at 02:50, Maxim Khitrov wrote: >> >> I was working on a tool that needed to know the file system paths and >> version information of some of its dependencies from go.mod for code >> generation. I couldn't find any official way of obtainin

[go-nuts] Obtaining compiled module information at run time

2019-01-20 Thread Maxim Khitrov
I was working on a tool that needed to know the file system paths and version information of some of its dependencies from go.mod for code generation. I couldn't find any official way of obtaining these (debug/gosym was close, but didn't work for the current binary on any OS), so I wrote this packa

[go-nuts] Performance difference between named and literal stack variables

2018-09-09 Thread Maxim Khitrov
I'm curious about why go 1.11 compiler is doing different things for functions f1 and f2 in the following example: type T [512]byte //go:noinline func use(*T) {} func f1() { s := T{} use(&s) } func f2() { use(&T{}) } T{} stays on the stack in both cases according to -gcflags=-m, but b

[go-nuts] Go 1.11 module cache not safe for concurrent use?

2018-08-28 Thread Maxim Khitrov
I'm running into non-deterministic errors when I try to build multiple binaries from the same module with goreleaser in a CI/CD system. Here are some examples: go: finding github.com/pkg/browser v0.0.0-20170505125900-c90ca0c84f15 go: github.com/pkg/browser@v0.0.0-20170505125900-c90ca0c84f15: git f

Re: [go-nuts] [ANN] gomacro v2.6 - interactive Go interpreter, now with debugger

2018-04-29 Thread Maxim Khitrov
o compiler, but it's > usually still a major task, > especially if it involves modifying the "poor man's compiler" fast.Comp > which converts a parsed ast.Node into a tree of function closures for > execution. > > If you have a specific example in mind and you describe it

Re: [go-nuts] [ANN] gomacro v2.6 - interactive Go interpreter, now with debugger

2018-04-28 Thread Maxim Khitrov
Do you have examples of adding custom ":xyz" or other language extensions? Also, are you still deciding what to do with the license (I see there is an open issue about it)? I was thinking of using gomacro for an internal project at work, but use of LGPL libraries is not allowed, unfortunately. On

Re: [go-nuts] pure-Go MATLAB file I/O package ?

2016-07-07 Thread Maxim Khitrov
Maybe you already know this, but that PDF seems to cover the format that was used by MATLAB Version 5 (R8). Versions since R2006b use an HDF5-based format: https://www.mathworks.com/help/matlab/import_export/mat-file-versions.html Unless you only need to work with the old format, you should look