miniblog.
← Back to all posts
Feb 11, 2017 at 00:09
Found a reliable way of segfaulting Emacs, without using threads/FFI!
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25684
(last time my Emacs segfaulted was bad memory)
#25684 - 25.1; (downcase -1) segfaults Emacs on GNU/Linux - GNU bug report logs
debbugs.gnu.org/cgi/bugreport.cgi?bug=25684
Wilfred Hughes
Related Posts
Mar 10, 2020 at 05:01
Using Idris' C FFI to do compile time type generation!
https://docs.idris-lang.org/en/latest/guides/type-providers-ffi.html
(Lovely clear example.)
Type Providers in Idris — Idris 1.3.3 documentation
docs.idris-lang.org/en/latest/guides/type-providers-ffi.html
Wilfred Hughes
Shared words: FFI, using, time Score: 113.6
Jan 31, 2024 at 06:42
@skybert
@emacs.ch Difftastic has very little unsafe, just the FFI to tree-sitter libraries. That said, I've actually seen safe Rust segfault in the past!
Segfault in safe Rust when compiling with optimisations · Issue #30081 · rust-lang/rust
#![feature(box_syntax, box_patterns)] use std::num::Wrapping; #[derive(Debug, Clone)] pub enum Instruction { Increment { amount: Wrapping<i8>, }, Loop(Vec<Box<Instruction>>), } /// Defines a method...
Wilfred Hughes
Shared words: Emacs, FFI Score: 86.4
Nov 18, 2016 at 08:44
I've seen my first non-toy example of Emacs' FFI!
https://emacs.stackexchange.com/q/28699/304
(works well, but distribution would be difficult)
shell - How can I detect if an elisp script is piped? - Emacs Stack Exchange
Wilfred Hughes
Shared words: Emacs, FFI Score: 86.4