Skip to content

Instantly share code, notes, and snippets.

Avatar

Luca Barbato lu-zero

View GitHub Profile
View foo.rs
/* automatically generated by rust-bindgen */
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FooA {
pub a: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_FooA() {
assert_eq!(
View main.rs
use rayon::prelude::*;
use std::{thread, time};
fn process(data: usize) -> usize {
(0..100usize)
.into_par_iter()
.map(|v| {
thread::sleep(time::Duration::from_millis(1));
data + v
})
View gist:24998d2f3a8348874c7f51f0bd6998b2
https://github.com/sapir/gcc-rust/issues
https://github.com/philberty/gccrs
View gist:e9544fc801246525544b28d18df92e3c
warning: function cannot return without recursing
--> src/main.rs:8:5
|
8 | fn default() -> Self {
| ^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
...
11 | .. Default::default()
| ------------------ recursive call site
|
= note: `#[warn(unconditional_recursion)]` on by default
View a.diff
--- /var/tmp/portage/net-misc/netifrc-9999/image///etc/init.d/net.lo 2020-08-09 09:21:41.693971939 +0200
+++ /etc/init.d/net.lo 2020-08-09 09:21:08.739972400 +0200
@@ -295,10 +295,6 @@
echo "$value" && break
fi
done
-
-_show_address6()
-{
- einfo "received address $(_get_inet6_address "${IFACE}")"
View gist:b9e25f0d1afea884f268ba10ccc8dba8
diff --git a/rav1e_js/src/main.rs b/rav1e_js/src/main.rs
index 801e587a..284a7d8c 100644
--- a/rav1e_js/src/main.rs
+++ b/rav1e_js/src/main.rs
@@ -10,32 +10,32 @@ fn main() {
let mut buf = Vec::with_capacity(len);
buf.resize(len, 0_u8);
[buf.clone(), buf.clone(), buf]
};
View gist:ddc8368f4f50a52a8e1f6527412c6811
---- asm::x86::mc::test::test_rav1e_prep_8tap_smooth_sharp_bd_8_avx512icl stdout ----
thread 'asm::x86::mc::test::test_rav1e_prep_8tap_smooth_sharp_bd_8_avx512icl' panicked at 'called `Result::unwrap()` on an `Err` value: "valid values: RUST ,SSE2 ,SSSE3 ,SSE4_1 ,sse4.1 ,AVX2 ,AVX512 ,AVX512ICL"', src\asm\x86\mc.rs:595:3
---- asm::x86::mc::test::test_rav1e_prep_bilin_bd_8_avx512icl stdout ----
thread 'asm::x86::mc::test::test_rav1e_prep_bilin_bd_8_avx512icl' panicked at 'called `Result::unwrap()` on an `Err` value: "valid values: RUST ,SSE2 ,SSSE3 ,SSE4_1 ,sse4.1 ,AVX2 ,AVX512 ,AVX512ICL"', src\asm\x86\mc.rs:595:3
View gist:e5d1ac97f57e6475c9490525ed29b459
❯ cargo cinstall --destdir=/tmp/sled-try --prefix=/foo
sled/bindings/sled-native on  master [⇡] is 📦 v0.31.0 via 🦀 v1.44.1 took 16s
❯ ls /tmp/sled-try/foo/
bin/ include/ lib/
sled/bindings/sled-native on  master [⇡] is 📦 v0.31.0 via 🦀 v1.44.1 took 16s
❯ ls /tmp/sled-try/foo/
bin/ include/ lib/
View gcc-9-has-problems.md

This is not fun.

In file included from /home/lu_zero/Sources/aom/test/simd_cmp_neon.cc:16:
/home/lu_zero/Sources/aom/test/simd_cmp_impl.h: In function ‘void simd_test_neon::TestSimd1Arg(uint32_t, uint32_t, uint32_t, const char*) [with CRet = c_v256; CArg = short unsigned int]’:
/home/lu_zero/Sources/aom/test/simd_cmp_impl.h:1737:1: internal compiler error: Max. number of generated reload insns per insn is achieved (90)

 1737 | }
      | ^
Please submit a full bug report,
View bosphorus-1080.md
TILES PSNR PSNR HVS SSIM MS SSIM CIEDE 2000
1x1 0.0000 0.0000 0.0000 0.0000 0.0000
2x1 4.4953 4.2337 4.6168 5.7729 3.3824
2x2 4.1028 3.9523 4.0890 4.9318 2.4176
4x2 7.8729 7.5031 8.0301 9.7497 6.2222
4x4 17.4946 16.5270 17.7441 20.3671 16.9387
8x4 24.8844 23.4984 25.3475 29.0677 24.5067
8x8 30.9199 28.9901 30.7541 32.5108 30.0950
16x8 45.6969 42.8007 45.7152 49.3482 46.5212
You can’t perform that action at this time.