惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tailwind CSS Blog
罗磊的独立博客
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - Franky
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
博客园 - 叶小钗
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
博客园 - 【当耐特】
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
量子位
宝玉的分享
宝玉的分享
V
Visual Studio Blog
博客园_首页
IT之家
IT之家
V
V2EX
腾讯CDC
aimingoo的专栏
aimingoo的专栏
博客园 - 司徒正美
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Blog — PlanetScale
Blog — PlanetScale
I
InfoQ
有赞技术团队
有赞技术团队
J
Java Code Geeks
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Vercel News
Vercel News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Help Net Security

Stonecharioteer on Tech

I Traced My Traffic Through a Home Tailscale Exit Node What Was I Reading Last? In Three Not-So-Easy Pieces Dogfooding Is Hard Code blocks in your books, finally GoForGo v0.9.0 Merrilin - We built an app to read books I use a Macbook now Data Structures & Algorithms - Preparing for Interviews Using a local DNS namespace for local service discovery Direction KOllector - Publishing KOReader Highlights gbt: branches touched in the last 24 hours A Soiree into Symbols in Ruby Some Smalltalk about Ruby Loops Ruby Blocks Returning from Ruby Blocks, Procs and Lambdas My Linux Laptop Finally Works: How Claude Helped Me Fix Years of Annoyances TIL: Watchexec - Modern File Watching for Development Workflows A Less Busy Mind GoForGo - Learn Go through live examples Migrating My Old Blog to Hugo with Claude The Qtile Window Manager: A Python-Powered Tiling Experience Read the RFCs that Built the Internet Py-x-Protobuf - Or How I Learned to Stop Worrying and Love Protocol Buffers Python Reverse a List New Beginnings Leaving ChainSafe Systems Screen Lock for Cinnamon Desktop using Zenity and Terminal Commands Crews Not Teams A System for Getting Better at LeetCode So Far So Rust Retrying HTTP Requests with Rust A Primer on Control Charts Learning Rust Explicit is Better than Implicit: Rust for Pythonistas Using Custom Delimiters in Jinja Templates TIL: Creating Fixed Length Iterables in Python Documentation Without Assumption Vagrant Python - A Reflection in 2022 Learning Golang No, A Virtual Machine Is Not Enough: Why Developers Need Native Linux Empathy in Tech For Those Who Came in Late A Weekend With PostgreSQL TIL: Gooey and Python Fire for Quick GUIs and CLIs TIL: 2ality - Dr. Axel Rauschmayer's JavaScript Blog TIL: MassDNS - High-Performance Bulk DNS Lookups TIL: Matomo Analytics, Google Tech Writing, Memory Programming, and NES TV Signals TIL: MontyDB - MongoDB Implemented in Python Returning to the Craft of Programming TIL: CPUFetch, OneFetch, and Learn CSS TIL: DNS Performance Testing and Pi-hole with Unbound TIL: Eli Bendersky's Blog, Awesome By Example, NoCoDB, and Martin Kleppmann TIL: CRDTs, Extreme HTTP Performance, and BYTEPATH Game TIL: AutoInvent, ASGI, Python Packaging, RAPIDS GPU Computing, and FlaskCon TIL: MangaDesk - Terminal Client for MangaDex TIL: McFly - Smart Shell History Search TIL: Siege Load Testing and Awesome FastAPI Resources TIL: Ventoy Bootable USB and Justniffer Network Analysis TIL: CLI Code Review, Git Split Diffs, and Internal Combustion Engine TIL: Benford's Law, Web Security Headers, Event Sourcing, and Mozilla Security Guidelines How to Write Documentation - The README.md File The Importance of Documentation TIL: NNgroup UX Research, SponsorBlock, and Labella Python Library TIL: The Little Book of Rust Macros and Rust Performance Book TIL: Git-Bug Distributed Issue Tracker and Omni Kubernetes Monitoring TIL: Zellij - Modern Terminal Multiplexer TIL: How Discord Handles 2.5 Million Concurrent Voice Users TIL: Volumio - The Audiophile Music Player TIL: Areopagitica - Milton's Defense of Free Speech TIL: Fast Node Manager, Zoxide Smart CD, Technical Writing, PyO3, and Qubes OS TIL: Slurm Workload Manager for HPC Clusters TIL: Data Visualization Guide and Oso Authorization Academy TIL: CORS Deep Dive, Piku Tiny PaaS, Rust Strings, and Deno Standard Library TIL: Raspberry Pi OS Development, Vim Beginner Guide, Password Management, and QueryBook TIL: uBlock Origin Performance Optimization on Firefox TIL: Breaking PostgreSQL at Scale and LeetCode Problem Patterns TIL: Awesome Tmux Resources for Terminal Multiplexing TIL: Grit - A Multitree-Based Personal Task Manager TIL: Lens 4.2 Kubernetes IDE, Shell Scripting Guide, and Dark HTTP Server Do The Job You Hate So You Won't Hate The Job You Love TIL: Innernet VPN Solution and NoteCalc Calculator App TIL: Argo CD for GitOps and Lens Kubernetes IDE TIL: Modern Rust CLI Tools - System Monitoring, HTTP Requests, and DNS TIL: tz - A Time Zone Helper Tool TIL: Distributed Systems Education, Fallacies, and Self-Hosted Internet Archiving TIL: Real-Time Voice Cloning Technology TIL: ChartMuseum for Helm, AMD's Corporate Journey, and Kubernetes Pod Scaling TIL: Docker and Kubernetes Tools - Whaler, Descheduler, and Dive TIL: Post-Mortem Collection, Terminal Plotting, and Technical Twitter TIL: Dark Mode Toggle Web Component by Google Chrome Labs TIL: Python eval(), exec(), and compile() Functions TIL: Camelot PDF Tables, PostgreSQL Row Level Security, Zerodha Varsity, and Write Yourself a Git TIL: fuser Command for Process and File Investigation TIL: i Hate Regex - The Ultimate Regex Cheat Sheet TIL: Dolt - Git for Data and Database Version Control TIL: x86 Assembly Programming and SafeEyes Break Reminder TIL: Comprehensive Distributed Systems Reading List TIL: Cosmopolitan C Library, Distributed Systems Book, High Performance Browser Networking, and Rust Roguelike Tutorial
TIL: Cosmopolitan C Library, Distributed Systems Book, High Performance Browser Networking, and Rust Roguelike Tutorial
2021-02-28 · via Stonecharioteer on Tech

