Re: [go-nuts] Boolean query string conversion into functional logic

2017-10-31 Thread Jose
Hi Hamish, Any updates on how to tackle this problem with current Go tools ? Is it useful to use some of the Go parse tools or AST ? Thanks On Sat, Feb 22, 2014 at 11:01 AM, Hamish Ogilvy wrote: > Cool javascript, nice way to visualise! RPN was a useful tip, found one > interesting one Go base

Re: [go-nuts] Boolean query string conversion into functional logic

2017-11-01 Thread Jose
Thanks, really useful! On Wed, Nov 1, 2017 at 2:18 AM, Hamish Ogilvy wrote: > Hey Jose, > > Yep, might be worth a look at: https://github.com/influxdata/influxql for a > pretty advanced and open source version. Also look at Rob Pike's calculator > talk: https://www

[go-nuts] Cross compilation to see assembly outputs with go tool compile

2016-08-20 Thread jose . vazquez
I was trying to compare the results of go tool compare for different GOOS+GOARCH values. It produced code for my current default GOOS+GOARCH (darwin+amd64) but failed when I tried another: $ GOOS=linux GOARCH=arm go tool compile -S countdown.go countdown.go:3: can't find import: "fmt" Seems go

Re: [go-nuts] Cross compilation to see assembly outputs with go tool compile

2016-08-21 Thread jose . vazquez
Thanks Ian! That makes sense and the -i flag worked. On Sunday, August 21, 2016 at 12:49:38 AM UTC+1, Ian Lance Taylor wrote: > > On Sat, Aug 20, 2016 at 3:20 PM, > > wrote: > > I was trying to compare the results of go tool compare for different > > GOOS+GOARCH values. > > > > It produced

Re: [go-nuts] Cross compilation to see assembly outputs with go tool compile

2016-08-21 Thread jose . vazquez
Thanks, that worked too! On Sunday, August 21, 2016 at 1:20:47 AM UTC+1, Aram Hăvărneanu wrote: > > You might also be interested in > > GOOS=linux GOARCH=arm go build -gcflags='-S' foo > > or > > GOOS=linux GOARCH=arm go build -gcflags='-S' -asmflags='-S' foo > > -- > Aram Hăvărneanu

[go-nuts] Refining the State Pattern in Go

2023-08-29 Thread Jose Corral
Hi! I got to write an article about applying and refining the State Pattern in Go . I would appreciate some feedback as the approach itself still does fill like a work in progress, and somehow, it does still feel like "h

[go-nuts] Re: GO language best practice document

2023-09-13 Thread Jose Corral
Also, the Uber Go style guide has been a good resource for quite some time now: https://github.com/uber-go/guide/blob/master/style.md On Wednesday, September 13, 2023 at 2:18:11 PM UTC+2 jake...@gmail.com wrote: > In addition to the style guide, I have found > https://github.com/golang/go/wik

[go-nuts] Golang Internals link

2023-09-30 Thread Jino Jose
er, go assembler, go parser.. Thanks Jino Jose -- 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 this discu

Re: [go-nuts] Pure Golang Online Mandelbrot Viewer and MORE

2019-02-10 Thread jose . gomez . marquez
I just found this post. Do you know where we can get Fraczooms. I loved it as a high schooler! On Thursday, July 21, 2016 at 11:51:56 AM UTC-4, hsmyers wrote: > > Interface differences are often similar to discussions about calculator > styles. Some swear by RPN, others swear at it :) I'd be hap

[go-nuts] View http open connections

2019-02-12 Thread jose . alberto . coelho
I was trying to get current HTTP connections in HTTP.Server. Internally transport tracks it under connPerHostCount. However, I don't see a way of getting this value. I tried this: type HTTPRequestMetrics struct { activeConnections int64 next http.Handler } func HTTPRequestMetri

[go-nuts] Excluding DWARF entries from binary

2019-07-25 Thread Jose Pina Coelho
Hi, I'm trying to get golang running on AIX 7.1 (pp64). I've tried cross-compiling on Linux x86_64, but the resulting binary has DWARF entries that aren't recognized by the AIX loader. Is there a way to build a binary without the DWARF entries ? Regards, JP. -- You received this message bec

Re: [go-nuts] Automatic type assertion

2016-06-23 Thread Jose Luis Aracil
I use my own "automatic" type assertion library: https://github.com/jaracil/ei El jueves, 9 de junio de 2016, 22:39:46 (UTC+2), Pablo Rozas-Larraondo escribió: > > Sorry I should have been more clear exposing the problem. What I meant by > "automatic type assertion" was something like: > > If

Re: [go-nuts] Return different structs

2016-06-29 Thread Jose Bogarin Solano
Shawn, Thanks, I'll have to see how I can make that interface. Thanks for the guidance. On 29 June 2016 at 13:42, Shawn Milochik wrote: > You're welcome. I think that using empty interfaces isn't the best way to > do it. I meant (but didn't specify) that you should make an interface that > both

Re: [go-nuts] Return different structs

2016-06-30 Thread Jose Bogarin Solano
Simon, Thanks for the information. Ordering the book at this moment. On 30 June 2016 at 02:35, Simon Ritchie wrote: > By the way, this is covered by in Donovan & Kernighan's new book The Go > Programming Language. On pages 197 and 198 of the first edition, they > describe an interface Expr,

Re: [go-nuts] Type parameters on another line

2020-08-02 Thread Jose Luis Vazquez
Thanks! I see your point. I guess that is the main reason the type parameters mapping needs to be in the same declaration line. Still, for generic types it is ok, but for generic functions it feels a bit too much stuff crammed into the signature line. Thanks again for explaining! Jose El sáb

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

2022-08-18 Thread Oliveira Jose Carlos de - ICTS BSA
Hi, I´m looking foward to find a Tool able to convert any Java Source code Project to a GoLang Project. I know that are Programming languages created for different propposal. Java is OOL and goLang is different. So convertion is possible, but I think is very complex. For me is much more easy