While there is one XS package that wraps over #edlib, I will be using #FFI in #perl
Sequence alignment tasks benefit greatly from multithreaded implementations of the dynamic programming to align a single sequence against another , though one often uses threads to parallelize alignment tasks as database searches that use alignments for approximate text matching are embarrassingly parallel tasks.
Thus, #ForkManager seems a reasonable choice to parallelize #edlib
#edlib #ffi #perl #forkmanager
📽️ I have made a new video!
Debugging FFI and PHP with GDB
@jrhawley #pandas is a memory hog too (of course Python in general also tends to use up lots of memory).
#DuckDB is probably the best solution out there for data management and queries: sqlite3 interface, server less, static type lang #c api that should allow for embedding either via #swig or #FFI.
#IPC are the big pic considerations when one is using those in multilang implementations.
#pandas #duckdb #c #swig #ffi #ipc
And now, we have cancellable `Future`, https://github.com/mozilla/uniffi-rs/pull/1684. How fun :-).
After an extremely short time looking at docs, I managed to get a short program to compile and run, calling a simple C function from rust. Having tried similar things in the past, from different languages, I was surprised by easy it was.
#coding #programming #rust #rustlang #c #ffi
@lukaseder @alexelcu @JCMann It gets awkward when you want to support stuff like the individual databases' specific SQL-extending support for large (binary) objects (e.g.: https://jdbc.postgresql.org/documentation/binary-data/) but it's feasible (that documentation is outdated, the ownership issue has been fixed by now: https://www.postgresql.org/docs/current/lo-implementation.html).
It does help when your driver/library already supports the interface and you don't also have to write #FFI yourself.
@fstateaudio @SDF @prahou
This #gopher directory mounting scope #embeddablecommonlisp #ecl #sdl2 #ffi #lisp simple program builds seems cool to me.
https://gopher.floodgap.com/gopher/gw.lite?=tilde.institute+70+312f7e7363726577746170652f65636c2d6275696c642d74657374732f
gopher://tilde.institute/1/~screwtape/ecl-build-tests
Complete set of ecl c interoperability *without* ASDF (though ASDF is necessary for large scale builds)
#gopher #embeddablecommonlisp #ecl #sdl2 #ffi #lisp
@borkdude This opens up completely new possibilities, e.g. to use raylib under clojurescript easily. #bun #clojurescript #nbb #sci #babashka #ffi #javascript
#bun #clojurescript #nbb #sci #babashka #ffi #javascript
@EndlessMason #FFI works with either static or dynamic linking. #Perl 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, #GoLang (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 #Go.
@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.
FFキャラクターデザインを手掛ける天野喜孝氏,カネボウの「ミラノコレクション」とコラボ。マリア様のイメージで「ミラコレ天使」をデザイン
https://www.4gamer.net/games/104/G010460/20230518079/
#FINAL_FANTASY #Final_Fantasy_1 #ファイナルファンタジー #FF1 #FFI #FF_I #ファンタジー
#final_fantasy #final_fantasy_1 #ファイナルファンタジー #ff1 #ffi #ff_i #ファンタジー
tenpo ni la, mi pini e musi Final Fantasy lon ilo NES. pona a.
#ff #finalfantasy #ff1 #ffi #nes #retograming
Do someone with Guile FFI experience want to help me to get started with guile-tree-sitter? (:
Just share some best FFI practices and highlight overall direction/approach will be enough.
A rare addition to #TheVideoGameLibrary this morning! 📚
A #FinalFantasy 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
#FF1 #FF #FinalFantasyI #FFI #FinalFantasy1 #Book #Books @bookstodon #Bookstodon #ChooseYourOwnAdventure #Nintendo #Famicom #RPG #JRPG #Square #Squaresoft #SquareEnix #Adventure #Fun #VideoGame #VideoGames #Gaming #Gamer #Novel
#novel #gamer #Gaming #videogames #videogame #Fun #adventure #squareenix #squaresoft #square #jrpg #RPG #famicom #Nintendo #chooseyourownadventure #bookstodon #Books #book #finalfantasy1 #ffi #finalfantasyI #FF #FF1 #finalfantasy #thevideogamelibrary
@dekkzz76 That's true, I'm concerned with how bad the interoperation story is for #Rust right now.
I'm aware of an issue logged for it that explicitly aims to address that issue with some stable export #ABI for #FFI though (and which had some work on it last I checked), so it might work out.
Does #FFI actually work in #cuis #smalltalk with a 64bit Windows? I am trying to get the Cuis SQLite adapter to work. But I keep getting the following error: "No module to load address from". First thought the problem is that the sqlite3.dll is not in the right directory? But now I think the problem is somewhere in the FFI code itself?
I've managed to work around the problem in which the memory allocated in a DLL is occasionally invalid by the time the #ffi call attempts to read it on the #ruby side... by sending it a 10MB output buffer. I've "fixed" the problem but
@tenderlove #atwhatcost
If you interested in trying to speed up your Python code using Rust, check out Lily Mara’s talk: Blazing Fast, Minimal Change - Speed up Your Code by Refactoring to Rust.
Blazingly Fast #Markdown Parsing in #PHP using #FFI and #Rust
https://ryangjchandler.co.uk/posts/blazingly-fast-markdown-parsing-in-php-using-ffi-and-rust