Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DougBTX
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
241.
▲
by
DougBTX
4y ago
What's funny is that DRY was first popularised in the Pragmatic Programmer[0] book, and "coincidental" duplication is explicitly addressed right there on page 34, "not all code duplication is knowledge duplication... the
242.
▲
by
DougBTX
4y ago
On the shell, it is all the other way around, so to use command substitution it is like this: f $(g x) To pass the output of g x to f.
243.
▲
by
DougBTX
4y ago
> Data races are mostly prevented through Rust's ownership system: it's impossible to alias a mutable reference, so it's impossible to perform a data race. https://doc.rust-lang.org/nomicon/races.html
244.
▲
by
DougBTX
4y ago
cppreference defines it as: > Resource Acquisition Is Initialization or RAII, is a C++ programming technique[1][2] which binds the life cycle of a resource that must be acquired before use (allocated heap memory, thread of execution, ope
245.
▲
by
DougBTX
4y ago
> With the debugger, you can only see the application state at one specific point at the time. Really depends on the debugger. Some tools support “time travel” debugging, which essentially stores a structured log of memory state over tim
246.
▲
by
DougBTX
4y ago
In the paper they say about half the training data was an internal training set, and the other half came from: https://laion.ai/laion-400-open-dataset/
247.
▲
by
DougBTX
4y ago
This is frameworks vs libraries. In the first case the framework is calling the code with config and hooks to change behaviour. In the second case there are common library functions called from completely separate “application” code.
248.
▲
by
DougBTX
4y ago
A common issue is trying to store a variable sized value in fixed size storage, with no test that the value fits!
249.
▲
by
DougBTX
5y ago
I think this would be fine, as long as the CSV layer was still parsable using the RFC 4180, then you could still use a normal CSV parser to parse the CSV layer and a normal JSON parser to parse the JSON layer. My worry with your example is
250.
▲
by
DougBTX
5y ago
> react wasn't particularly innovative on that front (e.g. the declarative model already existed in angular, knockout, etc) React was absolutely a breath of fresh air when it was released. Knockout was similar to Solid.js in that th
251.
▲
by
DougBTX
5y ago
Out of interest, what are the features you miss?
252.
▲
by
DougBTX
5y ago
Have to say I’ve not been following this in any detail, but it was also disabled in 1.52.1, has it been re-enabled again in the meantime? https://blog.rust-lang.org/2021/05/10/Rust-1.52.1.html
253.
▲
by
DougBTX
5y ago
Strict table support came in last year to help address this: https://www.sqlite.org/stricttables.html
254.
▲
by
DougBTX
5y ago
A “least-C” needs lazy evaluation at a minimum :-)
255.
▲
by
DougBTX
5y ago
Maybe not exactly House style, but yes. Think one or two paragraph questions, multiple choice answers, a minute or two per question, for multi-hour exams. At least the certifications are recognised, so you can pass once and apply in multipl
256.
▲
Cryptographic Sponge
(keccak.team)
3 points
by
DougBTX
5y ago
|
0 comments
257.
▲
by
DougBTX
5y ago
They pretty much do this in some cases, they use boxes like this[0] which fit their contents based on where they are taped. [0] https://www.amazon.co.uk/dp/B094DL2GQ6
258.
▲
by
DougBTX
5y ago
Yes, a good middle ground is the slightly confusingly named “GitHub flow”: https://docs.github.com/en/get-started/quickstart/github-flo... The main branch is always stable, releasable. Feature branches are br
259.
▲
by
DougBTX
5y ago
There isn't a massive difference between type instability vs programming against interfaces in OOP languages or using a Box<dyn T> in Rust, both add an extra indirection which has a performance impact, but depending on the situat
260.
▲
by
DougBTX
5y ago
> I could get the logs for just that one service with docker compose logs --follow myservice but that dies everytime the service dies so I'd need to run that command every time I restart the service Why is that? Any chance of a bugf
261.
▲
by
DougBTX
5y ago
The difference is between working out something from scratch vs recognising something you’ve seen before. The second will be much faster, but it depends on experience, not talent.
262.
▲
by
DougBTX
5y ago
Have to day, mixing async and CPU intensive code (I’m using Rust because it is good at CPU intensive code!) has been a frustrating experience, with lots of noise and baggage associated with spawn_blocking to make things run well.
263.
▲
by
DougBTX
5y ago
> So if I buy an expensive NFT, and the domain goes down, the NFT is now worthless? Well, that’s a question and a half. If its intrinsic value dropped to zero, would that be a change in value?
264.
▲
by
DougBTX
5y ago
What’s the thinking behind this? > Keeping something static (like keeping a metric at a particular number) is not a key result. I could easily imagine a support team having an objective to keep the backlog of queries low. And to be pedan
265.
▲
by
DougBTX
5y ago
https://www.realtimerendering.com/blog/the-center-of-the-pix...
266.
▲
by
DougBTX
5y ago
Usernames is a nice example. Just as a demo, we could make things simpler: Look at all the usernames in the input, keep track of all the letters you’ve seen. When you get a new name, if you’ve seen all the letters before, you might have see
267.
▲
by
DougBTX
5y ago
> This is not to say Agile itself is bad - it takes effort and skill to use it effectively but managers seem to be taking the easy way out to create a factory line kind of setup where random requirements keep getting thrown and every two
268.
▲
by
DougBTX
5y ago
> more than they value run-time speed Maybe this is a dated perspective now, since more modern languages like Julia are aiming for dynamic types with good run-time speed, or like nim which aim to make statically typed languages as easy t
269.
▲
by
DougBTX
5y ago
It seems at point 3 that organic plasticity requires features smaller than a Planck length, is that right?
270.
▲
by
DougBTX
5y ago
I had this benchmark[0] in mind while writing the comment, though perhaps Go does well there by avoiding GC rather than having fast GC as-such? That would explain why its performance is close to the non-GC languages. [0] https://
More ›