Cosmopolitan C Library

Revolutionary C library that creates truly portable executables:

What Makes It Special:

  • Actually Portable Executables: Single binary runs on Windows, macOS, Linux, and BSD
  • No Runtime Dependencies: Completely self-contained executables
  • Multi-Architecture: Supports x86_64, ARM64, and other architectures
  • Zero Configuration: Works out of the box without complex build systems

How It Works:

Polyglot Binary Format:

  • Multiple Headers: Contains DOS, PE, and ELF headers in one file
  • Fat Binary: Includes code for different operating systems
  • Smart Loading: OS picks appropriate code section automatically
  • Compression: Efficient packing reduces file size

System Abstraction:

1
2
3
4
5
6
7
#include "libc/stdio/stdio.h"
#include "libc/calls/calls.h"

int main() {
    printf("Hello from everywhere!\n");
    return 0;
}

Key Features:

  • POSIX Compatibility: Standard C library interface
  • Modern C: Support for C11 and newer standards
  • Performance: Optimized implementations for different platforms
  • Security: Memory-safe alternatives and security features

Use Cases:

  • Cross-Platform Tools: Development utilities that work everywhere
  • Embedded Software: Minimal runtime requirements
  • Game Development: Portable game engines and tools
  • Scientific Computing: Reproducible research across platforms

Distributed Systems for Fun and Profit

Distributed systems for fun and profit

Accessible introduction to distributed systems concepts:

Learning Approach:

  • Practical Focus: Real-world problems and solutions
  • Clear Explanations: Complex concepts made understandable
  • Progressive Complexity: Builds from basics to advanced topics
  • Implementation Examples: Code samples and practical exercises

