But this is code is perfectly working in windows and when i am trying to
run this on ubuntu it is giving the above error.
On Tue, Sep 18, 2018 at 12:22 AM Justin Israel
wrote:
> Your stack trace isn't long enough to see the usage of ipfs leading up to
> the crash. And your example code doesn't
Considering there are already many concerns about complexity introduced by
generics, the situation will be even worse when generics arrive without
eliminating the built-in magic stuff. Then is generics really worth the
trade-offs? Does the gain outweigh the pain?
在 2018年9月18日星期二
Even if it were possible to eliminate the built in generic stuff, I think
it would be a bad idea to do so.
For better or for worse it's now part of the fabric of the language and
just about every program ever written in Go 1 would have to be fixed if it
were replaced.
Also there are many in
Thanks for your comment, Patrick.
Although I've relied on compiler magic for my previous proposals, I believe
we should keep it to a minimum if we can, The 'union' and 'except' idea
would allow us to compose any group of types we want from the basic
built-ins and, even within the standard
OK, I know I am doing something dumb and have a case of the Monday's. If
anyone is able to point out my stupid it would be much appreciated.
Output when opening the file in S3:
On Mon, Sep 17, 2018 at 2:43 PM, Michael Jones wrote:
>
> Firstly, my compliments to Russ, Robbert, and Ian, for patience,
> thoughtfulness, and insight. Whatever the best answer is, no doubt your
> intellectual process is an excellent way to find it.
>
> My comment is a meta-comment, a
I'm trying to create a reverse proxy that takes all requests and redirect
them into a target url, like google.com or any other API. Unfortunately,
all targets returns errors like page Not Found, or Forbidden Error.
Please see the source code here:
Thanks for tracking it. I had trouble with Ubuntu before, I think the
packages change a lot. I will get a VM up and running and check it out.
Andy
On Mon, 17 Sep 2018 at 22:45, Justin Israel wrote:
> I've hit a couple issues with the bootstrap on ubuntu 16.04 and have been
> logging them as I
Hi,
If you don’t have homebrew installed already it won’t work. Please feel
free to contact me off list with details, or raise a ticket.
Apologies for the trouble,
Andy
On Mon, 17 Sep 2018 at 22:04, Tharaneedharan Vilwanathan
wrote:
> Hi,
>
> Anyone having trouble installing on a Mac or am I
I've hit a couple issues with the bootstrap on ubuntu 16.04 and have been
logging them as I find them:
https://github.com/fyne-io/bootstrap/issues
On Tue, Sep 18, 2018 at 9:04 AM Tharaneedharan Vilwanathan <
vdhar...@gmail.com> wrote:
> Hi,
>
> Anyone having trouble installing on a Mac or am I
Firstly, my compliments to Russ, Robbert, and Ian, for patience,
thoughtfulness, and insight. Whatever the best answer is, no doubt your
intellectual process is an excellent way to find it.
My comment is a meta-comment, a question/proposal: *if generics arrive in
Go 2 then can we "go fix" Go 1
On Mon, 17 Sep 2018 11:18:51 -0700 (PDT)
> Eric Johnson
>> jucie.andr...@zanthus.com.br
I hope that the team will make an informed decission and assesment taking
into account both the opinion of the community and its good ideas to make
something simpler. See all community proposals at
Hi,
Anyone having trouble installing on a Mac or am I alone?
The bootstrapping part gives me trouble. Please let me know if I need to
provide more details.
Regards
dharani
On Mon, Sep 17, 2018 at 1:25 PM Andy Williams wrote:
> Hi,
>
> I don’t know if it helps but I wrote a short document
According to the help text that's the intended behavior:
usage: go mod vendor [-v]
>
> Vendor resets the main module's vendor directory to include all packages
> needed to build and test all the main module's packages.
> It does not include test code for vendored packages.
>
> The -v flag causes
Hi,
I don’t know if it helps but I wrote a short document about the driver in Fyne.
https://github.com/fyne-io/fyne/wiki/Drivers
Andrew
On 14 September 2018 at 20:01:56, Andrew Williams (handya...@gmail.com) wrote:
Hi,
Thanks. There is an efl opengl driver which we could utilise instead of
Your answers are very decent, it solve all my doubts. Thank you very much!
I believe I need to spend some time reading how runtime scheduler works for
more deep understanding of all "magic".
Cheers,
changkun
On Monday, September 17, 2018 at 9:25:20 PM UTC+2, Ian Lance Taylor wrote:
>
> On Mon,
On Mon, Sep 17, 2018 at 12:17 PM, changkun wrote:
>
> Those overhead you mentioned come from goroutine scheduler for entering a
> system call.
> Apparently, there is no such mechanism in Go to submit an IO "transaction"
> if there are two
> or more syscall close to each other, syscall can be held
Thanks all,
Indeed useful.
Will continue exploring the "it's hard to say" part on golang-dev, as that
might be useful as well.
Best,
Scott
On 17 September 2018 at 20:43, robert engels wrote:
> Then it should be fairly trivial to call cgo to raise the priority of the
> ‘audio thread/routine
Hi Ian,
Thank you for your post.
Those overhead you mentioned come from goroutine scheduler for entering a
system call.
Apparently, there is no such mechanism in Go to submit an IO "transaction"
if there are two
or more syscall close to each other, syscall can be held in OS thread
without
I think your idea of creating standard contracts to represent similar types
is a good one. However, you don't have to say how those contracts are
written, just what they do. No need for typecheck, union, except, etc. For
example,
Integer(T) - T is an integer type
Float(T) - T is a floating point
Hi Robert,
I checked your benchmark, and it kindly solves the second question "there
is no way to optimize". Thank you :)
Best,
changkun
On Monday, September 17, 2018 at 6:19:33 PM UTC+2, Robert Engels wrote:
>
> You can run my tests at github.com/robaho/go-network-test You will see
> that
When using 'go mod vendor' why are there lots of files missing? I'm
converting packages from using Dep to using the new modules and there are
mismatches in the vendor folder structure.
Does this command only vendor the actual files used for compilation?
Because a lot of tests and examples are
Your stack trace isn't long enough to see the usage of ipfs leading up to
the crash. And your example code doesn't show usage of that library.
Somewhere in there you must have a nil pointer to a RequestBuilder, on
which Send() is being called.
On Tue, Sep 18, 2018, 3:42 AM akshita babel
wrote:
On Mon, Sep 17, 2018 at 1:41 AM, changkun wrote:
>
> Thus, my first question is: Considering the scheduling strategy of goroutines
> in Go universe, will the Go universe IO performance between a user socket and
> socketpair[0] get suffering by such a blocking CGO call?
No.
> The second
Then it should be fairly trivial to call cgo to raise the priority of the
‘audio thread/routine after call runtime,LockOSthread() - nice !
> On Sep 17, 2018, at 1:36 PM, Ian Lance Taylor wrote:
>
> On Mon, Sep 17, 2018 at 10:39 AM, Scott Cotton wrote:
>>
>> Wanted to ask about the Go runtime
On Mon, Sep 17, 2018 at 10:39 AM, Scott Cotton wrote:
>
> Wanted to ask about the Go runtime use of threads. Specifically, suppose
> I've got an app in mind that would run OS-priveleged and use specially
> scheduled threads, like SCHED_RR in linux for example.
>
> One could do this with chrt or
On Monday, September 17, 2018 at 9:04:26 AM UTC-7, jucie@zanthus.com.br
wrote:
>
> Go core team is working hard to bring generics to the language because
> several people asked for it. With all due respect for those users and for
> people working hard to make generics a reality, I feel
Hi all,
Wanted to ask about the Go runtime use of threads. Specifically, suppose
I've got an app in mind that would run OS-priveleged and use specially
scheduled threads, like SCHED_RR in linux for example.
One could do this with chrt or calling from a process/thread at the desired
You can run my tests at github.com/robaho/go-network-test You will see that
both Java and Go are 10% slower than pure C. In Java’s case it is mostly due to
the ‘security checks’ that are run. In Go’s case I believe it is just the
barrier from Go to C overhead as there are many more function
Go core team is working hard to bring generics to the language because
several people asked for it. With all due respect for those users and for
people working hard to make generics a reality, I feel that a greater
number of people would suffer after generics adoption. So, I feel compeled
to
Hi there,
I recently managed a data parsing C library in a CGO program by for long
time network IO.
The data flow is as follows:
user socket <> socketpair[0] <---> socketpair[1] <> data store
|--Go domain|--C domain-|
With such a data
When I am running a program which is for a web response I am getting a run
time error as follows:
http: panic serving 127.0.0.1:43802: runtime error: invalid memory address
or nil pointer dereference
goroutine 6 [running]:
net/http.(*conn).serve.func1(0xc4200a4a00)
You don't need the io.Pipe: it's fairly trivial to implement io.Reader in
terms of a channel of strings and a strings.Reader.
You can even implement io.WriterTo efficiently that way:
https://play.golang.org/p/PxIEQYUoC50
(In theory that can make the whole pipeline zero-copy, but in practice I
Look interesting. Thank-you for the link.
- Robert
On Friday, 14 September 2018 14:00:53 UTC-4, Robert Engels wrote:
>
> Robert,
>
> You might want to look at https://github.com/fyne-io/fyne
>
> R
>
> On Sep 11, 2018, at 8:24 AM, Robert Johnstone > wrote:
>
> Hello,
>
> I've taken a
This is what I would do:
type jsonRepository struct {
Name string
URI string
}
func (r *Repository) UnmarshalJSON(in []byte) error {
var m jsonRepository
err:=json.Unmarshal(in,)
if err!=nil {
return err
}
parsed, err:=url.Parse(m.URI)
if err!=nil {
return err
}
Thank you !
--
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.google.com/d/optout.
Hello,
I like to work with stronger types so I try to avoid strings.
Given I have some JSON like
---
const _test_data = `
{
"name" : "myname",
"uri" : "https://example.com/mycontext;
}
`
---
What I really would like to have is something like:
---
type Repository struct {
Name string
great work!
the design looks quite modern!
put into my save list for Go GUI topic,
BR fino
--
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
Perhaps you can try https://github.com/avikivity/diskplorer to estimate how
many readers you should optimally create.
mån 17 sep. 2018 kl 11:33 skrev Thomas S :
> Is my time display method wrong ?
>
> t := time.Now()
> // Process
> fmt.Println(time.Since(t))
>
>
>
> Le dimanche 16 septembre 2018
Small, but important, correction re #5:
5. Any contract could contain at most one 'union' or 'except' assertion *for
each type parameter*.
Alan
On Monday, September 17, 2018 at 11:07:26 AM UTC+1, alan...@gmail.com wrote:
>
> Jonathan,
>
> The problem with just 'OR'ing complex64 and complex128
Jonathan,
The problem with just 'OR'ing complex64 and complex128 together is that the
resulting contract wouldn't encompass any defined types with the same
underlying types. So 'mycomplex' wouldn't be included:
type mycomplex complex64
However, I'm pleased you mentioned it as it's given
Hi John,
When using a replace target that is a local filepath, yes, the target
does need to be a module (this is in effect simulated by the go tool
when a "module" is fetched from a remote VCS in case a project is not
a module).
That's fixed in the most simple cases by creating a go.mod file in
Perhaps just for completeness here, the replace directive is almost
certainly what you want when it comes to unpublished modules. This
will allow you to refer to a remote module as if it were published,
even though it resides on a local disk.
See go help mod edit for more details (or
Is my time display method wrong ?
t := time.Now()
// Process
fmt.Println(time.Since(t))
Le dimanche 16 septembre 2018 22:54:33 UTC+2, Michael Jones a écrit :
>
> don't be confused about internal process time and external wall clock time
> here.
>
> On Sun, Sep 16, 2018 at 11:27 AM Thomas
Thanks everyone for looking into this. I've raised an issue
https://github.com/golang/go/issues/27707
On Monday, September 17, 2018 at 4:29:15 PM UTC+8, Dave Cheney wrote:
>
> I've confirmed this uses 14% on a random OS X machine. Please raise a bug,
> https://golang.org/issue/new
>
> On
I've confirmed this uses 14% on a random OS X machine. Please raise a bug,
https://golang.org/issue/new
On Monday, 17 September 2018 14:29:44 UTC+10, Robert Engels wrote:
>
> For reference, similar code under Java consumes 2.5 % CPU.
>
> I tested the Go code under OSX, and it is roughly 10%,
46 matches
Mail list logo