[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] no generic ?

2021-02-23 Thread alex-coder
> > Hello, >> >> thank you very much for clarification. >>> >> I'm just a beginner and come here to understand rationale behind the >>> decision. >> >> >>> Thank you so much ! >> >> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscrib

[go-nuts] No generic, part -2

2021-03-12 Thread alex-coder
Hello again, I apologize for being so intrusive. Where it is possible to read about the evaluations of labor and complexity for GO itself for different implementations to introduce generic in GO ? Thank you. -- You received this message because you are subscribed to the Google Groups "golan

Re: [go-nuts] No generic, part -2

2021-03-12 Thread alex-coder
or is the rationale behind the technical decision to understand why the sort of decision has been taken. Thank you again for the answers. On Saturday, March 13, 2021 at 7:15:06 AM UTC+3 Ian Lance Taylor wrote: > On Fri, Mar 12, 2021 at 7:31 AM alex-coder wrote: > > > > Hello ag

Re: [go-nuts] No generic, part -2

2021-03-13 Thread alex-coder
gt; >>> i personally never had a reason to use imaginary numbers in go, they are >>> however part of the language as literals and accompanied by special >>> built-ins. should i care, do you? >>> >>> please explain >>> >>> On 13.03.21 12:34, Spac

[go-nuts] Design patterns. builder ?

2021-03-31 Thread alex-coder
Hi All, I'm a novice to golang. looking for a commercial example of implementing the builder pattern in the context of the absence of dynamic dispatching in golang. Thank you. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

[go-nuts] Re: Design patterns. builder ?

2021-03-31 Thread alex-coder
Even not commercial but rather industrial. I have found at least 4 educational already. Thank you. On Wednesday, March 31, 2021 at 3:26:20 PM UTC+3 alex-coder wrote: > Hi All, > > I'm a novice to golang. > looking for a commercial example of implementing the builder pattern

[go-nuts] Re: Design patterns. builder ?

2021-03-31 Thread alex-coder
nsingo.com) <http://www.designpatternsingo.com/> (in spanish) Thank you. On Wednesday, March 31, 2021 at 4:55:48 PM UTC+3 alex-coder wrote: > Even not commercial but rather industrial. I have found at least 4 > educational already. > > Thank you. > > On Wednesday, March 31, 2021 at

Re: [go-nuts] Re: Design patterns. builder ?

2021-04-03 Thread alex-coder
Hi, thank you for everyone! The main point here is: "generally isn't needed", but sometimes structure does not come described properly in some kind of string representation. :-) the pair Func / funchandler - just excellent ! But what about other GO-4 patterns, I mean "isn't needed in go" ? Whe

[go-nuts] UML && Golang

2021-06-25 Thread alex-coder
Hi All ! I can't find an IDE that has a conversion tool from Golang code to uml diagrams. I will be very grateful for the link to. You see, the picture is worth a thousand words :-). Thank you. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

[go-nuts] UML && Golang, part 2 ?

2021-07-04 Thread alex-coder
Ok, folk, as I see UML is not very popular within the community. :-) But what do you use instead then ? Anyway it must be some tool to present the code as a picture. The picture is worth a thousand words :-). Thank you. -- You received this message because you are subscribed to the Google Group

Re: [go-nuts] UML && Golang, part 2 ?

2021-07-04 Thread alex-coder
Mercl: > On Sun, Jul 4, 2021 at 1:16 PM alex-coder wrote: > > > But what do you use instead then ? > > For what? > > In case it's not obvious, I never touched UML and I don't really > understand its utility. So I'm asking an honest question. Knowing t

[go-nuts] question about Profiling Go Programs sample.

2021-09-27 Thread alex-coder
Hi All, currently I walk through sample given there: Profiling Go Programs - go.dev but when I came at the point where the user should enter web command to the pprof I do not see that the function DFS call itself on a picture. Looks like I do use a proper version of t

[go-nuts] Re: question about Profiling Go Programs sample.

2021-09-28 Thread alex-coder
lationship between main.DFS and > its parent function, thus it "hangs" beneath the root node now. > > Keep in mind that the original post is almost 10 year old now. Some other > details might have changed as well. > > Cheers, > V. > > On Monday, September 27, 2021 a

[go-nuts] Re: question about Profiling Go Programs sample.

2021-09-29 Thread alex-coder
re cpuprof.go just appeared with the same result. :-) it should be something else. Regards. вторник, 28 сентября 2021 г. в 11:31:55 UTC+3, alex-coder: > Ok, thank you. > Vladimir, is there any resource to read about current and probably future > of the go profiling ? > In fact it

