Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Diggsey
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
121.
▲
by
Diggsey
4y ago
Yes, but the language would be better if correctness and maintainability were not so at odds with performance.
122.
▲
by
Diggsey
4y ago
That still modifies the audit log, which is presumably supposed to be immutable. It also means you lose information, eg. if this is a user ID, then before you would be able to determine if two audit actions were done by the same (deleted) u
123.
▲
by
Diggsey
4y ago
The features are very impressive, but why should I trust SurrealDB with my data over say, PostgreSQL? Some things I'd like to know more about: - Testing strategy - Point-in-time restore? - Consistency/isolation model - Performance
124.
▲
by
Diggsey
4y ago
You can do all this pretty easily using `pgAdmin` without having to remember any commands. If you do this infrequently, then great use the GUI. If you do it frequently then learn the commands I guess :P `pgAdmin` can help with that too thou
125.
▲
by
Diggsey
4y ago
This is still wrong though, since UB doesn't exist at an assembly level, and yet C has it. Therefore there is no clear mapping from C to assembly (even considering hypothetical ISAs).
126.
▲
by
Diggsey
4y ago
Tell that to the FE devs who add `overflow: scroll` everywhere and don't spot the problem...
127.
▲
by
Diggsey
4y ago
The timestamp in this case would be when the message was added to the queue, not the timestamp of the transaction which triggered the event. If two transactions are non-causal, it doesn't matter which order the events arrive in the que
128.
▲
by
Diggsey
4y ago
This is rubbish, we've run with guaranteed webhook ordering for years, so the idea that you can't do is laughable. Timestamps don't solve the issue, and neither do "thin payloads" since the receiver has no idea how
129.
▲
by
Diggsey
4y ago
This approach doesn't work for GUI frameworks IMO. When building an application, you're looking for a GUI library that meets a set of requirements. If it doesn't meet those requirements you're not going to use it: as an
130.
▲
by
Diggsey
4y ago
I think the idea is that `expect()` accomplishes the same thing, but allows you to put an explanation of why the function should be total (such that if it does indeed panic, you can see what went wrong with the reasoning). That said, I do
131.
▲
by
Diggsey
4y ago
> Repeatable read isolation creates read locks so that other transactions cannot write to those records. No it doesn't, that's just one possible implementation strategy. Postgres for example does not do this. > Best as I kno
132.
▲
by
Diggsey
4y ago
One thing that can be surprising is that for "REPEATABLE READ", not all "reads" are actually repeatable. There are at least two ways (that I'm aware of) that this can be violated. For example, if you run an update s
133.
▲
by
Diggsey
4y ago
Yeah I think it's a bit of a stretch to try to combine all these ideas under a single name. One guideline I would follow is: Statically type everything that a service needs to inspect to do its job, and no more, but without introducing
134.
▲
by
Diggsey
4y ago
AKA, a single entry in a WeakKeyDictionary
135.
▲
by
Diggsey
4y ago
This is from 2016
136.
▲
by
Diggsey
4y ago
Yeah the article is very thin on technical details. To make this work as they describe, it must not be possible for any client to "forge" queries, or else they could trivially decode the content by sending prefix queries of increa
137.
▲
by
Diggsey
4y ago
TPMs are great at preventing extraction of keys via the exploitation of software bugs. They are not so good at preventing extraction if you have physical access to the machine, and especially not if you don't need the machine to surviv
138.
▲
by
Diggsey
4y ago
> What makes UB in C++ is spelled out in its International Standard That's not true, the standard only specifies that some things are UB, it is not exhaustive, nor is it unambiguous. Furthermore, no current C++ compiler is compliant
139.
▲
by
Diggsey
4y ago
> Rust provides very substantially less support to library designers than C++ does. Anyone creating ambitious libraries finds Rust a big step down. Before I used Rust my main language was C++ where I specialized in writing libraries, and
140.
▲
by
Diggsey
4y ago
Writing widely useful, performant, reusable, correct and stable libraries is very hard. Rust is the easiest language to do that in. If someone says programming in another language is easier, it's because they are not attempting (or are
141.
▲
by
Diggsey
4y ago
I don't like this normalisation of copy/pasting code from stack-overflow... There are very few cases where this is appropriate in a professional environment regardless of your ability as a programmmer. Stack-overflow is a great to
142.
▲
by
Diggsey
4y ago
What happens to `obj.a`/`obj.b` is not the point of the example, you should be looking at `A.a`/`A.b`.
143.
▲
by
Diggsey
4y ago
There's a million fancy looking database clients, and yet I'm still using the crappy built-in MySQL Workbench that crashes if you look at it the wrong way. Why? Because I need to be able to do more than just run queries. I need to
144.
▲
by
Diggsey
4y ago
There are just so many issues here. 1) Don't rely on two parsers having identical behaviour for security. Yes parsers for the same format should behave the same, but bugs happen, so don't design a system where small differences
145.
▲
by
Diggsey
4y ago
What's the difference between someone who donates because it makes them feel good (to have a positive impact on the world) and someone who does it because they want to have a positive impact on the world? There isn't one. It'
146.
▲
by
Diggsey
4y ago
Thanks for the link!
147.
▲
by
Diggsey
4y ago
Is this actually broken in MSVC, or is it broken because Julia is using mingw and linking to an ancient version of libc on windows (which is intentionally left as-is for back-compat)? (I genuinely don't know, but the linked issue menti
148.
▲
by
Diggsey
4y ago
How? The accessibility APIs in question just tell the screen reader when the focus changes, it doesn't say why it changed. I'm sure theres a hacky way to make it work for specific browsers, but it's the wrong place to solve t
149.
▲
by
Diggsey
4y ago
It would be a surprise to anyone not very familiar with C++'s strict-aliasing rule, which I imagine is quite a lot of people (and even many C++ programmers...) Very few other languages have a similar rule (eg. Rust explicitly does not
150.
▲
by
Diggsey
4y ago
I agree with the comment, but: > Why? Why don't they offer the user the option to not do that? A screen-reader doesn't replace the browser - it just responds to changes in focus by reading out a description of the currently foc
More ›