Core Topics:

Distributed System Basics:

  • Scalability: Handling increased load through distribution
  • Fault Tolerance: Continuing operation despite failures
  • Consistency: Maintaining data coherence across nodes
  • Performance: Latency and throughput considerations

System Models:

  • Network Model: How nodes communicate
  • Failure Model: Types of failures and their handling
  • Timing Model: Synchronous vs asynchronous systems
  • Consensus Model: Agreement in distributed environments

Key Insights:

  • Trade-offs: Understanding CAP theorem implications
  • Complexity: Distribution adds inherent complexity
  • Debugging: Challenges in distributed system debugging
  • Testing: Strategies for testing distributed systems

High Performance Browser Networking

High Performance Browser Networking (O’Reilly)

Comprehensive guide to optimizing web application performance:

Networking Fundamentals:

Transport Protocols:

  • TCP: Connection-oriented, reliable transport
  • UDP: Connectionless, fast but unreliable
  • HTTP/1.1: Request-response over TCP
  • HTTP/2: Multiplexing and server push
  • HTTP/3: QUIC-based for improved performance

Latency and Bandwidth:

  • Speed of Light: Physical limits of network communication
  • Last Mile: Often the bottleneck in network performance
  • CDN Benefits: Geographical distribution reduces latency
  • Connection Pooling: Reusing connections for efficiency

Browser Optimization:

Resource Loading:

  • Critical Rendering Path: What blocks initial page render
  • Resource Prioritization: Loading important resources first
  • Compression: Gzip, Brotli for reducing transfer size
  • Caching: Browser and HTTP caching strategies

Modern Web APIs:

  • Service Workers: Offline capability and caching control
  • WebRTC: Peer-to-peer communication
  • WebSockets: Full-duplex communication
  • Server-Sent Events: Real-time server-to-client updates

Performance Techniques:

  • Minimize Round Trips: Reduce network requests
  • Optimize Payloads: Smaller, compressed resources
  • Leverage Caching: Effective cache strategies
  • Use CDNs: Geographic distribution of content

Roguelike Tutorial in Rust

Introduction - Roguelike Tutorial - In Rust

Complete guide to building roguelike games using Rust:

What are Roguelikes:

  • Turn-Based: Player and entities take turns
  • Procedural Generation: Randomly generated levels
  • Permadeath: Character death is permanent
  • ASCII Graphics: Traditional text-based display

Rust for Game Development:

Performance Benefits:

  • Zero-Cost Abstractions: High-level code without runtime overhead
  • Memory Safety: Prevents common game crashes
  • Concurrency: Safe parallel processing
  • Predictable Performance: No garbage collection pauses

Game Architecture:

1
2
3
4
5
6
7
8
9
// Entity Component System (ECS) pattern
struct Position { x: i32, y: i32 }
struct Renderable { glyph: char, color: Color }
struct Player;

// Systems process components
fn movement_system(positions: &mut Vec<Position>, input: Input) {
    // Update positions based on input
}

Tutorial Progression:

Basic Implementation:

  1. Hello World: Basic Rust setup and window creation
  2. Map Generation: Creating dungeon layouts
  3. Entity System: Players, monsters, and items
  4. Game Loop: Turn-based mechanics

Advanced Features:

  1. Field of View: Realistic vision systems
  2. Combat System: Damage, health, and death
  3. Inventory: Item management and usage
  4. AI Systems: Monster behavior and pathfinding

Technologies Used:

  • RLTK (Rust Libtcod Toolkit): Game development framework
  • Specs ECS: Entity Component System
  • Serde: Serialization for save games
  • Rand: Random number generation

Learning Outcomes:

  • Rust Proficiency: Real-world Rust programming
  • Game Design: Core roguelike mechanics
  • Algorithm Implementation: Pathfinding, generation algorithms
  • Systems Programming: Low-level game engine concepts

Each resource provides deep technical knowledge in its domain - from system-level programming to distributed architecture, web performance optimization, and game development with modern languages.