[go-nuts] Re: question about Profiling Go Programs sample.

2021-09-29 Thread alex-coder
, https://pkg.go.dev/net/http/pprof > [2]: https://github.com/google/pprof/tree/master/doc > [3]: https://github.com/golang/go/wiki/Performance > [4]: https://github.com/DataDog/go-profiler-notes > On Wednesday, September 29, 2021 at 1:59:10 PM UTC+2 alex-coder wrote: > >> Vladim

[go-nuts] Re: question about Profiling Go Programs sample.

2021-09-30 Thread alex-coder
a little bit more resources: golang pprof 实战 | Wolfogre's Blog <https://blog.wolfogre.com/posts/go-ppof-practice/> it seems to be in Chinese (I may be wrong), but thanks to google. четверг, 30 сентября 2021 г. в 09:55:17 UTC+3, alex-coder: > Hi > >>I think this is expecte

[go-nuts] Re: question about Profiling Go Programs sample.

2021-09-30 Thread alex-coder
Vladimir, one more question. Does it mean that it is impossible to display recursive call in web by use pprof, it is necessary to use some additional tool, right ? четверг, 30 сентября 2021 г. в 11:38:49 UTC+3, alex-coder: > a little bit more resources: > golang pprof 实战 | Wolfogre&

Re: [go-nuts] UML && Golang, part 2 ?

2021-11-13 Thread alex-coder
regards, > Satyendra > > On Sun, Jul 4, 2021, 9:15 PM alex-coder wrote: > >> Well, if there is a complex or not very complex system written in a >> programming language, >> using uml helps faster understand both the system and the dependencies >> and c

Re: [go-nuts] UML && Golang, part 2 ?

2021-11-15 Thread alex-coder
After all, I found that plantuml is more suitable for code visualization. If anyone is interested, you will find it there: https://plantuml.com/ Thank all for participation. суббота, 13 ноября 2021 г. в 19:43:20 UTC+3, alex-coder: > Satyendra, > >> https://github.com/ofabr

[go-nuts] Re: Java to Golang converter

2021-12-16 Thread alex-coder
The topic is very interesting, is anyone being worked on a subject ? Thank you. четверг, 11 мая 2017 г. в 21:19:13 UTC+3, dtr...@gmail.com: > > Java has vast number of libraries. > > Good thing is Golang is catching up with its own style. > > There are cases though where there is no equivalent l

[go-nuts] Java to Go converter - 2

2022-03-27 Thread alex-coder
After several months of switching from Java to Golang, it seemed to me that it would be interesting to make the translation of Java code into Golang automatically. The text below shows what has been done so far. The work is not a prototype, but rather indicates the possibility of achieving a res

[go-nuts] Re: Java to Go converter - 2

2022-04-04 Thread alex-coder
t it") default: fmt.Println("No, something is not right") } } fmt.Println("finally processing") }() (&ThrowException{}).runme() } type ThrowException struct{} func (throwException *ThrowException) run

[go-nuts] Re: Java to Go converter - 2

2022-04-07 Thread alex-coder
c (throwException *ThrowException) runme() { panic(Exception{"Exception"}) } type Exception struct { msg string } понедельник, 4 апреля 2022 г. в 14:12:37 UTC+3, alex-coder: > > > > > *Another use case for automatically translating codewritten in Java to > Golang is

[go-nuts] Re: Java to Go converter - 2

2022-04-28 Thread alex-coder
be about channel's. If anyone has an interesting example, write me, I'll think about how to solve it. I just can't promise that it will be quickly. :-) Thank you to all ! четверг, 7 апреля 2022 г. в 18:52:25 UTC+3, alex-coder: > Thanks for the comments about generating code to

[go-nuts] Re: Java to Go converter - 2

2022-05-17 Thread alex-coder
ad struct { Runnable } func (t *Thread) run(wg *sync.WaitGroup) { t.Runnable.run(wg) } type Runnable interface { run(wg *sync.WaitGroup) } The Go Playground, you can run code there: Go Playground. <https://go.dev/play/p/o7tXt8p2m_3> Thank you to all very much. четверг, 28 апреля 2022 г.

[go-nuts] Re: Java to Go converter - 2

2022-05-18 Thread alex-coder
essing the > same model/algorithm. You need to identify all these possibilities, parse, > and convert them to Go. I could be wrong about this, but it may be easier > to convert Java bytecode to Go. > > On Tuesday, May 17, 2022 at 9:49:09 PM UTC+7 alex-coder wrote: > >>

