[go-nuts] Re: Deadlock

2022-06-16 Thread Luis Furquim
d be "closed" to prevent anyone of wasting time and also it could help someone else with the same problem in the future. Best regards! Em quinta-feira, 16 de junho de 2022 às 17:41:43 UTC-3, Luis Furquim escreveu: > > Hi Gophers! > > I am trying to work with web assembly and

[go-nuts] Deadlock

2022-06-16 Thread Luis Furquim
Hi Gophers! I am trying to work with web assembly and got stuck with a deadlock problem, The main function has nothing more than simple steps, but if someone wants to check, it is at https://go.dev/play/p/y_0aiIzFA0j . It imports an internal package so it is not compilable outside my computer, it

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

[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] Re: Extending an array 'The right way'. Guidence needed!

2019-10-16 Thread Luis Furquim
Em terça-feira, 15 de outubro de 2019 07:16:35 UTC-3, Stuart Davies escreveu: > > > if p.LineCount >= len(p.Offsets) { > newLen := p.LineCount + 50 > sb := make([]int64, newLen) > for i := 0; i < p.LineCount; i++ { > sb[i] = p.Offsets[i] > } > p.Offsets = sb > } > > N

Re: [go-nuts] sqlite x ql

2019-07-17 Thread Luis Furquim
Ok! Thank you for your feedback! On Wed, Jul 17, 2019 at 11:39 AM Jan Mercl <0xj...@gmail.com> wrote: > On Wed, Jul 17, 2019 at 4:34 PM Luis Furquim > wrote: > > > Has anyone any information about performance comparison between Sqlite > and Ql (github.com/cznic/ql or mod

[go-nuts] sqlite x ql

2019-07-17 Thread Luis Furquim
Dear Gophers, Has anyone any information about performance comparison between Sqlite and Ql (github.com/cznic/ql or modernc.org/ql)? Any bit of information would be appreciated! Thank you in advance -- Luis Otavio de Colla Furquim -- You received this message because you are subscribed to the

Re: [go-nuts] Re: Go 2 generics counterproposal: giving up restricting types

2019-06-07 Thread Luis Furquim
this way: type adjustable generic{ contract ( Adjust() adjustable Apply())} So, changing this way could solve this issue? Best regard, Luis Otávio On Fri, Jun 7, 2019 at 12:17 PM Burak Serdar wrote: > On Fri, Jun 7, 2019 at 7:32 AM Luis Furquim wr

[go-nuts] Re: Go 2 generics counterproposal: giving up restricting types

2019-06-07 Thread Luis Furquim
Hello gophers, I have almost no experience on language definitions/proposals and on generics. But an idea came to my mind and I wanted to share it. It is an idea, not a proposal, I haven't worked on detailing/elaboration, etc. As stated on my gist, I got the text and examples from Faiface gi

Re: [go-nuts] Re: Interesting public commentary on Go...

2019-06-04 Thread Luis Furquim
+1 Thanks for the lesson! Em sexta-feira, 31 de maio de 2019 13:44:55 UTC-3, Devon H. O'Dell escreveu: > > Maybe this story about suggesting the murder of a colleague is supposed to > be a tongue-in-cheek joke, but I want to push back heavily against it. And > I’m sorry that this is devolving si

Re: [go-nuts] Re: WASM persistent storage

2019-05-13 Thread Luis Furquim
May 2019 02:37:16 UTC+2, Luis Furquim wrote: >> >> Hello Agniva! >> >> Thanks for the clarification! If I clearly understood the discussion on >> that issue, there is no current work to implement file I/O nor there are >> plans to do it in the near future. Do

[go-nuts] Re: WASM persistent storage

2019-05-12 Thread Luis Furquim
, thanks for your attention, Luis Otavio Em domingo, 12 de maio de 2019 19:22:01 UTC-3, Agniva De Sarker escreveu: > > There is no file I/O in the browser using Go wasm yet. Please see > https://github.com/golang/go/issues/26051 > > On Sunday, 12 May 2019 13:56:49 UTC+2, Lui

[go-nuts] WASM persistent storage

2019-05-12 Thread Luis Furquim
Hello, Is it possible to persist files when using Golang/WASM on a browser? I found this page https://uncovergame.com/2015/06/06/persisting-data-with-emscripten/ showing explaining how to do it using C+EMScripten, but I couldn't find an example or documentation in Go. The page doesn't explicit if

[go-nuts] Re: Simple Go web server that service files

2019-05-07 Thread Luis Furquim
Hi I think that this is the case that "proper way" means "the one that fits your needs". Some solutions you may adopt: a) (cd /path/to/my/server/directory ; go run main.go) & b) use absolute pathnames: os.Open("/path/to/my/server/directory/ images/my.png") c) Load configuration from some file/db

[go-nuts] Re: Map inside a struct

2019-05-02 Thread Luis Furquim
Hi, Check if your method has the signature like this: func (d DP) MyMethod() { ... } If so, change to this: func (d *DP) MyMethod() { ... } I made this error so many times: a method called by value changes the value of the object and the change vanishes when the method returns, you must use

[go-nuts] Re: Go not exists as Technology in Google Developers Experts

2018-08-06 Thread Luis Furquim
That's strange. Manually searching the page (looking for go, think how many times we find "Google" occurrences ...) I found these enlisting Go skills: https://developers.google.com/experts/people/ashley-mcnamara https://developers.google.com/experts/people/ernesto-jimenez https://developers.goo

