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
macbook:~ vadzim$ | |
macbook:~ vadzim$ cat .config/nixpkgs/overlays/dconf.nix | |
self: super: { | |
gnome3 = super.gnome3.overrideScope' (self: super: { | |
dconf = super.dconf.overrideAttrs (drv: { | |
doCheck = false; | |
}); | |
}); | |
} | |
macbook:~ vadzim$ |
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
macbook:~ vadzim$ | |
macbook:~ vadzim$ nix-env -i meld | |
installing 'meld-3.18.3' | |
these derivations will be built: | |
/nix/store/ci5p3awqjm8rqmmzm7p8nfi9whzsj2f5-dconf-0.30.1.drv | |
/nix/store/pd556bahggcp0bjmi5r3vg6qswk56wlm-hook.drv | |
/nix/store/qxacixcaxsazhanvz3xmh2iffw6802h8-meld-3.18.3.drv | |
building '/nix/store/ci5p3awqjm8rqmmzm7p8nfi9whzsj2f5-dconf-0.30.1.drv'... | |
unpacking sources | |
unpacking source archive /nix/store/canh30a3lr5pmqdr6jgnn01qh4qzyhm2-dconf-0.30.1.tar.xz |
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
#![allow(non_snake_case)] | |
use rand::seq::SliceRandom; | |
use std::time::Instant; | |
use std::ops::Deref; | |
pub struct NonEmptyMaxHeap<T> { | |
elements: Vec<T>, | |
} | |
impl<T: Ord + Copy> NonEmptyMaxHeap<T> { |
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
macbook:~ vadzim$ | |
macbook:~ vadzim$ nix-shell -p nix-info --run "nix-info -m" | |
- system: `"x86_64-darwin"` | |
- host os: `Darwin 18.2.0, macOS 10.14.2` | |
- multi-user?: `yes` | |
- sandbox: `no` | |
- version: `nix-env (Nix) 2.1.3` | |
- channels(vadzim): `""` | |
- channels(root): `"nixpkgs-19.03pre161900.61c3169a0e1"` | |
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs` |
This file has been truncated, but you can view the full file.
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
fn print_types<T1, T2, T3>() { | |
println!("[{}, {}, {}]", | |
std::mem::size_of::<T1>(), | |
std::mem::size_of::<T2>(), | |
std::mem::size_of::<T3>()); | |
} | |
fn main() { | |
print_types::<bool, &[u8], u16>(); |
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
Process: rustc [67666] | |
Path: /Users/USER/*/rustc | |
Identifier: rustc | |
Version: ??? | |
Code Type: X86-64 (Native) | |
Parent Process: bash [67075] | |
Responsible: rustc [67666] | |
User ID: 501 | |
Date/Time: 2018-11-23 00:14:54.697 +0300 |
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
FAIL: LLVM :: MC/MSP430/addrmode.s (20691 of 28266) | |
******************** TEST 'LLVM :: MC/MSP430/addrmode.s' FAILED ******************** | |
Script: | |
-- | |
: 'RUN: at line 1'; /Users/vadzim/Documents/llvm-build/bin/llvm-mc -triple msp430 -show-encoding < /Users/vadzim/Documents/llvm/test/MC/MSP430/addrmode.s | /Users/vadzim/Documents/llvm-build/bin/FileCheck /Users/vadzim/Documents/llvm/test/MC/MSP430/addrmode.s | |
-- | |
Exit Code: 2 | |
Command Output (stderr): | |
-- |
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
#![feature(test)] | |
extern crate test; | |
trait Max2 { | |
type Item; | |
fn max_by_key2<B: Ord, F>(self, f: F) -> Option<Self::Item> where | |
Self: Sized, | |
F: FnMut(&Self::Item) -> B; | |
} |
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::thread; | |
use std::sync::Arc; | |
fn main() { | |
let a1 = Arc::new(0); | |
let mut a2 = a1.clone(); | |
let t1 = thread::spawn( | |
move || { |
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
macbook:relay vadzim$ rustup default nightly-2018-06-24 | |
info: using existing install for 'nightly-2018-06-24-x86_64-apple-darwin' | |
info: default toolchain set to 'nightly-2018-06-24-x86_64-apple-darwin' | |
nightly-2018-06-24-x86_64-apple-darwin unchanged - rustc 1.28.0-nightly (60efbdead 2018-06-23) | |
macbook:relay vadzim$ RUSTFLAGS="-Z sanitizer=thread" cargo run --target x86_64-apple-darwin | |
Compiling relay v0.1.0 (file:///Users/vadzim/Downloads/relay) | |
Finished dev [unoptimized + debuginfo] target(s) in 0.71s | |
Running `target/x86_64-apple-darwin/debug/relay` |