Skip to content

Instantly share code, notes, and snippets.

View cognitive-glitch's full-sized avatar
💭
Deep Working...

cognitive cognitive-glitch

💭
Deep Working...
  • Seoul
  • 00:01 (UTC +09:00)
View GitHub Profile
@cognitive-glitch
cognitive-glitch / rustnomicon.md
Created March 27, 2025 12:28
The Rustonomicon (from offical docs) - Converted to Markdown for taming LLMs

The Rustonomicon

ⓘ ⚠ Warning: This book is incomplete. Documenting everything and rewriting outdated parts take a while. See the issue tracker to check what's missing/outdated, and if there are any mistakes or ideas that haven't been reported, feel free to open a new issue there.

The Dark Arts of Unsafe Rust

THE KNOWLEDGE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF UNLEASHING INDESCRIBABLE HORRORS THAT SHATTER YOUR PSYCHE AND SET YOUR MIND ADRIFT IN THE UNKNOWABLY INFINITE COSMOS.

The Rustonomicon digs into all the awful details that you need to understand when writing Unsafe Rust programs.

@cognitive-glitch
cognitive-glitch / rust_syntax.rs
Created March 27, 2025 12:19
Rust Cheatsheet (from cheats.rs) - Converted to Markdown(with diagrams) for taming stupid LLMs
# Rust Language Cheat Sheet
17. March 2025
Contains clickable links to The Book, Rust by Example, Std Docs, Nomicon, and Reference.
## Data Structures
Data types and memory locations defined via keywords.
@cognitive-glitch
cognitive-glitch / easyboj.rs
Last active December 7, 2024 13:53
Easy I/O Macros for BOJ Problem solving in Rust / 백준 러스트 고속 입출력 정상화
/// Fast I/O macros for competitive programming
/// These macros provide efficient input/output operations optimized for competitive programming
/// 백준 OJ 러스트 사용자들을 위한 간편한 빠른 입출력 매크로
/// Reads a single line from stdin
/// # Examples
/// ```
/// let line = read!(); // reads a line as String
/// let num = read!(i32); // reads and parses a single number
/// let (a, b) = read!(i32, i32); // reads two numbers into a tuple
@cognitive-glitch
cognitive-glitch / readme.md
Created February 23, 2024 10:05 — forked from jdrew1303/readme.md
Market Order Matching Engine

Introduction

The computer driven markets for instruments like stocks and exchange traded stock options, have transformed finance and the flow of capital. These markets are enabled by order matching engines (and the infrastructure that supports this software). Before computer trading networks and matching engines, stocks where traded on cavernous exchange floors and transaction costs where high. When electronic trading fully matured, floor traders were a fading anachronism and transaction costs had been reduced to pennies a share in many cases. Electronic trading could not exist without advanced network infrastructure, but without the software matching engines no shares would change hands. The computer trading networks, the matching engine software has also created a concentrated nexus of potential failure. Failures in these systems have increased as the frequency and volume on the electronic networks has increased. The position of order matching engines in the trading infrastructure makes these systems o