[go-nuts] Re: Java to Go converter - 2

2022-05-21 Thread alex-coder
ime.Duration(rand.Intn(n)) } type Thread struct { Runnable } func (t *Thread) run(wg *sync.WaitGroup) { t.Runnable.run(wg) } type Runnable interface { run(wg *sync.WaitGroup) } You can run code there: Go Playground <https://go.dev/play/p/-y6f_rOa4EX> Now I'll take a break, I need to d

[go-nuts] Re: Java to Go converter - 2

2022-08-22 Thread alex-coder
GoLang. I > think > > I did it in the past, and writting code in a new language make de new code > more maintenable. > > Em domingo, 22 de maio de 2022 às 03:49:42 UTC-3, alex-coder escreveu: > >> So, channels. >> Converter can now convert Java classes to Go ch

[go-nuts] go program import ?

2022-09-29 Thread alex-coder
Hi All, How I could detect programmatically that import in a go code belongs to a go distribution ? thank you very much for the answer. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fro

[go-nuts] Re: go program import ?

2022-09-30 Thread alex-coder
Hi, I have found data necessary to me there: go/build.Default.GOROOT in case someone is in interest. Thank you. четверг, 29 сентября 2022 г. в 20:59:50 UTC+3, alex-coder: > Hi All, > > How I could detect programmatically that import in a go code > belongs to a go distribution ? &

Re: [go-nuts] Re: Design patterns. builder ?

2023-01-12 Thread alex-coder
of the template pattern to implement command/fasade pattern. And to say everything above a little bit simpler: package is used to build CLI. Sorry, English is not native for me. :-) Thank you. суббота, 3 апреля 2021 г. в 14:13:39 UTC+3, alex-coder: > Hi, > thank you for everyone! > &

[go-nuts] etcd, how to stop it ?

2023-01-15 Thread alex-coder
Hi All ! I do understand that my question is not quite in the right arrea, but frankly, I'm totally lost. I'm not able to find the answer for the looks like very simple question. How to run - yes there is a sample, but how to stop it ? Thank you. -- You received this message because you are sub

[go-nuts] Re: etcd, how to stop it ?

2023-01-16 Thread alex-coder
s page useful: > http://www.catb.org/~esr/faqs/smart-questions.html#intro > > On Sunday, 15 January 2023 at 18:30:09 UTC alex-coder wrote: > >> Hi All ! >> >> I do understand that my question is not quite in the right arrea, >> but frankly, I'm totally lo

[go-nuts] Help to choose the right type of the key for a map.

2023-03-15 Thread alex-coder
Hi All ! There is a package named ast, inside there are a lot of structures like: ast.Comment, ast.Field, ast.Node and so on. And I whould like to use types of those structure as a keys. So, I could not figure out what type of the key I should use in order to store in a map something under the key

[go-nuts] Re: Help to choose the right type of the key for a map.

2023-03-15 Thread alex-coder
the ast package it is possible to find there: ast package - go/ast - Go Packages <https://pkg.go.dev/go/ast#pkg-types> thank you. среда, 15 марта 2023 г. в 19:16:59 UTC+3, alex-coder: > Hi All ! > > There is a package named ast, inside there are a lot of structures like

Re: [go-nuts] Help to choose the right type of the key for a map.

2023-03-15 Thread alex-coder
f them there. What do I whant is to use those types of interfaces or structures as a key to access to a value in a map. So, the question is: what type of a key for a map I must use ? Thank you. среда, 15 марта 2023 г. в 23:55:03 UTC+3, Ian Lance Taylor: > On Wed, Mar 15, 2023 at 9:17 AM a

Re: [go-nuts] Help to choose the right type of the key for a map.

2023-03-16 Thread alex-coder
>> Sure, convert to a string and use that as a map key. :-) no, no, no. it looks very very ugly. четверг, 16 марта 2023 г. в 00:26:35 UTC+3, Ian Lance Taylor: > On Wed, Mar 15, 2023 at 2:16 PM alex-coder wrote: > > > > Ian, thank you. > > but may be the is any workar

Re: [go-nuts] Help to choose the right type of the key for a map.

2023-03-17 Thread alex-coder
In that case, you > should use the pointers to the nodes as your map keys. > > If the *values* truly are what you care about, use the go/format package > to convert the node back to source code, and use the resulting string as > your map key. > > On Thursday, March 16, 202

