145 karma · joined Apr 1, 2019 (7y ago) · 59 submissions
comment 4mo ago · link · parent
comment 7mo ago · link · parent
Relax, not everyone sees every article everyday
comment 7mo ago · link · parent
comment 1y ago · link · parent
It works great for small tasks but larger tasks block local events and you can get weird latency issues, that was the major tradeoff I ran into when I used it. Works great if your tasks are tiny though, not having the event loop handoff to the worker thread is a good throughput boost. But then we started having latency issues and we introduced larger tasks which would hang the local event loop from getting those events.
I think Scylladb works somewhat like this but does message passing to put certain data on certain threads so any thread can handle incoming events but it still moves the request to the pinned thread the data lives on. One thread can get overwhelmed if your data isn't well distributed.
comment 1y ago · link · parent
I'm quite familiar with C++ as well and this just jives so much, each standard is just almost exponentially more complicated than the last, and while there are good changes they don't necessarily fit well with the prior version and its just a mess, I still maintain two OSS libs but I don't use the language anymore.. so its a question of how long I put up with it at this point.
Rust is such a breathe of fresh air coming from c++11/14/17/20 but its still a behemoth if you don't know the entire thing, I think this article is pretty spot on with that.
comment 1y ago · link · parent
Always has been and always will be. This article was eye opening to me because I didn't even realize how often I was working around buggy software.
comment 1y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
I tend to think more than write code, so usually my first go is reasonably close to what I need. But there are always edge cases you just never think about. I'd rather have a strong debugger than a repl imo
comment 4y ago · link · parent
I'm also curious what's difficult about pin in rust? It basically just disables moving of the object for the lifetime of the pin.
comment 4y ago · link · parent
What if you scored like wordle but based on undos? 1 undo used, 2 undos used... Up to 5 undos used. This incentivizes the user to try and not undo if possible.
I think the eliminated score method is kind of redundant with the wordled scoring, just make the player guess the 1 word left and be wordled?
Really cool and fun idea, we had a great time playing with it and probably will add it to our daily rotation.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 5y ago · link · parent
My biggest issue with C++ is that although it does seem to be adding lots of good quality of life changes with the recent standards for developers it has inherit flaws that without breaking backwards compatibility it can never be as safe as Rust. And I think C++ is probably right to not break backwards compatibility, it has too large of a user base that will most likely splinter, it reminds me of the python 2/3 problems.
comment 5y ago · link · parent
comment 5y ago · link · parent