Re: [go-nuts] Re: [ANN] star-tex: a Go engine for TeX

2021-02-21 Thread Sebastien Binet
Hi Patrick, Nice! Did you manually translated it or was it done with some tooling? -s Original Message On Feb 21, 2021, 07:43, Patrick < std...@gmail.com> wrote: Hi Sebastien, a few years ago I started with dvitype https://github.com/speedata/gotex Patrick Sebastien Binet

Re: [go-nuts] Code markup in golang-nuts

2021-02-21 Thread Shulhan
> On 21 Feb 2021, at 14.52, Amnon wrote: > > Slightly off topic. > But is there any way to enhance google groups so that it will support > Markdown? Not that I know of. Google groups is mailing list, any thing in and out would be by/for email clients, which is not specific to Google groups.

Re: [go-nuts] [generics] type switches

2021-02-21 Thread 'Axel Wagner' via golang-nuts
On Sun, Feb 21, 2021 at 4:44 AM thepud...@gmail.com wrote: > In any event, I am curious about the latest thinking and/or latest status. > If this has been discussed at length elsewhere since that August thread, I > would be happy for a pointer if anyone has one. > I think for the most part, you

Re: [go-nuts] Re: Unable to find small memory leak

2021-02-21 Thread Miles Hex
Hi, thanks to everyone for the suggestions, It seems that there is in fact not a memory leak (still not totally sure), but for some reason, the go runtime keeps allocating memory event when is not needed, I think the problem is in the interaction from the memory model of the go runtime with a L

Re: [go-nuts] Error handling

2021-02-21 Thread Wojciech S. Czarnecki
Dnia 2021-02-20, o godz. 16:48:09 Michael MacInnis napisał(a): > I can tell you most emphatically that I am not proposing not checking > and/or not handling errors. I did not stated that you won't. Cited piece was directed at "just return err" code stressing that it is not that common in the pr

Re: [go-nuts] Code markup in golang-nuts

2021-02-21 Thread Wojciech S. Czarnecki
Dnia 2021-02-20, o godz. 23:52:04 Amnon napisał(a): > Slightly off topic. > But is there any way to enhance google groups so that it will support > Markdown? GGroups are n web interface to *mailing lists*. Most pros is subscribed via mail, some (as me) using only MTAs that pass through only pla

Re: [go-nuts] Data Structure in Go

2021-02-21 Thread Rahul kauraiya
Thanks for the information. On Fri, 19 Feb, 2021, 11:07 pm Marcin Romaszewicz, wrote: > What are you looking to learn about data structures? Data structures in Go > work the same as in any other language conceptually, just the language > syntax to implement the concepts will be different. One of

Re: [go-nuts] Re: [ANN] star-tex: a Go engine for TeX

2021-02-21 Thread Patrick
Hi Sebastien, that was a manual translation of the web file. My plan was to do more than that, ... TeX is such a beast. Patrick -- 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, s

Re: [go-nuts] Re: [ANN] star-tex: a Go engine for TeX

2021-02-21 Thread Sebastien Binet
On Sun Feb 21, 2021 at 17:46 CET, Patrick wrote: > Hi Sebastien, > > that was a manual translation of the web file. > My plan was to do more than that, ... TeX is such a beast. yeah... "how hard would it be to translate ~20k lines of C/C++ code (or 6k lines of obfuscated Pascal code) into a set of

Re: [go-nuts] Re: [ANN] star-tex: a Go engine for TeX

2021-02-21 Thread Patrick
My problem with the TeX code base was that TeX is mainly spaghetti code (once untangled) and has many places where one would rather use Go code instead of the 'hacks' DEK has used to ensure compatibility (for example the ASCII input/output). So it is really hard to follow the code. And from th

Re: [go-nuts] Error handling

2021-02-21 Thread robert engels
Can someone please explain the benefit of ‘error return’ over ‘checked exceptions’ ? I have made the point a few times and it goes to crickets - I have to believe that is because there is none, or it is difficult to communicate. The ‘handle where they occur claim’ is weak, as you can handle exc

Re: [go-nuts] Re: [ANN] star-tex: a Go engine for TeX

2021-02-21 Thread Sebastien Binet
On Sun Feb 21, 2021 at 18:19 CET, Patrick wrote: > My problem with the TeX code base was that TeX is mainly spaghetti code > (once untangled) and has many places where one would rather use Go code > instead of the 'hacks' DEK has used to ensure compatibility (for example the > ASCII input/output).

Re: [go-nuts] [ANN] star-tex: a Go engine for TeX

2021-02-21 Thread Bakul Shah
On Feb 21, 2021, at 9:14 AM, Sebastien Binet wrote: > > On Sun Feb 21, 2021 at 17:46 CET, Patrick wrote: >> Hi Sebastien, >> >> that was a manual translation of the web file. >> My plan was to do more than that, ... TeX is such a beast. > > yeah... "how hard would it be to translate ~20k lines

[go-nuts] Link Go againsta a static 32 bit 3rd party library

2021-02-21 Thread Luis Furquim
Hello gophers, I am reposting here the question I just made on Stack Overflow at https://stackoverflow.com/questions/66305363/link-go-against-a-static-32-bit-3rd-party-library I don't know if it is acceptable posting there and here. I saw that sometimes people ask here and in the Golang developer

[go-nuts] How to version a module that's not providing a stable API?

2021-02-21 Thread Juliusz Chroboczek
Hi, I'm working on an application (a thing with a "main" function) that has a user-visible version. Since the internal modules of the project do not have any backwards compatibility between versions, I've been tagging releases with versions that the Go tools won't recognise (galene-0.3 instead of

