Re: [go-nuts] Memory operations hung in semacquire state, GC routine parked while holding semaphore?

2024-05-30 Thread 'Alex Kristiansen' via golang-nuts
onvinced of a > deadlock bug than the application failing to make progress. Lots of > goroutines lining up on gcMarkDone just sounds too specific to me. > > > On May 29, 2024, at 10:00 AM, 'Alex Kristiansen' via golang-nuts < > golan...@googlegroups.com> wrote: >

Re: [go-nuts] Memory operations hung in semacquire state, GC routine parked while holding semaphore?

2024-05-29 Thread 'Alex Kristiansen' via golang-nuts
emory, so it is slowing > the allocators to a rate that makes them appear hung. > > It may be that the process has consumed nearly all of the OS memory too - > so the OS is having a hard-time responding to malloc requests. > > i.e. The system is not making progress. > > On May 28, 20

[go-nuts] Memory operations hung in semacquire state, GC routine parked while holding semaphore?

2024-05-28 Thread 'Alex Kristiansen' via golang-nuts
This is an odd one. For reference, this is a customer machine, Windows server 2016, compiled with go1.20.11. The application just hangs after a number of days; windows minidump reveals that most threads are doing this: Goroutine 462 - User: unicode/utf16/utf16.go:106 unicode/utf16.Decode

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:

[go-nuts] logout/end session

2024-02-29 Thread Alex Kiprono
Using token and the log in request struct i.e (userId, sessionId, timestamp) i generated a login/auth for log in process by creating and merging the request payload to generate the signature thus comparing for varification so the user is active in the system how will i end the session using

Re: [go-nuts] Could we trade all the `ctx context.Context` arguments for one pointer in `g`?

2024-02-22 Thread 'Alex Efros' via golang-nuts
Hi! One more thing to keep in mind for the proposal: sometimes we need to merge two contexts. https://github.com/golang/go/issues/36503 https://github.com/golang/go/issues/57928 -- WBR, Alex. -- You received this message because you are subscribed to the Google Groups

[go-nuts] Re: What is the idiomatic way to create dynamic clients for Firestore in Go

2023-12-27 Thread Alex Breadman
There is no clear way to specify a database On Thursday, December 28, 2023 at 4:51:02 AM UTC Alex Breadman wrote: > I want multi-tenancy but there is no clear documentation. > > Is it supported yet in the firebase/firestore packages yet? > > Thanks > -- You received this m

[go-nuts] What is the idiomatic way to create dynamic clients for Firestore in Go

2023-12-27 Thread Alex Breadman
I want multi-tenancy but there is no clear documentation. Is it supported yet in the firebase/firestore packages yet? Thanks -- 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

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

2023-10-28 Thread alex-coder
Hi all. Of course, in case if anyone is in interest to write plugins for Go. I found another option for writing plugins by use Lua. I haven't touched the example yet, but I'm giving out the link. https://github.com/yuin/gopher-lua/ Thank you. четверг, 3 августа 2023 г. в 15:47:26 UTC+3, alex

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

2023-08-23 Thread alex-coder
estion: 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 ability to

