Vigyata.AI
Is this your channel?

Foreign Function Interfaces (FFI) - Nim Tutorial (Part 55)

512 views· 18 likes· 13:26· Sep 29, 2025

🛍️ Products Mentioned (16)

Learn how to use C, C++, Objective C and JavaScript libraries inside of your Nim code using FFI! Learn more about FFIs: https://livebook.manning.com/book/nim-in-action/chapter-8/96 Support me by becoming a member: https://www.youtube.com/channel/UCrIsEy0a57Fz3MdEOvhWbkw/join Check out the Nim Tutorials Playlist: https://youtube.com/playlist?list=PLYBJzqz8zpWaiGbFcSdlh08zlpe8Tl_Gh Get 15% off on your first order from Silkworm Shop https://silkwormshop.co.za/ by using my code: REFCKBQAESCC9 Subscribe for more videos! YouTube: https://www.youtube.com/stevesteacher?sub_confirmation=1 Odysee: https://odysee.com/$/invite/@stevesteacher:0 For more programming videos, feel free to subscribe to my 2nd channel: https://www.youtube.com/@programmervibe Crash Courses: https://www.youtube.com/playlist?list=PLYBJzqz8zpWbmPw2E0ywUEuhw6FEwVR0U C++ Programming Tutorials: https://youtu.be/2bSuuzMwda8 Lua Programming Tutorials: https://youtu.be/1srFmjt1Ib0 Love2D Game Dev Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWYip5ZkTMQiOkqya9Iiefm9 Nim Programming Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWaiGbFcSdlh08zlpe8Tl_Gh&si=_ChTUx7KXew-RnI1 Become a Web Developer: https://youtube.com/playlist?list=PLYBJzqz8zpWbsmFurxBg2Pm-mlBmJdXbh Python Programming Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWYHDS2qS-UstfWdQRLrbQ9L&si=s9MObuX3zUHF_PAw PHP Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWabvZludVukPwZfQe9IdX_f&si=6OWdV8ZOYMkcuLl8 HTML Tutorials: https://youtu.be/lobFuLWhp0M JavaScript Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWbEec9oCuwTfNyebLQjuM5c&si=QAsYwRdJJBtqzrKV Bootstrap Tutorials: https://youtu.be/TzrxCl9vMGY?si=TqDig3-yZf6TQghW CSS Tutorials: https://youtu.be/nNXhyBtdjNQ?si=5Ssqo4U5HaMEJtVS Delphi Programming Tutorials: https://youtu.be/BqmJpFbRY2U Pascal Programming Tutorials: https://youtu.be/6jRVhT_JotY?si=NS9hDedlVQnQX3MV Linux Tutorials/Videos: https://youtube.com/playlist?list=PLYBJzqz8zpWYnUtUeVahkfIeYNKkLRMfZ How-to videos: https://www.youtube.com/playlist?list=PLYBJzqz8zpWbp2DxyVGUCqxSZaCwDvU3C Godot Game Dev Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWZT3jepx1vY1nwhaC-T8wB2 TKinter Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWZwVkeu2E5Hjw5ImK7SzMe3 Web Scraping/Beautiful Soup Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWYfL1pYs4FG8Ed0Cf3sookG MySQL Tutorials: https://youtube.com/playlist?list=PLYBJzqz8zpWaBcVuneV9g4zbKsmMCo-rR Japanese Lessons: https://www.youtube.com/playlist?list=PLYBJzqz8zpWYy-iJ0xckeOjCCE2roN9Ww Group Chats: Weeb Chat: https://t.me/weeb_haven Programmer Haven: https://t.me/programmer_haven You can contact me on: Email: StevesTeacherYT@gmail.com Discord: https://discord.gg/NGtD9s6 Hey there!!! Wanna help support the channel :D? Ko-Fi: https://ko-fi.com/stevesteacher Liberapay: https://liberapay.com/stevesteacher/ PayPal: https://www.paypal.com/donate/?hosted_button_id=P9V2M4Q6WYHR8 YouTube Member: https://www.youtube.com/channel/UCrIsEy0a57Fz3MdEOvhWbkw/join Any suggestions? Leave it in the comment section or contact me somewhere else! Odysee Links: Python Programming Tutorials: https://odysee.com/@stevesteacher:0/Python-Tutorials:5?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt C++ Programming Tutorials: https://odysee.com/@stevesteacher:0/Cpp-Tutorials:d?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt HTML Tutorials: https://odysee.com/@stevesteacher:0/HTML-Tutorials:9?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Tkinter Tutorials: https://odysee.com/@stevesteacher:0/Tkinter-Tutorials:d?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Linux Tutorials: https://odysee.com/@stevesteacher:0/Linux-Terminal-Tutorials:7?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Lua Tutorials: https://odysee.com/@stevesteacher:0/Lua-Tutorials:0?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Love2D Game Dev Tutorials: https://odysee.com/@stevesteacher:0/Love2D:f Delphi Tutorials: https://odysee.com/@stevesteacher:0/Delphi-Tutorials:4?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt MySQL Tutorials: https://odysee.com/@stevesteacher:0/MySQL-Tutorials:c?r=7wEp27kZSg8dDKtQWMJam6CbMAizo9Vt Thank you for watching! #stevesteacher

About This Video

In this Nim tutorial (Part 55), I focus on Foreign Function Interfaces (FFI) and how you can pull in libraries from other languages without giving up the nice, clean Nim workflow. The big idea is simple: you write Nim, but you don’t have to reinvent the wheel—if there’s a solid C, C++, Objective-C, or even JavaScript library already out there, you can hook it into your Nim project and get real work done faster. I walk you through what FFI is for, when it’s worth using, and what you need to pay attention to when you cross that language boundary. The main takeaways are about practicality: using existing native libraries, understanding that you’re dealing with different calling conventions and types, and keeping your bindings tidy so your Nim code stays readable. If you’re building anything that needs performance, OS-level access, or you just want to reuse proven code, learning Nim’s FFI is one of those skills that pays off over and over.

Frequently Asked Questions

🎬 More from Steve's teacher