Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pizza234
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
541.
▲
by
pizza234
4y ago
> Having two distinct "products" could help here. There could be a "bare rust" that is minimal and unopinionated, and used by those that need a small footprint, for example There is already, it's the nostd.
542.
▲
by
pizza234
4y ago
Using integers as allocation strategy (as in the referenced use case) will fail when slots are reused.
543.
▲
by
pizza234
4y ago
There are convenient libraries for working with such data structures. Unsafe should be relegated for highly specific us cases.
544.
▲
by
pizza234
4y ago
This is a tricky subject. Rust being a low-level library, adding something means inherently choosing a preferred approach to a problem rather than another, which may be disagreeble. The consequence is that there would be still the sub-sub-d
545.
▲
by
pizza234
4y ago
> The "safe" solution recommended by the rustaceans was to use integers as references to the data in a vec or hashmap This is not correct advice; not sure why you've been given this answer. There are a couple of solutions.
546.
▲
by
pizza234
4y ago
The title can be interpreted in two ways. It could be interpreted as the cost to the end payer (either patient or insurance). In this case, it's clickbait, because it doesn't represent what the patients pay, but still, it causes a
547.
▲
by
pizza234
4y ago
I'd be a big fan if that worked, but I haven't found an open remote desktop solution on Linux that works out of the box and acceptably fast¹, to the point that I have to use proprietary software to perform remote desktop sessions
548.
▲
by
pizza234
4y ago
I've switched completely to ebook, but there are downsides. First is that the ebook annotation is clunkier than physical annotation, for various reasons (zooming, palm detection etc.). In addition to finding the right pdf annotator, on
549.
▲
by
pizza234
4y ago
The title is clickbait; the bill total is not what is generally paid by the patients (whether nothing be paid at all in such cases, is a separate topic): > On average, hospital emergency departments charged $3,551 for urgent medical care
550.
▲
by
pizza234
4y ago
Post your exact numbers. I've done wall-power measurements with different Ryzen models.
551.
▲
by
pizza234
4y ago
Interesting. My 3950x draws (wall power) approximately 67/68W in idle. I'm on a Bxxx chipset and a 6600 XT, which should both consume little in idle mode, and 3 SSD, which consume little. I haven't read much, but it t seems t
552.
▲
by
pizza234
4y ago
Sarcasm is not actually correct. An ECS is not an RDBMS, because in the latter is based on row-based storage, while the former is column-based. The storage part of ECSs could actually be considered a form of columnar db. For example, lockin
553.
▲
by
pizza234
4y ago
After a feature branch is merged, its content is candidate for any bisect. If the branch was squashed, bisecting will be less effective, compared to the same branch, merged without squashing (at the conditions of the commits being self-stan
554.
▲
by
pizza234
4y ago
> why do you care about my 10 "wip" commits on a feature branch? If that's how a team develops PRs, then the commits are structurally suboptimal, and the problem is in the development practices. Such team won't be abl
555.
▲
by
pizza234
4y ago
How do squash commits maintain bisectability? They do compress history, and granularity is lost, so one can bisect, but on large batches of code (to be specific, as large as merges; if a team adopts small merges, the granularity is retained
556.
▲
by
pizza234
4y ago
TDP is correlated with consumption, so a higher TDP is indicative of how much the CPU will burn in general.
557.
▲
by
pizza234
4y ago
Can you give some details (components and consumption)? I'm interested in the topic, and I've done some wall measurements as well, in the past and present.
558.
▲
by
pizza234
4y ago
> is a entity, and that entities have components, and the systems operate on entities (possibly based on their components) In an object-based design, objects are monoliths, with fields. You get a reference to player, and each Player inst
559.
▲
by
pizza234
4y ago
It's possible, but the job market is not reflecting this. The popular languages (JS, Java, Golang, Python) are immensely more popular than Rust in terms of job offers.
560.
▲
by
pizza234
4y ago
The tweet has an arguable assumption, but on the other hand, an important truth: > The future will solve this automagically: people using Rust massively will pay a productivity tax that if not counter balanced by the safety wins will tur
561.
▲
by
pizza234
4y ago
No, it was the Rusty Jam. Independently of Bevy's progress, a parallel ECS is not a good choice for a prototype-like game project.
562.
▲
by
pizza234
4y ago
Jams can be very fad-driven. I'm not familiar with this jam, but Rust's latest game jam was dominated by Bevy, which is a very bad choice for quickly writing a game.
563.
▲
by
pizza234
4y ago
Following semantic versioning, libraries are essentially allowed to change very liberally on 0.x, so it makes sense to reach 1.0 only once the crate/API is stable.
564.
▲
by
pizza234
4y ago
> Steve, like any other human, is a shade of grey. He did some awful things and some great ones. That's that. It neither makes him a monster nor a saint. It makes him a... Human. This statement is a truism; it's valid for every
565.
▲
by
pizza234
4y ago
Plugging a DOS game to an SDL(2) library won't "just work". Some concepts are inherent to the hardware and the O/S. Hardware example: EGA (not the case of doom, but of other, slightly older games) uses bitplanes, it'
566.
▲
by
pizza234
4y ago
Well, extremely portable, I wouldn't say so. If you look at the ancestry of SDL2-Doom, for example, there are three ancestors: - doomgeneric, which seems not simple ( https://github.com/maximevince/fbDOOM/compa
567.
▲
by
pizza234
4y ago
The top sibling parent has the correct explanation, however, I'll expand a bit. Games prior to Quake were bound to specific O/Ss and/or hardware components. DOOM was still bound to DOS AFAIK, so it's not portable without
568.
▲
by
pizza234
4y ago
Distinction: - lab leak: researchers catch infected bat; at the laboratory, bat bites researcher; researcher gets COVID - lab made: researchers modify a virus, and produce SARS-CoV-2; the latter escapes the laborary (in one way or another)
569.
▲
by
pizza234
4y ago
> Thus, if you're an average-looking man, your odds of getting messages are actually greater than they are for an average-looking woman. Any research/analysis on the topic pales compared to reality. Here's what happens in
570.
▲
by
pizza234
4y ago
For parents who are opposed to the technology in the hands of children, any senior phone will do, with a broken keyboard, and the speed dial(s) set to the parent phone(s) - this of course, depends on the age of the child. I agree that a per
More ›