Re: [go-nuts] Help to choose the right type of the key for a map.

2023-03-18 Thread alex-coder
Ian and Andy, looks like the to string conversion works and even does not look ugly. :-) Thank you so much. пятница, 17 марта 2023 г. в 15:01:31 UTC+3, alex-coder: > Andy, thank you. > > In case there would be a choice between ugly and achievable, I must take > the last one:-)

[go-nuts] ast package design / improvement discussion. where to read ?

2023-03-19 Thread alex-coder
Hi All ! Is there any discussion, which one possible to read, especially with rationale ? Very interesting to read about walk.go file and callback of the custom code. Thank you. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] Hosting to deploy && run exe ?

2023-06-11 Thread alex-coder
Hi All ! Could you please advise me the simple hosting to deploy && run a small exe assembled from go. 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

[go-nuts] tool for ast graph visualization

2023-06-13 Thread alex-coder
Hi All ! Could you please advice me a tool to visualize an ast graph. 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 golang-nuts+unsubscr...@googleg

[go-nuts] Re: tool for ast graph visualization

2023-06-14 Thread alex-coder
go.dev/go/ast@go1.20.5#Print> > > On Wednesday, June 14, 2023 at 9:14:37 AM UTC+12 alex-coder wrote: > >> Hi All ! >> >> Could you please advice me a tool to visualize an ast graph. >> >> Thank you. >> > -- You received this message because you a

[go-nuts] Re: tool for ast graph visualization

2023-06-15 Thread alex-coder
Thank you so much ! четверг, 15 июня 2023 г. в 13:28:52 UTC+3, Vraj Reshamdalal: > Hi alex-coder, > To get ast for GO code in a json format you can try a web tool: > https://astexplorer.net/ > or > https://github.com/asty-org/asty > > Thanks, > Vraj > > On Thursda

[go-nuts] How to run extra routine for http server properly ?

2023-07-05 Thread alex-coder
Hi All ! So, http server looks like is a request / response processing. But in case it is nesessary to do something else after the response has been sent to the client, how to do it properly ? Is there any example to read ? Thank you. -- You received this message because you are subscribed to

[go-nuts] Re: How to run extra routine for http server properly ?

2023-07-07 Thread alex-coder
//localhost:8080";) > http.ListenAndServe(":8080", nil) > } > > func sendEmail() { > log.Printf("would send an email here") > time.Sleep(time.Second) > log.Printf("done sending email") > } > > On Thursday, July 6, 2023 at 2:03:47 AM UTC+12

[go-nuts] Any option to substitute plug-in package ?

2023-08-02 Thread alex-coder
Hi All ! Plug-in package is very interesting, but in case the development under windows it does not work, So, any hint to use some option instead will be highly appreciated. Thank you. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscr

[go-nuts] Re: Any option to substitute plug-in package ?

2023-08-02 Thread alex-coder
corate" >containers with additional labels, such as in Docker compose contexts, or >k8s contexts, or ... > > > On Wednesday, August 2, 2023 at 12:14:15 PM UTC+2 alex-coder wrote: > >> Hi All ! >> Plug-in package is very interesting, but in case the de

[go-nuts] Re: Any option to substitute plug-in package ?

2023-08-03 Thread alex-coder
bly comes to mind - see, for example, https://wazero.io/ > > A plugin would then be a .wasm binary that can be compiled in any language > that supports WebAssembly as target. > > Disclaimer: I have not yet tried this approach. > > On Wednesday, August 2, 2023 at 12:14:15 P

[go-nuts] Best IDE for GO ?

2023-08-19 Thread alex-coder
Hi All ! Gophers, there is at least 10 years as GO on a market, Good job ! I found a list of the best IDE and Plugins there: https://github.com/golang/go/wiki/IDEsAndTextEditorPlugins As I remember Java came around 1995 and within 3-4 years several companies developed really great IDEs successfu

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

2023-08-23 Thread alex-coder
. Question: is there any IDE or plugin which one support that kind of dependencies in a graphical mode ? Thank you. вторник, 22 августа 2023 г. в 18:22:52 UTC+3, Mike Schinkel: > On Saturday, August 19, 2023 at 5:27:34 AM UTC-4 alex-coder wrote: > > What I'm looking for is the abi

[go-nuts] Re: Any option to substitute plug-in package ?

2023-10-28 Thread alex-coder
et tried this approach. >> >> On Wednesday, August 2, 2023 at 12:14:15 PM UTC+2 alex-coder wrote: >> >> Hi All ! >> Plug-in package is very interesting, but in case the development under >> windows it does not work, >> So, any hint to use some option inst

