Ruby FFI GC 버그: 해시가 문자열로 변하는 '불가능한' 오류 추적기

FFI 1.17.0 미만 버전에서 쓰기 장벽(write barrier) 누락으로 인해 Ruby GC가 내부 해시를 해제하고 해당 메모리 주소에 다른 객체가 할당될 수 있었습니다.

🔗 원문 보기

Ruby FFI GC 버그: 해시가 문자열로 변하는 '불가능한' 오류 추적기

FFI 1.17.0 미만 버전에서 쓰기 장벽(write barrier) 누락으로 인해 Ruby GC가 내부 해시를 해제하고 해당 메모리 주소에 다른 객체가 할당될 수 있었습니다.

Ruby-News
Diplomat: Multi-language FFI for Rust Libraries - In Pursuit of Laziness

This is a post I’ve been meaning to write and publish for years, and only recently got around to doing it. I’m hoping to get back into writing more! …

#rubixml Wer nur #ml will, nimmt #python. Wer #php lebt, für den ist es ein Meilenstein.

Das Spannende: #ffi (7.4) und #jit (8.0) holen kompilierte Numerik in die Sprache. Erklärtes Ziel, PHP raus aus der reinen Web-Rolle. Rubix ML ist dabei nicht der Treiber, sondern das Schaufenster, das aufzeigt zu was PHP fähig ist.

Python bleibt vorn. Aber PHP verschiebt seine Identität in eine spannende Richtung und Rubix ML ist vielleicht nur der Anfang.

https://rubixml.com/

#deeplearning

Rubix - Machine Learning for PHP

A suite of tools for end-to-end machine learning and deep learning using the PHP language. Start building programs that learn from your data with over 40 algorithms to choose from.

cheadergen, a new tool for generating C headers from Rust crates, is now ready to try!

I've been working on it for a while, and it has seen enough real-world use that I'm comfortable recommending it to others.

The project grew out of experience working on a mixed C/Rust codebase and the challenges of incremental migration.

Documentation, examples, and source: https://cheadergen.com

#rustlang #ffi

Introduction - cheadergen

Generate C/C++ headers from Rust libraries that expose a `pub extern "C"` API.

June 9, 1911: Former Free French Forces intelligence officer Andre Dewavrin was born on this date. During WW2, Dewavrin, using the codename 'Colonel Passy', was an active member of the French Resistance & worked with Britain's Special Operations Executive.

#WW2 #SOE #FSection #FFI

https://en.wikipedia.org/wiki/Andr%C3%A9_Dewavrin

André Dewavrin - Wikipedia

Rust внутри .NET: как упаковать native-библиотеку в один NuGet-пакет

FFI, P/Invoke, EmbeddedResource, DllImportResolver и кроссплатформенная доставка без ручного копирования .dll , .so и .dylib . Когда .NET-коду нужно вызвать Rust-библиотеку, первый прототип обычно заводится быстро: Rust собирается как cdylib ; функции экспортируются через extern "C" ; C# вызывает их через DllImport ; результат возвращается через указатель.

https://habr.com/ru/articles/1043276/

#dotnet #rust #ffi #invoke #nuget #nativelibrary #dllimportresolver

Rust внутри .NET: как упаковать native-библиотеку в один NuGet-пакет

FFI, P/Invoke, EmbeddedResource, DllImportResolver и кроссплатформенная доставка без ручного копирования  .dll ,  .so  и  .dylib . В примерах ниже используется условная функция...

Хабр

Getting FFI to compile is the easy part. The harder questions are about distribution: prebuilt binaries across platforms, libraries that must be built from source, and making all of it reliable in CI.

Marcel Koch (@m) compares a custom binary download approach against Conan, using Flutter Rust Bridge as the integration point.

🔗 https://oxidizeconf.com/sessions/beyond_ffi_shipping_native-libraries_in_rust

#Oxidize2026 #RustLang #FFI #BuildSystems #CrossPlatform

You don't have to rewrite your C firmware in Rust all at once. Christian Meusel's workshop at Oxidize 2026 is about doing it incrementally - starting from build integration and FFI calls, through to third-party crates for QR generation.

🔗 https://oxidizeconf.com/sessions/integrate_rust_into_existing_embedded_c_applications

#Oxidize2026 #RustLang #EmbeddedRust #FFI #BareMetalRust #Firmware

Tankene som må tenkes - før det blir krise eller krig

Norge er et langstrakt land og logistikk på land er sårbart. Elektrifisering kan løse endel sivile behov, og en kan vel anta at det kan transporteres mat og drivstoff via Sverige eller sjøveien.

https://www.nrk.no/trondelag/xl/tankene-som-ma-tenkes---for-det-blir-krise-eller-krig-1.17887848

#beredskap #totalberedskap #FFI

Tankene som må tenkes - før det blir krise eller krig

NRK

Я дал LLM писать unsafe Rust полгода. Miri плакал

Полгода я давал LLM писать unsafe Rust в боевых проектах и разбирал каждый блок под miri и санитайзерами. Категории ошибок, которые модели делают стабильно: aliasing, провенанс, layout в alloc/dealloc, забытый ManuallyDrop, гонки в FFI-колбэках, ручные Send/Sync, uninit-память, Pin. Каждая категория идёт с минимальным примером и фиксом.

https://habr.com/ru/articles/1035914/

#Rust #unsafe #miri #FFI #UB #aliasing #MaybeUninit #Pin #LLM #AI

Я дал LLM писать unsafe Rust полгода. Miri плакал

Этот код прошёл мои code review, ревью второго коллеги, тесты, CI с clippy и десять дней работал в проде: let mut out = Vec::with_capacity(estimated_size); let written = unsafe {...

Хабр