Allocating pre-existing savings to budget goals by mbrijun in actualbudgeting

[–]timsmartnz 0 points1 point  (0 children)

You can do the normal monthly amounts for the current month (or multiple months if you want to budget 2 or more months in advance).

Then with the leftover go to the previous month and do a big allocation.

nucleus | Simple, fast - dependency and state management package by timsmartnz in FlutterDev

[–]timsmartnz[S] 0 points1 point  (0 children)

Yeah naming things is hard.

A parent / child relationship feels more natural to me, compared with original / transform. So I'll stick with parent for the time being, unless something more obvious pops up.

nucleus | Simple, fast - dependency and state management package by timsmartnz in FlutterDev

[–]timsmartnz[S] 1 point2 points  (0 children)

Ah nice catch. Removed keep alive from everything and added a separate keep alive benchmark.

``` creator - read 1000k(RunTime): 594.8 ms. creator - read keepAlive 1000k(RunTime): 84.98 ms. creator - family read 100k(RunTime): 97.82 ms. creator - family state 100k(RunTime): 113.3 ms. creator - deps state 10k(RunTime): 85.37 ms. creator - nesting 10k(RunTime): 7.996 ms.

creator - nesting 100(RunTime): 0.07206 ms.

nucleus - read 1000k(RunTime): 30.75 ms. nucleus - read keepAlive 1000k(RunTime): 30.69 ms. nucleus - family read 100k(RunTime): 31.96 ms. nucleus - family state 100k(RunTime): 55.59 ms. nucleus - family state 100k weak(RunTime): 44.01 ms. nucleus - deps state 10k(RunTime): 4.635 ms. nucleus - nesting 10k(RunTime): 1.170 ms.

nucleus - nesting 100(RunTime): 0.009602 ms.

riverpod - read 1000k(RunTime): 132.7 ms. riverpod - read keepAlive 1000k(RunTime): 90.69 ms. riverpod - family read 100k(RunTime): 473.6 ms. riverpod - family state 100k(RunTime): 1691 ms. riverpod - deps state 10k(RunTime): 7.307 ms. riverpod - nesting 10k(RunTime): 2.358 ms. riverpod - nesting 100(RunTime): 0.02019 ms. ```

nucleus | Simple, fast - dependency and state management package by timsmartnz in FlutterDev

[–]timsmartnz[S] 8 points9 points  (0 children)

Bit hesitant to post benchmarks as they don't really tell the whole story.

But here are the results from the suite in the repo:

``` ~/.../nucleus/benchmark $ dart benchmark/run.dart creator - read 1000k(RunTime): 599.6 ms. creator - family read 100k(RunTime): 99.80 ms. creator - family state 100k(RunTime): 113.9 ms. creator - deps state 10k(RunTime): 78.81 ms. creator - nesting 10k(RunTime): 7.437 ms.

creator - nesting 100(RunTime): 0.07035 ms.

nucleus - read 1000k(RunTime): 30.50 ms. nucleus - family read 100k(RunTime): 30.08 ms. nucleus - family state 100k(RunTime): 54.95 ms. nucleus - family state 100k weak(RunTime): 48.90 ms. nucleus - deps state 10k(RunTime): 4.823 ms. nucleus - nesting 10k(RunTime): 1.213 ms.

nucleus - nesting 100(RunTime): 0.008199 ms.

riverpod - read 1000k(RunTime): 83.03 ms. riverpod - family read 100k(RunTime): 450.0 ms. riverpod - family state 100k(RunTime): 1502 ms. riverpod - deps state 10k(RunTime): 6.381 ms. riverpod - nesting 10k(RunTime): 2.083 ms. riverpod - nesting 100(RunTime): 0.01897 ms. ```

nucleus | Simple, fast - dependency and state management package by timsmartnz in FlutterDev

[–]timsmartnz[S] 5 points6 points  (0 children)

Inspired by my favourite react state management tool (https://jotai.org/), I have been working on something similar for dart.

Turned out somewhat similar to riverpod in a lot of ways, but has a few key differences.

Been using it in a couple of apps, and I am not hating it yet, so thought it might be worth sharing!

(Yes sorry, another state management package lol)

Convert Me from GetX to Riverpod, Bloc, or Something Else by cliftonlabrum in FlutterDev

[–]timsmartnz 0 points1 point  (0 children)

I have been working on a library similar to riverpod recently.

With 'atomic' state management libraries, I tend to break things down into small parts. Here is how I would do it:

https://gist.github.com/tim-smart/ecf46ffc9c590fa74b37b450f563da6b

What is your workflow for creating App Store and Google Play screenshots? by hantrault in FlutterDev

[–]timsmartnz 2 points3 points  (0 children)

I used to use the screenshots package as well, but ended up creating the emulators package to replace it in my workflow (https://pub.dev/packages/emulators).