[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

[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] Re: Any option to substitute plug-in package ?

2023-08-03 Thread alex-coder
t; >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 development

[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

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

2023-07-07 Thread alex-coder
st: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 alex-coder wrote: >

[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

[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] Re: tool for ast graph visualization

2023-06-14 Thread alex-coder
Xa, context is the king on a field :-) You gave a good sample, and I would like to get ast for GO code in a json format for further processing. четверг, 15 июня 2023 г. в 01:45:20 UTC+3, ben...@gmail.com: > Hi Alex, could you please give a bit more context about what language or >

[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

[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

[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

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:-)

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

2023-03-17 Thread alex-coder
at 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, 2023 at

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 wo

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

[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

[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

Re: [go-nuts] How to encode/decode string to binary in golang

2023-03-13 Thread Alex Howarth
o raw binary and then decode the raw > binary > back to s1 and s2. > > > On Friday, March 10, 2023 at 11:36:09 PM UTC+2 Alex Howarth wrote: > >> If s1 and s2 are a fixed length then you can just slice up the decoded >> string based on the lengths. If they are of a v

Re: [go-nuts] How to encode/decode string to binary in golang

2023-03-10 Thread Alex Howarth
If s1 and s2 are a fixed length then you can just slice up the decoded string based on the lengths. If they are of a variable length, you'll need a separator in the input string to later split on when decoded (s3 := s1 + ":" + s2 etc)? On Fri, 10 Mar 2023 at 10:33, Van Fury wrote: > Hi, > > I

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

2023-01-16 Thread alex-coder
e 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 lost. >&g

[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

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] Generics in gollvm

2022-12-11 Thread Alex Markin
Hello. What is the status of generic programming (I mean the generics added in go-1.18) in the gollvm project? Are there any plans to support it or maybe someone already working on it? -- You received this message

Re: [go-nuts] what is the origin of Go's reference time system?

2022-10-27 Thread Alex Besogonov
> > -rob > > > On Thu, Oct 27, 2022 at 5:15 PM Alex Besogonov <mailto:alex.besogo...@gmail.com>> wrote: >> Can we perhaps get a bit more unambiguous reference date for it? >> >> On Wednesday, October 26, 2022 at 1:06:36 PM UTC-7 Rob 'Commander' Pike >&

Re: [go-nuts] what is the origin of Go's reference time system?

2022-10-27 Thread Alex Besogonov
Can we perhaps get a bit more unambiguous reference date for it? On Wednesday, October 26, 2022 at 1:06:36 PM UTC-7 Rob 'Commander' Pike wrote: > I believe it's unique. I thought of it one day while walking home. It is > inspired by the way Cobol picture clauses represent number formats. (That

Re: [go-nuts] gollvm build fails

2022-10-26 Thread Alex Markin
respectively). After that, the cmake worked fine. Then the build failed with other problem: /home/alex/test/gollvm/build-debug/./bin/llvm-goc -o /home/alex/test/gollvm /build-de bug/tools/gollvm/gotools/go go_.o -I /home/alex/test/gollvm /build-debug/tools/gollvm/libgo -L /home/alex/test/gollvm/build-debug

Re: [go-nuts] gollvm build fails

2022-10-25 Thread Alex Markin
uild-relwithdbg/tools/gollvm/libgo && > /usr/bin/cmake -E copy_if_different > /x/llvm-project/build-relwithdbg/tools/gollvm/libgo/zgoarch.go.tmp > /x/llvm-project/build-relwithdbg/tools/gollvm/libgo/zgoarch.go > > Thanks, Than > > > > > On Wed, Oct 19, 2

Re: [go-nuts] gollvm build fails

2022-10-19 Thread Alex Markin
ld process, e.g. here > > > https://go.googlesource.com/gollvm/+/253c122ed62d5e9a32a9806e83c47a389a6435bf/cmake/modules/AutoGenGo.cmake#63 > > What does the zgoarch.go file look like in your build area? > > Thanks, Than > > > On Wed, Oct 19, 2022 at 8:20 AM Alex Markin

[go-nuts] gollvm build fails

2022-10-19 Thread Alex Markin
Hello. I'm trying to build gollvm on my gentoo system and get the following error: FAILED: tools/gollvm/libgo/internal/.pic/goarch.o /home/alex/test/gollvm/build-debug/tools/gollvm/libgo/internal/.pic/goarch.o cd /home/alex/test/gollvm/build-debug/tools/gollvm/libgo && /usr/bin/c

Re: [go-nuts] How to call sort.Search in a loop

2022-10-11 Thread K. Alex Mills
Ah, my last post had a small mistake. A small modification to upper should be all you need. The function should use >= instead of >. See below. upper := sort.Search(len(haystack), func(i int) bool { return haystack[i].name >= needle.name }) On Tue, Oct 11, 2022, 7:38 AM K. A

Re: [go-nuts] How to call sort.Search in a loop

2022-10-11 Thread K. Alex Mills
sort.Search runs binary search. It's only guaranteed to work when you provide it with a function which is monotonic -- true at index i implies true at all indices greater than i. Your loop style search does not provide a monotonic function, whereas your "upper" function is monotonic. However,

[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 ? &

[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

Re: [go-nuts] Is there a better way to write this?

2022-09-15 Thread K. Alex Mills
The only alternatives that I see would each introduce an extra call to Add, like the below. I'm not sure if this is much less "clunky", but it at least avoids the reassignment to s. func collectStringsetMap(m map[string]*stringset.Set, key string, value ...string) *stringset.Set { if s, ok :=

[go-nuts] Detachable context.Context?

2022-09-03 Thread Alex Besogonov
Hi! Let me give you some context. context.Context in Go serves two main purposes: 1. Cancellation and timeout support. 2. A carrier of values, as a de-facto replacement for thread-local variables. I have a problem with the first item. Cancellation and timeouts automatically propagate to child

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

2022-08-22 Thread alex-coder
t; 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 channels where po

[go-nuts] github.com/splunk/pipelines hits v1.0.0

2022-08-20 Thread K. Alex Mills
and combine pipeline stages as pairs. * Handle fatal and non-fatal errors from any pipeline stage. * Sinks for draining the result of a pipeline computation. Some future enhancements are planned. Please leave any suggestions or issues in the issue tracker. Thanks K. Alex Mills -- You received

Re: [go-nuts] Re: Why declaring multiple variable at once for same type feature exists in Golang?

2022-08-18 Thread K. Alex Mills
Yes. Declaring i and j on the same line is certainly cleaner. We should all do it like that. Am I missing something? On Thu, Aug 18, 2022, 9:25 PM Yasser Sinjab wrote: > Thanks, I don't object it personally, but I had a debate about "grouping > variables is considered a clean code". > > Let's

Re: [go-nuts] gofmt 1.19 reformats comments in a way which breaks go-swagger

2022-08-17 Thread K. Alex Mills
I would hesitate to call this a bug in gofmt. Go released new godoc features as part of Go 1.19, along with reformatting of comments. Those features were entirely intentional. The decision made in the go-swagger project to place its comments alongside godoc comment blocks was a risky one in case

Re: [go-nuts] Application Monitoring

2022-08-16 Thread K. Alex Mills
Monitoring and observability are best practices regardless of what language you use. We use a combination of Prometheus / Grafana and metrics exported by runtime/metrics. We also include custom metrics tailored to our application's use-case. Prometheus is not a standard Linux tool, but it is open

Re: [go-nuts] Pipelining with Go and Generics

2022-08-11 Thread K. Alex Mills
thod like Map() on a stream instance can’t be > written - because the stream is of type T, and the Map() produces a stream > of type R. > > psuedo code: > > type Stream[T any] interface { > ... > Map[R any](func (T) R) Stream[R] // syntax not supported > ... >

Re: [go-nuts] Pipelining with Go and Generics

2022-08-11 Thread K. Alex Mills
Ah, my apologies, I was wrong. Panicking in the midst of a func passed to one of these pipeline stages most certainly *will not* shut down the entire pipeline and cannot be recovered like I had suggested. Sorry about that. Sincerely, K. Alex Mills On Thu, Aug 11, 2022 at 4:56 PM K. Alex Mills

Re: [go-nuts] Pipelining with Go and Generics

2022-08-11 Thread K. Alex Mills
o with this library. Just use recover at the top of the func that spins up the pipeline and use context.WithCancel to shut the rest of the pipeline down in that case. Let me know if that's unclear and I'll do my best to provide an example. Sincerely, K. Alex Mills On Thu, Aug 11, 2022 at 4:18 PM

Re: [go-nuts] Pipelining with Go and Generics

2022-08-11 Thread K. Alex Mills
mpossible with error returns. > > A streams api with panic/recover is needed. > > On Aug 11, 2022, at 12:55 PM, K. Alex Mills > wrote: > >  > Hello Gophers, > > I recently had an opportunity to try out Go generics on a small pipelines > package <https://pkg.go.dev/

[go-nuts] Pipelining with Go and Generics

2022-08-11 Thread K. Alex Mills
/kalexmills.com/journal/pipelines/>. I'm open to any of your thoughts, suggestions, and issue reports. Sincerely, K. Alex Mills -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving e

[go-nuts] Is this algorithm viable? its faster than AES256 upto 50KB

2022-08-02 Thread Alex Breadman
package mod import ( "testing" ) func TestEncrypt(t *testing.T) { password := []byte("*RTFUGIHOD") data := []byte("This encryption algorithm is faster than aes256 up to 40kb but how secure is it?") for x, _ := range data { p := (password[x%len(password)]) data[x] = data[x] + byte(p) }

[go-nuts] Re: How do you make a ReadCloser?

2022-07-03 Thread Alex Shi
Note. For ioutil#NopCloser, as of Go 1.16, this function simply calls io.NopCloser. On Friday, July 1, 2022 at 1:09:15 PM UTC+8 Ansuraj Khadanga wrote: > Thats great! Thanks for sharing. > > req.Body = ioutil.NopCloser(bytes.NewReader([]byte("foo"))) > > works! > > On Wednesday, 27 June 2018

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

2022-05-22 Thread alex-coder
oup) { 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 deal with the advices that I received. Thank you to all very much. среда, 18 мая 2022 г. в 13:4

[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-17 Thread alex-coder
dom { var random Random = Random{} return } func (r *Random) nextInt(n int) time.Duration { return time.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) } The Go Pl

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

2022-04-28 Thread alex-coder
nd Second = Second{one} return } func (second *Second) run() { time.Sleep(1000) fmt.Println("run:after sleep:" + *second.one.msg) s_s_s := "try to change msg" second.one.msg = _s_s } The next example will probably be about channel's. If anyone has an inter

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

2022-04-07 Thread alex-coder
ception) 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 Exception Handl

[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") }() ({}).runme() } type ThrowException struct{} func (throwException *ThrowException) runme() { panic(&quo

[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

Re: [go-nuts] IsNil check. How?

2022-03-16 Thread Alex Besogonov
> The reflect code panics, because you are comparing a struct value to nil. >> Struct values can not be nil. >> >> No. I’m comparing AN INTERFACE, not a struct. >> > You are using `reflect` to inspect the dynamic value of that interface. > That dynamic value is a struct. > No. It should be a

Re: [go-nuts] IsNil check. How?

2022-03-16 Thread Alex Besogonov
> Here's a simplified version of the real code: > https://go.dev/play/p/8LfgIGhd8GR - it > compiles without any issues. > > Yes it compiles. Plenty of buggy Go code will compile. Here is another > example of buggy

Re: [go-nuts] IsNil check. How?

2022-03-16 Thread Alex Besogonov
On Wednesday, March 16, 2022 at 12:29:07 PM UTC-7 axel.wa...@googlemail.com wrote: > On Wed, Mar 16, 2022 at 7:02 PM Alex Besogonov > wrote: > >> Nope. Your solution doesn't work either: >> https://go.dev/play/p/DSik2kJ-gg4 (it doesn't crash, just falsely >> re

Re: [go-nuts] IsNil check. How?

2022-03-16 Thread Alex Besogonov
e language and there's no good justification why this hasn't been yet fixed. On Wednesday, March 16, 2022 at 10:36:48 AM UTC-7 axel.wa...@googlemail.com wrote: > On Wed, Mar 16, 2022 at 6:21 PM Alex Besogonov > wrote: > >> I'm trying to solve the eternal "interface == nil" prob

[go-nuts] IsNil check. How?

2022-03-16 Thread Alex Besogonov
Hi! I'm trying to solve the eternal "interface == nil" problem and I can't find a solution in this case: https://go.dev/play/p/DSik2kJ-gg4 It looks like casting to the base pointer type confuses the reflection package. Is there a way to solve this? PS: PLEASE do add "nilptr" to the language

[go-nuts] Fuzz Testing in Go 1.18

2022-02-21 Thread Alex Pliutau
Hi, I recently made a video on fuzzing support in Go 1.18. I'd like to hear your feedback if that's possible - https://youtu.be/w8STTZWdG9Y Best, Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

[go-nuts] Go 1.18 Beta 2 is released

2022-01-31 Thread Alex Rakoczy
Hello gophers, We have just released go1.18beta2, a beta version of Go 1.18. It is cut from the master branch at the revision tagged go1.18beta2. Please try your production load tests and unit tests with the new version. Your help testing these pre-release versions is invaluable. Report any

[go-nuts] Jobs

2022-01-12 Thread Alex Dvoretskiy
What is a good way to find Go developers and Go jobs nowadays? -- 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...@googlegroups.com. To view

[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

[go-nuts] [security] Go 1.17.5 and Go 1.16.12 are released

2021-12-09 Thread Alex Rakoczy
b site: https://golang.org/dl/ To compile from source using a Git clone, update to the release with "git checkout go1.17.5" and build as usual. Thanks to everyone who contributed to the releases. Cheers, Alex and Filippo for the Go team -- You received this message because yo

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

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

2021-11-13 Thread alex-coder
Satyendra, >> https://github.com/ofabry/go-callvis very interesting, but looks like a little bit out of date. Thank you. воскресенье, 4 июля 2021 г. в 18:57:46 UTC+3, satyendra...@gmail.com: > Alex you can try this. > > https://github.com/ofabry/go-callvis > > Thanks and

Re: [go-nuts] ast.NewPackage errors for built in types

2021-10-17 Thread K. Alex Mills
I'm guessing here, but you probably do need the full type-checker for that, depending on what you mean by "a native type". In go we can alias types in two ways. type A uint8 type B = uint8 There are subtle differences between the two which I don't claim to understand... In any case, AFAIK both

Re: [go-nuts] ast.NewPackage errors for built in types

2021-10-15 Thread K. Alex Mills
FWIW: I'm not surprised that it's slower because it's handling significantly more of the compilation. The parser is very fast. Adding in type-checking is going to be less fast. IIRC, the packages package also has to make network calls and do filesystem I/O behind the scenes in some cases. The

Re: [go-nuts] ast.NewPackage errors for built in types

2021-10-12 Thread K. Alex Mills
It's been several months since I used these packages but IIRC, go/ast only requires code to parse correctly, while go/types actually runs the type-checker. Running the type checker implies having a complete picture of all the types used in a Go program, which, in my recollection, usually means

[go-nuts] [ANN] Pure Go NFSv4 client

2021-10-07 Thread Alex Besogonov
Hi! Here's my pure Go NFSv4 client. It's designed to work with Amazon EFS (Elastic FileSystem) but also can work against Linux kNFSD or Ganesha (in fact, Ganesha is used for integration testing). Enjoy: https://github.com/Cyberax/go-nfs-client -- You received this message because you are

[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'

[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 expected >

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

2021-09-30 Thread alex-coder
/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: > >> Vladimir, >> >>

[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

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

2021-09-28 Thread alex-coder
ship 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 at 11:03:53

[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

Re: [go-nuts] Parse JSON case-sensitively

2021-09-24 Thread Alex Howarth
Could you perhaps achieve this with reflect and UnmarshalJSON() ? The following basic example compares against the case-sensitive json tag: https://play.golang.org/p/Oe_tovxe9Ld On Thu, 23 Sept 2021 at 14:23, 'Aaron' via golang-nuts < golang-nuts@googlegroups.com> wrote: > Hi all > > Anyone

[go-nuts] mkwinsyscall and handling HRESULT

2021-09-07 Thread 'Alex Crane' via golang-nuts
as so in mkwinsyscall)? Can begin to implement Errors.Is for the Win32 facility at least. Hope I've made this clear.. Thanks, Alex -- *This electronic message contains information from Ava Security/Ava federal, which may be privileged or confidential. The information is intended for use only

[go-nuts] Re: Profiling goroutines

2021-09-03 Thread Alex Besogonov
Use pprof labels to mark goroutines. This provides way more context than anonymous goroutine IDs. On Friday, September 3, 2021 at 1:19:55 PM UTC-7 peppy...@gmail.com wrote: > Hey guys, > > I am trying to get a full picture using a pprof of a highly paralelised > binary (read many goroutines

[go-nuts] Go 1.16.7 and Go 1.15.15 are released

2021-08-05 Thread Alex Rakoczy
eryone who contributed to the releases. Cheers, David, Carlos, and Alex for the Go team -- 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

[go-nuts] Go 1.17 Release Candidate 2 is released

2021-08-02 Thread Alex Rakoczy
Hello gophers, We have just released go1.17rc2, a release candidate version of Go 1.17. It is cut from release-branch.go1.17 at the revision tagged go1.17rc2. Please try your production load tests and unit tests with the new version. Your help testing these pre-release versions is invaluable.

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 the > answer

[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

[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] Re: problems using external modules with go 1.16.4

2021-05-07 Thread Alex
Was writing my reply then Jan beat me lol, anyway he didn't linked the tutorial soo... https://golang.org/doc/tutorial/getting-started On Friday, 7 May 2021 at 9:21:29 pm UTC+8 natxo@gmail.com wrote: > hi, > > I am struggling with the new go version. > > I have a simple script that imports a

Re: [go-nuts] HTTP request reading

2021-04-29 Thread K. Alex Mills
Partial responses inline, HTH. On Thu, Apr 29, 2021, 6:09 AM Amit Saha wrote: > Hi all, when an incoming request comes in, does the ListenAndServe() > function read the first line (as explained in > https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages) to figure > out whether there is a

[go-nuts] Re: Setting the Don't Fragment (DF) bit on OSX

2021-04-26 Thread Alex Besogonov
DF bit is needed to discover the MTU on the application level, exactly because MTU discovery can be broken on lower levels of the network stack. QUIC specifies this procedure here: https://tools.ietf.org/html/draft-ietf-quic-transport-05#page-53 On Saturday, April 24, 2021 at 1:37:26 PM UTC-7

Re: [go-nuts] go text://protocol client?

2021-04-11 Thread K. Alex Mills
On Sun, Apr 11, 2021, 5:15 AM Jesper Louis Andersen < jesper.louis.ander...@gmail.com> wrote: > On Sun, Apr 11, 2021 at 5:11 AM Kurtis Rader wrote: > >> >> It is nice that the specification allows for an efficient implementation. >> But I agree with Dan that your documentation is opaque, obtuse,

Re: [go-nuts] Modules... why it has to be so painfull?

2021-04-07 Thread Alex Howarth
Have you tried go mod edit -replace github.com/foo/bar=/path/to/local/bar ? https://golang.org/ref/mod#go-mod-edit On Wed, 7 Apr 2021 at 17:31, Slawomir Pryczek wrote: > > Hey Guys, I'm struggling with the new "modules" approach and after checking several help files it seems it's inconvinient

Re: [go-nuts] Go code review site?

2021-04-04 Thread Alex Howarth
You could try the Slack channel #reviews on gophers.slack.com -alex On Sun, 4 Apr 2021, 09:20 Tong Sun, wrote: > I remember I've been to a page/site where people can ask for review for > their open source projects, commits, etc. > > Is there such site/service, or my memory has

  1   2   3   4   >