hywan, to rust
@hywan@fosstodon.org avatar

LLVM CFI and Cross-Language LLVM CFI Support for Rust, https://bughunters.google.com/blog/4805571163848704/llvm-cfi-and-cross-language-llvm-cfi-support-for-rust.

> add LLVM CFI and cross-language LLVM CFI (and LLVM KCFI and cross-language LLVM KCFI) to the Rust compiler as part of our work in the Rust Exploit Mitigations Project Group. This is the first cross-language, fine-grained, forward-edge control flow protection implementation for mixed-language binaries that we know of.

Really interesting project.

ChristosArgyrop, to programming
@ChristosArgyrop@mstdn.science avatar

Reminder that the languages useful for may not be the same as those used for that the applications use, and this is just fine, e.g. performance often requires that one does not rediscover the wheel by recoding libraries in and because they are, for whatever reason , resistant to use a proper (or an ) .

rml, to FinalFantasy
@rml@functional.cafe avatar

I would kill for one of those "recipes" cookbooks dedicated to providing solutions to the general hangups of

derickr, to php
@derickr@phpc.social avatar

📽️ I have made a new video!

Debugging FFI and PHP with GDB

https://youtu.be/u420A89tIMY

EndlessMason, to random
@EndlessMason@hachyderm.io avatar

how in the world am I supposed to be "detail oriented" when every job ad is just 9 pages of waffle about how the company is driving the world to be green by ... running an interpreted language in a container in a k8s on a vm on amazon in 4 sites for redundancy

mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@EndlessMason Almost every “safe” language has some kind of foreign function interface where guarantees break down. #Java has JNI, Microsoft .NET has P/Invoke, and #Rust just calls theirs #FFI.

Perl’s XS is a glue language mostly made up of #C macros that lets you wire up Perl’s guts to C code. There are also alternatives like #SWIG and FFI::Platypus, the latter of which uses a separate portable library (written in C, natch) that can talk to lots of calling conventions, not just C.

mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@EndlessMason works with either static or dynamic linking. and many other language toolchains default to the latter, but you can still built a big statically linked binary if you’re so inclined.

In contrast, (for example) defaults to static linking that includes the runtime along with your code in one executable. It does have a cgo feature that lets you call #C code by building and compiling C glue code with your C compiler and then linking it with your .

abcdw, to random
@abcdw@fosstodon.org avatar

Arghhh, guile-commonmark doesn't support raw html
https://github.com/OrangeShark/guile-commonmark/issues/8

abcdw,
@abcdw@fosstodon.org avatar

Do someone with Guile FFI experience want to help me to get started with guile-tree-sitter? (:

Just share some FFI best practices and/or highlight overall direction/approach will be enough.

thevglibrary, to books
@thevglibrary@mstdn.social avatar

A rare addition to this morning! 📚

A Choose Your Own Adventure book from 1987. 🤯

❓ Curious if any fans have heard of this one ❓

"Can you obtain the Water Crystal and become the true Hero of Light?"

💎 https://www.thevideogamelibrary.org/book/final-fantasy-crystal-inheritance-legend

@bookstodon

hywan, to rust
@hywan@fosstodon.org avatar

After 132 commits and 6 reviewers, https://github.com/mozilla/uniffi-rs/pull/1409 is finally merged \o/.

UniFFI can generate bindings for Rust async functions/methods to Python, Swift and Kotlin, with native async runtimes (resp. asyncio, Task and suspend).

That’s really exciting! Rust Future being driven by a foreign language async runtime, that’s pure fun.

#RustLang #FFI #SwiftLang #Kotlin #PythonLang #asynchronous #future

hywan,
@hywan@fosstodon.org avatar

And now, we have cancellable Future, https://github.com/mozilla/uniffi-rs/pull/1684. How fun :-).

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • rosin
  • ngwrru68w68
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • khanakhh
  • slotface
  • everett
  • vwfavf
  • kavyap
  • megavids
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • tacticalgear
  • InstantRegret
  • cisconetworking
  • cubers
  • tester
  • anitta
  • modclub
  • Leos
  • normalnudes
  • JUstTest
  • All magazines