Lingyun's Blog

中文 / EN

  • Home

  • Tags

  • Categories

  • Archives

  • Apps

  • About

On-Device Multimodal Inference with llama.cpp and SmolVLM

Posted on 2026-10-07 | In AI
Words count in article: 2.9k | Reading time ≈ 10 mins.
On-Device Multimodal Inference with llama.cpp and SmolVLM
An end-to-end walkthrough of on-device multimodal inference with SmolVLM and llama.cpp, covering vision encoding, Pixel Shuffle, GGUF, prompt assembly, prefill, KV cache, and autoregressive decoding.
Read more »

The Art of Continuous Corners: iOS Continuous Corner Algorithm and Implementation

Posted on 2026-06-23 | In Continuous Corners
Words count in article: 4.2k | Reading time ≈ 15 mins.
The Art of Continuous Corners: iOS Continuous Corner Algorithm and Implementation
A deep dive into Apple's iOS continuous corners, curvature continuity, superellipse and Euler spiral hypotheses, and the Bezier-based implementation behind ContinuousCornerKit.
Read more »

Understanding C++ Exceptions from the Source: __cxa_throw, Stack Unwinding, and -fno-exceptions

Posted on 2026-03-07 | In C++ , Exception
Words count in article: 3.4k | Reading time ≈ 12 mins.
Understanding C++ Exceptions from the Source: __cxa_throw, Stack Unwinding, and -fno-exceptions
A source-level explanation of C++ exception handling through libc++abi, libunwind, Itanium ABI, __cxa_throw, stack unwinding, personality functions, RTTI matching, and -fno-exceptions.
Read more »

How We Built a Streaming Rich Text Renderer for LLM Responses on iOS

Posted on 2024-08-06 | In OC
Words count in article: 2.2k | Reading time ≈ 8 mins.
How We Built a Streaming Rich Text Renderer for LLM Responses on iOS
Building a streaming rich text renderer for LLM responses on iOS, including incremental parsing, YYText masking, HTML, LaTeX, interruption, TTS, and performance.
Read more »

Let's Build a Cross-Platform Markdown Rendering Library for iOS and Android

Posted on 2024-07-25 | In C++ , OC , Java
Words count in article: 5.2k | Reading time ≈ 19 mins.
Let's Build a Cross-Platform Markdown Rendering Library for iOS and Android
How to build a native cross-platform Markdown renderer for iOS and Android with a C++ core, layout engine, Atom/Box tree, TextLayout, Graphics2D, image loading, and platform adapters.
Read more »

Teaching a TTS Engine to Read LaTeX in Chinese

Posted on 2024-02-02 | In LaTeX , TTS
Words count in article: 2.5k | Reading time ≈ 9 mins.
Teaching a TTS Engine to Read LaTeX in Chinese
A practical implementation of Chinese TTS for LaTeX formulas, based on Atom tree traversal, speech-text generation rules, MathJax comparison, and math and chemistry pronunciation cases.
Read more »

Hooking Objective-C Blocks with TrampolineHook on iOS

Posted on 2023-05-08 | In OC
Words count in article: 2.3k | Reading time ≈ 8 mins.
Hooking Objective-C Blocks with TrampolineHook on iOS
A deep dive into hooking Objective-C blocks on iOS with TrampolineHook, covering executable trampoline pages, vm_remap, the Block ABI, arm64 and x86_64 dispatch, and stack alignment.
Read more »

Priority Inversion in Practice

Posted on 2022-11-23 | In iOS
Words count in article: 3k | Reading time ≈ 11 mins.
Priority Inversion in Practice
A practical investigation of priority inversion on iOS, covering QoS, pthread read-write locks, turnstiles, priority inheritance, and dispatch semaphores.
Read more »

Static Variables in C++: How Bad Can They Get?

Posted on 2022-08-30 | In Static Variables
Words count in article: 1.6k | Reading time ≈ 6 mins.
Static Variables in C++: How Bad Can They Get?
What can go wrong with C++ static initialization and destruction in iOS projects, including translation units, +load timing, local guards, and lifecycle bugs.
Read more »

CRTP, a Slightly Unorthodox Form of Inheritance

Posted on 2022-06-24 | In C/C++
Words count in article: 1.8k | Reading time ≈ 7 mins.
CRTP, a Slightly Unorthodox Form of Inheritance
A practical guide to CRTP in C++, from static polymorphism and template instantiation to compile-time dispatch, performance, and inheritance patterns.
Read more »
12…4>
lingyun

lingyun

39 posts
13 categories
29 tags
Lensori Lensori Search your photos by meaning.
© 2026 lingyun | Site words total count: 117k
本站总访问量 -- 次 | 本站访客数 -- 人
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4.1