Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
devit
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
391.
▲
by
devit
5y ago
Looks like only transactions are "slow", where "slow" means 2ms, which is perfectly acceptable since it needs to wait for disk commit. So the problem is that the author is using it wrong, since you only need to wait for
392.
▲
by
devit
5y ago
As weird as it may seem, it looks like that there may be people willing to pay positive sums of money to go to Mars even without a return ticket.
393.
▲
by
devit
5y ago
I believe most BIOSes don't let you boot partitions, but only disk MBRs. You can however install GRUB to USB stick and boot the USB stick from the BIOS. This also protects your Linux install against any Windows malware that doesn'
394.
▲
by
devit
5y ago
Probably best to use a subdirectory, and probably even better to loop mount ext4 on a file instead of using ntfs directly.
395.
▲
by
devit
5y ago
The point of dithering was simply that old graphics cards (e.g. VGA) only supported 16 or 256 colors.
396.
▲
by
devit
5y ago
Why would you not cut off buses and taxis? They are professional drivers, so you can rely on them being better than the average drivers in difficult situations like having to brake suddenly, so I think you should cut them off preferentially
397.
▲
by
devit
5y ago
Because this is the most general signature possible (in general syscalls can have up to 6 arguments because the kernel supports x86-32 which has only 8 general purpose registers of which one stores the syscall number, one the stack pointer
398.
▲
by
devit
5y ago
If users using weak/reused passwords is your problem, just don't let users choose a password (generate it for them), or don't use passwords at all (send link by e-mail that adds a cookie), or use oauth login.
399.
▲
by
devit
5y ago
Well, you can have the competitors play naked in a physically isolated and sound/vibration/light/radiation insulated faraday cage, with a metal detector and whole-body MRI scan applied upon entrance, competing through a compu
400.
▲
by
devit
5y ago
The first link has this text: "Today, we’re sharing the latest activity we’ve observed from the Russian nation-state actor Nobelium. This is the same actor behind the cyberattacks targeting SolarWinds customers in 2020 and which the U.
401.
▲
by
devit
5y ago
Generally there is no need to actually run the program frequently, so you just code for an hour or more and then run the result. Since Rust has an actual type system, decent programmers usually produce code that works correctly the first ti
402.
▲
by
devit
5y ago
Does that proposal allow to express anything that can be expressed in Rust? That seems quite unlikely given the lack of syntax for lifetimes. It's still in theory possible to infer them, but that would result in API instability and har
403.
▲
by
devit
5y ago
It seems to be a syntax mismash between Rust, which uses `let` and `let mut`, and JavaScript, which uses `const` and `var`, giving WGSL's `let` and `var`, probably chosen because they are the shortest.
404.
▲
by
devit
5y ago
There are systems like the PS3 SPEs and DSPs where you only have normal access to local on-chip memory and have to explicitly initiate DMA to access external memory. But that's just bad for running general purpose software that can req
405.
▲
by
devit
5y ago
No, Ada has no lifetimes and borrow checking and thus cannot possibly offer the same expressiveness as Rust while supporting safe memory deallocation without garbage collection.
406.
▲
by
devit
5y ago
These languages, when used without garbage collection and with dynamic memory allocation, are not memory safe. Gaining memory safety at no cost is the whole point of rewriting in Rust, since it dramatically changes the behavior of the resul
407.
▲
by
devit
5y ago
It's because humans have developed into something similar to the eusocial organism seen in other species like ants. This makes the societal superorganism very effective at exploiting the planet's resources by conditioning human be
408.
▲
by
devit
5y ago
That's probably because they have been used to being wealthy since birth and have always being around other wealthy people, so it doesn't register as a special thing as much as someone who transition from non-wealthy with non-wea
409.
▲
by
devit
5y ago
Reexecuting it all is the simplest strategy if you don't need to undo often or the performance is acceptable anyway. But in general, every command would generate an "undo record" with information to undo it. In case of the br
410.
▲
by
devit
5y ago
This only works if the commands update only a few bytes. This would not work, for instance, in an image editor with an "adjust brightness/contrast" command since that changes the whole image. It's also inefficient since
411.
▲
by
devit
5y ago
At around 4 GHz and 2 IPC, it's about 1000 CPU instructions per I/O. Assuming you have an hardware DMA ring buffer for I/O that is directly mapped in userspace, the only thing that is really needed is to write the operation t
412.
▲
by
devit
5y ago
Well, Rust is currently the best programming language so it's the other languages that need to come up with a "X vs Rust".
413.
▲
by
devit
5y ago
https://esbuild.github.io/faq/#benchmark-details has Parcel 2 benchmarks. The summary is that you should use esbuild (or swc/spack when ready) for new projects and probably switch existing ones as well if feasible
414.
▲
by
devit
5y ago
Why do that for general customer support instead of hiring in different time zones?
415.
▲
by
devit
5y ago
Not sure what "scaffolding" you are talking about. Rust has no headers or forward declarations, and compiles the whole project ("crate") as a single unit.
416.
▲
by
devit
5y ago
Why not use Rust? It can do what you want.
417.
▲
by
devit
5y ago
Well, if you do "meditation" (or "do nothing") in a way that results in shutting down all thoughts except the depressive ones, then it's going to make things worse. In that case, you might be (temporarily) better of
418.
▲
by
devit
5y ago
I think the addicted people still use it like you are describing (as well as looking at the feed).
419.
▲
by
devit
5y ago
I'd really love anything more effective than foam earplugs for sleeping (esp. something that can block or cancel bass and thumps propagating through the walls/floor/ceiling) while still being portable. I tried the QuietOn Sle
420.
▲
by
devit
5y ago
Any comparison with the other solutions? (e.g. the ones from https://blog.flant.com/comparing-kubernetes-operators-for-po... )
More ›