I am trying to build a websocket-based signaling server in Go called in
Collider .
I followed the guide in github/webrtc/apprtc/collider
The command go get collidermain doesn't work and shows that:
package collidermain: unrecognized import path "collidermain"
I tried the methods others come up
i have been having major issues making bootstrap style reflect on my
html/template output and i'm wondering if there's any other way to go about
this. my code below
INDEX.HTML
{{define "head"}}Dead Or Injured
{{end}}
On Mon, Jul 11, 2016 at 4:40 PM, Erich Rickheit KSC
wrote:
> Ian Lance Taylor wrote:
>> On Sat, Jul 9, 2016 at 4:38 PM, Erich Rickheit KSC
>> wrote:
>> > I found myself writing code like this:
>> >
>> > s := make([]byte, len)
>> > for
Well, I cannot open the go play link now.
Forbidden.
So, would please review on this question and show me the code again?
yzha...@linkernetworks.com
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
On Mon, Jul 11, 2016 at 5:41 PM Erich Rickheit KSC
wrote:
> Ian Lance Taylor wrote:
> > On Sat, Jul 9, 2016 at 4:38 PM, Erich Rickheit KSC
> wrote:
> > > I found myself writing code like this:
> > >
> > > s := make([]byte, len)
> > >
Ian Lance Taylor wrote:
> On Sat, Jul 9, 2016 at 4:38 PM, Erich Rickheit KSC
> wrote:
> > I found myself writing code like this:
> >
> > s := make([]byte, len)
> > for i := 0; i < len; i++ {
> > // fill in s with stringy goodness
> >
I think a key word in the question is "original". Depending on how that
is intended the answer is either "no" (unless unsafe is used with a
whole heap of rigmarole) or "yes" with something along the lines of the
playground link here (though note that bytes.Buffer has a String()
string method).
On
On Mon, Jul 11, 2016 at 1:25 PM, wrote:
> Ohh that slow gcc. Sad.
The GC in general is quite fast. If you have specific examples where
the GC does poorly, please open issues for them with test cases.
Thanks.
Ian
> понедельник, 11 июля 2016 г., 23:03:07 UTC+3
Hi,
I'd just like to announce a little project I've just released into alpha.
It's a physically based renderer written in Go.
You can install Vermeer via go get github.com/jamiec7919/vermeer
There are some example data files available at:
https://github.com/jamiec7919/vermeer-example/
And
Here are a set of results using benchcmp. I also included a new benchmark,
the code from example_test.go that executes a template 3 times with
different input. The template is:
Dear {{.Name}},
{{if .Attended}}
It was a pleasure to see you at the wedding.
{{- else}}
It is a shame you couldn't
Ohh that slow gcc. Sad.
понедельник, 11 июля 2016 г., 23:03:07 UTC+3 пользователь Ian Lance Taylor
написал:
>
> On Mon, Jul 11, 2016 at 9:11 AM,
> wrote:
> > Thank for answer but I'm already implemented portable unmanaged memory
> pool
> >
On Mon, Jul 11, 2016 at 9:11 AM, wrote:
> Thank for answer but I'm already implemented portable unmanaged memory pool
> (https://github.com/ardente/goal/blob/master/gut/mempool.go). I'm just
> looking for standard direct analogue (incliding mapping of fd -1) of unix's
>
Yes, you are correct, if the template is only {{}}'s with no text then
there is no benefit, but no penalty, either (i.e., no down side in
performance). Once there is any reasonable amount of text (as all
templates I have written are), the speed up is noticeable.
-Paul
On Mon, Jul 11, 2016
1ms = 100ns. According to *Many results there is no gain.
понедельник, 11 июля 2016 г., 22:27:47 UTC+3 пользователь Paul Borman
написал:
>
> I was looking at text/template/parse/lex.go and noticed it seemed to be
> very inefficient in how it searched for {{ in its input. I rewrote lexText
Exactly. I don't know why I was misunderstood because topic title is "How
to allocate memory from OS..." and in the first message I mentioned
VirtualAllloc and mmap is used to obtain memory from os instead of sbrk in
most unix clibs. About discussion - I think patch implementing syscall.Mmap
There are places throughout the standard packages where extra copies happen
due to []byte <-> string conversion (like strings.Join(),
os.*File.WriteString() etc.) I am assuming they don't use an unsafe-magic
way to make aliasing strings and []bytes because they don't want people to
shoot
On Mon, Jul 11, 2016 at 3:28 PM, Ian Lance Taylor wrote:
> On Mon, Jul 11, 2016 at 3:49 AM, Manlio Perillo
> wrote:
>> Il giorno domenica 10 luglio 2016 04:51:21 UTC+2, Ian Lance Taylor ha
>> scritto:
>>>
>>> On Sat, Jul 9, 2016 at 4:38 PM, Erich
Thank for answer but I'm already implemented portable unmanaged memory pool
(https://github.com/ardente/goal/blob/master/gut/mempool.go). I'm just
looking for standard direct analogue (incliding mapping of fd -1) of unix's
syscall.Mmap for windows. Looks like there is none. There is some
On Mon, 11 Jul 2016 00:07:11 -0700 (PDT)
sphilip...@gmail.com wrote:
> I can allocated memory from OS using syscall.Mmap(-1...) on Unix and
> VirtualAlloc on Windows. But may be there is standard and compatible
> way to do this?
There are none, and I'm pretty sure there simply can't be any:
Thanks for info but I'm looking for standard way (package from runtime
library or from golang.org/x). I'm already have a custom VAlloc/VFree
implementation for windows and unix and now curious is there a standard way
that I missed.
> I unable to find standard mmap for windows in Go library,
On 11 July 2016 at 15:30, Ian Lance Taylor wrote:
>
> If you just want to focus on Go, don't build the race detector. It
> looks like you are running the command `go install -v -race .`. Don't
> do that.
This tickles me :). The whole point of course was that I want the race
On Mon, Jul 11, 2016 at 4:37 PM wrote:
> I unable to find standard mmap for windows in Go library, that was
originial question. Use case is processing of large (several millions of
nodes) trees.
I have not used it yet: https://github.com/edsrzf/mmap-go
--
-j
--
You
I unable to find standard mmap for windows in Go library, that was
originial question. Use case is processing of large (several millions of
nodes) trees.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
On Mon, Jul 11, 2016 at 6:57 AM, Peter Waller wrote:
> Thanks Ian. No luck though, that doesn't seem to be it.
>
> I have rebuilt the race detector .syso as mentioned in the README.
>
> I get the same error as before (below, again) while building the
> runtime/race package,
Hi All,
I'm guessing the answer to this one is "use glibc", but I can't find any
existing commentary on this in within the go ecosystem and thought it was
worth a quick shot in case there is a fix. I'm aware that tsan and glibc
are fairly well intermingled, so probably requires a lot of work
Can I convert bytes.Buffer object to a string, and vice-versa , getting the
original bytes.Buffer object back from the string ?
--
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,
But, I don't want to store it separately.
b, _ := ioutil.ReadAll(r.Body)
r.Body = ioutil.NopCloser(bytes.NewBuffer(b))
if len(b) > 0 {
if err := json.Compact(body, b); err != nil {
body = bytes.NewBuffer(b)
}
}
The
Il giorno domenica 10 luglio 2016 04:51:21 UTC+2, Ian Lance Taylor ha
scritto:
>
> On Sat, Jul 9, 2016 at 4:38 PM, Erich Rickheit KSC > wrote:
> > I found myself writing code like this:
> >
> > s := make([]byte, len)
> > for i := 0; i < len; i++ {
> >
2016-07-11 15:34 GMT+05:30 Sankar P :
>> I don't know if it does what you want, but have you looked at
>> https://godoc.org/rsc.io/pdf ?
>
> It seems to be unmaintained. I tried loading a complex PDF with plenty
> of tables and it hung infinitely on Content() call in
> I don't know if it does what you want, but have you looked at
> https://godoc.org/rsc.io/pdf ?
It seems to be unmaintained. I tried loading a complex PDF with plenty
of tables and it hung infinitely on Content() call in the first page.
I lost interest after that. Thanks.
--
Sankar P
Hi Matt
Thanks for the reply
Test is done on different server on the same network
Application using "gopkg.in/redis.v3" as plugin so TCP
Pool size = 10
Below is the simple program storing "Hello World" small data compare to
what I use to store in my actual application where Redis not even
On Monday, 11 July 2016 07:06:03 UTC+3, Anmol Sethi wrote:
>
> https://gist.github.com/nhooyr/7b773ea98f0d08e698d4fe706b4f5b2a
>
It depends on what problem you are solving manually specifying *cap* may
not give you the exact same behavior as specifying the *len*. In this case
it looks like the
32 matches
Mail list logo