On Tue, May 7, 2019 at 9:42 PM White Pure wrote:
> 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
>
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.
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.
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
On Tue, May 7, 2019 at 8:39 PM Tong Sun wrote:
> Thanks Kurtis, I'll for sure using it for some serious.
>
> For now, I need the program as minimalist as possible, because I'm trying
> to rewrite this small Perl code as Go,
> https://github.com/suntong/dbab/blob/master/src/bin/dbab-svr#L94
>
On Tuesday, May 7, 2019 at 9:42:52 PM UTC-4, Kurtis Rader wrote:
>
> On Tue, May 7, 2019 at 6:07 PM Tong Sun >
> wrote:
>
>> I've been trying to get an TLS server up and running for the past several
>> days without success. I've used the following guides as reference:
>>
>
> FWIW, I recommend
I am trying to convert https://github.com/appscode/voyager from glide to go
mod.
I am getting an error like below:
```
go: github.com/Sirupsen/logrus@v1.4.1: parsing go.mod: unexpected module
path "github.com/sirupsen/logrus"
go: error loading module requirements
```
How do I find out the
Hello Than,
when I using ninja to build gollvm, just like
% cmake -DCMAKE_INSTALL_PREFIX=/home/yt/LLVMsvn/install -
DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Debug -DLLVM_USE_LINKER=gold -G
"Ninja" ../llvm
% ninja gollvm
the build system still reports an error:
ninja: error:
On Tue, May 7, 2019 at 6:07 PM Tong Sun wrote:
> I've been trying to get an TLS server up and running for the past several
> days without success. I've used the following guides as reference:
>
FWIW, I recommend the Caddy HTTPS web server rather than rolling your own.
It took me just a few
Hi,
I've been trying to get an TLS server up and running for the past several
days without success. I've used the following guides as reference:
https://goenning.net/2017/11/08/free-and-automated-ssl-certificates-with-go/
* Nitish Saboo [190507 14:07]:
> Thanks Michel for your detailed response.
> I am initialising the syslog engine.
Do you mean "log/syslog" from the standard library? What does
initialize do?
> var obj1 parser = initalize()
> var obj2 parser
> go func() {
> obj2 = initalize()
> }()
You have
Now it is working. 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 from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit
Hi Ian,
I can now access golang-dev again via the web interface, whereas previously
I could not.
(Hopefully that is not a coincidence).
Thanks for looking into this.
Regards,
thepudds
On Tuesday, May 7, 2019 at 1:39:50 PM UTC-4, Ian Lance Taylor wrote:
>
> On Tue, May 7, 2019 at 8:01 AM
Thanks Michel for your detailed response.
I am initialising the syslog engine.
var obj1 parser = initalize()
var obj2 parser
go func() {
obj2 = initalize()
}()
if obj1 engine fails:
go func() {
obj2.ReloadPattern(opts)
}()
My question is, will obj2.ReloadPattern reload the
Thanks.
On Monday, 6 May 2019 21:55:19 UTC+1, Ian Lance Taylor wrote:
>
> On Mon, May 6, 2019 at 9:22 AM 'kalekold' via golang-nuts
> > wrote:
> >
> > I saw a design document floating about sometime last year and there
> seemed to be a lot of thought going into implementing them? What is the
On Tue, May 7, 2019 at 8:01 AM Marcin Romaszewicz wrote:
>
> The same for me. golang-dev is not accessible to me, nor does it show up in a
> group search, meaning it's not visible to me. I'm not a registered member of
> it, so it appears to no longer be a public group.
Thanks for all the
When I first used IBM's UniComal the manual was Danish but the keywords
were English. Sometimes the function names in the examples were Danish. I
un derstand your problem.
However, I do think that language is irrellevent. The keywords are tokens
that can be replaced programmatically with SED
On Friday, March 27, 2015 at 8:48:30 PM UTC+1, James Bardin wrote:
>
>
> On Fri, Mar 27, 2015 at 3:38 PM, AJ B > wrote:
>
>> So I just ran it as root and it worked. Thanks for the help. But why
>> wouldn't my default user be able to run a command as itself using a binary
>> it obviously has
My IP: 177.223.105.20
Tried both Microsoft Edge and Mozilla Firefox Developer Edition
version 67.0b17 (64-bits)
No problem at all accessing golang-nuts.
On 5/7/19, Marcin Romaszewicz wrote:
> The same for me. golang-dev is not accessible to me, nor does it show up in
> a group search, meaning
The same for me. golang-dev is not accessible to me, nor does it show up in
a group search, meaning it's not visible to me. I'm not a registered member
of it, so it appears to no longer be a public group.
-- Marcin
On Tue, May 7, 2019 at 7:57 AM wrote:
> Sorry, forgot to include: Yes, I can
Sorry, forgot to include: Yes, I can access golang-nuts, no errors.
Golang-announce works fine, neovim gives the error. Clojure works fine.
Howard
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
I get the error online as well, using groups.google.com/forum/#!golang-dev
Refreshing the page has no effect. Incognito mode, not logged in, gives the
same error.
Google Chrome 74.0.3729.131 (Official Build) (64-bit) (cohort: Stable)
IP is in the 104.182.104.255 block.
Firefox Version 67.0b12
On Tue, May 7, 2019 at 7:22 AM JuciÊ Andrade wrote:
>
> Me too. I can't access golang-dev.
> "An error (#401) occurred while communicating with the server."
OK, if people are comfortable with it, it would help to know browser
version and IP address and whether you can access other groups such as
Me too. I can't access golang-dev.
"An error (#401) occurred while communicating with the server."
>
>
--
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 will find this blog post (and the related ones before and
after) and the videos linked at the bottom to be faster.
https://blog.golang.org/pipelines
On Tue, May 7, 2019 at 6:22 AM wrote:
> Can anyone recommend a good on-line doc for goroutines ? The best one I've
> found so far
I suggest that we first solve less controversial issues like the
Israeli–Palestinian conflict.
--
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
On Tue, May 7, 2019 at 5:55 AM wrote:
>
> Hi,
> I did a quiz recently, but I'm having problem with the answer.
> Quiz: https://github.com/smallnest/go-concurrent-quiz#-quiz-4
When sending code, please just send plain text or a link to
play.golang.org. Thanks. I can't actually
Hello,
For the gollvm build ninja is recommended (using "make" is untested and I
doubt if it will work).
Thanks, Than
On Tue, May 7, 2019 at 9:27 AM wrote:
> I try to build gollvm on ubuntu(x64) following these commands in
> https://go.googlesource.com/gollvm/ :
>
> % cd workarea
> % mkdir
On Tue, May 7, 2019 at 4:05 AM peterGo wrote:
>
> Liam,
>
> "Web access to golang-dev is down" is too vague. Please be more precise. For
> example, my recent experience:
>
> For the past few days, browsing to golang-dev without logging on, I get an
> error:
>
>
https://golang.org/ref/spec#Go_statements
Small but clear IMO.
That said, for the everyday-use of goroutines, there's not much to know
about them. If you really want / need to go deep into the way goroutines
work, there are articles written by people on the web (
I try to build gollvm on ubuntu(x64) following these commands in
https://go.googlesource.com/gollvm/ :
% cd workarea
% mkdir build-debug
% cd build-debug
% cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_USE_LINKER=gold ../llvm
...
% make gollvm -j4
...
%
but I got
-- Targeting X86
-- starting libgo
Can anyone recommend a good on-line doc for goroutines ? The best one I've
found so far uses a very SLOW approach to present essential info
https://gobyexample.com/goroutines
On Monday, May 6, 2019 at 7:11:00 AM UTC-4, Nitish Saboo wrote:
>
> Hi,
>
> I want a go method to run on multiple
On Tuesday, May 7, 2019 at 7:40:19 AM UTC-4, Luis Furquim wrote:
>
> Hi
>
> I think that this is the case that "proper way" means "the one that fits
> your needs".
>
Ah, yeah, that's true -- I thought that there are some canonical ways, but
you are indeed right.
--
You received this
Hi,
I did a quiz recently, but I'm having problem with the answer.
Quiz: https://github.com/smallnest/go-concurrent-quiz#-quiz-4
package doublecheck
import (
"sync"
)
type Once struct {
msync.Mutex
done uint32
}
func (o *Once) Do(f func())
Hi
I think that this is the case that "proper way" means "the one that fits
your needs".
Some solutions you may adopt:
a) (cd /path/to/my/server/directory ; go run main.go) &
b) use absolute pathnames: os.Open("/path/to/my/server/directory/
images/my.png")
c) Load configuration from some file/db
If the only thing you want to achieve is:
main:
run engineA
run engineB
engineA:
do something
if engineB is down -> run engineB
engineB:
do something
if engineA is down -> run engineA
You don't really need the two processes to run on different cores, nor do
you need them to be constantly
Liam,
"Web access to golang-dev is down" is too vague. Please be more precise.
For example, my recent experience:
For the past few days, browsing to golang-dev without logging on, I get an
error:
https://groups.google.com/forum/#!forum/golang-dev
An error (#401) occurred while communicating
Hi Jan,
I need two separate parsing engines to be running and I feel that is
possible when it is running parallel on two different cores.
If operation on one of the parsing engine fails, I will reload the other
parsing engine and do the operation.This is what I want to achieve.
I thought
Well, back in the 90s the Microsoft Office Basic dialects were
internationalized so you could write something like "Für Alle Zellen In
DieseArbeitsMappe.ArbeitsBlätter[5]" instead of "for all cells in
ThisWorkmap.WorkSheets[5]".
But you could open/run this only with a German version of Excel
On Tue, May 7, 2019 at 11:27 AM Nitish Saboo wrote:
> I want to initialise parsing engines on two different processors.
Are goroutines meant where we read 'processors'? If not, than this
maybe is an XY problem[0] and please explain why you need distinct
CPUs to execute the code.
[0]:
Hi Michel,
I want to initialise parsing engines on two different processors.This I am
achieving in the following manner:
var obj1 parser = initalize()
var obj2 parser
go func() {
obj2 = initalize()
}()
Post this I want to reload the engine of obj2 parser, which I am trying to
achieve using the
I don't know of any primitives that would return the current processor the
goroutine is currently running on. Maybe if you explain more precisely what
you are trying to do, we can find a better solution?
@lgodio2 no, as Jan said, the go statement is not an expression, so you
can't assign with it,
42 matches
Mail list logo