Re: [go-nuts] Re: Generics are overrated.

2017-07-29 Thread Daniel
I'm curious: are there use-cases where template generation with gengen/genny/etc are not enough? seems to me that calling "go generate" a few times (when you need to generate generic containers for certain types) is a very fair tradeoff to have generic containers without having to change the langua

Re: [go-nuts] Re: What's the best IDE for golang?

2017-01-03 Thread Daniel
Atom with go-plus works great for me, the integrated debugger works well too. 1) multi-tabs code editing with documentation - http://i.imgur.com/wbJfD2I.png 2) debugger and linter messages - http://i.imgur.com/May8Ygo.png On Thu, Jan 28, 2016 at 2:31 AM, wrote: > Atom seconded. With the Git t

Re: [go-nuts] New to Go; Saying Hello !

2018-02-23 Thread Daniel Skinner
hi :) On Fri, Feb 23, 2018, 8:26 AM wrote: > So, I started programming in Go about a month ago. I can't stop. > I can't even describe why I am enjoying the language so much, except by > saying... > > It's fun to program in Go! > > I have now embarked on a mission to create an online game, using

[go-nuts] Re: Go += Package Versioning

2018-02-27 Thread Daniel Theophanes
Hi Robert, you still can do that. Just add a "replace" directive in the local go.mod. Please see https://research.swtch.com/vgo-tour for more details. On Tuesday, February 27, 2018 at 1:47:40 PM UTC-8, Robert Carlsen wrote: > > Before with the naive GOPATH workflow and also with vendoring, it wa

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

2018-04-23 Thread Daniel Theophanes
The sample raster images look great! Right now, due to how Go statically links code I can't use GPL code in just about anything I use Go for. I totally respect your license decision, but, it may be a poorer fit for Go... On Sunday, April 22, 2018 at 10:41:07 AM UTC-7, Steven Wiley wrote: > > Hi

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, vis

[go-nuts] New meetup in Sheffield

2018-08-16 Thread Daniel Martí
Hi all, I have just started a Go meetup in Sheffield, England: https://www.meetup.com/GoSheffield/ Feel free to sign up if you live nearby or would visit from time to time - regular meetups will begin next month :) Thanks! -- You received this message because you are subscribed to the Google

[go-nuts] database/sql/driver: how to return *sql.Rows?

2018-09-22 Thread Daniel Theophanes
I'm sorry, I've been meaning to reply. I'll do so tonight if I can. -- 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

Re: [go-nuts] Go list returning directory starting with underscore on Ubuntu

2018-10-11 Thread Daniel Martí
I've encountered similar behavior with testdata directories within GOPATH, when not in module-aware mode. I found this thread while searching for answers, so I'm linking the issue I just created in case anyone else runs into the same bug: https://github.com/golang/go/issues/28155 On Wednesday, A

[go-nuts] Re: discuss database/sql feature request: add ability to retrieve driver.Driver by registered driver name.

2018-11-01 Thread Daniel Theophanes
Driver name issue: https://golang.org/issue/12600 But I think I would prefer to solve: https://golang.org/issue/18080 Now with connectors (sql.OpenDB) drivers may not have a "name". I would love a working proposal that would take the place of ocsql, or at least provide it hooks to work without w

Re: [go-nuts] [ANN] fixed point math library

2018-11-29 Thread Daniel Kortschak
In the majority of cases compression does not reduce the number of bits of information (appreciably). On Thu, 2018-11-29 at 08:35 -0600, Robert Engels wrote: > And since you like lingo, more bits of information is not always a > good thing. That’s why we have compression, and lossless compression

Re: [go-nuts] [ANN] fixed point math library

2018-11-29 Thread Daniel Kortschak
That is correct. The number of physical bits used to represent the information is reduced. The number of bits of information remains the same except in the case of lossy compression. If this were not true, I could propose the following compression protocol: count the number of 1 bits in the uncomp

Re: [go-nuts] [ANN] fixed point math library

2018-11-29 Thread Daniel Kortschak
on; fixed.Number. Thanks for playing! On Thu, 2018-11-29 at 16:24 -0600, robert engels wrote: > Right and since fixed.Fixed can be reduced to Fixed with no loss of > information, it is a great lossless compression - more than 50 %. > > Thanks for playing ! > > > >

Re: [go-nuts] Go offline development recommendations

