miniblog.
← Back to all posts
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
Related Posts
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, seen Score: 140.6
Apr 28, 2023 at 01:00
I still find it odd that non-OO languages use the term "object" in their docs. I've seen it in both C and Emacs Lisp. Example:
The constexpr specifier for object definitions
www.open-std.org/jtc1/sc22/wg14/www/docs/n3018.htm
Wilfred Hughes
Shared words: Emacs, seen, non, example Score: 94.7
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
Shared words: Emacs, FFI Score: 86.4