Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dwattttt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
241.
▲
by
dwattttt
9mo ago
The phrase is typically analysis paralysis, but the image of a team of analysts frozen in fear is quite evocative.
242.
▲
by
dwattttt
9mo ago
> For example, you can't get mutable references to items in a shared container by thread id or loop iteration. This would be a good candidate for a specialised container that internally used unsafe. Well, thread id at least; since t
243.
▲
by
dwattttt
9mo ago
> Say the program is not dynamically linked. Still no? Whether the program has dynamic dependencies does not dictate whether a thread can be created, that's a property of the OS. Windows has CreateRemoteThread, and I'd be shock
244.
▲
by
dwattttt
9mo ago
It might be a minute or two before we get to see the words "favourable price" anywhere near the word RAM again.
245.
▲
by
dwattttt
9mo ago
> In larger projects things like data structures and libraries are going to dominate over slightly different compiler optimizations. At this level of abstraction you'll probably see on average an effect based on how easy it is to ac
246.
▲
by
dwattttt
9mo ago
Optimising out TLS isn't going to be a good example of compiler capability. Whether another thread exists is a global property of a process, and beyond that the system that process operates in. The compiler isn't going to know for
247.
▲
by
dwattttt
9mo ago
> As with C, there is nothing preventing anyone from writing all of that generated code by hand. It is just far more work and much less maintainable than e.g. using C++20. It's also still less elegant, but compile time codegen for s
248.
▲
by
dwattttt
9mo ago
I'm curious if this is tracked or observed somewhere; crater runs are a huge source of information, metrics about the compilation time of crates would be quite interesting.
249.
▲
by
dwattttt
9mo ago
That does sound like Chrome has also either failed to make styling multithreaded in C++ (or haven't attempted it), while it was achieved in Rust?
250.
▲
by
dwattttt
9mo ago
> This does come with code-bloat. So the Rust std sometimes exposes a generic function (which gets monomorphized), but internally passes it off to a non-generic function. There's no free lunch here. Reducing the amount of code that&
251.
▲
by
dwattttt
9mo ago
I'm not familiar enough with Zig to want to dive into architecture, the point I wanted to make is general to arenas in any language that can have a stale reference. I once had a stale stack reference bug in C that lived for a year, bec
252.
▲
by
dwattttt
9mo ago
It's harder than you'd expect. Depending on what kind of bucketing an arena does (by size or by type), a stale reference may end up pointing to another piece of memory of the correct type, which is still wrong, but more subtly tha
253.
▲
by
dwattttt
9mo ago
There is technical achievement in: > Anyone deploying serverless code into Amazon instances is running of top of Firecracker, my phone has Rust code running on it, and whatever Windows 11 draws something into the screen, it goes through
254.
▲
by
dwattttt
9mo ago
Some of those are the equivalent of a single C source file. We wouldn't celebrate a C project for specifically holding down to say, 10 source files max. We'd celebrate it separating concerns well instead.
255.
▲
by
dwattttt
10mo ago
Rust is the poster child for these complaints, but this is a great example of "the language rejects a valid program". Not all things that can be expressed in C are good ideas! This is "valid" C, but I wholly support chec
256.
▲
by
dwattttt
10mo ago
I think "eliminate crashes" isn't the way to describe what Rust aims for. Eliminate memory corruption, yes. But one mechanism for achieving that was safely crashing.
257.
▲
by
dwattttt
10mo ago
I would assume loose language, referring to a CALL as a JMP. However of the two reasons given to dislike the large code model, register pressure isn't relevant to that particular snippet. It's performing a call, ABIs define regist
258.
▲
by
dwattttt
10mo ago
> I think Windows and Linux both support them. Detached debug files has been the default (only?) option in MS's compiler since at least the 90s. I'm not sure at what point it became hip to do that around Linux.
259.
▲
by
dwattttt
10mo ago
> "No evidence of exploitation” is a pretty bog standard report It is standard, yes. The problem with it as a statement is that it's true even if you've collected exactly zero evidence. I can say I don't have evidence
260.
▲
by
dwattttt
10mo ago
Did not over-promise
261.
▲
by
dwattttt
10mo ago
> Apart from the fact that it really slowed down my deployments Is this a comparable complaint worth mentioning, and if it is are you sure you actually need cryptography? It slowed things down a bit, so you don't really want to move
262.
▲
by
dwattttt
10mo ago
I was contemplating what it would look like to provide this with a macro in Rust, and of course someone has already done it. It's syntactic sugar for the destructor/RAII approach. https://docs.rs/defer-rs/late
263.
▲
by
dwattttt
10mo ago
In the abstract, it's the inverse of the argument that "configuration formats should be programming languages"; the more general something can be, the less you can assume about it. A way to express the operations you want, wi
264.
▲
by
dwattttt
10mo ago
And what of histories great artists? You can take a walk through a gallery and see many things people wanted to express, reading the artists textual description of it won't invoke the same ideas in you.
265.
▲
by
dwattttt
10mo ago
This is all true, but I think you're too focused on your area. Finding musical notes that we can interpret correctly from an ancient civilization, would that be "text" or "binary"? I think it's a false choice.
266.
▲
by
dwattttt
10mo ago
Brittany Spears - Hit Me Baby One More Time.mp3 To paraphrase the overused 'ol Sapir-Whorf, if all you think about is information that can be best represented as text, all your examples will be ones text wins at.
267.
▲
by
dwattttt
10mo ago
I agree, but binary is exactly the same. You use a different tool to view it, and maybe you don't have that tool, and that's the problem. But it's a matter of having a way to interpret the data; trivially base64 encoding read
268.
▲
by
dwattttt
10mo ago
> Still, at least it's an option to put base64 inline inside the JSON. With binary, this is not an option and must send it separately in all cases, even small binary... There's nothing special about "text" or binary h
269.
▲
by
dwattttt
10mo ago
It depends on how big or trivial the loops you need are. If they're only 3 or 4 lines, extracting their body into a function doesn't improve anything.
270.
▲
by
dwattttt
10mo ago
By the by, code blocks on here are denoted by two leading spaces on each line like this
More ›