Re: [go-nuts] Question about int inside json

2018-04-28 Thread Burak Serdar
On Sat, Apr 28, 2018 at 12:04 PM, wrote: > > Hallo all, > > I've a "stupid" question about the type "int" when used inside json. > Almost every documentation I've found says int is 32 bit long, so that I > expect a range from -2.147.483.648 to 2.147.483.647. int is 32 bits

[go-nuts] Looking for go programmers for game company

2018-04-28 Thread smga3000
Hey gophers. I have a multi platform game company that is also integrating blockchain technology as well as crypto currency. I am looking for one or two full time GO programmers. We are in Los Angeles but are running most people remote. If you are a mid to high level programmer and interested,

[go-nuts] gomobile bind "skipped function" error in xcode

2018-04-28 Thread 'Peter Denton' via golang-nuts
Hi, I am trying to bind this file with a Bitcoin iOS app I am developing for the purpose of creating segwit Bitcoin addresses. package bech32 import ( "bytes" "fmt" "strings" ) var SegwitAddress = "" var charset = "qpzry9x8gf2tvdw0s3jn54khce6mua7l" var generator = []int{0x3b6a57b2,

[go-nuts] Question about int inside json

2018-04-28 Thread pickard
Hallo all, I've a "stupid" question about the type "int" when used inside json. Almost every documentation I've found says int is 32 bit long, so that I expect a range from -2.147.483.648 to 2.147.483.647. So I "mistakely" did that: type Comment struct { IDint `json:"id"`

Re: [go-nuts] [ANN] gomacro v2.6 - interactive Go interpreter, now with debugger

2018-04-28 Thread Max
Adding custom :foo commands is trivial, it's just a matter of exporting an api to do register them (the api exists already, but it's not exported and I would use the occasion to improve it). I should have time to do it tomorrow and document an example. About the license: yes, I am still

Re: [go-nuts] Re: Measure Memory Fragmentation

2018-04-28 Thread Nathan Fisher
Do you mean wrt to Go or more generally? I could see using a histogram with a logarithmic bucket size or similar. Where the bucket sizes are the maximum length in bytes a given “open slot” can hold and the count is the number of occurrences of that size in the pool. On Sat, Apr 28, 2018 at 6:18

Re: [go-nuts] [ANN] gomacro v2.6 - interactive Go interpreter, now with debugger

2018-04-28 Thread Maxim Khitrov
Do you have examples of adding custom ":xyz" or other language extensions? Also, are you still deciding what to do with the license (I see there is an open issue about it)? I was thinking of using gomacro for an internal project at work, but use of LGPL libraries is not allowed, unfortunately.

[go-nuts] Re: Measure Memory Fragmentation

2018-04-28 Thread Kaveh Shahbazian
The package: https://github.com/dc0d/bufferpool/ -- 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. For more options,

[go-nuts] Measure Memory Fragmentation

2018-04-28 Thread Kaveh Shahbazian
Is it possible to measure/visualize memory fragmentation? I have implemented a package that creates a buffer pool (pool of []byte) which are created from a single underlying big array. But I do not know how to actually measure/visualize the memory fragmentation. -- You received this message

Re: [go-nuts] [ANN] oksvg and rasterx; SVG 2.0 path compliant renderer and rasterizer

2018-04-28 Thread Steven Wiley
Thanks. I just fixed a bug 2 minutes ago that I introduced while refactoring, so you probably want to pull the new version. (Thanks to Anthony Starks for pointing it out.) On Saturday, April 28, 2018 at 1:21:41 PM UTC-7, Daniel Theophanes wrote: > > Thank you for looking into this! This looks

Re: [go-nuts] [ANN] oksvg and rasterx; SVG 2.0 path compliant renderer and rasterizer

2018-04-28 Thread Daniel Theophanes
Thank you for looking into this! This looks great! -- 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. For more options,

[go-nuts] How to avoid using goroutine id for Go interpreter with functions, goroutines, and debugger?

2018-04-28 Thread Max
I have the feeling this is a very advanced and very specific question, still I would appreciate indications on how to avoid the uncomfortable corner I find myself in, namely that I found no alternative to goroutine id for my (quite complicated) use case. Let me explain: My Go interpreter

[go-nuts] Re: Beginner question about interface

2018-04-28 Thread matthewjuran
grep -r ") Read(" . If you have grep this works ok (-r to recursively look in directories) if you want to isolate one method. Matt On Saturday, April 28, 2018 at 12:06:07 AM UTC-5, k1at...@gmail.com wrote: > > Hi > > How can i get a list of types which implement a particular interface ? ( >

[go-nuts] Re: [ANN] gomacro v2.6 - interactive Go interpreter, now with debugger

2018-04-28 Thread Max
That's basically what I have done, and it's both pretty declarative (although not fully) and statically typed. If you are interested, take a look at https://github.com/cosmos72/gomacro/blob/master/example/make_fibonacci.gomacro and the file it generates when executed by gomacro in preprocessor

[go-nuts] Re: [ANN] gomacro v2.6 - interactive Go interpreter, now with debugger

2018-04-28 Thread Louki Sumirniy
I can think of many uses for macros, so it's a good thing though I will never use a language that compiles to Go because I like static typing. It would be a logical next step to implement by-default reflection and dynamic typing. But I don't see the benefit. Go's whole schtick is about how it's

Re: [go-nuts] Beginner question about interface

2018-04-28 Thread Jan Mercl
On Sat, Apr 28, 2018 at 8:56 AM wrote: > I want to search in all library (which have source code) If the above means the standard library: either local godoc search or https://golang.org/search?q=Read. But as you can see, you'll get a vast amount of hits. > for exmaple : >

Re: [go-nuts] Beginner question about interface

2018-04-28 Thread Bakul Shah
On Apr 27, 2018, at 11:56 PM, k1atti...@gmail.com wrote: > > I want to search in all library (which have source code) > Maybe i don't understand the concept of Golang (I have delphi,c++,c > background) > > > for exmaple : > I see this. This function need an interface type : r > func

Re: [go-nuts] Beginner question about interface

2018-04-28 Thread Wojciech S. Czarnecki
On Fri, 27 Apr 2018 22:06:07 -0700 (PDT) k1atti...@gmail.com wrote: > How can i get a list of types which implement a particular interface ? ( > for exmaple io.Reader) By using a tool named 'guru'. http://golang.org/s/using-guru https://godoc.org/golang.org/x/tools/cmd/guru Unlike in

Re: [go-nuts] Beginner question about interface

2018-04-28 Thread k1attila1
Thank you But how do you know which types has this method ? Thank you Attila (Én voltam az aki már irt neked egyszer, de még mindig csak küzdök ezzel a Goval - szerencse csak hobbi.) 2018. április 28., szombat 9:00:27 UTC+2 időpontban Tamás Gulácsi a következőt írta: > > See what an

Re: [go-nuts] Beginner question about interface

2018-04-28 Thread Volker Dobler
On Saturday, 28 April 2018 08:56:18 UTC+2, k1at...@gmail.com wrote: > > But which type satisfy this r parameter ? > This question has no interesting answer. Or put it the other way around: What would you do with an answer to this question? _Any_ io.Reader is okay. And the information that

Re: [go-nuts] Beginner question about interface

2018-04-28 Thread Tamás Gulácsi
See what an io.Reader is: just one method, a "Read([]byte) (int, error)". So if a type has such method, it can be used as an io.Reader. No explicit declaration ("implements") is needed! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

Re: [go-nuts] Beginner question about interface

2018-04-28 Thread k1attila1
I want to search in all library (which have source code) Maybe i don't understand the concept of Golang (I have delphi,c++,c background) for exmaple : I see this. This function need an interface type : r func NewScanner(r io .Reader

Re: [go-nuts] Beginner question about interface

2018-04-28 Thread Jan Mercl
The answer depends on the scope you want to search. Which scope you want to search? Also, please share what purpose does that information serve. I cannot imagine a one. On Sat, Apr 28, 2018, 07:06 wrote: > Hi > > How can i get a list of types which implement a particular