Skip to content

Instantly share code, notes, and snippets.

View durka's full-sized avatar

Alex Burka durka

View GitHub Profile
[8:28pm] EliDupree: I also sometimes entertain myself by answering questions in here, my only concern about virtue being that help I render here might be biased in favor of helping more e.g. white people (a common concern for helping tech people with tech)
[8:30pm] danieldg: that's a strange concern. You can't tell anything like that about someone on IRC
[8:31pm] EliDupree: Sure, I can't, but I can make a reasonable guess about the overall proportions from the rust community surveys and such
[8:32pm] twmb: what?
[8:33pm] danieldg: yeah, that's not the right way to compute this imo
[8:37pm] EliDupree: If I prefer to help people out in a space that statistically has more privileged people in it, then I'm de facto concentrating resources in the hands of the privileged. I don't think it's *bad* per se because it's not zero-sum, but I'd prefer to help people who have less help already at their disposal.
[8:39pm] danieldg: I only consider that to apply if there are baerriers to entry for the space; rust doesn't re
//! ```cargo
//! [dependencies]
//! indicatif = "0.7.0"
//! ```
extern crate indicatif;
use indicatif::{ProgressBar, MultiProgress};
use std::sync::Arc;
use std::thread;
//! ```cargo
//! [dependencies]
//! indicatif = "0.7.0"
//! ```
extern crate indicatif;
use indicatif::{ProgressBar, MultiProgress};
use std::sync::Arc;
use std::thread;
@durka
durka / -
Created September 8, 2017 19:24
https://doc.rust-lang.org/nightly/book/first-edition/using-rust-without-the-standard-library.html
@durka
durka / -
Created September 6, 2017 16:26
3644, {
"feature(const_once_new)]` ": {
"checkout/src/librustc_trans/llvm_util.rs:26:29\u{1b}(B\u{1b}[m"
},
"feature(const_min_value)]` ": {
"checkout/src/librustc_const_eval/eval.rs:134:40\u{1b}(B\u{1b}[m",
"checkout/src/librustc_const_eval/eval.rs:132:40\u{1b}(B\u{1b}[m",
"checkout/src/librustc_const_eval/eval.rs:135:41\u{1b}(B\u{1b}[m",
"checkout/src/librustc_const_eval/eval.rs:131:39\u{1b}(B\u{1b}[m",
"checkout/src/librustc_const_eval/eval.rs:133:40\u{1b}(B\u{1b}[m"
@durka
durka / -
Created September 2, 2017 03:47
$ ./x.py test --stage 1 src/test/compile-fail --test-args const-fn-feature-flags │·
Updating submodules │·
Finished dev [unoptimized] target(s) in 0.0 secs │·
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) │·
Finished release [optimized] target(s) in 0.0 secs │·
Copying stage0 std fro
@durka
durka / -
Created August 31, 2017 17:35
$ ./x.py test --stage 1 --keep-stage 0 src/test/run-pass --test-args const-fn-feature-flags │·
Updating submodules │·
Finished dev [unoptimized] target(s) in 0.0 secs │·
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu) │·
Compiling core v0.0.0 (file:///home/aburka/rust/vis/src/libcore) │·
Compiling std_unico
[package]
name = "xxx"
version = "0.1.0"
authors = ["..."]
[dependencies]
bson = "0.9.0"
mongodb = "0.3.3"
@durka
durka / -
Created August 15, 2017 00:10
macro_rules! deser {
($name:ident, $expect:expr, |$s:ident| $pred:expr) => {
fn $name<'de, D: ::serde::Deserializer<'de>>(de: D) -> StdResult<bool, D::Error> {
struct Visitor;
impl<'de> ::serde::de::Visitor<'de> for Visitor {
type Value = bool;
fn expecting(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.write_str($expect)
@durka
durka / -
Created August 9, 2017 05:56
error[E0412]: cannot find type `Writer` in module `client`
--> crates/front/web/src/ws.rs:19:51
|
19 | pub static ref WS_SENDERS: Mutex<Vec<client::Writer<TcpStream>>> = Mutex::new(Vec::new());
| ^^^^^^ not found in `client`
|
help: possible candidates are found in other modules, you can import them into scope
| inline ( always ) ] unsafe fn __stability ( ) -> & 'static $ T use websocket::client::sync::Writer;
| inline ( always ) ] unsafe fn __stability ( ) -> & 'static $ T use websocket::sender::Writer;
| inline ( always ) ] unsafe fn __stability ( ) -> & 'static $ T use websocket::sync::Writer;