Interop with C in a DLL

This page summarizes the projects mentioned and recommended in the original post on /r/nim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • libretro-samples

    A set of samples to illustrate libretro API.

    For those that are not familiar, the format of a retro-core is a DLL with a ton of specially-named exports. I started with this example and it builds fine and runs on mac x86_64 retroarch. My thinking is that I can make the main libretro wrapper DLL in C (since it has headers, and I don't have to translate anything to C) and call a few linked nim functions from there.

  • Nim

    Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

    My guess: Nim doesn't like to deal with procedures which have very similar name, read: bug, https://github.com/nim-lang/Nim/issues/21272 You could try to change the names of procedures to more distinct.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts