Re: [go-nuts] Go gouroutines vs Rust threads
On Wed, 2019-11-13 at 06:02 -0800, Serge Hulne wrote: > Am I therefore correct in assuming that, if the problem I am trying to model > is not IO bound or CPU bound, but deals essentially with modeling a large > number of independent cells (a sort of massively parallel « Game of life »), > where each cells lives in its own process, it makes more sense to model it > in Golang rather than rust? No. At least not per se. If you feel more comfortable doing it in Go in preference to Rust that choose Go. Another person might have a different background and therefore choose Rust. The programming languages do not provide the disambiguation, it is about the programmer(s), the audience, and the context. -- Russel. === Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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 https://groups.google.com/d/msgid/golang-nuts/02c2a2f7926e5fa54c16f135ecc84230ef102862.camel%40winder.org.uk. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] Go gouroutines vs Rust threads
On Wed, 2019-11-13 at 05:14 -0800, Serge Hulne wrote: > Does anybody know if Rust threads are lightweight processes like Go > goroutines or if they rely on system threads (i.e. more like the Python > approach) ? Rust std::thread is all about OS threads. There are many crates dealing with threadpools, work-stealing, etc. e.g Rayon. -- Russel. === Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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 https://groups.google.com/d/msgid/golang-nuts/75c2d782386201aed8ba72c89daf88f23f8c8a59.camel%40winder.org.uk. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] New Modules and git clones
On Thu, 2018-11-15 at 14:20 +, Paul Jolly wrote: […] > > The update rewrites non-canonical version identifiers to semver form, > > so A's v1 becomes v1.0.0 and E's dev becomes the pseudo-version for the > > latest commit on the dev branch, perhaps v0.0.0-20180523231146- > > b3f5c0f6e5f1. It is clearly there, I missed it. Perhaps the moral of the episode is that it might be good to make it a bit more "in your face" so as to avoid others missing the information in the future? Perhaps something as simple as a comment: E dev # Or whatever your branch is called on the example? -- Russel. ======= Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] New Modules and git clones
On Wed, 2018-11-14 at 15:36 -0800, 'Bryan Mills' via golang-nuts wrote: […] > The `dev` in that documentation is intended to be a branch name. If that > module doesn't actually *have* a branch named `dev`, it won't work. […] Bingo. I put require ( github.com/jamalsa/qml master gopkg.in/qml.v1 master ) and it got rewritten to require ( github.com/jamalsa/qml v0.0.0-20181101021924-25f43c5c22a3 gopkg.in/qml.v1 v1.0.0-20150209141031-2ee7e5ff7370 ) Hopefully there is a way of this getting updated as master/HEAD gets more commits. (And yes I know I only need jamalsa's version of Go QML :-) Now I just have to find out why: module arcamclient is causing the error: can't load package: package arcamclient: unknown import path "arcamclient": cannot find module providing package arcamclient -- Russel. ======= Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] New Modules and git clones
On Wed, 2018-11-14 at 19:25 +, Paul Jolly wrote: > > > Can you point us at the documentation you're referring to here, please? > > > > go help go.mod > > Thanks - it's honestly the first time I've a) read that help document > or b) seen the dev version format. I also can't find any tests > covering its usage. Tests are good. ;-) > Please can you raise an issue about the use of dev in this context, > via https://github.com/golang/go/issues/new? It's entirely possible I > am/we are missing something here, but no harm in checking. Wilco, but it ma have t be tomorrow morning. > For now, using any version < v2 should work, just so long as it is a > valid semver version that therefore doesn't require any further > resolution. e.g. v0.0.0 should be fine. Someone suggested trying v0.0.0 but when I added that it tried to find the v0.0.0 tag on the repositories and failed since there are no tags at all on the repositories. -- Russel. === Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] New Modules and git clones
On Wed, 2018-11-14 at 10:10 -0600, Kyle Wood wrote: > I recommend letting the go tool handle this. Leave the dependency out of > the go.mod file entirely. Run go build as normal, and it will automatically > determine the version strings for the dependencies and insert them into > your go.mod for you. If I have the go.mod file: module then I get the error: can't load package: package : unknown import path "": cannot find module providing package -- Russel. ======= Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] New Modules and git clones
On Wed, 2018-11-14 at 12:31 +, Paul Jolly wrote: > > The documentation implies that I can use "dev" as the > > version number in the go.mod file for this situation > > Can you point us at the documentation you're referring to here, please? > > Thanks Type go help go.mod part way down, you get: … For example, consider this go.mod file: module M require ( A v1 B v1.0.0 C v1.0.0 D v1.2.3 E dev ) exclude D v1.2.3 The update rewrites non-canonical version identifiers to semver form, so A's v1 becomes v1.0.0 and E's dev becomes the pseudo-version for the latest commit on the dev branch, perhaps v0.0.0-20180523231146-b3f5c0f6e5f1. … -- Russel. ======= Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
[go-nuts] New Modules and git clones
I am giving the module system in Go 1.11.2 a whirl to get projects out of the GOPATH environment. The dependencies include ones that have no tagged versions in the Git repositories. The documentation implies that I can use "dev" as the version number in the go.mod file for this situation. However, this just causes a compilation failure: invalid module version "dev": unknown revision dev I am hoping I am just misreading something about the documentation! -- Russel. =========== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
[go-nuts] ACCU 2019 Call for Proposals
The ACCU 2018 Call for Proposals is open, and hopefully will get some session proposals relating to Go the language and programming using Go. https://cfp.conference.accu.org -- Russel. === Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
[go-nuts] ACCU 2019 conference and pre-conference workshops
In case you missed it, the ACCU 2019 call for proposals is now open. https://cfp.conference.accu.org Whilst there is lots of C and C++ content, there is also Java, Kotlin, Python, Ruby, D, etc. Meson, CMake, Git, Mercurial, Breezy, TDD, BDD, etc. It's a conference about programming, programming languages, tools and techniques, and processes. There hasn't been so much Go content recently, though the Rust folk came along in good numbers last year. If someone with training experience happened to submit a full day pre- conference workshop on "Go programming for C and C++ programmers" or some such, that would be really very good. Pre-conference workshops Tuesday 2019-04-09 Conference Wednesday 2019-04-10 to Saturday 2019-04-13 Website at https://conference.accu.org -- Russel. === Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
[go-nuts] ACCU 2019 Call for Proposals next month
Hi, Just an announcement that ACCU 2019 call for proposals will be next month for a three week period. ACCU generally has about 50% C and C++, but also lots of other languages are represented. It would be great to get some good Go material into the schedule, especially stuff aimed at trying to wean C and C++ programmers off C and C++ and onto Go. Details on the website https://conference.accu.org -- Russel. === Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
[go-nuts] ACCU 2018 Call for Session Proposals
Last five days to submit proposals for #ACCUConf 2018. Goto https://cfp.conference.accu.org. Gen Ashley, Hadi Hariri, Seb Rose, and Lisa Lippincott will be the keynote speakers. -- Russel. == Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
[go-nuts] ACCU 2018 call for session proposal now open
The ACCU 2018 Call for Session Proposals is now open. ACCU is a major UK (but nonetheless very international) conference on programming and programming languages. Historically a large amount of C++ and related content. Exactly the place for some good Go content. ACCU organisation website: https://accu.org ACCU conference website: https://conference.accu.org ACCU conference call for session proposals: https://cfp.conference.accu.org -- Russel. == Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Roadm: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk -- 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. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] Re: GO Vs D
On Fri, 2017-08-04 at 05:15 +0200, Lucio De Re wrote: > Walter Bright, indeed. Thank you for the correction. > > I hope it was clear enough in context and my slip-up did not offend anyone. > It was, no worries: it was just me ensuring the record was correct. -- Russel. ===== Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder -- 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. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] Re: GO Vs D
On Thu, 2017-08-03 at 03:50 -0700, Lucio wrote: > […] > PS: I think David Bright is a genius. I still have my original copies of > Zortech C++ (versions 1 and 2) which almost certainly have only antiquarian > value. But the man who produced that masterpiece deserves to be recognised. > So if he happens to stumble on this discussion, let it be clear that my > lack of interest in D is no reflection of my respect for its originator. Walter rather than David? -- Russel. ========= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder -- 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. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] Re: No Allman-Style, No go!
On Mon, 2017-07-31 at 12:21 -0500, John McKown wrote: > […] > An excellent approach to all languages. If someone doesn't like "go", > then use a different language. Or be like some people and invent your own > to address the perceived problems with all the other languages in existence. > Once a programming language goes into production and invokes "backward compatibility" it rarely improves by evolution. cf. Fortran, Java. Invariably, improvement in programming happens by new programming languages arriving on the scene and being picked up (or not). Each programming language that gains traction invariably goes into decline as new languages pop up to replace it. But remember COBOL, FORTRAN, Fortran, and C still have large codebases in place even though very few people would consider writing new code in those languages. Go, Rust, D, etc. will travel the same path after their period of being very popular. > -- Russel. ========= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder -- 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. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] Re: Generics are overrated.
On Sat, 2017-07-29 at 18:59 -0400, Shawn Milochik wrote: > […] > > Imagine if Go programmers went to other language mailing lists and > complained about the lack of goroutines and channels, which clearly > make > those other language "unfit for concurrent programming." That would > be > equally unhelpful. Some of us have been going round various programming language mailing lists complaining about the lack of dataflow, CSP, etc. support in languages and their libraries for 30+ years. Fortunately, over the last 10 years, we have been getting programming language and libraries doing actors, dataflow, and CSP (or rough equivalent) properly, and most importantly – getting traction amongst programmers. So now we have a number of programming language becoming fit for concurrent and parallel programming, what is the next evolution? What comes after Go, Rust, Pony, Nim, D, C++20, etc.? -- Russel. ========= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder -- 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. signature.asc Description: This is a digitally signed message part
[go-nuts] Re: Gotk3 applications
Answering own question: On Fri, 2017-07-14 at 09:10 +0100, Russel Winder wrote: > It appears that all the Gotk3 examples use the old-fashioned > gtk.Init/gtk.Main application structure. I am trying to create a Go > GTK+3 application with the modern > gtk.Application/gtk.ApplicationWindow > structure. Everything seems to be there except... > > gtk.Application.AddWindow requires a *gtk.Window but the top-level > window should be a *gtk.ApplicationWindow. There seems no obvious way > of using a *gtk.ApplicationWindow as an argument to > gtk.Application.AddWindow that doesn't cause a compilation error. It turns out you have to unpack rather than coerce – obvious really. If aw is a *gtk.ApplicationWindow then &(aw.Window) is a *gtk.Window. > I am clearly missing something obvious… anyone any pointers (sic) to > helpful stuff? Yes. :-) -- Russel. ========= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder -- 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. signature.asc Description: This is a digitally signed message part
[go-nuts] Gotk3 applications
It appears that all the Gotk3 examples use the old-fashioned gtk.Init/gtk.Main application structure. I am trying to create a Go GTK+3 application with the modern gtk.Application/gtk.ApplicationWindow structure. Everything seems to be there except... gtk.Application.AddWindow requires a *gtk.Window but the top-level window should be a *gtk.ApplicationWindow. There seems no obvious way of using a *gtk.ApplicationWindow as an argument to gtk.Application.AddWindow that doesn't cause a compilation error. I am clearly missing something obvious… anyone any pointers (sic) to helpful stuff? -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder -- 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. signature.asc Description: This is a digitally signed message part
Re: [go-nuts] What 5 things does Go need in 2017?
On Sun, 2016-09-11 at 18:58 -0700, Dave Cheney wrote: > An 'official' deb/apt/yum repo for Go would be much > appreciated, https://github.com/golang/go/issues/10965 > Go stuff is packaged for Debian and Fedora, they are the official Debian and Fedora packages. Any other packages in any other repository would be unofficial! Given this is the case what is the benefit of another repository? Wouldn't this just lead to replication of effort or decay of the official packages. Many people running servers will only use the official repositories, so an extra repository would not be used. Having Go packages in the official repository is good for Go. -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder -- 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. signature.asc Description: This is a digitally signed message part