Re: [go-nuts] List of source code files of a Go binary

2025-01-01 Thread Tharaneedharan Vilwanathan
> > If the binary's pclntab has been tampered with, e.g by compiling the > source code with garble[4], then all bets are off, of course. > > [1] https://sourceware.org/elfutils/ > [2] https://github.com/goretk/redress > [3] https://github.com/goretk/gore > [4] https://

[go-nuts] List of source code files of a Go binary

2024-12-31 Thread Tharaneedharan Vilwanathan
Hi All, I have a quick question. Is there a way to get the list of source code files of a Go binary? Here is one solution I got: $ strings /home/dharani/go1.22.6.linux-amd64/go/bin/gofmt | grep "\.go$"| sort -ur unicode/utf8/utf8.go unicode/tables.go unicode/letter.go unicode/graphic.go unicode/

Re: [go-nuts] Best IDE for GO ?

2023-08-19 Thread Tharaneedharan Vilwanathan
Just my opinion. I believe Visual Studio Code (VSC) is really good, given that it is available on multiple platforms and it's free. Thanks Dharani On Sat, Aug 19, 2023 at 11:21 AM Robert Engels wrote: > The power of IDEs is the ease of refactoring and integration with other > build tools (git,

Re: [go-nuts] Go 1.21 new builtin function clear()

2023-07-05 Thread Tharaneedharan Vilwanathan
een this question come up four > times now), so it probably should be clarified a bit. > > On Wed, Jul 5, 2023 at 9:06 AM Tharaneedharan Vilwanathan < > vdhar...@gmail.com> wrote: > >> Hi All, >> >> Go 1.21 introduces a new clear() builtin function. I see th

[go-nuts] Go 1.21 new builtin function clear()

2023-07-05 Thread Tharaneedharan Vilwanathan
Hi All, Go 1.21 introduces a new clear() builtin function. I see this text in https://tip.golang.org/ref/spec#Clear: clear(t) type parameter see below If the argument type is a type parameter , all types in its type set must be maps or

[go-nuts] Question on cover tool

2023-02-12 Thread Tharaneedharan Vilwanathan
Hi, I was trying the cover tool with this: https://go.dev/blog/cover. I got the HTML output that I can browse and get the coverage (count) details but I am wondering if there is a way to see the count of each line along with the actual line in text output format (i.e. not html). I see this example

Re: [go-nuts] Processor cores

2022-05-15 Thread Tharaneedharan Vilwanathan
Thanks Robert! Regards dharani On Sun, May 15, 2022 at 3:53 PM robert engels wrote: > No it does not. See runtime/proc.go if you want to learn more. > > On May 15, 2022, at 5:28 PM, Tharaneedharan Vilwanathan < > vdhar...@gmail.com> wrote: > > Hi All, > >

[go-nuts] Processor cores

2022-05-15 Thread Tharaneedharan Vilwanathan
Hi All, I have a quick question about processor core usage. Many processors like ARM, Apple and Intel have performance and efficiency cores. Does Go scheduler recognize these cores as different types and treat them accordingly? Or is it something that the OS deals with and a Go program has no con

[go-nuts] Re: [golang-dev] Go 1.18 is released

2022-03-15 Thread Tharaneedharan Vilwanathan
Great! Thank you all! Regards dharani On Tue, Mar 15, 2022 at 10:56 AM Heschi Kreinick wrote: > Hello gophers, > > We just released Go 1.18 > > To find out what has changed in Go 1.18, read the release notes: > https://golang.org/doc/go1.18 > > You can download binary and source distributions

Re: [go-nuts] Graphics/Image example programs

2021-06-27 Thread Tharaneedharan Vilwanathan
Thanks Nigel! I found this one also: https://github.com/veandco/go-sdl2 Let me try these things. Regards dharani On Sun, Jun 27, 2021 at 5:17 PM Nigel Tao wrote: > On Sun, Jun 27, 2021 at 8:44 AM Tharaneedharan Vilwanathan < > vdhar...@gmail.com> wrote: > >> But

[go-nuts] Graphics/Image example programs

2021-06-26 Thread Tharaneedharan Vilwanathan
Hi, I am trying to get my programs up-to-date. I am looking for simple graphics/image example programs for X11 and OpenGL. I have difficulty running my old programs in Ubuntu 20.04 and newer versions. It can be as simple as something like what we see here: https://stackoverflow.com/questions/4907

