677 karma · joined April 2, 2019
- Don't try to learn domain knowledge from the code. I you need to get familiar with code of a JPEG decoder, learn how JPEG works first.
- Before reading code, make sure you can jump to definition and find references. The easiest and language agnostic way is to use ctags and grep.
- Start reading code from main() (or an API call in the case of a library) and then start to dig deeper. This way will get a feeling where the "important" code is"
I think introducing UB while planning tight integration in the language's tooling beforehand has lots of upside. Even GCC's ubsan does quite a good job, although created retrospectively.
Polling as an example may be an effective way to lower latency, e.g. Linux NAPI.
Increasing buffer sizes may also decrease latency because data can be processed in bursts, see buffer starvation. But if data comes in at a higher rate than can be processed, buffers fill up and are horrible for latency.
You are contradicting yourself.
Maternal leave is not to "pop out" more children, but to give them the care and upbringing they need.
Having children is not a personal lifestyle choice, it's a basic human needs. Otherwise we won't exist.
Most people agree that children are a very important part of our society and future. If that isn't worth being supported by public money, I honestly don't know what else could be.
What if fetch_*() weren't async function (e.g. because doing CPU heavy work)? The Rust Code would look just like the Golang code, except you'll now need the wrapper code do make them async.
GME was trading below net cash last year, which is insane. E-commerce is growing 300% YoY and Ryan Cohen, former founder and CEO of Chew, just made a major move as an activist investor. If GME was valued by VC measures, it would be trading at $420. Most of the people on WSB believe in the value of the company and have faith in a successful turnaround.
> The General was eventually found by a greeting party.
>
> The Army said he was never actually lost, but was "not where they were expecting him".Can fence instructions really be seen as locking mechanism? While a lock generally is bound to some data, memory fences are bound to relationships between data or a piece of code. I don't know if Rust or any other language can help you with that.
Isn't the actual bad practice to expose locks at all? If the locking is done implicitly in API calls, one doesn't need to ask "What locks it".