For performance, the first step of course is measurement. To this end, Yegor has started doing continuous automated testing on actual devices, so that we have a clear baseline against which to measure our progress. Of course to make that useful we have to have performance tests, so Viktor wrote a test with some complicated layouts. This immediately uncovered that my MixedViewport class was terrible, so Adam rewrote that as LazyBlock. And on it goes.
LazyBlock is pretty neat. Instead of just giving it a list of children, you give it a delegate that produces children on demand, and LazyBlock only asks it for the children that it needs. As you scroll, it throws away the earlier children, and asks for the next ones. If you go back up, it does the same thing backwards. Eventually we'll even make it guess the right child number if you jump scroll, so that you can jump around a huge list of children without ever having to pay the cost of drawing any children other than the ones on the screen.
One widget we don't yet have is a LazyTable. That's something I plan to add soon. I did implement DataTable recently, you can see the demo in our gallery app which exactly matches the sample in the Material Design specification. The next step though is a paginated version and a scrolling version, reusing the same delegate approach that Adam used for LazyBlock. (Tables are tricky because you have to figure out what size to make the columns; for DataTable, it actually measures every cell before laying out any rows, which is quite expensive. For LazyTable, we'll have to use either fixed width columns or flex-style sizing.)
Lots of other work on performance has been going on too. Eric and Devon hooked things up so that from the Atom editor you can now with one checkbox turn on and off our PerformanceOverlay widget and our "repaint rainbow" feature, live while your app is running. Hans has been working on improving the performance of our gallery app. Seth has been running lots of our demo apps tracking down any where we miss frames and filing bugs on them. We even had the help of a nine year old yesterday, who found a bunch of bugs for us!
You can see a screenshot of the checkbox on the PR: https://github.com/dart-atom/dartlang/pull/960
The other big push recently has been on testing. As we like to say, "write test find bug". The problem is that writing tests for Flutter has been a bit difficult so far, because you can't see what you're testing.
Yegor has been working on a way to test on-device, using "flutter drive", and as part of that he redesigned our API for testing in a way that makes a lot more sense. (Flutter drive is what he used to do the continuous performance testing I mentioned earlier.) I've now picked that up and I'm taking it to its logical conclusion: make it so that even for our unit tests, you can actually see what's going on if you run them on a device. The hope is that this will really simplify writing tests for Flutter, which will mean we write more tests (and hopefully will mean people writing apps for Flutter can write more tests, since we use the same testing strategy for people writing Flutter apps as we do on Flutter itself), which will mean finding more bugs!
- ABB Corporate ResearchSr Software Researcher, 2007 - present
- WiproConsultant, 1988 - 1989
- S3 TechnologiesSoftware Engineer, 1990 - 1992
- RWD TechnologiesSoftware Engineer, 1993 - 1995
- IBMSr Software Engineer, 1995 - 2000
- AvantsoftSr Instructor, 2000 - 2001
- Essential Computing NetCEO, 2001 - 2008
- IBMSr Consultant, 2004 - 2007
- ABB LtdSr Software Engineer, 2002 - 2004
- University of Maryland Baltimore CountyAdjunct Faculty, 1989 - 1995
- North Carolina State UniversityInstructor, 1997 - 1998
- University of Maryland Baltimore CountyComputer Science, 1989 - 1990
- University of MumbaiComputer Engineering, 1984 - 1988
- St Xavier's College1982 - 1984
- St Joseph's High School1972 - 1982
Five Key Mindsets that Separate Successful Programmers from Everyone Else
Dave Cutler, at age 74, still goes to his office at Microsoft every day to write code. I first heard of Cutler when he was honored as a Comp
Scientists Unveil New ‘Tree of Life’ - The New York Times
Most of the diversity outlined on the new tree has been hiding in plain sight.
all: kubernetes slower execution since Go 1.4.3 · Issue #14396 · golang/...
The Kubernetes team found that updating from Go 1.4.2 to Go 1.4.3 caused a performance regression for them, and also that Go 1.5.3 was bad a
Magnifying the World of Beauty That Lives Under a Microscope - The New Y...
Black and white photos made under a microscope by Carl Strüwe reveal the wonder of organic life under optical lenses.