Explore >> Select a destination


You are here

machiel.me
| | fernandocorreia.dev
3.6 parsecs away

Travel
| | This is part 13 of my journey learning Golang. Strings in Go Strings represent a sequence of bytes. More specifically, a read-only slice of uint8 integers. ...
| | hermanschaaf.com
0.9 parsecs away

Travel
| | Benchmarks of various approaches
| | mfbmina.dev
7.0 parsecs away

Travel
| | One of my favorite features in Go is the possibility of writing benchmark tests. At Go 1.24, this feature has a new look, making it easier to use. To demonstrate these changes, let's suppose a function that calculates the factorial recursively and one that calculates it through loops. func FatorialRecursive(n int) int { if n == 0 { return 1 } return n * FatorialRecursive(n-1) } func FatorialLoop(n int) int { aux := 1 for i := 1; i <= n; i++ { aux *= i } return aux } Previously, to write a benchmark, it was necessary to write down the whole execution loop of the test. When done, we need to run the command $ go test -bench .
| | uraimo.com
33.5 parsecs away

Travel
| Discussions on how concurrency should be handled natively in Swift will soon start, new paradigms will be introduced and a swifty approach to concurrency will be defined. This article is an introduction to these topics, it could be useful if you plan to contribute to swift-evolution or even if you just want to experiment with something new using the recommended opensource libraries.