Re: [go-nuts] Re: Generics - please provide real life problems

2020-12-24 Thread Tharaneedharan Vilwanathan
Hi, This is not a real life problem but I think this is a real life problem in the software industry and a problem for developers. I saw this for Swift (this is just an example): https://github.com/raywenderlich/swift-algorithm-club I was always wondering if Go can have something like this. One

Re: [go-nuts] Apple M1 chip based computers

2020-11-10 Thread Tharaneedharan Vilwanathan
; Probably compiling from sources should work, but we’ll have to see as > machines become available to the community > > Silas > > > On 10 Nov 2020, at 21:32, Tharaneedharan Vilwanathan > wrote: > > > > Hi All, > > > > Sorry if this has been discussed a

[go-nuts] Apple M1 chip based computers

2020-11-10 Thread Tharaneedharan Vilwanathan
Hi All, Sorry if this has been discussed and I missed it. I have a quick question. Does Go have native support for Apple M1 chip? Regards dharani -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

Re: [go-nuts] template

2020-07-23 Thread Tharaneedharan Vilwanathan
Hi Lutz, Sorry I was not clear earlier. Yes, this is regarding Go HTML template. We use beego and HTML templates under that. We generally use nested templates in which we have nested if conditions as needed and for loop (range). We also do some minor computation, etc. I feel over time, the temp

[go-nuts] template

2020-07-21 Thread Tharaneedharan Vilwanathan
Hi All, I am running a website for which we use templates. While I see the benefit of templates, I also notice that it has gotten ugly over time. So, here are my questions: - Are templates popular? Or do you avoid using it? - Any do's and don'ts? Any best practices? - Any suggestions on formatt

Re: [go-nuts] New Go API for protobuf

2020-04-17 Thread Tharaneedharan Vilwanathan
eterClient Am I the only one seeing this issue? Did I make any mistake? Regards dharani On Fri, Apr 17, 2020 at 12:40 AM Tharaneedharan Vilwanathan < vdhar...@gmail.com> wrote: > Thank you all for the response. I changed the version to 1.4.0 for > protobuf in grpc. I think it works f

Re: [go-nuts] New Go API for protobuf

2020-04-17 Thread Tharaneedharan Vilwanathan
, which would cause grpc to be built >> with the new implementation. >> >> JT >> >> On Monday, April 13, 2020 at 3:50:13 PM UTC-7, Ian Lance Taylor wrote: >>> >>> [ + joetsai ] >>> >>> On Mon, Apr 13, 2020 at 3:41 PM Tharaneedharan V

[go-nuts] New Go API for protobuf

2020-04-13 Thread Tharaneedharan Vilwanathan
Hi, I have a quick question. I was going through this: https://blog.golang.org/protobuf-apiv2 I would like to know if grpc is using this new version. To the extent I tried, it seemed to use the old API. Am I right? If so, how do I make grpc use the new API? Or am I missing something? Please let

Re: [go-nuts] Re: Learning Data Structures and algorithms with Golang

2019-04-14 Thread Tharaneedharan Vilwanathan
:) Can't believe the book is named with "Golang"! dharani On Sun, Apr 14, 2019 at 5:12 PM Rob Pike wrote: > Bhagvan: Please note that the language is called Go, not Golang. > > -rob > > > > On Mon, Apr 15, 2019 at 1:49 AM Robert Solomon wrote: > >> I actually find it useful to have these pos

Re: [go-nuts] Is WASM support planned in go 1.12 ?

2019-02-06 Thread Tharaneedharan Vilwanathan
Thanks, Russtopia and Ian! On Wed, Feb 6, 2019 at 1:07 PM Ian Denhardt wrote: > Quoting Tharaneedharan Vilwanathan (2019-02-06 15:30:51) > > >Somehow I was dreaming I can use Go for frontend too, instead of JS. > Is > >my thinking right? > > If that's yo

Re: [go-nuts] Is WASM support planned in go 1.12 ?

2019-02-06 Thread Tharaneedharan Vilwanathan
mo. > > On Feb 6, 2019, at 2:06 PM, Tharaneedharan Vilwanathan > wrote: > > > I have one more question. Has anyone used WASM in Go for something more > than small examples I managed to see and got them working? > > It was challenging to get it working and then I wasn&#x

Re: [go-nuts] Is WASM support planned in go 1.12 ?

