« first day (4947 days earlier)   

4:21 PM
Speaking of editors, I'm really excited about zed.dev. It seems like the closest thing to vim without actually having to use vim. ^^ I'm using vscode + the vim ext. atm. It works, but it's far from perfect.
Unfortunately, CLion has always been a hot-mess for me. Whenever I open php-src with it, my laptop starts sweating.
 
@IluTov I do definitely not recommend using CLion on a non-top tier laptop :-D
 
@bwoebi I would consider it top-tier though. :D It's not the hardware that's the problem.
 
@IluTov Hm, for me CLion sweats a bit when I start it, but then it's pretty usable afterwards.
 
VSCode + clangd is really snappy in comparison. I'm mainly bothered by the bugs.
@bwoebi It really struggles with big files. E.g. zend_compile.c, zend_vm_def.h, etc. I tried all kinds of mitigations by disabling various settings.
 
@IluTov Yeah, that's true, it's slowest there
 
4:35 PM
@bwoebi Right. Zed on Linux isn't ready yet, but it works. And at first-glance it was quite a bit faster than VSCode, and vim mode worked much better. It's going to miss features at first ofc. But to me it's more important that the general editing experience is nice.
 
5:29 PM
@IluTov Did you try marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools? Does clangd have any benefit over that?
Asking because the extension works well for me for my HAProxy contributions, but the macro hell of php-src provides a less than great experience.
 
@TimWolla I find it more reliable, yes. But honestly it's been quite long since I switched to clangd, so I can't give you any details.
 
Talking about less than great experiences: Should I try making a PR to make zend_string_release(NULL) safe or is that hopeless? I find it incredibly annoying needing to put explicit NULL checks around free()-style functions.
 
6:03 PM
I don't personally like it when NULL is passed to free.
 
6:26 PM
Why not? Explicitly checking makes freeing of structs with optional contents much more verbose.
 
6:59 PM
I just don't like implicit NULL behavior. I don't find verbosity particularly problematic. It could be improved by allowing ifs without braces, but people dislike them for some reason.
 

« first day (4947 days earlier)