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
// tokio = { version = "1.32", default-features = false, features = ["sync"] } | |
// glommio = { git = "https://github.com/DataDog/glommio.git" } | |
use tokio::sync::*; | |
fn main() { | |
let (send_dispatcher, recv_dispatcher) = oneshot::channel(); | |
let async_thread = std::thread::spawn(move || { | |
eprintln!("BACKGROUND: Creating channel in thread"); | |
let (dispatcher, mut receiver) = mpsc::unbounded_channel(); |
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
// clang -std=c11 read_write.c -luring && ./a.out | |
#define _GNU_SOURCE | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <sys/stat.h> | |
#include <sys/ioctl.h> | |
#include <liburing.h> |
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
/* | |
Cargo.toml | |
[package] | |
name = "tmp" | |
version = "0.0.1" | |
resolver = "2" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] |
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[E0277]: the trait bound `Bincoded<SerdeStruct>: BareFormula` is not satisfied | |
--> src/main.rs:17:1 | |
| | |
17 | #[alkahest(Serialize<SomeEnumFormula>, SerializeRef<SomeEnumFormula>, for<'a> Deserialize<'a, SomeEnumFormula>)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `BareFormula` is not implemented for `Bincoded<SerdeStruct>` | |
| | |
= note: required for `&SerdeStruct` to implement `alkahest::Serialize<Bincoded<SerdeStruct>>` | |
note: required by a bound in `WithFormula::<F>::write_field` | |
--> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alkahest-0.3.0/src/lib.rs:149:16 | |
| |
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
d): /home/vlovich/valgrind-deadlock | |
DW_AT_GNU_pubnames: 1 | |
DW_AT_low_pc : 0x3d040 | |
DW_AT_high_pc : 82 | |
parse_type_DIE: | |
--24107-- WARNING: Serious error when reading debug info | |
--24107-- When reading debug info from /home/vlovich/valgrind-deadlock/target/debug/valgrind-deadlock: | |
--24107-- confused by the above DIE | |
==24107== Thread 3: | |
--24107-- warning: evaluate_Dwarf3_Expr: unhandled DW_OP_ 0x9b |
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::rc::Rc; | |
use futures_util::future::join_all; | |
use glommio::*; | |
#[derive(Copy, Clone, Debug)] | |
enum Message { | |
Ping, | |
Pong, | |
} |
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
// "aws-sdk": "^2.1100.0", | |
import pkg from 'aws-sdk' | |
const { S3 } = pkg | |
import { performance } from 'perf_hooks' | |
import { globalAgent } from 'http' | |
import { globalAgent as globalAgentSecure } from 'https' | |
globalAgent.maxSockets = 300 | |
globalAgentSecure.maxSockets = 300 |
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
interface Env { | |
BUCKET: R2Bucket | |
} | |
function parseRange(encoded: string | null): undefined | { offset: number, length: number } { | |
if (encoded === null) { | |
return | |
} | |
const parts = encoded.split('-') |
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 asyncio | |
import sys | |
import time | |
def EXITED(): | |
# Did app terminate | |
pass | |
class PatchableStderrStream(object): | |
def __init__(self): |
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
Building wheels for collected packages: pybluez | |
Running setup.py bdist_wheel for pybluez ... error | |
Complete output from command /opt/homebrew/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/yy/yxy91sxx7j9g2zjf6pg2ys4w00_w9p/T/pip-install-9vfvfafz/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/yy/yxy91sxx7j9g2zjf6pg2ys4w00_w9p/T/pip-wheel-8ll3tuwd --python-tag cp37: | |
running bdist_wheel | |
running build | |
running build_py | |
creating build | |
creating build/lib.macosx-10.13-x86_64-3.7 | |
creating build/lib.macosx-10.13-x86_64-3.7/bluetooth | |
copying bluetooth/btcommon.py -> build/lib.macosx-10.13-x86_64-3.7/bluetooth |
NewerOlder