https://kotlinlang.org logo
Title
m

mcpiroman

09/30/2021, 8:30 PM
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

Casey Brooks

09/30/2021, 8:43 PM
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

Kirill Grouchnikov

09/30/2021, 8:52 PM
There's a whole lot of code in Skiko that should count for the "desktop part"
s

Stefan Oltmann

10/01/2021, 7:45 AM
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

mcpiroman

10/01/2021, 9:13 AM
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

olonho

10/01/2021, 11:47 AM
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.