GithubHelp home page GithubHelp logo

ffi sample about clojuredart HOT 4 CLOSED

anatoly62 avatar anatoly62 commented on June 5, 2024
ffi sample

from clojuredart.

Comments (4)

TiLogic avatar TiLogic commented on June 5, 2024

I don't know of a ClojureDart example, but a Dart example of functions with arguments can be found here.

The ClojureDart authors may be able to help here...

You might be interested in the ffigen package. Which parses C header files and generates a Dart API, which you can then call from ClojureDart. It's much easier than writing it manually.

from clojuredart.

anatoly62 avatar anatoly62 commented on June 5, 2024

Thanks, I see that, but an ClojureDart example is needed.

from clojuredart.

dupuchba avatar dupuchba commented on June 5, 2024

hello @anatoly62 & @TiLogic - there is an example of simple ffi in the repo, using ffigen in cljd is no different from Dart itself. Thanks for the suggestion to make a new sample for ffigen, I'll try to do it this week.
We're also preparing the next newsletter release and it'll be on ffi & ffigen. Should be out next week. Thanks for your support

from clojuredart.

dupuchba avatar dupuchba commented on June 5, 2024

back to your problem @anatoly62 - here is a full example with ffigen.
https://github.com/Tensegritics/ClojureDart/tree/main/samples/fficjson
Don't hesitate to ask questions on the channel if you need to

from clojuredart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.