2018-12-13 Thread Daniel Theophanes
on the exact same page. If this situation, you either need to do per project vendoring or per environment vendoring like athens. Both just take similar project structure. -Daniel On Wednesday, December 12, 2018 at 2:19:01 PM UTC-8, snmed wrote: > > Hi thepudds > > Thanks for you R

[go-nuts] database/sql changes and proposals

2019-02-12 Thread Daniel Theophanes
ng to it (if you aren't already). Thanks, -Daniel -- 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

[go-nuts] Re: Is it possible to cache Javascript function references and then Invoke() them ? (WebAssembly)

2019-03-11 Thread Daniel Salvadori
I'm also interested in this. On Friday, March 8, 2019 at 12:40:21 PM UTC-3, Elemer Pixard wrote: > > Hi, > > > The recommended way to call a Javascript function through syscall/js seems > to be: > > doc := js.Global().Get("document") > div := doc.Call("createElement", "div") > > > Why is not poss

[go-nuts] Decimal survey

2019-03-28 Thread Daniel Theophanes
rking with databases, much easier. Thanks, -Daniel -- 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

[go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-03-31 Thread Daniel Theophanes
I don't typically run wayland anywhere, but I was interested in this project and installed wayland and weston from my package manager. However, it seems my package manager's version of weston (v4.0.0) is too old(?) because I get the Go error: "wayland: no xdg_wm_base available". Probably from

[go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-04-03 Thread Daniel Theophanes
e feedback, good to know. 1. https://bbs.deepin.org/forum.php?mod=viewthread&tid=133029&page=1#pid279019 On Wednesday, April 3, 2019 at 7:51:59 AM UTC-7, ma...@eliasnaur.com wrote: > > > > On Monday, April 1, 2019 at 7:18:49 AM UTC+2, Daniel Theophanes wrote: >> >&

[go-nuts] [ANN] Gokoban - 3D Puzzle Game written in Go!

2017-07-31 Thread Daniel Salvadori
Hi everyone, I made an open-source 3D puzzle game with Go. It's called Gokoban ! You control the Go gopher, and your objective in each level is to push the boxes until they are all on top of the yellow pads. There are elevators that help you reach high plac

Re: [go-nuts] Is x/exp/shiny dead?

2017-07-31 Thread Daniel Skinner
As one of the persons reached out to for that effort (and I'm not a shiny contributor), my current unpublished work will eventually serve as a basis for some proposals to shiny for review that maybe after some testing and input from others will stand on its on merits, for such a proposal. Even as

[go-nuts] Re: [Blog] Context should go away for Go 2

2017-08-07 Thread Daniel Theophanes
or another. Last time I checked no one is running a popularity contest. Thanks, -Daniel On Monday, August 7, 2017 at 6:40:05 AM UTC-7, Michal Strba wrote: > > Hi everyone! > > I've written a blog post called 'Context should go away for Go 2': > > https://faifa

Re: [go-nuts] Re: [Blog] Context should go away for Go 2

2017-08-08 Thread Daniel Theophanes
I'm personally reasonably happy with Context as-is. Bit if you are looking for a better solution, I completly agree with "as.utf8": the solution won't be found in TLS/GLS (goroutine local storage) but in some other contextual/namespace/arena type thing that is larger then a single goroutine, is sti

[go-nuts] os/exec CreateProcessAsUser

2017-09-04 Thread Daniel Smith
Is there is any way to have os/exec call CreateProcessAsUser or CreateProcessWithLogon? I've tried calling ImpersonateLoggedOnUser, as well as replacing the user token after the process is spawned, and neither route has the desired effect. All I can come up with is copying the whole os/exec pa

[go-nuts] Go tool for formatting sql in the source code

2017-09-19 Thread Daniel Theophanes
Start by building a lexer for your SQL dialect or find an existing one. Once done investgate the go/ast package. -- 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

Re: [go-nuts] favicon generator

2017-09-27 Thread Daniel Skinner
you could adapt something like this to your needs: https://github.com/dskinner/x/blob/master/cmd/droidscale/droidscale.go On Tue, Sep 26, 2017, 4:48 AM Joe Blue wrote: > drives me nuts making icons for web, desktop and mobiles. > > anyone know or a generator. prefer using golang :) > > -- > You

[go-nuts] Graphing libraries in golang

2017-09-29 Thread Daniel Whitenack
. Just let me know how I can help! Daniel -- 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, v

[go-nuts] Building a neural net from scratch

2017-10-11 Thread Daniel Whitenack
Slack. Best, Daniel -- 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, visit https://groups.go

Re: [go-nuts] Re: Building a neural net from scratch

2017-10-12 Thread Daniel Whitenack
Hi Alex, Thanks! Appreciate the kind words. Reach out any time if I can help with any of your use cases, answer questions, etc. Best, Daniel On Wed, Oct 11, 2017 at 10:33 PM, Alex Buchanan wrote: > I just happen to have read your "Common Go for Data Science Questions" > post

Re: [go-nuts] Re: Cross compiled binary caches goroot?

2017-10-16 Thread Daniel Skinner
As mentioned in last paragraph here: https://golang.org/pkg/runtime/ GOARCH, GOOS, and GOROOT are recorded at compile time and made available by constants or functions in this package, but they do not influence the execution of the run-time system. I'd first be inclined to think Mage source has d

Re: [go-nuts] Re: Gomobile and SAF

2017-10-16 Thread Daniel Skinner
How were you intending to run the Go program? iirc you'll need access to a Context that can only be provided by the Dalvik VM, and that can only be instantiated via bytecode ran on the VM (so use Java). The first entry point this is provided is Application.onCreate when said class is declared in t

Re: [go-nuts] Re: Gomobile and SAF

2017-10-16 Thread Daniel Skinner
I'm inclined to say a Service would be better for Context access instead of a noop Activity. You should be able to make the Service instantiate needed resources or provide an implementation to instantiate those resources and a method for communicating that logic in Go. If you don't want parallel ve

Re: [go-nuts] Re: Cross compiled binary caches goroot?

2017-10-16 Thread Daniel Skinner
erence between the failing program and the > succeeding one > > > > On Monday, October 16, 2017 at 12:22:00 PM UTC-4, Daniel Skinner wrote: > >> As mentioned in last paragraph here: https://golang.org/pkg/runtime/ >> >> GOARCH, GOOS, and GOROOT are recorded at co

Re: [go-nuts] Re: Pure Golang Android Service

2017-10-24 Thread Daniel Skinner
The manifest can specify hooks for Service implementations, such as to start on-boot, but the platform still requires the implementation of the Service class. One could write a generic NativeService implementation for easy reuse and launching of native processes, but otherwise nothing has changed w

[go-nuts] Expected ambigiuous reference error, got a value instead

2017-11-03 Thread Daniel Skinner
https://play.golang.org/p/Y1UxMgNhWx I ran into this today but don't understand why the compiler isn't throwing an ambiguous reference error. Maybe I've misunderstood why this error is thrown the few times I've seen it. -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Expected ambigiuous reference error, got a value instead

2017-11-03 Thread Daniel Skinner
st path wins" phrase I have is back when vendor directory was introduced. On Fri, Nov 3, 2017 at 5:11 PM Jan Mercl <0xj...@gmail.com> wrote: > > On Fri, Nov 3, 2017 at 11:04 PM Daniel Skinner wrote: > > > https://play.golang.org/p/Y1UxMgNhWx > > > > I ran into

Re: [go-nuts] Expected ambigiuous reference error, got a value instead

2017-11-05 Thread Daniel Skinner
orm GLUniform is changed to this: type Uniform struct { GLUniform } access to the Value fields would now exist at the same depth and produce the error I was expecting to see. https://golang.org/ref/spec#Selectors On Fri, Nov 3, 2017 at 5:38 PM Daniel Skinner wrote: > Right, I've mi

Re: [go-nuts] Expected ambigiuous reference error, got a value instead

2017-11-05 Thread Daniel Skinner
t know when the shallowest depth can occur while not being on > shortest path. Note that path was used in this discussion as meaning full, > unpromoted path, ie. like if every embedded field of type T was declared T > T instead. The actual selector expression is a prefix of this full path. >

Re: [go-nuts] A way to detect closed channel

2017-11-06 Thread Daniel Skinner
meaning, don't call that select+code block from multiple goroutines. If on the other-hand that block is always called from the same goroutine, then it will do what you want, but that may be a slippery slope depending on what you're writing. On Mon, Nov 6, 2017 at 7:33 PM Dan Kortschak wrote: > N

Re: [go-nuts] A way to detect closed channel

2017-11-07 Thread Daniel Skinner
Instead of recover, I'd consider simply writing to the channel. https://play.golang.org/p/ShoadwrwTQ If it has to be a close, pass in additional state to close only once. https://play.golang.org/p/pwO3JF60Cr On Tue, Nov 7, 2017 at 3:32 AM roger peppe wrote: > On 7 November 2017 at 00:59, Albe

[go-nuts] Re: Short Term DSN for database/sql

2017-11-07 Thread Daniel Theophanes
Go1.10 will ship with a driver connector https://tip.golang.org/pkg/database/sql/driver/#Connector . It would be possible for a driver to provide a callback function that returned the most recent authentication parameters by using that. Thanks, -Daniel On Tuesday, November 7, 2017 at 5:34:20

Re: [go-nuts] Re: Short Term DSN for database/sql

2017-11-09 Thread Daniel Theophanes
ld use when it needed to > open a new connection correct? > > Anthony > > > On Tuesday, November 7, 2017 at 9:44:05 AM UTC-8, Daniel Theophanes wrote: >> >> Go1.10 will ship with a driver connector >> https://tip.golang.org/pkg/database/sql/driver/#Connector

Re: [go-nuts] Re: Short Term DSN for database/sql

2017-11-09 Thread Daniel Theophanes
s connection pool? They go back to the driver provided Connector > interface to re-authenticate/create a connection? > > Thanks, > Anthony > > > On Thursday, November 9, 2017 at 10:49:00 AM UTC-8, Daniel Theophanes > wrote: > >> It allows drivers a way to provide a

Re: [go-nuts] Puzzle: make a sync.Once fire more than once

2017-11-19 Thread Daniel Skinner
I'd note the following: https://play.golang.org/p/U_lmt-go6M Also, this can be simplified to the following: https://play.golang.org/p/eFnM98yRLk Such a puzzle should look something more like: https://play.golang.org/p/8KD6INL9QP On Sun, Nov 19, 2017 at 6:25 PM Carl Mastrangelo wrote: > Hi gop

[go-nuts] Is go1.10beta1 a debug or unoptimized build? (possible regression)

2017-12-22 Thread Daniel Theophanes
The beta is a normal release, not debug or no opt. File an issue, if possible try to get a minimal repro case you can post. -- 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] Re: Is go1.10beta1 a debug or unoptimized build? (possible regression)

2017-12-23 Thread Daniel Theophanes
It did change. See https://golang.org/cl/76990 and https://github.com/golang/go/issues/20427 . The numbers you posted look larger then anticipated if it is the same one. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this g

[go-nuts] Re: A question about A sync.Once implementation.

2019-05-07 Thread wudi . daniel
Hi, Thanks for your reply. The second bug is a known issue, so let’s ignore that. In that case, I think function f still can only be executed once. But why does the load and store of o.done need to be done using atomic operations? I suppose there’s mutex assuring the happens-before.

Re: [go-nuts] A question about A sync.Once implementation.

2019-05-07 Thread wudi . daniel
I'm quite sorry for that. This is my first time posting code here. Here's go playground link: https://play.golang.org/p/9xVjoD7rI0F. 在 2019年5月7日星期二 UTC+8下午10:08:39,Ian Lance Taylor写道: > > On Tue, May 7, 2019 at 5:55 AM > wrote: > > > > Hi, > > I did a quiz recently, but I'm having probl

[go-nuts] [ANN] Simple DNS Server implemented in Go

2019-06-25 Thread Daniel Lorch
ON: ;example.com. IN A ;; ANSWER SECTION: example.com.31337 IN A 3.1.3.7 ;; Query time: 0 msec ;; SERVER: ::1#1053(::1) ;; WHEN: Mon Jun 17 17:02:43 CEST 2019 ;; MSG SIZE rcvd: 56 Looking forward to any feedback you might have. Regards Daniel

Re: [go-nuts] [ANN] Simple DNS Server implemented in Go

2019-06-26 Thread Daniel Lorch
Hi Matt I was not aware of this, thank you! I added a note in my repository. Daniel On Wednesday, June 26, 2019 at 2:54:39 AM UTC+2, Matt Harden wrote: > > I realize this is a learning exercise for you, but in case you're > interested, the DNS message types are implemented for y

[go-nuts] Avoiding resource leaks with racing channels

2019-07-08 Thread Daniel Eloff
If a select statement has multiple channels ready when it runs, then it will choose one at a random. So if you fire something across a channel that holds a resource, like an open file descriptor - you have no guarantees that the other end of the channel receives it. The (possibly full) channel

[go-nuts] How to write bson form of mongo query in golang?

2019-07-09 Thread wilson2000 . daniel
I can query my mongodb collection to get the ipv4Addresses based on the nfType and the minimum distance using the command line query db.nfinstancesdb.aggregate([ { "$match": { "nfType": "AMF" } }, { "$unwind": "$ipv4Addresses" }, { $group: { "_id": "$dista

[go-nuts] Re: How to write bson form of mongo query in golang?

2019-07-09 Thread daniel wilson
quot;}}, and "_id": bson.M{"$distance"}. I have tried changing them to {"$unwind": "$ipv4Addresses"}, and bson.M{"_id": "$distance"} but it not working. On Tuesday, July 9, 2019 at 3:49:06 PM UTC+3, daniel wilson w

Re: [go-nuts] Avoiding resource leaks with racing channels

2019-07-09 Thread Daniel Eloff
> > > In my opinion the best place for this kind of discussion is a blog > post or talk. > I disagree strongly. If there's a mode of operation that's dangerous when I'm operating a car or machinery I want it to not just be called out in the manual, but called attention to in a big bold font.

Re: [go-nuts] Avoiding resource leaks with racing channels

2019-07-09 Thread Daniel Eloff
> > > And not only that, it's complicated. The language spec is not the > right place to dig into the complexities of how to use select safely > while avoiding race conditions. There is just too much to say. And > there are no docs for select other than the language spec. > > Well here's th

[go-nuts] Re: tool to print dependency graph of /vendor libs

2016-09-02 Thread Daniel Theophanes
You may be interested in github.com/kardianos/govendor govendor list -v On Friday, September 2, 2016 at 11:20:54 AM UTC-7, Davis Ford wrote: > > Hi, > > Does anyone know of a tool that can analyze dependencies and print a > graph, specifically as it relates to golang vendor'd libraries. I'm usin

Re: [go-nuts] Re: [ANN] A Go based map reduce system (second attempt)

2016-09-13 Thread Daniel Whitenack
Henrik and David, Yes, this is precisely what pachyderm is trying to accomplish (along with a built in data versioning system). It's pretty wonderful, and I recommend running through their quick start guide: http://pachyderm.readthedocs.io/en/latest/ Daniel On Monday, September 12, 20

[go-nuts] Re: [ANN] A Go based map reduce system (second attempt)

2016-09-13 Thread Daniel Whitenack
Chris, This is great to see! Nice work so far. I enjoyed experimenting with glow and am excited to follow this project. If you are able you might provide some updates in #data-science on gophers slack. I know people there would love to hear about gleam. Best, Daniel On Monday, September

[go-nuts] Re: Govendor and Docker Build Container issues

2016-09-20 Thread Daniel Theophanes
I would run govendor list Does it report any external packages? If so run "govendor add +external" On Tuesday, September 20, 2016 at 8:12:16 AM UTC-7, sc28 wrote: > > I have a application structure as follows in my GoPath: > > --/ myproject > | > |-- apps >|-- app1

[go-nuts] Re: go-gcnl: Golang library for accessing the Google Cloud Natural Language API

2016-09-29 Thread Daniel Whitenack
/resources/blob/master/tooling/README.md#nlp Daniel On Friday, September 2, 2016 at 9:51:30 AM UTC-4, Josh Lubawy wrote: > > Hi All, > > I made a new library that I thought some people might find useful: > https://github.com/jlubawy/go-gcnl > > Feedback and feature requests

[go-nuts] golang and java, a view

2016-10-24 Thread Daniel Theophanes
Go1.8 will support multiple result sets if the driver support it. There are people who would like to get a decimal package, there is a proposal, but there is a lack of time on that. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscrib

Re: [go-nuts] golang and java, a view

2016-10-24 Thread Daniel Theophanes
Oracle and ms SQL server support multiple active row sets (MARS). I've also used a table buffer in Go and C#. You can buffer results today in go On Mon, Oct 24, 2016, 10:24 Pietro Gagliardi wrote: > > On Oct 24, 2016, at 12:24 PM, Daniel Theophanes > wrote: > > Go1.8 w

[go-nuts] Re: iconvg: a compact, binary format for simple vector graphics

2016-10-24 Thread Daniel Theophanes
My understanding is that the original rust font render code could replace something like FreeType. Do you envision using iconvg and vector as a replacement for the go freetype package, where font glyphs would be loaded in as iconvg byte streams in a cache and then simply read from there in the

Re: [go-nuts] Re: Stalking people online for thought crimes! This is what the Go project has succumbed to!

2016-10-27 Thread Daniel Skinner
The email was presumptuous, so as to describe "more productive", and threatening with "consider this a warning". It also felt cold and unwelcoming like a bot generated it. I do not advocate this CoC at all, but at the very least the email could have stuck to what was known to start a private conve

Re: [go-nuts] Re: Stalking people online for thought crimes! This is what the Go project has succumbed to!

2016-10-28 Thread Daniel Skinner
> > The original e-mail is clear that it was passing along a complaint > from someone else. That person was following the procedure outlined > in Go's code of conduct (https://golang.org/conduct). > In bold, the CoC calls out, "Note that the goal of the Code of Conduct and the Working Group is to

[go-nuts] Re: Suggestion: port golang.org/x/mobile/exp/audio/al to Windows

2016-10-28 Thread Daniel Theophanes
I would love to also see this happen. If you have time feel free to document your approach you took and what your success was, or submit a change request yourself. -Daniel On Thursday, October 27, 2016 at 10:22:50 AM UTC-7, faifa...@gmail.com wrote: > > Hi there, > > recentl

[go-nuts] Re: Will database/sql leak memory if I don't call Close() and remove references to it?

2016-11-01 Thread Daniel Theophanes
If you open DB with db.Open, yes, you will need to call db.Close(). Without that it will keep alive a pool of connections to your remote database. -Daniel On Monday, October 31, 2016 at 10:33:06 PM UTC-7, Francis Chuang wrote: > > I want to use Vault <https://github.com/hashicorp/

Re: [go-nuts] Will database/sql leak memory if I don't call Close() and remove references to it?

2016-11-01 Thread Daniel Theophanes
I think there is a larger issue at play of how old connections are cached and handled. In particular there is no way to flush cached connections or update credentials in the API. Could you file an issue with how to best update credentials on an existing connection pool? -- You received this m

[go-nuts] Re: [ANN] Go geospatial libraries: geometries, GeoJSON, WKB, KML, PostGIS, GPX, polyline

2016-11-14 Thread Daniel Whitenack
Thanks Tom! I think it would be great to add a few of these here: https://github.com/gopherds/resources/tree/master/tooling where you think it is appropriate. Would you consider submitting a PR with some additions? Daniel On Sunday, November 13, 2016 at 1:33:27 PM UTC-5, Tom Payne wrote

[go-nuts] Re: Library for NLP: counting word syllables, words, sentences

2016-11-15 Thread Daniel Whitenack
Hi Johann, Looks like there are a good number of packages listed here: https://github.com/gopherds/resources/blob/master/tooling/README.md#nlp In particular, it sounds like this one has some of what you need: https://github.com/advancedlogic/go-freeling Daniel On Tuesday, November 15, 2016

[go-nuts] How can I make io.Reader stop reading?

2016-11-16 Thread Daniel Theophanes
You can also use it.CopyContext and cancel the ctx. -- 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, v

Re: [go-nuts] Re: Understanding go routine heap

2016-11-30 Thread Daniel Fanjul
olang.org/ref/spec#Defer_statements, so I feel inclined to conclude this behavior is undefined by the spec. Daniel. On Tuesday, August 23, 2016 at 3:23:27 PM UTC+2, Ian Lance Taylor wrote: > > On Tue, Aug 23, 2016 at 3:14 AM, Yulrizka > > wrote: > > > > But the case he

Re: [go-nuts] Re: Understanding go routine heap

2016-11-30 Thread Daniel Fanjul
d, Nov 30, 2016 at 7:04 PM Daniel Fanjul > wrote: > > > Sure, the call to wg.Done() will "happen before" wg.Wait() finishes, but > the assignment "result = &foo{1}" might still happen concurrently. > > > > I think the problem is the semantics of

Re: [go-nuts] Re: Understanding go routine heap

2016-11-30 Thread Daniel Fanjul
variables they may access" On Wednesday, November 30, 2016 at 8:42:59 PM UTC+1, Ian Lance Taylor wrote: > > On Wed, Nov 30, 2016 at 10:04 AM, Daniel Fanjul > > wrote: > > > > I still don't understand this issue completely. > > > > Sure, th

Re: [go-nuts] Re: Understanding go routine heap

2016-11-30 Thread Daniel Fanjul
Case A: because there is a write and then a method call that does not touch that variable. The go memory model apply only to reads and writes of the same variables. So any possible reordering in this scenario fulfills "the reordering does not change the behavior within that goroutine as defined

Re: [go-nuts] Re: Understanding go routine heap

2016-11-30 Thread Daniel Fanjul
I was going to answer no, but after a careful review of the go memory model section regarding locks, I am replying: yes, I would. Because the memory model only specifies "happens before" restrictions between calls to Lock() and Unlock() and that is not this case. "For any sync.Mutex or sync.RWMu

Re: [go-nuts] Re: Understanding go routine heap

2016-11-30 Thread Daniel Fanjul
Err... I think you understood the opposite. A no answer would mean this is that issue. A yes answer means the mutex is still not enough. I said yes. On Wednesday, November 30, 2016 at 11:23:49 PM UTC+1, Ian Lance Taylor wrote: > > On Wed, Nov 30, 2016 at 2:01 PM, Daniel Fanjul >

[go-nuts] locks and "happens before" withing a goroutine

2016-11-30 Thread Daniel Fanjul
and between calls to the same mutexes. This example uses different variables: a != x, a != b and x != b, so it does not seem to be included by the model. Daniel. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] Re: locks and "happens before" withing a goroutine

2016-11-30 Thread Daniel Fanjul
I think the current implementations of the methods of sync.RWMutex happen to be actual memory barriers and this is why everything works just fine. But I don't think the spec or the memory model or the doc of sync mentions this. If this is not desc

[go-nuts] Re: locks and "happens before" withing a goroutine

2016-11-30 Thread Daniel Fanjul
I cannot tell if there is any memory barrier in the code of sync.RWMutex.Lock(), I don't understand it completely. I just think there is not. https://golang.org/src/sync/mutex.go?s=1143:1165#L34 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

Re: [go-nuts] Re: locks and "happens before" withing a goroutine

2016-12-01 Thread Daniel Fanjul
ecessary to understand the memory model. Otherwise its examples do not make sense at all. Thank you all, I finally and completely understood the memory model. On Thursday, December 1, 2016 at 7:15:45 AM UTC+1, Ian Lance Taylor wrote: > > On Wed, Nov 30, 2016 at 5:44 PM, Daniel Fanjul > &g

Re: [go-nuts] Re: Isn't the use of Context in db/sql non-diomatic?

2016-12-09 Thread Daniel Theophanes
these when dispatching requests in the router and using them for the subsequent requests. Has /report/ prefix? Set to ReadOnly and Isolation X Has /api/ prefix? Set Isolation to Y At least that is how I would envision using them. I have been known to be wrong before. What do you think? -Daniel O

Re: [go-nuts] Re: Isn't the use of Context in db/sql non-diomatic?

2016-12-10 Thread Daniel Theophanes
André, Thanks for the constructive feedback. I agree the signature you propose would be another way to do this. For people who care about these settings, I would expect multiple queries per request is normal and ensuring the props are the same sounds like a benefit, not a detriment. In other

Re: [go-nuts] Re: Isn't the use of Context in db/sql non-diomatic?

2016-12-11 Thread Daniel Theophanes
How would you put them in query when args are the last ...warm? On Sat, Dec 10, 2016, 22:44 Tamás Gulácsi wrote: > I'd also like to change the API for passing options as Andrè suggested: by > optional funcs. But everywhere - they're not to be in a Context! > > To put them in Context feels a hack

Re: [go-nuts] Re: Isn't the use of Context in db/sql non-diomatic?

2016-12-11 Thread Daniel Theophanes
hOpts, args > ...interface{}) (sql.Rows, error) > ? > > Where > type QueryWithOpts struct { > fmt.Stringer > opts []qryOpt > } > > and > > func Query(qry string, options ...qryOpt) QueryWithOpts > > á'lá sql.NamedArg. > > > But this feels jus

Re: [go-nuts] Announcing Gogland – Brand New Go IDE from JetBrains

2016-12-16 Thread Daniel Skinner
Great work, as a long time IntelliJ user for a variety of different languages I'm excited to see how this Go-centric version turns out. Added my name to the private beta. On Thu, Dec 15, 2016 at 8:28 AM Florin Pățan wrote: > Hi all, > > > I'm very excited to announce a new episode in the life of

Re: [go-nuts] Hashing (u)int8

2016-12-16 Thread Daniel Skinner
It's surprising but it's not. Who would have guessed 8bits would be more expensive on a 64bit platform. On Fri, Dec 16, 2016 at 11:15 PM Damian Gryski wrote: > The runtime has optimized map implementations for strings, int32 and > int64-sized thing > > There is no optimized implementation for in

[go-nuts] [ANN] sh 1.0 released, a shell parser and formatter

2016-12-20 Thread Daniel Martí
yone build this?". -- Daniel Martí - mv...@mvdan.cc - https://mvdan.cc/ -- 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...@goog

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2016-12-24 Thread Daniel Skinner
I haven't used these bindings but wouldn't you rename the v7 import as sapp "Java/android/support/v7/app" and then import "Java/android/app" then reference `app.AlertDialog` as appropriate? You'll also need to call `dialog.Show()` in `showDialog`. On Sat, Dec 24, 2016 at 8:35 AM glenford willi

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2016-12-24 Thread Daniel Skinner
> app redeclared as imported package name This suggests that you still have multiple `app` imports without each having a unique name. Double check your imports in all source files being compiled. > import "Java/android/app/Service" I'd imagine `Service` is not a package and not something you can

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2016-12-24 Thread Daniel Skinner
You're right, I failed to consider the constants on Service. I thought I saw something about this recently but it just turned out to be you five days ago :) On Sat, Dec 24, 2016 at 4:27 PM andrey mirtchovski wrote: > Apologies for the digression. > > > This suggests that you still have multiple

[go-nuts] Typed encoding

2017-01-05 Thread Daniel Martí
ds to each interface value. But as you can imagine, that's a lot of boilerplate. And I'm fairly sure there has to be something for this. -- Daniel Martí - mv...@mvdan.cc - https://mvdan.cc/ -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] Re: Using Go in a locked down SOC2 environment (dependency management hell)

2017-01-06 Thread Daniel Theophanes
jects allow setting origin separately from import path (govendor allows this). Thanks, -Daniel On Friday, January 6, 2017 at 8:35:41 AM UTC-8, Jacek Furmankiewicz wrote: > > Hi everyone, > > We are operating in a SOC2 environment, which our customers demanded as we > host their sy

[go-nuts] database/sql: special interest group

2017-01-08 Thread Daniel Theophanes
ld also be good to vet drivers through a common testing suit and setup CI for drivers without it yet. Thanks, -Daniel -- 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

[go-nuts] State of the database drivers in go

2017-01-12 Thread Daniel Theophanes
I know drivers for postgesql, MySQL, Ms SQL server, and Oracle are maintained. -- 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...@googlegroup

Re: [go-nuts] Re: State of the database drivers in go

2017-01-13 Thread Daniel Theophanes
, -Daniel On Friday, January 13, 2017 at 4:27:06 AM UTC-8, snmed wrote: > > Thats great to hear, i will start a prototype of the project with postgres > and mongodb. Then i will see if our needs are satisfied and > if we stay with go. :-) I really hope it is working out for us, i wou

[go-nuts] Re: x509: failed to load system roots and no roots provided

2016-06-13 Thread Daniel Garcia
can also bind mount the cert directory of your host into your container. Regards, Daniel On Monday, June 13, 2016 at 2:26:34 PM UTC-5, Chris Johnson wrote: > > Hi, > > We have a container running a Golang 1.6 based app that tries to perform > an OAuth request against GitHub. We

Re: [go-nuts] GoMobile window size always 800x800

2016-06-17 Thread Daniel Skinner
> but I still want to test my app at explicit screen sizes testing on actual hardware is still going to be the best, but I'd imagine there's something out there for OSX that'd let you specify the exact window size (of any window open). > Also, Android best practices does recommend as an option cr

Re: [go-nuts] [?] emulating an opengl shader in cpu bound functions

2016-06-21 Thread Daniel Skinner
I pinned this question to my email b/c I'm going to be doing something similar soon and why not help a similar soul out, but really even though I can't give you a straight answer now, the answer is still pretty straight forward. There's nothing predominantly interesting between a gpu shader and a

Re: [go-nuts] GoMobile window size always 800x800

2016-06-21 Thread Daniel Skinner
his is actually a stumbling block that I researched online > and found others having difficulty with as well. It would help a lot to > have this feature, but I'm not familiar enough with the codebase or feature > threshhold to understand the downside of adding it to the API. > >

  1   2   3   >