Comments (3)
In my humble opinion, I like seeing the reference to gophercon talks in the source code because it enhances the documentation, which is often lacking, and even if the std lib has changed since the date of the talk, the talk is still useful and I'm hardly misled by it.
from go.
@golang/runtime per owners -- any opinions on this issue?
from go.
I looked over the two links your pointed out, and I think it's OK to leave it as-is.
- Go advanced concurrency patterns: part 2 (timers) discusses issues with
time.Timer
that have been resolved in version 1.23, and possibly even earlier versions.
This one links to the upstream bugs at the very top and they're now closed. That's at least one signal to the reader that the post may not be up-to-date.
And although it contains some outdated information, the patterns are still useful to those using older versions of Go, and to be clear, the patterns will still work, so the information isn't all that detrimental. I think maybe there's something to be said here, but someone clicking through to here through sync.Cond
is not going to be super likely to click the timers one.
Though, perhaps we could just politely ask @empijei to update the blog post once Go 1.23 is released. :)
- Go advanced concurrency patterns: part 3 (channels) explains how
TryLock
andTryRLock
can be implemented, which have since become part of the standard library.
It does explain how TryLock
and TryRLock
can be implemented, but my impression from that page is it's much more about the expressive power of channels as an abstraction, as opposed to how to implement a missing standard library feature. This is referenced all over the blog post, but at the very top we see "The examples will correctly express the primitives but might not be as fast as the real ones." (Emphasis mine.) I think the author is clearly implying that these features may or may not already exist.
from go.
Related Issues (20)
- x/tools/internal/imports: TestInvalidModCache failures HOT 2
- cmd/internal/testdir: Test/rotate3.go failures HOT 2
- String Slice Doesn't Report the correct Length HOT 2
- x/build/cmd/coordinator: write_go_bootstrap_tar failing with 404 on some arm builders HOT 7
- x/pkgsite:
- database/sql: panic in `database/sql.(*connRequestSet).deleteIndex` [1.23 backport]
- panic when range-func return nil HOT 2
- net/http: ServeMux not backwards compatible (with Go 1.21) when registering double-slash patterns HOT 4
- proposal: spec: new builtin: handle HOT 1
- cmd/compile: PGO fails to do multiple levels of inlining into a single function HOT 2
- access: HOT 3
- hash/maphash:purego: TestSmhasherAvalanche failures HOT 1
- x/tools/internal/imports: TestFindModFileModCache failures HOT 1
- x/mod/modfile: AddNewRequire doesn't put direct dependencies in the first block HOT 6
- cmd/go: GOTOOLCHAIN=version+auto doesn't use the named version in go install HOT 1
- proxy.golang.org: Wrong version of cli tool installed when using `@latest` HOT 1
- cmd/compile: consumes 30GB memory HOT 4
- proposal: Add GPM (Go Package Manager), HOT 3
- Command Line Parameters with double quotation marks are not parsed properly by C runtime library used on windows platform by GO, ["TestPassword"] results in [TestPassword]. Quotes filtered out, no escape possible. HOT 7
- x/tools/gopls: Extend hover ability to get the type of selected expression HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go.