-
Notifications
You must be signed in to change notification settings - Fork 134
Switch to Dart v2.6 #54
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
Comments
Memory management has been removed 😍 |
There's no definite timeline yet on the 2.6 release, I suppose? How about
This way, we have another 2.5 release. |
Assuming it's D26 milestone, it's 9 days past due. They don't do RC or anything like that, just go from 2.5.0-dev.4.0 to 2.5.0. But from what I see, I'd say we're pretty close to a final release right now. Considering the last 3 releases (2.3.0, 2.4.0, 2.5.0) all happened on Friday, that may be tomorrow or the next week at most I'd say. So if we want to do a release before, we should probably do it ASAP. I'd say today. |
Some volunteers who'd like to pitch in with the 2.6 support? @liquidiert or @Buggaboo maybe? 😄 |
Sure, I'd like to get property query out of the way first. |
Would be happy to help 😁 |
I changed my mind, I'm stuck. @vaind Can you open a new We should start with the imports. I expect I'm reluctant to use brew's dart-2.6-devX builds; I prefer to wait for the non-dev, stable(?) 2.6 version. I can't be arsed to compile my own either. |
I just download and extract the SDK & set its path in the IDE. Maybe that works for you as well: https://dart.dev/tools/sdk/archive#dev-channel |
Done. Except the Utf8 thing. I'm taking a break. |
@Buggaboo what's it with utf8? For me all tests work with your latest changes 👍 |
It works, I give no guarantees that it does not leak. I don't understand/see how the |
I thought about this, for a bit. The cast only changes the underlying type (generic arg) of the |
I used brew's final 2.6. Still works. Some refactoring might be necessary, and dartfm after merging. |
FYI, running valgrind wasn't very helpful, at least not the way I tried... dart2native test/box_test.dart -o box-test
valgrind ./box-test
and each report looks somewhat like:
|
Cool! I didn't know that we could target dart2native with this codebase! I have to read up on the dart2native memory management; it might be allocating a memory pool and releasing on exit. Or there is no leak... with the free after the cast. Counter-test by removing the free, then check again with valgrind? |
Dart v2.6 is going to break compatibility in FFI (it was in "preview" after all, so no surprise there). From what I've seen with the current dev version (.8), it was rather significant so I have a feeling we'll have to drop Dart v2.5 compatibility to be able to switch to v2.6
See the changes that have already landed in the dev release and the FFI project board for what's coming.
The text was updated successfully, but these errors were encountered: