This file contains 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
#!/usr/bin/env bash | |
roots_file="$(mktemp)" | |
find /nix/var/nix/gcroots -type l | xargs realpath 2>/dev/null >"$roots_file" | |
sqlite3 --readonly --batch db.sqlite <<EOF | |
CREATE TEMPORARY TABLE roots (path TEXT); | |
.mode csv | |
.import $roots_file roots | |
WITH RECURSIVE closure(id) AS MATERIALIZED ( |
This file contains 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
use anyhow::{bail, Context, Result}; | |
use criterion::{black_box, criterion_group, criterion_main, Criterion}; | |
use dynasm::dynasm; | |
use dynasmrt::{AssemblyOffset, DynasmApi, DynasmLabelApi, ExecutableBuffer}; | |
criterion_group!(benches, quine); | |
criterion_main!(benches); | |
/// Ref: https://gist.github.com/blahgeek/dd58a29a37e97fdf29f0 | |
const QUINE_SRC: &str = ">>>>++>++>++>++++>+++>+++++>++>++++>++++>+++>+>+++>+>++>++>++++++>+++++>+++>++++>++>+>+++>++++++>+++++>++>++++>++>+++++>++>++++>++>+++++>+>++++>+++>+++++>+++>++++>+++>+++++>++>++++++>++++>++++>++>+++++>++>++++>++>+++++>+++>+>++++>+++>+++++>+++>++++>+++>+++++>++>++++++>+++++>++>+++++>+++>+++>++++++>++>++>++>++++>++++>++>+++++>++>++++>++>+++++>++>+>+>+>+>+>+>+>+>++++>+++>+>+>+>+>+>++>++++++>+++++>+++>+>+>+>++++>+++>+++++>+++>++++>+++>+++++>++>++++++>++++>++++>++>+++++>++>++++>++>+++++>+++>++>+>+>+>+>++++>+++>+>+>+>+>++>++++++>+++++>+++>+>+>+>++++>+++>+++++>+++>++++>+++>+++++>++>++++++>++++>++++>++>+++++>++>++++>++>+++++>+++>++++++>++++++>++++>+++>+++++>+++>++++> |
This file contains 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
[package] | |
name = "regex_automata_regression_test" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
criterion = "0.5.1" | |
once_cell = "1.18.0" | |
regex-automata = "0.3.1" | |
regex-automata_0_2 = { package = "regex-automata", version = "0.2.0" } |
This file contains 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
[ERROR hir_ty::mir::borrowck] Terminator should be none only in construction. | |
The body: | |
fn on_did_change_watched_files() { | |
let _0: ControlFlow<Result<(), Error>, ()>; | |
let self_1: &mut Server; | |
let params_2: DidChangeWatchedFilesParams; | |
let enabled_3: bool; | |
let interest_4: Interest; | |
let iter_5: Iter; | |
let level_6: Level; |
This file contains 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
import math | |
import cmath | |
def main(): | |
end = 500 | |
size = 800.0 | |
r = size / 2 / 9 | |
dash = 5 | |
limit = r * 8.7 |
This file contains 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
// On Linux 6.6.59, x86_64 | |
// Cargo.toml: | |
// ```toml | |
// [package] | |
// name = "testt" | |
// version = "0.0.0" | |
// edition = "2021" | |
// [dependencies] | |
// io-uring = "0.7.1" | |
// ``` |
This file contains 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
use std::fmt::Debug; | |
// This won't work: | |
// struct Node<?> { this: usize, next: Option<&? mut Node<?>> } | |
trait Chain: Debug { | |
fn out(&mut self) -> Option<(&mut usize, &mut dyn Chain)>; | |
} | |
impl Chain for () { |
This file contains 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
// [dependencies] | |
// bstr = "1" | |
// goblin = "0.9" | |
// rustc-hash = "2.1.1" | |
// suff_collections = "2" | |
use std::cmp::Reverse; | |
use std::collections::HashSet; | |
use std::hash::{Hash, Hasher}; | |
use bstr::{BStr, ByteSlice}; |
OlderNewer