Skip to content

Instantly share code, notes, and snippets.

View xacrimon's full-sized avatar

Joel Wejdenstål xacrimon

View GitHub Profile
{
log default {
output stdout
format json
include admin.api
}
log access {
output file /data/caddy/log/access.log {
roll_size 10MiB
Checking cmap v0.1.0 (/Users/joelwejdenstal/repos/cmap)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.05s
#![feature(prelude_import)]
#[prelude_import]
use std::prelude::rust_2024::*;
#[macro_use]
extern crate std;
use std::hint;
use cmap::map;
@xacrimon
xacrimon / build.yml
Created March 27, 2025 19:52
ci workflow for repo synced to the typst web editor
name: build
on:
push:
branches:
- main
concurrency:
group: build-workflow
cancel-in-progress: false
Found sysroot: /Volumes/Q/repos/rust/build/x86_64-unknown-linux-gnu/stage1
Compiling bytestr-match v0.1.0 (/Volumes/Q/repos/bytestr-match)
warning: unused variable: `eq`
--> src/lib.rs:26:16
|
26 | fn ees(x:&[u8],eq:[u8;16])->bool{
| ^^ help: if this is intentional, prefix it with an underscore: `_eq`
|
= note: `#[warn(unused_variables)]` on by default
@xacrimon
xacrimon / tdark-1.asm
Created February 2, 2025 15:09
x86-64-v4 ec873589f7e70a8462ba9a23dfd41276a581cf3f
Found sysroot: /Volumes/Q/repos/rust/build/x86_64-unknown-linux-gnu/stage1
Finished `release` profile [optimized] target(s) in 0.17s
Artifact files: ["/Volumes/Q/repos/bytestr-match/target/release/libbytestr_match.rlib", "/Volumes/Q/repos/bytestr-match/target/release/deps/libbytestr_match-f651d9a6f574924b.rmeta"]
Working with file: /Volumes/Q/repos/bytestr-match/target/release/deps/bytestr_match-f651d9a6f574924b.s
.section .text.test,"ax",@progbits
.globl test
.p2align 4, 0x90
.type test,@function
test:
_to_errno:
Lfunc_begin5:
.cfi_startproc
sub x8, x1, #28
cmn x8, #28
b.hi LBB5_2
ldp x8, x9, [x0]
ldr x10, [x0, #16]
ldur x11, [x0, #19]
mov x12, #29295
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 11, 0
.globl _to_errno
.p2align 2
_to_errno:
Lfunc_begin0:
.cfi_startproc
// /Users/joelwejdenstal/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/mod.rs : 2074
if mid <= self.len() {
sub x8, x1, #28
const STANDARD_BASE: &[u8] = {
let mut _0: &[u8];
let mut _1: &[u8; 27];
let _2: &[u8; 27];
bb0: {
StorageLive(_1);
StorageLive(_2);
_2 = const b"org.freedesktop.DBus.Error.";
_1 = &(*_2);
@xacrimon
xacrimon / to_errno.mir
Last active January 30, 2025 08:42
with my rustc patch that's almost ready for review
const STANDARD_BASE: &[u8] = {
let mut _0: &[u8];
let mut _1: &[u8; 27];
let _2: &[u8; 27];
bb0: {
StorageLive(_1);
StorageLive(_2);
_2 = const b"org.freedesktop.DBus.Error.";
_1 = &(*_2);
@xacrimon
xacrimon / to_errno.asm
Created January 30, 2025 08:40
with my rustc patch that's almost ready for review
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 11, 0
.globl _to_errno
.p2align 2
_to_errno:
Lfunc_begin0:
.cfi_startproc
// /Volumes/Q/repos/rust/library/core/src/slice/mod.rs : 2113
if mid <= self.len() {
sub x8, x1, #28