News for hackers. Stuff that matters.
Re:The Kate Editor on the different supported operating systems by rubymamis on Monday April 15, 2024 @01:07AM (#40037234)
Why does the macOS binary needs to be 450MB if it's not an Electron app? My Qt app (also a text editor) is 140MB. And I can trim that quite a bit more.
Re:The Kate Editor on the different supported operating systems by diffeomorphism on Monday April 15, 2024 @02:44AM (#40037647)
Where are you reading 450? I am only seeing 139?

https://cdn.kde.org/ci-builds/utilities/kate/master/macos-ar...

Re:The Kate Editor on the different supported operating systems by rubymamis on Monday April 15, 2024 @02:47AM (#40037659)
That is compressed.
Re:The Kate Editor on the different supported operating systems by cullmann on Monday April 15, 2024 @03:34PM (#40044735)
Simple reason: Because the package is not optimized for that. It can be shrinked more, but that needs help. And I must confess, I rather spend my time on bug fixes than space optimizations.
Re:The Kate Editor on the different supported operating systems by rubymamis on Monday April 15, 2024 @04:04PM (#40044977)
Hey, Kate is awesome! Didn't mean to bring you down or anything. I myself got some trimming to do for my own apps. Keep up the good work.

BTW, any idea how Kate is so fast? Is there an architecture explanation somewhere? Is it based on Scintilla? I'm on a block editor[1] in Qt C++ and QML so that kind of information will be helpful.

[1] https://www.get-plume.com/

Re:The Kate Editor on the different supported operating systems by waqar144 on Tuesday April 16, 2024 @02:30AM (#40048947)
the architecture is really simple. The buffer contigously stores a list of "blocks". Each block contains a small number of actual text lines (usually 64-128). Thus if you edit a line, we only need to update the block containing the line. Once a block grows bigger than a certain number of lines, we split it into two.
Re:The Kate Editor on the different supported operating systems by rubymamis on Tuesday April 16, 2024 @03:14AM (#40049165)
Hey, Waqar!

If I’m not mistaken, you also contributed to my own Notes app https://github.com/nuttyartist/notes, so thanks!

Can you please point where in Kate’s source code I’ll see the implementation for this? That would be super helpful.

Re:The Kate Editor on the different supported operating systems by waqar144 on Tuesday April 16, 2024 @07:26AM (#40050706)
Re:The Kate Editor on the different supported operating systems by rubymamis on Tuesday April 16, 2024 @11:47AM (#40053554)
Thanks!
Re:The Kate Editor on the different supported operating systems by cullmann on Tuesday April 16, 2024 @04:48PM (#40056992)
I don't think it is the best design, but for the sizes of files one usually works with, it seems a good fit (with low complexity).