Re: [go-nuts] Go could really use a while statement

2018-05-10 Thread Luis Furquim
I think the only real problem here is the lack of do {} while and even this is not a big problem. I think we can happily live with the solution pointed by Sokolov, which is the one I use when needed. But looking at this thread what pops up is that the lacking of this construct at the language

[go-nuts] Re: Vendor compilation problem

2018-01-31 Thread Luis Furquim
ention! Luis Otavio de Colla Furquim Em quarta-feira, 31 de janeiro de 2018 15:15:25 UTC-2, Luis Furquim escreveu: > > Hi, > > Thanks for answering! The environment is as follows: > vuco@azrael ~ $ go env > GOARCH="amd64" > GOBIN="" > GOEXE="" > GO

[go-nuts] Re: Vendor compilation problem

2018-01-31 Thread Luis Furquim
Hi, Thanks for answering! The environment is as follows: vuco@azrael ~ $ go env GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/vuco/repos/gopkg" GORACE="" GOROOT="/home/vuco/repos/go" GOTOOLDIR="/home/vuco/repos/go/pkg/tool/linux_amd64" GCCGO="gccgo

[go-nuts] Vendor compilation problem

2018-01-30 Thread Luis Furquim
Hello Gophers, I got this compilation message: hudsonbot/New.go:8:4: cannot find package "_/home/vuco/repos/gopkg/src/mpf/sherlock/bot/src/hudsonbot/vendor/ github.com/gabrielledf/paperfishGo" in any of: /home/vuco/repos/go/src/_/home/vuco/repos/gopkg/src/mpf/sherlock/bot/src/hudsonbot/vendor/ git

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

2018-01-10 Thread Luis Furquim
t; > 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 linsangmysq

[go-nuts] [ANN] Graph database

2018-01-10 Thread Luis Furquim
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 linsangmysql subpackage implementing the operations has most of the code (and so the documentation). I divided this way to all

[go-nuts] Re: Opening a Chrome Extension (.crx) file

2017-11-09 Thread Luis Furquim
... Cheers Em quinta-feira, 9 de novembro de 2017 11:39:24 UTC-2, Tamás Gulácsi escreveu: > > > 2017. november 9., csütörtök 14:11:13 UTC+1 időpontban Luis Furquim a > következőt írta: >> >> Hello Gophers! >> >> I am trying to open a chrome extension file to rea

[go-nuts] Opening a Chrome Extension (.crx) file

2017-11-09 Thread Luis Furquim
Hello Gophers! I am trying to open a chrome extension file to read its manifest.json. It is a zip file with a .crx extension. When I unzip via command line it works like a charm. But, if I try with golang using package archive/zip it gives me the "zip: not a valid zip file" error. It's not the fir

[go-nuts] Re: [ANN] Ugarit

2017-05-16 Thread Luis Furquim
Em segunda-feira, 15 de maio de 2017 09:30:20 UTC-3, mhh...@gmail.com escreveu: > > On the code itself, > i suspect you don t know yet about *go fmt*, > I strongly suggest you to use it, > just because its a great idea. > > https://github.com/luisfurquim/ugarit/blob/master/epub20/book.go#L66 > T

[go-nuts] Re: [ANN] Ugarit

2017-05-15 Thread Luis Furquim
https://github.com/luisfurquim/ugarit/blob/master/epub30/book.go#L487 > take advantage of filepath.Join() + os.Separator ? maybe. > > Here we cannot use os.Separator, the EPub file is a zip archive and inside a zip, we have to always use '/'. > https://github.com/luisfurquim/ugarit/blob/mast

[go-nuts] Re: [ANN] Ugarit

2017-05-15 Thread Luis Furquim
> take advantage of filepath.Join() + os.Separator ? maybe. > > https://github.com/luisfurquim/ugarit/blob/master/epub30/book.go#L626 > why 59? > > > I must say you took great care about error values and documentation > ...I m a small player in comparison :p > > was it

[go-nuts] Re: [ANN] Ugarit

2017-05-14 Thread Luis Furquim
Logically it would be great if I had provided the URL... https://github.com/luisfurquim/ugarit Thank you all! Em domingo, 14 de maio de 2017 17:49:44 UTC-3, Luis Furquim escreveu: > > Hello Gophers! > > I am publishing a first barely usable version of an EPub eBook generator. &g

[go-nuts] [ANN] Ugarit

2017-05-14 Thread Luis Furquim
Hello Gophers! I am publishing a first barely usable version of an EPub eBook generator. It still has many improvements to be done. Documentation is poor but exists. There's an example in the epub30 package. Criticism would be a great help. I know it has much to be done. So, please be gentle! ;)

Re: [go-nuts] Adresses of functions

2016-09-30 Thread Luis Furquim
Ok, Thank you! Em sex, 30 de set de 2016 às 16:39, Ian Lance Taylor escreveu: > On Fri, Sep 30, 2016 at 11:38 AM, Luis Furquim > wrote: > > > > I need to have a list of registered functions. I want to control if a > > function is already registered and, if

[go-nuts] Adresses of functions

2016-09-30 Thread Luis Furquim
Hello gophers! I need to have a list of registered functions. I want to control if a function is already registered and, if so, just ignore any new registration of that function. My idea was to use the function's adress as the key of registered functions. So, to get the address of a function I jus