[go-nuts] Re: Link Go againsta a static 32 bit 3rd party library

2021-02-21 Thread ma...@eliasnaur.com
On Sunday, 21 February 2021 at 19:08:16 UTC+1 Luis Furquim wrote: > > That seems to me that when I set GOARCH=386 it disables CGO, silently > ignoring any code that references to C symbols. > > > Go disables Cgo when cross-compiling (GOARCH is different from your native GOARCH). You can enable

[go-nuts] Couldn't able to establish Web Socket connection when server and client running as containers in different hosts

2021-02-21 Thread thatipelli santhosh
Hi Everyone, Server and client both are developed in go. I am using *github.com/gorilla/websocket *library to establish a web socket connection. My server is running on port 8080 as docker container and my client (cli tool) is running as docker container in an

[go-nuts] no generic ?

2021-02-21 Thread alex-coder
Hi all ! I'm just a beginner in Golang and I see a discussion in regards to introduce generics into Go. But is it possible to provide an example where it is impossible to use interface instead of generic ? Thank you in advance. -- You received this message because you are subscribed to the Goog

Re: [go-nuts] Re: go get not working in Go 1.16

2021-02-21 Thread Richard Grosman
Please refer to this blog post https://blog.golang.org/using-go-modules to get to know why go modules are better than using GOPATH (primarly for not messing with the import paths). You are free to setup a local repository (localhost) by issuing the following commands in your project directory o

[go-nuts] [ANN] New Go video course on YouTube

2021-02-21 Thread Matt KØDVB
I've just completed my project to make a recording of my Go class and the videos are all now available (ad-free) on YouTube: https://www.youtube.com/playlist?list=PLoILbKo9rG3skRCj37Kn5Zj803hhiuRK6 This class is suitable for folks who already know how to program in another language.It covers th

[go-nuts] Re: Link Go againsta a static 32 bit 3rd party library

2021-02-21 Thread Luis Furquim
Great! It works! May I post your answer (also giving the credits) on stack overflow? Thank you! Luis Otavio Em domingo, 21 de fevereiro de 2021 às 15:32:47 UTC-3, ma...@eliasnaur.com escreveu: > On Sunday, 21 February 2021 at 19:08:16 UTC+1 Luis Furquim wrote: > >> >> That seems to me that when

Re: [go-nuts] no generic ?

2021-02-21 Thread Ian Lance Taylor
On Sun, Feb 21, 2021 at 1:02 PM alex-coder wrote: > > I'm just a beginner in Golang and I see a discussion in regards to introduce > generics into Go. > But is it possible to provide an example where it is impossible to use > interface instead of generic ? Please see https://blog.golang.org/why

Re: [go-nuts] Re: Link Go againsta a static 32 bit 3rd party library

2021-02-21 Thread Elias Naur
On Sun, Feb 21, 2021, 22:03 Luis Furquim wrote: > Great! It works! > May I post your answer (also giving the credits) on stack overflow? > Sure. No credit necessary, you're doing the work of posting it :) Elias -- You received this message because you are subscribed to the Google Groups "go

Re: [go-nuts] Error handling

2021-02-21 Thread Ian Lance Taylor
On Sun, Feb 21, 2021 at 9:23 AM robert engels wrote: > > Can someone please explain the benefit of ‘error return’ over ‘checked > exceptions’ ? I have made the point a few times and it goes to crickets - I > have to believe that is because there is none, or it is difficult to > communicate. As

Re: [go-nuts] Error handling

2021-02-21 Thread robert engels
See below: > On Feb 21, 2021, at 3:17 PM, Ian Lance Taylor wrote: > > On Sun, Feb 21, 2021 at 9:23 AM robert engels wrote: >> >> Can someone please explain the benefit of ‘error return’ over ‘checked >> exceptions’ ? I have made the point a few times and it goes to crickets - I >> have to be

Re: [go-nuts] Error handling

2021-02-21 Thread Ian Lance Taylor
On Sun, Feb 21, 2021 at 3:01 PM robert engels wrote: > > > On Feb 21, 2021, at 3:17 PM, Ian Lance Taylor wrote: > > > > On Sun, Feb 21, 2021 at 9:23 AM robert engels wrote: > >> > >> Can someone please explain the benefit of ‘error return’ over ‘checked > >> exceptions’ ? I have made the point

Re: [go-nuts] Error handling

2021-02-21 Thread Ian Davis
On Sun, 21 Feb 2021, at 5:23 PM, robert engels wrote: > Can someone please explain the benefit of ‘error return’ over ‘checked > exceptions’ ? I have made the point a few times and it goes to crickets > - I have to believe that is because there is none, or it is difficult > to communicate. > I

Re: [go-nuts] Error handling

2021-02-21 Thread Robert Engels
That’s a very fair ask. I will work up some code and it will be interesting to see how much they actually differ. I do think that the differences will be more apparent in the handling of errors during processing - eg Scan() - than during resource acquisition/initialization. > On Feb 21, 2021

Re: [go-nuts] Go Documentation for private github projects

2021-02-21 Thread Sankar
On Saturday, 20 February 2021 at 15:58:30 UTC+5:30 mb0 wrote: > Hi, > this January a fork of gddo was was announced to this list. Take a look > https://godocs.io/ > Thanks a lot. This seems handy. > > Best regards > > On 20.02.21 08:13, Sankar P wrote: > > Hi > > > > We have a bunch of