Better HN
topnewbestaskshowjobs
Log inSign up

waqar144

-4 karma · joined Sep 19, 2016 (10y ago) · 14 submissions

Submissions

comment 1y ago · link · parent

Please fix the performance of your website. Scrolling down is too slow and crashes my browser sometimes.

comment 1y ago · link · parent

Nice, thanks a lot for sharing the knowledge.

comment 1y ago · link · parent

You keep ignoring the point. Show me how can I write a program in C# that works with a fixed size memory region, lets say 512KB. It should not do any dynamic memory allocation.

Here's a library that does this in C in case you are wondering: https://github.com/rxi/microui.

comment 1y ago · link · parent

In C, I can just write the whole program without calling malloc. I write my own allocator tuned for my programs behavior, I even have multiple allocators if needed. I just have a lot more control available. If you can't do this in a language, you can't claim its performance is close to C. Performance is about control.

comment 1y ago · link · parent

> performance ceiling of .NET is at approximately the level of C/C++/Rust/Zig

Not really. You don't have the same level of control over memory in managed languages

6.

Code Browser for C, C++, Rust and Dart by KDAB(codebrowser.dev ↗)

1 points · by waqar144 · 1y ago · discuss

comment 2y ago · link · parent

https://invent.kde.org/frameworks/ktexteditor/-/tree/master/...

comment 2y ago · link · parent

IIRC, you came around in the kate channel on the matrix. Unfortunately you gave up really close to getting the build successful :)

I did try to help as much as I could, but I am no Craft expert myself and we were transitioning to Qt6 at that time so things were more difficult than usual. Should be a lot easier now I think if you want to try.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Kate has good code integration these days, but it depends on the language. Might not be great for some languages.

comment 2y ago · link · parent

because its not very easy to come up with new designs, at least for me. On the other hand if another tool provides a good and easy to understand UI, copying it makes sense. Kate still has a lot of its own things and ideas.