go
go-generics-the-hard-way
Our great sponsors
go | go-generics-the-hard-way | |
---|---|---|
2059 | 14 | |
118,871 | 1,824 | |
1.0% | - | |
10.0 | 0.0 | |
1 day ago | almost 2 years ago | |
Go | Go | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go
-
Debugging a Golang Bug with Non-Blocking Reads
Go team does acknowledge [1] it as a bug, so there is some point here
However, that said, I wonder if OP (duckdb) could have written their solution [2] differently. Shouldn't they be able to select from a Pipe as well as Error channel simultaneously? (similar to how they are doing it inside here [3]). If not, I would have create a go-routine that does blocking read on the Pipe and then pass it on to another channel to select on.
[1] https://github.com/golang/go/issues/66239
[2] https://github.com/scratchdata/scratchdata/blob/7c1a0fcd0e20...
[3] https://github.com/scratchdata/scratchdata/blob/7c1a0fcd0e20...
-
Golang Web: GET Method
GitHub repository
Official Website
-
Top Paying Programming Technologies 2024
10. Go - $92,760
-
7 Programming Languages Every Cloud Engineer Should Know in 2024!
Go, or Golang, designed by Google, has become increasingly popular among cloud engineers for building high-performance and scalable cloud services. Its efficiency, simplicity, and built-in support for concurrency make it an excellent choice for developing microservices, distributed systems, and containerized applications. Go's compatibility with cloud platforms and its ability to handle heavy network traffic and complex processing tasks efficiently contribute to its growing adoption in cloud infrastructure projects.
- Nuke: A memory arena implementation for Go
-
🤓 My top 3 Go packages that I wish I'd known about earlier
✨ In recent months, I have been developing web projects using GOTTHA stack: Go + Templ + Tailwind CSS + htmx + Alpine.js. As soon as I'm ready to talk about all the subtleties and pitfalls, I'll post it on my social networks.
-
Memory Safe TLS Library Now Has AWS Crypto and FIPS
And they now have to deal with the same kind of timing attacks related stuff as everybody else, so they lag behind: https://github.com/golang/go/issues/49702
-
querySrv errors when connecting to MongoDB Atlas
Building with Go 1.11+ and using connection strings with the mongodb+srv scheme is unfortunately incompatible with some DNS servers in the wild due to the change introduced in https://github.com/golang/go/issues/10622. You may receive an error with the message "cannot unmarshal DNS message" while running an operation when using DNS servers that non-compliantly compress SRV records. Old versions of kube-dns and the native DNS resolver (systemd-resolver) on Ubuntu 18.04 are known to be non-compliant in this manner. We suggest using a different DNS server (8.8.8.8 is the common default), and, if that's not possible, avoiding the mongodb+srv scheme.
-
Fast persistent recoverable log and key-value store
Of course it does: just call TCPConn.SetNoDelay(false).
See https://github.com/golang/go/blob/master/src/net/tcpsock.go#...
go-generics-the-hard-way
-
Ask HN: Was it worth it for Go to add generics
You don't actually have to instantiate the type for a receiver function (i.e., method). There's too much missing from your code for me to understand which direction you're going but you'll likely have to use a constraint for structs which is explained here: https://github.com/akutz/go-generics-the-hard-way/blob/main/...
-
Go 1.18 Beta 2 is out.
I captured my own thoughts on where it will be useful -- https://github.com/akutz/go-generics-the-hard-way/tree/main/07-lessons-learned. Container patterns is definitely a key situation for sure.
-
Trying to understand sizes of binary artifacts built using generics
Build times
Thank you /u/DoomFrog666 -- I added a note the repo ahead of being able to do some more testing. I also credited you in the patch at https://github.com/akutz/go-generics-the-hard-way/commit/da1858c36162669ab8a6662283701287f671f243.
-
Go generics the hard way
I really enjoy the internals section! Very cool to see how generics are implemented in Go vs C#/Java
What are some alternatives?
v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
TinyGo - Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
Angular - Deliver web apps with confidence 🚀
golang-developer-roadmap - Roadmap to becoming a Go developer in 2020
RxGo - Reactive Extensions for the Go language.
React - The library for web and native user interfaces.
crystal - The Crystal Programming Language
grule-rule-engine - Rule engine implementation in Golang
sqlc - Generate type-safe code from SQL
rust - Empowering everyone to build reliable and efficient software.