-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dart support. #20
Comments
We will probably be adding new languages based on popularity and our personal experience with them. It will be a while before we get to Dart as its not as popular and we have not used it before. |
But... I understand that the Flutter actually has a C API ?. |
@treeform I understand and appreciate the work you are doing. Flutter does have a C API. I work with Python, Nim, and Flutter / Dart but I don't have much experience with C / C++ or glueing them together with other languages using their FFI APIs. I opened the topic of adding support for Dart because the maintainer does have experience with these languages and interoperability therein, and Dart has a C API. Dart's pub.dev is a fairly large repository of libraries and if more and more of them popped up using Nim, then that would be a great plus to the Nim community. Especially when coupled with the cross platform capabilites of Nim, since Flutter recently added support for desktop, bringing their platform support to include mobile (iOS and Android), desktop (Windows, Linux, Mac), and web targets; enabling a write-once-deploy-everywhere with minimal platform specific bits. It would mesh well with Nim's flexibility and strong typing. Instead of having to write a Dart plugin in Swift for Apple, and C (or Java) for Android, and C for desktop, and JS for web, one could write the plugin once in Nim and have this utility output to ObjC, C, JS, WASM, etc... automatically. |
Then maybe Nim can interop with Flutter using the C API ?, probably the best performance too... |
I think you want a different Then you can use If you had a nim library like
|
Hi treeform, its ffi lib is just so ugly, shudders! Can genny also support the dart programming language? it's just generating a lot of ugly boilerplate code. I think it's a chance to get more people to use Nim, and thereby building more libs and contributing to it, which was one of your purposes with genny. Aside from that, I personally want to leverage Nim libraries that i and others have written, and use dart and flutter mainly for the GUI story (though in terms of features, dart looks to be a decent language. unfortunately for dart, in terms of syntax - verbose like java and I think no templates, but this is just first impressions.) |
@kobi2187, I answered you in this issue: treeform/pixie-python#15 |
Sorry, I accidentally posted there! |
Hi @treeform I am interested in adding support. How do I get started with genny? in particular, I assume there is a tree, from which I generate to the target language? I would like to add dart support. (as much as Dart supports it) |
Awesome project!
Adding generation of Flutter / Dart bindings could be useful for both increasing adoption of Nim and building more performant libraries for the cross platform UI library, Flutter.
The text was updated successfully, but these errors were encountered: