A lot of factors will affect compilation speeds. And scaling won't be
linear by adding more cores, I know, but how well does the compiler already
uses the available cores. How well does the compiler scale? The mentioned
CL above will provide some nice performance increasements for multicore
On Wed, Apr 19, 2017 at 9:59 AM, Jan Mercl <0xj...@gmail.com> wrote:
> On Wed, Apr 19, 2017 at 3:48 PM Tong Sun wrote:
>
> > what's your preference and why?
>
> example.com/name/onenamenopunctutaionalllowercasetwotoninecharacters
>
Hmm... does it meant to be sarcasm or
Hi,
What's the idiomatic way to name Go projects with multiple words? Would it
be,
- github.com/my-id/multiple-words, or
- github.com/my-id/multiple_words, or even
- github.com/my-id/does-not_care, or
- github.com/my-id/InOneWord
what's your preference and why?
Thanks
--
You received
On Wed, Apr 19, 2017 at 3:48 PM Tong Sun wrote:
> what's your preference and why?
example.com/name/onenamenopunctutaionalllowercasetwotoninecharacters
b/c ~ what POSIX recommends for utility names.
--
-j
--
You received this message because you are subscribed to
Hi,
If you are interested in building *simple* applications using event
sourcing and CQRS, then you could give flux a spin
- https://github.com/yehohanan7/flux
Thanks
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this
On Wed, Apr 19, 2017 at 9:25 AM, Kamil Dziedzic wrote:
>
> One thing that annoys me often while going through long source code file is
> that often function declarations are organized in some random order. I was
> thinking about using some tool (at least for my projects) to
Hello dear,
Can anyone guide me the installation process of Sizzle. Can I operate it on
windows or Linux is required
--
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
There's definitely no idiom here. Do what the octokittens do and probably
use the first or second option, in that order. The third seems awkward,
unless the underscore has some specific meaning (like how _unix is used to
compile architecture-specific code). And I'm not really sure if the
Hi,
One thing that annoys me often while going through long source code file is
that often function declarations are organized in some random order. I was
thinking about using some tool (at least for my projects) to automatically
order all function declarations. This seems to be already true
Hi y'all,
I have a question related to improving overall CPU utilization efficiency
of our CPU intensive distributed workloads. I've also posted this on the
Gophers slack but as Dave Cheney pointed out recently, it's not the best
medium for long winded questions. I haven't been able to find
Hi, All,
I used the following code snippet on a virtual box ubtunu vm trying to
capture the packet. However, even though "enp3s0" is listed in the device
list, opening it causes an error as follows. The same code runs on a
physical box has no problem opening the NIC.
Any suggestions?
TIA
In Go there is no way to pass a reference to an instance of the
container/enclosing type, to a function of an embedded type. What work
around do you use for this? Any idiomatic Go way?
Currently I model the shared functionality using an interface. Then the
implementation is another struct,
On Wed, Apr 19, 2017 at 1:35 PM, dc0d wrote:
>
> In Go there is no way to pass a reference to an instance of the
> container/enclosing type, to a function of an embedded type. What work
> around do you use for this? Any idiomatic Go way?
>
> Currently I model the
Thank you, Nico.
On Friday, January 23, 2015 at 6:16:15 AM UTC-8, Nico wrote:
>
> Did you save before calling GoRun?
>
--
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
Hi,
I have a "simple" issue regarding x509 certificate verification. There are
two certificates:
- cacert.pem: a self signed certificate
- ek.pem: a certificate that was signed by cacert.pem
The following command works as expected:
$ openssl verify -CAfile cacert.pem ek.pem
ek.pem: OK
But the
On Wed, Apr 19, 2017 at 7:42 PM, 代君 wrote:
>
> i have a test code like this:
> func main() {
> tcpAddress, err := net.ResolveTCPAddr("tcp", ":")
> if err != nil {
> fmt.Println(err)
> }
> listener, err := net.ListenTCP("tcp", tcpAddress)
>
> c, e :=
have found that you can do TTF to OpenVG.
but not sure how gl on go mobile will render slant lines for W.
if you happen to know this is not the ideal way, please suggest. thanks.
On Tuesday, April 18, 2017 at 1:02:02 PM UTC+8, saif wrote:
>
> Hi,
>
> I like to ask for your suggestions.
>
> I
On Tue, Apr 18, 2017 at 11:00 PM, hui zhang wrote:
> I want to set different flags for different os in cgo, how to do that in
> cgo?
>
>
>> //#cgo amd64 darwin CFLAGS: -Dxxx
>> //#cgo amd64 darwin CXXFLAGS: -Dxxx
>> //#cgo amd64 darwin LDFLAGS: -Lxxx
>> //#cgo arm darwin
I got it. it because there is a blocking netpool in runtime.findrunable()
function.
--
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
That's interesting, though quite different from the map implementation
we're used to. Do you know (in any language) such an implementation, and
would it really be as fast? Computing hash, accessing some bucket, and
dealing with collisions seem unavoidable. But I have no idea of the extra
On Wednesday, April 19, 2017 at 3:37:29 AM UTC+8, Keith Randall wrote:
>
> This is a weird corner case in string concatenation optimization.
>
> runtime.concatstrings (what the + in this code gets rewritten to) has an
> optimization where if all the strings but one that it is concatenating are
how ever if I exec
> go build -buildmode=c-archive -o libmug.a ./src
for mac lib build it build both and failed
so does for ios lib , it compile fail
> CC=$PWD/clangwrap.sh CXX=$PWD/clangwrap.sh GOOS=darwin GOARCH=arm
> CGO_ENABLED=1 go build -buildmode=c-archive -o libmug.a ./src
If I
i have a test code like this:
func main() {
tcpAddress, err := net.ResolveTCPAddr("tcp", ":")
if err != nil {
fmt.Println(err)
}
listener, err := net.ListenTCP("tcp", tcpAddress)
c, e := listener.AcceptTCP()
if e != nil {
fmt.Println(e)
}
t := make([]byte, 0, 1000)
c.Read(t)
}
when
I have a test code like this:
func main() {
tcpAddress, err := net.ResolveTCPAddr("tcp", ":")
if err != nil {
fmt.Println(err)
}
listener, err := net.ListenTCP("tcp", tcpAddress)
c, e := listener.AcceptTCP()
if e != nil {
fmt.Println(e)
}
t := make([]byte, 0, 1000)
c.Read(t)
}
when
On Wed, 19 Apr 2017 14:23:09 +0800
hui zhang wrote:
> 1) getpath() return a temp string, its c_str() pointer will be
> free out of function. So I use malloc
I'm not completely sure you're correct. C++ does not implement garbage
collection and the object on which you
I've written a fix for the easyjson library using filepath functions, so
I'm not worried about that. But I did expect os.Getwd() to return the same
exact string, regardless of how the test is run.
"go test . -v" os.Getwd() uses the GOPATH variable
"go test . -c" results in a binary where
On Wednesday, April 19, 2017 at 9:10:16 AM UTC+2, hui zhang wrote:
>
> for 1) you mean
>>
>> char *CGetPath() {
>> return getpath().c_str();
>> }
>
>
> this code will work ?
>
That depends on whether getpath() returns a std::string or a (const)
std::string& (a (const) reference). It will
2017-04-17 19:05 GMT+03:00 Kevin Johnson :
> Hi Vasiliy,
>
> I spent a few minutes looking at your program and a couple things jumped out
> at me. As you are probably aware, writes on a network socket usually return
> the number of bytes written, This is because if the TCP
Hi all,
I'm interested in the compiler performance of different cpus. How much
impact has the number of cores? Or is higher frequency with a few cores
better regarding compile time / $.
Maybe someone already owns a new ryzen cpu. Is it worth buying a highend
Intel cpu (i7 or xeon) for 1000$ or
29 matches
Mail list logo