Re: [go-nuts] Re: KVs store for large strings

2017-06-15 Thread Kiki Sugiaman
Glad it was of any help. I'll just leave my fix here for others who might get confused by my previously screwed up example: https://play.golang.org/p/slzcEm0Zka On 16/06/17 10:53, James Pettyjohn wrote: Thanks for the follow-up! That ended up being the approach I took - map two levels deep

[go-nuts] Set LD_LIBRARY_PATH while executing go test

2017-06-15 Thread lakshmibc8
Hello, Is there a way to set the LD_LIBRARY_PATH while executing go test command? My version is "go version go1.5.1 linux/amd64" 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 f

[go-nuts] genmap: Generate thread-safe, type-safe maps easily

2017-06-15 Thread ammar
https://github.com/ammario/mapgen Features: - Supports any key/value pair supported by Go's native maps - Allows complex operations via Lock() and Unlock() - Generated code conforms to golint and gofmt - Allows custom types - Sensible default file name and map name -- You

Re: [go-nuts] Re: chidley: XML to Go structs

2017-06-15 Thread Glen Newton
Without your XML file I cannot figure out the issue. If you are OK with sharing your XML file, please post it with the issue at: https://github.com/gnewton/chidley/issues Thanks, Glen On Wednesday, June 14, 2017 at 2:54:28 PM UTC-4, shrinkhala singhania wrote: > > Hi, > > I tried running my XML

Re: [go-nuts] Re: KVs store for large strings

