Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Diggsey
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
391.
▲
by
Diggsey
7y ago
Rust is very middle of the road when it comes to using weird symbols all over the place. Just take a look at some C++ or Objective C code... I think this is more a problem with what you're used to. You see the same criticisms of every
392.
▲
by
Diggsey
7y ago
Changing to a different image format may not be possible because WhatsApp still needs to show historical images, and these images are not stored on a central server where they can be migrated. Also, it's called the "Android NDK&qu
393.
▲
by
Diggsey
7y ago
Using Rust may be the easiest option because there are existing crates for decoding GIF files (and other image formats) for example: https://crates.io/crates/image It should be straightforward to swap out the vulnerabl
394.
▲
by
Diggsey
7y ago
"Subpixel" makes more sense than "LCD": the technique applies to any screen with illumination units smaller than a pixel (eg. LED screens) so "subpixel" makes perfect sense.
395.
▲
by
Diggsey
7y ago
Objective-C shares calling conventions and struct layout with C, so theoretically you could directly call the system frameworks from Rust via extern "C" functions.
396.
▲
by
Diggsey
7y ago
Whose voice carries more weight when campaigning to reduce fossil fuel usage: the person who profits off fossil fuels and will suffer as a direct result, or the person who has divested themselves completely? If you have a moral objection to
397.
▲
by
Diggsey
7y ago
Not really: indexing out of bounds without this check would invoke undefined behaviour. A compile time flag would not be able to distinguish the cases where a bounds check is required for the program to be correct, from the cases where the
398.
▲
by
Diggsey
7y ago
In case anyone is interested, rust has unsafe methods to index arrays without bounds checking: https://doc.rust-lang.org/std/primitive.slice.html#method.ge...
399.
▲
by
Diggsey
7y ago
Backup systems should not be executing the data they are backing up. It would be easy for the ransomware to get the backup system to make a backup of the ransomware. It's much harder for it to then execute itself on the backup machine&
400.
▲
by
Diggsey
7y ago
> it most certainly does provide many techniques to reduce in-Python computation. Have you read the performance section in the FAQ and worked through the examples given ? Have you looked into baked queries , querying for columns and not
401.
▲
by
Diggsey
7y ago
The SQLAlchemy ORM is a very complex beast. It provides plenty of methods to optimise the queries it generates. It provides no way to "magically speed up the python code". This is not just for writes, but also for loading complex
402.
▲
by
Diggsey
7y ago
ActiveRecord does not treat SQL as "the source of truth". ActiveRecord objects maintain their own state, and still try to be a "proxy" for rows in the database. When you call "save", it's tracking the iden
403.
▲
by
Diggsey
7y ago
When I first got it, it was fantastic, the best laptop keyboard I've ever used - over time the keys have got a little squishy though. Not enough to be an issue but it does make be a bit sad... I had a Surface Pro 4 before this and the
404.
▲
by
Diggsey
7y ago
The type system is yes, just not the borrow checker or the type checker. The type system is still relatively simple compared the type systems in Java/C#/C++/etc. Let's take Java's as an example because I think peo
405.
▲
by
Diggsey
7y ago
> The compiler is complex and slow. It doesn't mean that the language is complex. > The borrower semantics is anything but simple. The borrow checker doesn't change the meaning of the program in any way. You can perfectly un
406.
▲
by
Diggsey
7y ago
Both Nim and Kotlin Native have a runtime in the form of a GC/automatic memory management, so you'd still need another language "beneath" them to get the job done. In the system programming world, "simple" mean
407.
▲
by
Diggsey
7y ago
Maybe if the kernel behaved optimally it wouldn't be any different, but empirically it seems like it does help. My guess would be that if it's all RAM, then the kernel will happily use all of it for IO buffers, etc. and make no at
408.
▲
by
Diggsey
7y ago
You still need to keep the thermophotovoltaic cells cool, it doesn't violate thermodynamics (energy can only be extracted from a temperature differential).
409.
▲
by
Diggsey
7y ago
"not-<anything>" is un-falsifiable. You can't prove that something is true with an experiment (which is what your double negative is suggesting).
410.
▲
by
Diggsey
7y ago
I didn't comment on its superiority to any other interpretation, in fact I only pointed out a problem with it? Pilot wave theory seems good in that it contains more falsifiable components than many other interpretations. I have no idea
411.
▲
by
Diggsey
7y ago
In the many worlds interpretation, as soon as a world has "split"/"the wave of differentiation has hit"/"particles have been entangled"/"whatever terminology you want to use" from the o
412.
▲
by
Diggsey
7y ago
The many-worlds interpretation is a good way to reason about quantum mechanics (certainly better than giving some special status to the experimenter), but it's meaningless to ask whether those other worlds really exist or not, not just
413.
▲
by
Diggsey
7y ago
That's interesting and a very strange idea to me, I never considered comparing "maths ability" vs "reading ability" because I never saw subjects on a scale from "reading <-> maths". For me the scale
414.
▲
by
Diggsey
7y ago
Bias is not a boolean quantity. The underlying data set is somewhat biased, and the "trick" being used greatly exaggerates the impact of that bias.
415.
▲
by
Diggsey
7y ago
I would just read the words, "use" "standard" "fs" "file" and wouldn't pronounce the "::" at all.
416.
▲
by
Diggsey
7y ago
What is the server written in?
417.
▲
by
Diggsey
7y ago
Even those details are platform-specific though. If you want to be truly portable, you can't even assume that paths are byte arrays. On windows, the path separator is '\' and paths are arrays of 16-bit integers.
418.
▲
by
Diggsey
7y ago
The problem is not with forcing strings to be utf-8, the problem is treating filenames as strings. Filenames are opaque blobs that can be lossily converted to strings for display if you know or can guess at the encoding.
419.
▲
by
Diggsey
7y ago
What? `(A⇔B)∧(B⇔C)` is exactly equivalent to `(A∧B∧C)∨(¬A∧¬B∧¬C)` which is equivalent to `A = B = C`
420.
▲
by
Diggsey
7y ago
The intent is that handles can be used across contexts (as long as both contexts are from the same instance of wlroots) - the context checks that the handle is valid before unwrapping it. Could you clarify what you mean by it presenting a
More ›