2019-02-06 Thread Tharaneedharan Vilwanathan
I have one more question. Has anyone used WASM in Go for something more than small examples I managed to see and got them working? It was challenging to get it working and then I wasn't sure how it is used and how to use it for any bigger projects. Please share your thoughts. Regards dharani O

[go-nuts] Is tip.golang.org down?

2018-12-13 Thread Tharaneedharan Vilwanathan
I see this error message: builder.Init: build cache is disabled by GOCACHE=off, but required as of Go 1.12 exit status 1 Any problem? Regards dharani -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop rec

Re: [go-nuts] Re: Generics

2018-12-12 Thread Tharaneedharan Vilwanathan
/raywenderlich/swift-algorithm-club/blob/master/Stack/Stack.swift Hope someday we will have one like this for Go. Regards dharani On Wed, Dec 12, 2018 at 12:37 AM Tharaneedharan Vilwanathan < vdhar...@gmail.com> wrote: > This is great! Thanks for the details, michal! > > Regards >

Re: [go-nuts] Re: Generics

2018-12-12 Thread Tharaneedharan Vilwanathan
output file > -p name > output package name (default "main") > -prefix prefix > prefix to add to each global symbol > -suffix suffix > suffix to add to each global symbol > -t A=B > rename type A to B when A=B is passed

Re: [go-nuts] Re: Generics

2018-12-11 Thread Tharaneedharan Vilwanathan
https://github.com/clipperhouse/gen > > Making use of Go templates: > > https://github.com/ncw/gotemplate > https://github.com/droundy/gotgo > > Am Dienstag, 11. Dezember 2018 04:00:57 UTC+1 schrieb Tharaneedharan > Vilwanathan: >> >> Hi All, >> >>

Re: [go-nuts] Generics

2018-12-11 Thread Tharaneedharan Vilwanathan
to achieve; if there were a nice drop-in alternative > to generics in all circumstances already in the language, we probably > wouldn't be talking about adding them in the first place :P. > > Quoting Tharaneedharan Vilwanathan (2018-12-10 22:00:24) > >Hi All, > >

[go-nuts] Generics

2018-12-10 Thread Tharaneedharan Vilwanathan
Hi All, I have a quick question. What is the best choice for writing generic code till Go officially supports generics? Just looking for some guidance. Regards dharani -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this gr

Re: [go-nuts] protoc question

2018-11-18 Thread Tharaneedharan Vilwanathan
in > your PATH environment. But you can also use a --plugin flag to protoc to > tell it exactly where the plugin binary lives. > > > *Josh Humphries* > jh...@bluegosling.com > > > On Sun, Nov 18, 2018 at 4:57 PM Tharaneedharan Vilwanathan < > vdhar...@gmail.com&

[go-nuts] goyang question

2018-11-18 Thread Tharaneedharan Vilwanathan
Hi All, I have a quick question. I have a .yang file with this definition: leaf DummyEnumExample { mandatory false; type enumeration { enum zero; enum one { value 1; } enum seven { value 7; } } } I run the command: $ goyang --format proto ../yang/entry.yang > entry.proto It generates

[go-nuts] protoc question

2018-11-18 Thread Tharaneedharan Vilwanathan
Hi All, I have a minor question. When I run "protoc --help", I do not see "go_out" option but I see others: --cpp_out=OUT_DIR Generate C++ header and source. --csharp_out=OUT_DIRGenerate C# source file. --java_out=OUT_DIR Generate Java source file. --js_out=OUT_

Re: [go-nuts] [ANN] GoGi / Gide cross-platform GUI toolkit and IDE app

2018-11-12 Thread Tharaneedharan Vilwanathan
t; so if you get some kind of build error, please do the update and see if > that doesn’t fix it. > > - Randy > > > On Nov 12, 2018, at 2:11 PM, Tharaneedharan Vilwanathan < > vdhar...@gmail.com> wrote: > > > > Hi Randy, > > > > I have a quick ques

Re: [go-nuts] [ANN] GoGi / Gide cross-platform GUI toolkit and IDE app

2018-11-12 Thread Tharaneedharan Vilwanathan
Hi Randy, I have a quick question. Is there installation procedure? How do you install this? For example, this is what I get: Tharaneedharans-Mac-mini-2:examples dharani$ go get github.com/goki/gi can't load package: package github.com/goki/gi: no Go files in /Users/dharani/gopath/src/github.co

[go-nuts] protobuf spec file browser

