Kinda meta: I was skimming over the sources and I'...
# compose-desktop
m
Kinda meta: I was skimming over the sources and I'm impressed how little code the desktop part takes - it's like maybe a 50 of usually a very small files! I was looking only below the `desktopMain`folders, maybe I miss something? Looks nice tho 👍
💯 3
c
I have the same thoughts every time I dig into the source for anything in Compose. From the runtime/foundation portions, all the way to Material widgets, I'm consistently amazed by how much is accomplished with such little code. Truly a testament to how thoughtful and well-designed Compose is from its very core
👍 1
k
There's a whole lot of code in Skiko that should count for the "desktop part"
s
I have to agree with Casey here. Working since 4 month on an app I found several times I assumed that something would need way more code and time, but in the end most of the times there is only very little code necessary to build pretty big things 😃
Compared to JavaFX and the legacy Android way of building UIs at least.
💯 3
Code could be reduced further with choosing better defaults like SwiftUI did. For example I feel a
Box
should always center it's children per default.
m
So isn't the skiko only a binding wrapper over the skia? I saw both `org.jetbrains.skiko`and `org.jetbrains.skia`imports so maybe that's more complicated though.
o
Skiko is not just Skia wrapper, it has a lot of rendering logic on its own, i.e. whole vsync rendering and rendering backend selection is implemented there.