2017-06-15 Thread James Pettyjohn
Thanks for the follow-up! That ended up being the approach I took - map two levels deep (because that's how the keys come through) and load everything at start up and use as an immutable structure. While in dev it is using the old code essentially and that's fine. I also noted that internal st

[go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-15 Thread G. R. Rocha
thank you Em quarta-feira, 14 de junho de 2017 19:15:49 UTC-3, Chris Broadfoot escreveu: > > Hello gophers, > > We have just released go1.9beta1, a beta version of Go 1.9. > It is cut from the master branch at the revision tagged go1.9beta1. > > There are no known problems or regressions. > Pleas

Re: [go-nuts] Curious about this snippet in /src/runtime/proc.go

2017-06-15 Thread Rob Pike
Code comments can be helpful with unusual situations like this. -rob On Fri, Jun 16, 2017 at 4:25 AM, Goodwin Lawlor wrote: > Thanks for the explanation. > > My random guess was that it's the compiler version of deleting your > browser cache... If exit fails, blank as much memory as we can get

Re: [go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-15 Thread Henrik Johansson
Ah well. Still cool though! On Thu, 15 Jun 2017, 22:12 Ian Lance Taylor, wrote: > On Thu, Jun 15, 2017 at 12:16 PM, Henrik Johansson > wrote: > > > > I must have missed this but just clarify my thoughts are all file reads > > async now? That would a pretty big deal for apps that read a lot of >

Re: [go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-15 Thread Ian Lance Taylor
On Thu, Jun 15, 2017 at 12:16 PM, Henrik Johansson wrote: > > I must have missed this but just clarify my thoughts are all file reads > async now? That would a pretty big deal for apps that read a lot of files. That would be nice but in practice most systems do not support pollable I/O on disk fi

Re: [go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-15 Thread Henrik Johansson
I must have missed this but just clarify my thoughts are all file reads async now? That would a pretty big deal for apps that read a lot of files. tors 15 juni 2017 kl 19:30 skrev Ian Lance Taylor : > On Thu, Jun 15, 2017 at 7:37 AM, wrote: > > > > With go1.9beta1 (Linux / amd64) I noticed an e

Re: [go-nuts] Curious about this snippet in /src/runtime/proc.go

2017-06-15 Thread Goodwin Lawlor
Thanks for the explanation. My random guess was that it's the compiler version of deleting your browser cache... If exit fails, blank as much memory as we can get our hands on. 😁 On 15 Jun 2017 6:34 pm, "Ian Lance Taylor" wrote: > On Thu, Jun 15, 2017 at 10:28 AM, Tyler Compton wrote: > > Why

Re: [go-nuts] Curious about this snippet in /src/runtime/proc.go

2017-06-15 Thread Tyler Compton
Very interesting. I'm not used to looking at Go code from the perspective of an implementer of Go. Somebody should contribute a comment about this upstream :) On Thu, Jun 15, 2017 at 10:34 AM Ian Lance Taylor wrote: > On Thu, Jun 15, 2017 at 10:28 AM, Tyler Compton wrote: > > Why not just pani

Re: [go-nuts] Curious about this snippet in /src/runtime/proc.go

2017-06-15 Thread Ian Lance Taylor
On Thu, Jun 15, 2017 at 10:28 AM, Tyler Compton wrote: > Why not just panic, though? And why the infinite loop, I wonder? The runtime is a special case in many ways, and this is among the more special parts. This loop exists to catch problems while testing new ports. If that loop is ever reache

Re: [go-nuts] Curious about this snippet in /src/runtime/proc.go

2017-06-15 Thread Aldrin Leal
I don't know. On Jun 15, 2017 12:29, "Tyler Compton" wrote: > Why not just panic, though? And why the infinite loop, I wonder? > > On Thu, Jun 15, 2017 at 9:56 AM Aldrin Leal wrote: > >> Force a panic in case exit fails? >> >> -- >> -- Aldrin Leal, / http://about.me/aldrinleal >> >> On Thu, Ju

Re: [go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-15 Thread Ian Lance Taylor
On Thu, Jun 15, 2017 at 7:37 AM, wrote: > > With go1.9beta1 (Linux / amd64) I noticed an extra file descriptor that I > cannot explain. > A simple example is after calling ioutil.ReadDir(). > > package main > import ( > >"fmt" > >"io/ioutil" > > ) > > func main() { > >_, e

Re: [go-nuts] Curious about this snippet in /src/runtime/proc.go

2017-06-15 Thread Tyler Compton
Why not just panic, though? And why the infinite loop, I wonder? On Thu, Jun 15, 2017 at 9:56 AM Aldrin Leal wrote: > Force a panic in case exit fails? > > -- > -- Aldrin Leal, / http://about.me/aldrinleal > > On Thu, Jun 15, 2017 at 4:54 AM, wrote: > >> Hey, >> >> Learning golang at the momen

Re: [go-nuts] Curious about this snippet in /src/runtime/proc.go

2017-06-15 Thread Aldrin Leal
Force a panic in case exit fails? -- -- Aldrin Leal, / http://about.me/aldrinleal On Thu, Jun 15, 2017 at 4:54 AM, wrote: > Hey, > > Learning golang at the moment and came across this at the end of func > main() in proc.go in the golang source tree. > > exit(0) > for { > var x *int32 > *x = 0

[go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-15 Thread pmorjan
With go1.9beta1 (Linux / amd64) I noticed an extra file descriptor that I cannot explain. A simple example is after calling ioutil.ReadDir(). package main import ( "fmt" "io/ioutil" ) func main() { _, err := ioutil.ReadDir(".") if err != nil { p

Re: [go-nuts] Go 1.9 Beta 1 is released

2017-06-15 Thread Юрий Соколов
In fact that was Dmitry's answer where he pointed to his previous answer where he answered that there is no problem. So ball is not on Aliaksandr side, but on the side of core team. 15 июня 2017 г. 6:45 PM пользователь "Brad Fitzpatrick" написал: On Wed, Jun 14, 2017 at 11:35 PM, Sokolov Yur

Re: [go-nuts] Go 1.9 Beta 1 is released

2017-06-15 Thread Brad Fitzpatrick
On Thu, Jun 15, 2017 at 8:54 AM, Michael Banzon wrote: > > does this mean that 2.0 is next? > > I gave a talk about that: Slides: https://docs.google.com/presentation/d/1JsCKdK_AvDdn8EkummMNvpo7ntqteWQfynq9hFTCkhQ/view?slide=id.p#slide=id.p Video: https://www.youtube.com/watch?v=4Dr8FXs9aJM

Re: [go-nuts] Go 1.9 Beta 1 is released

2017-06-15 Thread Michael Banzon
does this mean that 2.0 is next? On Thu, Jun 15, 2017 at 5:45 PM Brad Fitzpatrick wrote: > On Wed, Jun 14, 2017 at 11:35 PM, Sokolov Yura > wrote: > >> So, no scalable timers in 1.9 ? >> https://go-review.googlesource.com/c/34784/15 >> It's a pity. > > > Yes. But Aliaksandr hasn't replied to

Re: [go-nuts] Go 1.9 Beta 1 is released

2017-06-15 Thread Brad Fitzpatrick
On Wed, Jun 14, 2017 at 11:35 PM, Sokolov Yura wrote: > So, no scalable timers in 1.9 ? > https://go-review.googlesource.com/c/34784/15 > It's a pity. Yes. But Aliaksandr hasn't replied to Dmitry for the past 10 days, either. We don't ship code that hasn't made it through code review. -- You

Re: [go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-15 Thread Brad Fitzpatrick
If you view the HTML source, the relevant CL numbers are in comments. On Wed, Jun 14, 2017 at 11:02 PM, wrote: > Can someone elaborate more on "Large object allocation performance is > significantly improved in applications using large (>50GB) heaps containing > many large objects."? What PR /

Re: [go-nuts] Re: KVs store for large strings

2017-06-15 Thread Kiki Sugiaman
There were mistakes with the code I posted. Oh well, in a hurry and not the point. On 15/06/17 22:41, Kiki Sugiaman wrote: I think I misunderstood what you were trying to accomplish. Let me try to rephrase and see if I'm getting closer: - to accommodate template changes during development,

[go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-15 Thread litwinos
Can someone elaborate more on "Large object allocation performance is significantly improved in applications using large (>50GB) heaps containing many large objects."? What PR / issue is related to this change? What are the numbers? On Wednesday, June 14, 2017 at 3:15:49 PM UTC-7, Chris Broadfo

[go-nuts] Curious about this snippet in /src/runtime/proc.go

2017-06-15 Thread goodwin . lawlor
Hey, Learning golang at the moment and came across this at the end of func main() in proc.go in the golang source tree. exit(0) for { var x *int32 *x = 0 } Ln 198 - 202 https://golang.org/src/runtime/proc.go How is the for loop ever reached and what's the purpose of the infinite loop, zeroing

Re: [go-nuts] MSSQL DBMS

2017-06-15 Thread Shawn Milochik
I recommend this excellent documentation to get started: http://jmoiron.github.io/sqlx/ The docs are from the sqlx package, but they do a great job of explaining the standard library functionality first. You can just stop reading after the beginning. Also, unless I'm missing something, you're *m

Re: [go-nuts] Passing []byte from golang to char * C.

2017-06-15 Thread Tamás Gulácsi
C strings are 0-terminated. Either encode 0 (byte) values, or call with pointer to first byte, and the length. -- 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

Re: [go-nuts] MSSQL DBMS

2017-06-15 Thread Kiki Sugiaman
Try to get the simplest sqlite example working using database/sql. This is to get config issues common with database servers out of the way. Such example has been discussed several times in the past in this very mailing list. Once you get the example with sqlite working, substitute driverName

Re: [go-nuts] Re: KVs store for large strings

2017-06-15 Thread Kiki Sugiaman
I think I misunderstood what you were trying to accomplish. Let me try to rephrase and see if I'm getting closer: - to accommodate template changes during development, you introduced read-locking to your app. - as a result, your reads in production are slow. Never mind the fact that locking is

[go-nuts] SSA gen for FPGA

2017-06-15 Thread Joe Blue
I noticed theres some nice SSA utils. https://github.com/dominikh/go-tools/tree/master/ssa I am new to SSA, and was wondering if someone can advice me a bit on if i can use SSA to codegen ?? I am writing a FPGA generator, so that you can write golang code and have it execute on an FPGA.

[go-nuts] MSSQL DBMS

2017-06-15 Thread Vikram Rawat
I have read like every blog about database but I am not able to understand how to connect GOLANG to 1. SQL Server 2. MS Access can anybody please tell me how to query these databases please -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To un

[go-nuts] Re: Go 1.9 Beta 1 is released

2017-06-15 Thread Julius Kovac
Great work! I can't express how grateful I'm that you keep the language stable and backwards compatible in times when everything is changing so fast. Thank you! On Thursday, June 15, 2017 at 12:15:49 AM UTC+2, Chris Broadfoot wrote: > > Hello gophers, > > We have just released go1.9beta1, a beta