2018-10-31 Thread Tharaneedharan Vilwanathan
Hi All, I am looking for a protobuf spec file browser much like Go source code browser using IDE like Visual Studio Code (VSC) or a web browser. I tried VSC but it only does syntax highlighting but it doesn't do things like "Go to definition". Any suggestions? Regards dharani -- You received t

Re: [go-nuts] database for protobuf - profanedb or similar

2018-10-31 Thread Tharaneedharan Vilwanathan
Thank you all for the response. Let me play with the options. Regards dharani > -- 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 golang-nuts+unsubscr...@googleg

[go-nuts] database for protobuf - profanedb or similar

2018-10-30 Thread Tharaneedharan Vilwanathan
Hi All, I am looking for a database for protobuf, preferably the one that fits Go environment better. I located profanedb. I am wondering if anyone tried it with Go and if there is any example code that I can take a look at. Also, please let me know if there is anything else I should try too. Reg

Re: [go-nuts] Re: do you use binary-only packages?

2018-10-18 Thread Tharaneedharan Vilwanathan
8, 2018 at 4:02 PM, Tharaneedharan Vilwanathan > wrote: > > > > This means source-code is the only way to share the work. When it > companies > > to sharing/selling their work on top of which others can build their > > app/solution, this won't work. Doesn

Re: [go-nuts] Re: do you use binary-only packages?

2018-10-18 Thread Tharaneedharan Vilwanathan
e Taylor wrote: > On Thu, Oct 18, 2018 at 2:20 PM, Tharaneedharan Vilwanathan > wrote: > > > > If this happens, by design, Go will not allow, say, a middleware company > to > > provide binary only distribution? > > Yes. There would be no way to for a company

Re: [go-nuts] Re: do you use binary-only packages?

2018-10-18 Thread Tharaneedharan Vilwanathan
Hi All, I have a quick question. I hope I am not off topic. If this happens, by design, Go will not allow, say, a middleware company to provide binary only distribution? Regards dharani On Thu, Oct 18, 2018 at 1:15 PM Ian Lance Taylor wrote: > On Thu, Oct 18, 2018 at 1:10 PM, Andrey Tcherepa

Re: [go-nuts] Re: YANG related Go tools/packages

2018-09-21 Thread Tharaneedharan Vilwanathan
guage bindings, > goyang (https://github.com/openconfig/goyang) the FIRST, > which has an .proto dumper example, too. > > I don't think this needed much Google-Fu... > > 2018. szeptember 22., szombat 1:40:39 UTC+2 időpontban Tharaneedharan > Vilwanathan a következőt írta: >

[go-nuts] YANG related Go tools/packages

2018-09-21 Thread Tharaneedharan Vilwanathan
Hi All, I am trying to get my hands dirty with YANG, converting yang to .proto, JSON, etc. Can someone give me some pointers on what packages I should try and/or provide some pointers? I tried to search and use but somehow I have trouble finding tutorials etc to begin with. Appreciate your help.

Re: [go-nuts] Announcing a Fyne GUI toolkit

2018-09-17 Thread Tharaneedharan Vilwanathan
Hi, Anyone having trouble installing on a Mac or am I alone? The bootstrapping part gives me trouble. Please let me know if I need to provide more details. Regards dharani On Mon, Sep 17, 2018 at 1:25 PM Andy Williams wrote: > Hi, > > I don’t know if it helps but I wrote a short document abo

Re: [go-nuts] Re: Upcoming Go protobuf release

2018-05-05 Thread Tharaneedharan Vilwanathan
Hi Joe, Thats, great to know! Thanks!! Regards dharani On Fri, May 4, 2018 at 10:40 AM Joe Tsai wrote: > The merge has happened on pull request #591 > <https://github.com/golang/protobuf/pull/591>. > > JT > > On Thu, May 3, 2018 at 4:01 PM Tharaneedharan Vilwanatha

Re: [go-nuts] Re: Upcoming Go protobuf release

2018-05-03 Thread Tharaneedharan Vilwanathan
Hi All, Can someone share some details on this code merge? Has this happened? How can I play with it? Thanks dharani ** *Hello gophers,* *This is an announcement that we will be merging the dev branch of github.com/golang/protobuf into mast

Re: [go-nuts] [ANN] Graph database

2018-01-10 Thread Tharaneedharan Vilwanathan
Hi, Did you forget to provide the link? Thanks dharani On Wed, Jan 10, 2018 at 6:36 AM, Luis Furquim wrote: > Hello Gophers, > > Just announcing my graph database called Linsang. It operates in embedded > way. No server/daemon. It has a main package which just defines the basis. > But the lin

[go-nuts] Building gopath packages

2017-08-30 Thread Tharaneedharan Vilwanathan
Hi All, Is there a simple way to build/rebuild all the packages in gopath? Something like a single command? Thanks dharani -- 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

Re: [go-nuts] CPU-intensive Go applications

2017-03-03 Thread Tharaneedharan Vilwanathan
Hi, Ian, thanks for the quick response and useful info. I will give it a try. Request you all to share more thoughts. Thanks dharani On Fri, Mar 3, 2017 at 2:54 PM, Ian Lance Taylor wrote: > On Fri, Mar 3, 2017 at 2:21 PM, Tharaneedharan Vilwanathan > wrote: > > > > I

[go-nuts] CPU-intensive Go applications

2017-03-03 Thread Tharaneedharan Vilwanathan
Hi All, I am working on some cpu-intensive Go applications. I want to avoid the scheduler from moving the tasks to various cores. I am trying to pin the code to specific CPU cores and see if I can get better, predictable performance. Is there any info available that documents various techniques,

Re: [go-nuts] Go UDP performance

2017-02-22 Thread Tharaneedharan Vilwanathan
nd) fmt.Printf("Pkts %d, Bytes %d, rate %d mbps\n", pkts, bytes, bytes*8/(1000*1000)) pkts = 0 bytes = 0 } } -- On Tue, Feb 21, 2017 at 3:51 AM, Konstantin Khomoutov < flatw...@users.sourceforge.net> wrote: > On Mon, 20 Feb 2017 13:02:15 -