Re: [go-nuts] Re: Design patterns in Go

2024-04-04 Thread alex-coder
Hi All, in case someone is in interest of the subject I repost here what I have found in the internet some time ago. >>I apologize for being so intrusive. >>I will only provide links to educational resources, in case it would be interesting for anyone. >>GitHub - AlexanderGrom/go-patterns: Desig

[go-nuts] Conditional compilation in Go ?

2024-08-18 Thread alex-coder
Hi All ! Please advice me : 1. Where to see how Go calls or compiles (detects ) the corresponding runtime (windows, linux etc) in Go code. 2. Where to read about and if there is a conditional compilation in Go. Thanks to everyone -- You received this message because you are subscribed to the G

[go-nuts] Re: Iterator handling error

2024-09-09 Thread alex-coder
Hi, Java is certainly not Go, now we have a great simplification to develop code, but you can clarify the context for making a decision in the description of the ValueListHandler J2EE pattern. Regards, пятница, 6 сентября 2024 г. в 02:11:39 UTC+3, cpasmaboiteaspam: > Hello, > > I would defini

Re: [go-nuts] LLM development toolkit.

2024-11-09 Thread alex-coder
adme. >> >> regards >> >> On Fri, Nov 8, 2024 at 3:43 PM alex-coder wrote: >> >>> Hi All ! >>> >>> I recently finished coding the initial version of the llm development >>> toolkit. You may touch the toolkit there: GitHub - gussev

Re: [go-nuts] LLM development toolkit.

2024-11-24 Thread alex-coder
Hi All ! http port has been added to the llm, so now you may communicate with llm via the http client. Thank you. суббота, 9 ноября 2024 г. в 12:19:21 UTC+3, alex-coder: > Thanks everyone ! > I forgot to provide the checksum for the archive. Sorry. > > пятница, 8 ноября 2024 г

[go-nuts] LLM development toolkit.

2024-11-08 Thread alex-coder
Hi All ! I recently finished coding the initial version of the llm development toolkit. You may touch the toolkit there: GitHub - gussev/llm: large language model Thank you. -- You received this message because you are subscribed to the Google Groups "golang-n

Re: [go-nuts] LLM development toolkit.

2025-01-28 Thread alex-coder
Hi All ! Recently I have made a step towards to the first letter in LLM abbreviation - Large. That means that soft now could work with LLM data model is located in file system and only take into RAM data which one is necessary to compute result. But unfortunately so far I'm not able to pass 2FA

Re: [go-nuts] LLM development toolkit.

2025-04-05 Thread alex-coder
aries ? > > On Fri, Feb 28, 2025 at 10:58 AM cpu...@gmail.com > wrote: > >> Zip files are impossible to reason about on Github and a potential >> security thread. I'd not even try to find out what might be inside... >> >> On Tuesday, February 18,

Re: [go-nuts] LLM development toolkit.

2025-04-22 Thread alex-coder
rity thread. I'd not even try to find out what might be inside... >>> >>> On Tuesday, February 18, 2025 at 1:40:43 PM UTC+1 alex-coder wrote: >>> >>>> Hi All, >>>> >>>> I was given a shelter there: >>>> gussev/llm

Re: [go-nuts] Exploring Golang for Backend Development — Need Your Advice!

2025-04-23 Thread alex-coder
Hi Scottie, I don't have a driver's license :-), but I would like to read about the technical characteristics of the languages comparison. Could you please share information. Thank you. среда, 23 апреля 2025 г. в 06:42:54 UTC+3, SDN Scottie von Bruchhausen: > Hi Vinicius, > Golang can be seen

Re: [go-nuts] LLM development toolkit.

2025-02-18 Thread alex-coder
Hi All, I was given a shelter there: gussev/llm: <https://gitverse.ru/gussev/llm> In case someone is in interest of course. :-) Thank you. вторник, 28 января 2025 г. в 19:45:53 UTC+3, alex-coder: > Hi All ! > Recently I have made a step towards to the first letter in LLM &g

[go-nuts] Re: Networking in Go

2025-03-11 Thread alex-coder
Hi, there are 4 books. it is possible that there are out of dates a little bit: 1. Network Programming with Go by Jan Newmarch. This book is hosted on github-pages 2. NETWORK PROGRAMMING WITH GO. © 2021 by Adam Woodbeck 3. Network Programming with Go Language: Essential Skills for Programming,