#ffi — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #ffi, aggregated by home.social.
-
Continuing the exploration @tealeg sparked yesterday: lazy-ffi in Chicken Scheme is nice.
$ csi
CHICKEN
(c) 2008-2021, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 5.3.0 (rev e31bbee5)
linux-unix-gnu-x86-64 [ 64bit dload ptables ]Type ,? for help.
#;1> (import lazy-ffi)
; loading /var/lib//chicken/11/lazy-ffi.import.so ...
; loading /var/lib//chicken/11/lazy-ffi.so ...
; loading /var/lib//chicken/11/srfi-1.so ...
; loading /var/lib//chicken/11/srfi-69.so ...
; loading /var/lib//chicken/11/bind.so ...
#;2> (begin #~"libc.so.6")
(libc.so.6)
#;3> (#~printf "Hello, world. Mom is #%d! We %s her!\n" 1 "love")
Hello, world. Mom is #1! We love her! -
Как использовать Rust внутри приложений на .NET MAUI
Когда производительность начинает иметь значение По производительности Rust находится в той же лиге, что и C++, но с заметно более дружелюбной моделью безопасности. Возможно, вы уже слышали о командах, которые постепенно переходят на Rust , заменяя существующий код. А если вам уже приходилось бороться с лагами от GC или пытаться сделать плавную анимацию, отсутствие сборщика мусора начинает выглядеть особенно заманчиво. Но можно ли сделать так, чтобы использовать Rust внутри приложения на .NET MAUI было действительно удобно?
-
Прямая трансляция во Flutter через WebCodecs: как пришлось написать свой декодер
Когда live-видео приходит как сырой H.264 поток через WebSocket, стандартные Flutter-плееры перестают работать. В этой статье я разбираю, почему готовые решения не подошли и как я пришёл к необходимости реализации собственного декодера на C++ с использованием FFmpeg.
-
I wish I could explain to you all how proud (and simultaneously insecure) I am of what I have been working on, and how utterly insane and complex my project has been becoming. 🫠 Suffice to say I have built an automatic device coordination and communication system (including spinning up new data streams :uplink: )...all of that was just to build this simple game for my experiment, but to make it flexible to run with teams of 2, 3, 5, N, players and be able to handle data collection, EEG, and other stuff. :corteximplant_b: :mk2:
It, hopefully, will be a super useful tool for anyone wanting to do research into groups, social dynamics and related investigation...or you could just use it to build a game haha. :commodore:
https://github.com/NexusDynamic/
#lsl #labstreaminglayer #coordination #cnc #cc #dart #cpp #c #ffi #flutter #flame #forge2d #oss #foss #research #cognition #cognitivescience #cogsci #eeg #neuroscience #psychology #socialdynamics #groupdynamics #socialgroupdynamics #research #researchparadigm #paradigm #software #programming #programmer #dev #gamedev #softwaredevelopment #coding
-
This is really cool and kinda insane—running modern #Perl on the #Java Virtual Machine (#JVM).
Why? Maybe you want the flexibility of Perl scripts in your JVM-based environment (including #Kotlin and #Scala) without shelling out. More reasons here: https://github.com/fglock/PerlOnJava/blob/master/docs/WHY_PERLONJAVA.md
Anything with #XS or #FFI C code has to be ported to Java, mind you. But @fglock has been doing just that, e.g., #DBI support via #JDBC and #JSON via fastjson2.