Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
devit
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
241.
▲
by
devit
3y ago
And note that it's a good thing that crates are async, because async-in-sync using block_on has only some potential small CPU time overhead, while sync-in-async requires having a thread for each concurrent usage and has potentially cat
242.
▲
by
devit
3y ago
You can use `block_on` from the futures-lite crate (or from other crates) to synchronously call async functions. Not using async or async crates is not recommended since most new or updated high quality crates now use async.
243.
▲
by
devit
3y ago
Most CPUs don't have BCD math instructions, so you need multiple instructions, with probably around a 10-100x slowdown in math.
244.
▲
by
devit
3y ago
It looks like the Godot problem is that Chrome on Apple systems by default uses the native Apple OpenGL driver, which are broken, and can be worked around by passing --use-angle=metal to Chrome to tell it to use the new experimental Metal b
245.
▲
by
devit
3y ago
There's a simple trick to encode it: if there are less than 32 pieces, invert the bitboard (easily decoded since boards can't have more than 32), while if there are 32 pieces flip the board vertically (easily decoded because white
246.
▲
by
devit
3y ago
Seems really bad to me. There's a lot of distracting glitches like the K and Q having small gaps where strokes come together, and even glyphs like the N, M, Y and Z have weird little gaps at the joints, the F and B have a bizarre overh
247.
▲
by
devit
3y ago
Well, unless you absentmindedly type in your mail address, name or any other real credentials.
248.
▲
by
devit
3y ago
Presumably generated lots of variations of that sentence. It's 28 bits, so you only need to have around 14 places where 4 variations are possible. For instance, it could start with "Was", "I was", "verifying&qu
249.
▲
by
devit
3y ago
It says that it's actor-based, and sending messages to an actor is equivalent to running the actor function under a mutex, and thus reduces parallelism (in other words, you have N threads sending messages, but only 1 thread running the
250.
▲
by
devit
3y ago
That's because the author apparently neglected to parse the resulting page to ensure that the submission succeeded. If you terminate the system right after sending a form there is no guarantee that the data even left the local buffers
251.
▲
by
devit
3y ago
You can use impl Borrow<T> for that if the choice is static. If it's dynamic, you can use Cow or the supercow/bos/... crates if you want Arc/Rc to be options as well.
252.
▲
by
devit
3y ago
Rust is designed like this because it seeks to achieve zero-cost abstractions and safety. Or in other words, the goal is that you can think in abstract what the natural optimal machine code would be for a program, and you can write a Rust p
253.
▲
by
devit
3y ago
Do they really not do live migration or at least auto-restart (if configured) in those cases?
254.
▲
by
devit
3y ago
It's not clear, but my interpretation is that they contacted every account holder, somehow convinced them to migrate (perhaps with discounts and/or threats of termination) and then shut down once everyone migrated. Would be very i
255.
▲
by
devit
3y ago
OsmAnd, while a bit harder to use (but not that much), is much better than Organic Maps: it can show satellite imagery from both Google and Microsoft (and download it for offline use!), has a 3D map view, supports coloring slopes, has a bun
256.
▲
by
devit
3y ago
Well, it's going to look like normal Doom.
257.
▲
by
devit
3y ago
Seems easily avoidable by having the modules rendezvous in one of the myriad ways that are possible given that both run in kernel mode with full privileges. For example, you can walk the kernel-only page tables, find all executable pages, a
258.
▲
by
devit
3y ago
You might be dead before 60.
259.
▲
by
devit
3y ago
Rust is the best programming language, so the question is more why you wouldn't use it. And the answer is you wouldn't use it if there's a library or existing codebase in another language that is much better than the Rust equ
260.
▲
by
devit
3y ago
The article claims that Apple's compiler doesn't use the instruction, so it seems like the compiler author did indeed forget or never learn about it.
261.
▲
by
devit
3y ago
On Google Pixel devices you can load your own verified boot key into the "avb_custom_key" partition and then it will only boot OSes signed by it (it will also say that you are running a different operating system in the boot scree
262.
▲
by
devit
3y ago
I assume Firefox doesn't have Chrome's arbitrary limit on the number of filtering rules, right?
263.
▲
by
devit
3y ago
Trucks drive just fine with no rear view at all other than side mirrors, so cars can do that as well.
264.
▲
by
devit
3y ago
That also suffers from integer overflow if they implement it naively as they seem to show in the blog with a `pub trait Modification: PartialEq + Default + Add<Output = Self>` and using primitive integers.
265.
▲
by
devit
3y ago
T&& doesn't run the T destructor when it's destroyed, which is the whole point of unique_ptr.
266.
▲
by
devit
3y ago
I guess their issue might be that if people listen to white noise 8 hours while asleep every night and Spotify distributes their monthly fee weighted by time listened, then a lot of their fee will go to the white noise for sleep and thus th
267.
▲
by
devit
3y ago
This code implements the most important feature of the editor in question: https://github.com/Cube9999/vi/blob/master/vax/ex_cmds.c#L45...
268.
▲
by
devit
3y ago
That's obviously infeasible (either it would be bad or it would cost too much time/money). However, maintaining a variant of Ungoogled Chromium or Vanadium targeted at desktop Linux would be feasible.
269.
▲
by
devit
3y ago
"continuous" (in this actually incorrect usage, since the correct term is "dense") -> said of an algebraic structure such that for every x != y there exists z such that x < z and z < y -> characteristic (&quo
270.
▲
by
devit
3y ago
Seems ineffective with abstract concepts. "In mathematics, a real number is a number that can be used to measure a continuous one-dimensional quantity such as a distance, duration or temperature. Here, continuous means that pairs of va
More ›