[go-nuts] Go UDP performance

2017-02-20 Thread Tharaneedharan Vilwanathan
Hi All, I am trying to send a lot of UDP packets from Go code but I realized UDP performance is too low. The max I was able to do is about 160Mbps. This is in Ubuntu 16.10 on x86_64 (i7-6700HQ). I tried to google on this and it looks like this is about the performance we can get. I am a bit surpr

Re: [go-nuts] Go Roadmap

2017-02-17 Thread Tharaneedharan Vilwanathan
Great! Thanks, Ian! Regards dharani On Fri, Feb 17, 2017 at 12:40 PM, Ian Lance Taylor wrote: > On Fri, Feb 17, 2017 at 12:28 PM, Tharaneedharan Vilwanathan > wrote: > > > > I have trouble getting to know whats coming up in future Go releases. > > > > Can some

[go-nuts] Go Roadmap

2017-02-17 Thread Tharaneedharan Vilwanathan
Hi All, I have trouble getting to know whats coming up in future Go releases. Can someone tell me where to find this info? For example, where can I see whats new in Go 1.9? Thanks dharani -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To uns

Re: [go-nuts] Re: ARM server board

2016-10-23 Thread Tharaneedharan Vilwanathan
Okay, got it! Thanks dharani On Sun, Oct 23, 2016 at 4:59 PM, Dave Cheney wrote: > If you want to do power comparisons you should probably do an apples to > apples comparison. Just like you wouldn't deploy your app on an Intel > netbook powered by an ancient celeron, you wouldn't deploy your a

Re: [go-nuts] Re: ARM server board

2016-10-23 Thread Tharaneedharan Vilwanathan
to stick with intel servers for serious and demanding applications. Regards dharani On Sun, Oct 23, 2016 at 3:28 PM, Dave Cheney wrote: > > > On Monday, 24 October 2016 09:21:14 UTC+11, Tharaneedharan Vilwanathan > wrote: >> >> Hi Dave/All, >> >> Thanks for

Re: [go-nuts] Re: ARM server board

2016-10-23 Thread Tharaneedharan Vilwanathan
ferings. > > Note: the RPI3 is a 64bit capable arm64 processor, but currently is > restricted to run in 32bit mode. I do not know if/when this restriction > will be lifted. > > Thanks > > Dave > > > On Sunday, 23 October 2016 07:59:32 UTC+11, Tharaneedharan Vilwanathan

[go-nuts] ARM server board

2016-10-22 Thread Tharaneedharan Vilwanathan
Hi All, I am looking for a server type board with 64-bit ARM and more RAM (>2GB) that runs Ubuntu or similar. I want to run Go code in it. It shouldn't cost > $400. Any suggestions? Thanks dharani -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.