| std.fmt: Value | Avg. Time (ns) | zmij: Value | Avg. Time (ns) |
|---|---|---|---|
| 1.23456e2 | 217.706875 | 1.23456e+02 | 80.578084 |
| 3.141592653589793e0 | 194.159166 | 3.141592653589793e+00 | 104.522875 |
| 1e-20 | 239.597 | 1.e-20 | 81.734208 |
| 1.2345678901234567e300 | 197.318291 | 1.2345678901234567e+300 | 102.10875 |
| 0e0 | 87.62675 | 0 | 5.5385 |
This is v0.0.2 of a proposal document for Tested Semantic Versioning, referred to
in this document as TestVer, or tested versioning. The author is Sam Atman, who
holds the copyright. It is released under the terms of the CC BY-SA
4.0 license. Note
that this requires that any changes be clearly identified as such.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const std = @import("std"); | |
| pub fn build(b: *std.Build) void { | |
| const target = b.standardTargetOptions(.{}); | |
| const optimize = b.standardOptimizeOption(.{}); | |
| var prng = std.Random.DefaultPrng.init(blk: { | |
| var seed: u64 = undefined; | |
| std.posix.getrandom(std.mem.asBytes(&seed)) catch @panic("syscall error"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /path/to/julia/deps/tools/jldownload /path/to/julia/deps/srccache/JuliaSyntax-4f1731d6ce7c2465fc21ea245110b7a39f34658a.tar.gz https://api.github.com/repos/JuliaLang/JuliaSyntax.jl/tarball/4f1731d6ce7c2465fc21ea245110b7a39f34658a | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 | |
| 100 477 100 477 0 0 1468 0 --:--:-- --:--:-- --:--:-- 1472 | |
| 10 158k 10 16688 0 0 33051 0 0:00:04 --:--:-- 0:00:04 33051 | |
| 100 158k 100 158k 0 0 274k 0 --:--:-- --:--:-- --:--:-- 1953k | |
| /path/to/julia/deps/tools/jlchecksum /path/to/julia/deps/srccache/JuliaSyntax-4f1731d6ce7c2465fc21ea245110b7a39f34658a.tar.gz |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # Usage: | |
| # ./git-move.sh path1/ path2/... path/to/destination/repo | |
| args=("$@") | |
| # All but last argument: | |
| paths=("${args[@]::${#args[@]}-1}") | |
| # Last argument: | |
| dest="${args[${#args[@]}-1]}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Simple currying module | |
| -- | |
| -- With a bit of extra complexity, so that | |
| -- currying several times gives only one | |
| -- level of function indirection for up to | |
| -- five parameters. | |
| -- weak table to store a reference to the curried | |
| -- function, with the parameters and original function | |
| local _curried = setmetatable({}, { __mode = 'k' }) |
NewerOlder