Skip to content

Instantly share code, notes, and snippets.

gnzlbg gnzlbg

Block or report user

Report or block gnzlbg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c1ec23b8d2ed96a156334461d79619ba
[2018-12-28T12:21:14Z DEBUG bindgen] Trying to find clang with flags: ["-D__SSE2__"]
[2018-12-28T12:21:17Z DEBUG bindgen] Found clang: Clang { path: "/usr/bin/clang", version: Some(CXVersion { Major: 10, Minor: 0, Subminor: 0 }), c_search_paths: Some(["/usr/local/include", "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/include", "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include", "/usr/include", "/System/Library/Frameworks", "/Library/Frameworks"]), cpp_search_paths: Some(["/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1", "/usr/local/include", "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/include", "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include", "/usr/include", "/System/Library/Frameworks", "/Library/Frameworks"]) }
[2018-12-28T12:21:17Z DEBUG bindgen] Fixed-up opti
View log.txt
This file has been truncated, but you can view the full file.
Timestamp Thread Type Activity PID TTL
2018-12-13 14:46:34.198610+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:34.198692+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:34.198778+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:34.206097+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:36.082382+0100 0xdea6 Activity 0xe80f 107 0 locationd: CL: kCLConnectionMessageWatchdog
View gist:0d2bc4170db2fa8e5757e6a7b50ace55
This file has been truncated, but you can view the full file.
Timestamp Thread Type Activity PID TTL
2018-12-13 14:46:34.198610+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:34.198692+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:34.198778+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:34.206097+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:36.082382+0100 0xdea6 Activity 0xe80f 107 0 locationd: CL: kCLConnectionMessageWatchdog
View gist:97ad1308aa884e537970a84320fd9ea9
This file has been truncated, but you can view the full file.
Timestamp Thread Type Activity PID TTL
2018-12-13 14:46:34.198610+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:34.198692+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:34.198778+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:34.206097+0100 0x293 Default 0x0 91 0 diskarbitrationd: [com.apple.DiskArbitration.diskarbitrationd:default] <private>
2018-12-13 14:46:36.082382+0100 0xdea6 Activity 0xe80f 107 0 locationd: CL: kCLConnectionMessageWatchdog
@gnzlbg
gnzlbg / output.txt
Created Nov 1, 2018
jemalloc debug background threads
View output.txt
bgt: disabled
name or mib specifies an unknown/invalid value.
name or mib specifies an unknown/invalid value.
name or mib specifies an unknown/invalid value.
@gnzlbg
gnzlbg / test_enable_bg.cpp
Created Oct 31, 2018
Test enabling background threads
View test_enable_bg.cpp
#include "include/jemalloc/jemalloc.h"
#include <iostream>
// const char *_rjem_malloc_conf = "background_thread:true";
void print_err(int err) {
switch (err) {
case EINVAL: {
std::cout << "newp is not NULL, and newlen is too large or too small. "
"Alternatively, *oldlenp is too large or too small; in this "
@gnzlbg
gnzlbg / all_sse2.asm
Created Aug 31, 2018
Performance of all/any mask reductions on SSE2 and SSE4.1
View all_sse2.asm
start:
mov ebx, 111 ; Start marker bytes
db 0x64, 0x67, 0x90 ; Start marker bytes
.L2:
;; the all_sse2 implementation starts here:
movdqa xmm0, [rdi]
pmovmskb eax, xmm0
cmp eax, 65535
sete al
mov ebx, 222 ; End marker bytes
@gnzlbg
gnzlbg / a.rs
Last active Aug 14, 2018
cargo fmt --all succeeds but --check fails
View a.rs
//! Implements portable horizontal vector min/max reductions.
macro_rules! impl_reduction_min_max {
([$elem_ty:ident; $elem_count:expr]: $id:ident
| $ielem_ty:ident | $test_tt:tt) => {
impl $id {
/// Largest vector element value.
#[inline]
pub fn max_element(self) -> $elem_ty {
#[cfg(not(any(
View time-passes.txt
Compiling cfg-if v0.1.4
Compiling nodrop v0.1.12
Compiling packed_simd_vTests v0.1.0 (file:///Users/gnzlbg/projects/sideprojects/packed_simd/crates/vTests)
Compiling interpolate_idents v0.2.5
time: 0.003 parsing
time: 0.000 attributes injection
time: 0.000 recursion limit
time: 0.000 crate injection
time: 0.000 plugin loading
time: 0.000 plugin registration
View gist:abb34fa3a05f0c4fcfc4ce78b7d9e863
```^
make[2]: *** [lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCFGSort.cpp.o] Error 1
make[1]: *** [lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....```
```/root/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp:215:17: error: declaration of 'const {anonymous}::Region* {anonymous}::Entry::Region' [-fpermissive]
const Region *Region;
^~~~~~
/root/llvm/lib/Target/WebAssembly/WebAssemblyCFGSort.cpp:41:7: error: changes meaning of 'Region' from 'class {anonymous}::Region' [-fpermissive]
class Region {```
You can’t perform that action at this time.