Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nybble41
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
301.
▲
by
nybble41
5y ago
The Rust code using `.unwrap()` is explicitly testing for a missing value and signaling a well-defined error when the prerequisites are not met. Contrast this with dereferencing a null pointer in C, where doing so results in undefined behav
302.
▲
by
nybble41
5y ago
> If you're designing an OS from scratch, support for `fork` and `exec` as separate system calls is not what you want. Instead, you'd be likely to describe something in terms of a process creation system call, which will have e
303.
▲
by
nybble41
5y ago
> Is there a middle ground or best practices where we can be reasonably assured our funds are safe from state influence but easily accessible and secure? Are multi-sig wallets at a state where they can be useful and free from confiscatio
304.
▲
by
nybble41
5y ago
Perhaps, but so what? The existence of certain dangerous modifications does not imply that all modifications would be dangerous. If you mess with the ABS logic (or anything else) and the modifications contribute to an accident then you&#x
305.
▲
by
nybble41
5y ago
If you look at the current numbers in the upper-right corner of the graph, validator RAM use went from 3816 MB to 2956 MB, a reduction of ~860 MB. The y-axis was selected by the tool based on the data in each series, and the second graph ha
306.
▲
by
nybble41
5y ago
> Being able declare variables anywhere doesn't make the code better… It does, though. The ability to declare variables "anywhere" and allows a reduction in the portion of the code where a variable exists uninitialized, or
307.
▲
by
nybble41
5y ago
That would be an issue if you only had crypto. It does not in any way negate the fact that there are ways to employ crypto profitably which do not require exposing your real-world identity.
308.
▲
by
nybble41
5y ago
You can wait until just before the next time the device is scanned for filesystems, or perhaps when the next btrfs filesystem is mounted. Beyond that it will start to cause problems.
309.
▲
by
nybble41
5y ago
> At some point you're going to have to exchange your crypto for physical goods. Or digital goods (services). Which you can do without providing any real-world identification.
310.
▲
by
nybble41
5y ago
> Why would anybody continue operating nodes once all the pre-programmed bitcoins are minted? There are two parts to the reward for mining a block: newly minted bitcoins, which follow a fixed distribution and decrease over time (halving
311.
▲
by
nybble41
5y ago
The difference is that you can easily edit the UUID of a btrfs filesystem with `btrfstune -U` immediately after making the copy so the filesystems are unique again. You need to do this anyway if you have mount rules based on the UUID, regar
312.
▲
by
nybble41
5y ago
I'm fine with that so long as the burden of proof rests on those claiming that the modifications make the device "substantially more dangerous"—keeping in mind that the most dangerous component of any vehicle tends to be the
313.
▲
by
nybble41
5y ago
> I'm not sure callbacks alone can be equivalent to a resumable conditions system. I agree, but I was not relying solely on callbacks. You do need some form of non-local return (such as exceptions or continuations) to implement the
314.
▲
by
nybble41
5y ago
> I want functions to have a side channel to the user/operator that is not necessarily in the main flow path. That is the essence of the Common Lisp condition system, and you can get there in most languages with closures, or at leas
315.
▲
by
nybble41
5y ago
Agreed, a simple majority for emergency powers is ridiculous. I'd go with at least a 4/5 threshold myself. More than that, any invocation of emergency powers should force a public confidence vote for every elected official when
316.
▲
by
nybble41
5y ago
If you read the article by Anders Hejlsberg, he's not arguing against centralized handling of exceptions—the handling of runtime exceptions is expected to be centralized near the main program loop. That, however, is a general-purpose h
317.
▲
by
nybble41
5y ago
> By people who do not want to believe that errors are part of a system's API… The point was that you should be returning errors, not throwing them. Runtime exceptions (null reference, division by zero, out of memory, etc.) ought
318.
▲
by
nybble41
5y ago
> The absolute biggest AMD Threadripper you can get only has 64. You can get a machine with dual 64-core AMD EPYC 7662 CPUs[0] for a total of 128 cores. It will cost you almost $20k, though—for the most basic configuration. [0] https:&#
319.
▲
by
nybble41
5y ago
There is no particular reason why an NFT must be associated with a JPG file, as opposed to a physical object. It's just a certificate, after all. Instead of (or in addition to) the usual IPFS URL you would have a detailed description
320.
▲
by
nybble41
5y ago
> If the son drove it without permission, it sounds like the son ought to get both a DUI and an auto theft charge. There is no way justice would be served by convicting the son of auto theft if the owner of the vehicle (i.e. the dad)—the
321.
▲
by
nybble41
5y ago
> Originally, my view was that any activity that brought attention to NFTs - no matter the intent - constitutes a "promotion" in a way. By that reasoning the author of "promotingthegrift.com" also belongs on the list—
322.
▲
by
nybble41
5y ago
I for one am extremely glad that you in particular, and others of a similar mindset, had nothing at all to do with my pre-high-school education. It is truly unfortunate that not everyone else can say the same. The right time to start &quo
323.
▲
by
nybble41
5y ago
> US Bonds are considered basically the safest investment in the world… Unless you're a U.S. (net) taxpayer, in which case you're paying yourself back and any interest you might get from the bond is purely illusory. It's
324.
▲
by
nybble41
5y ago
> You'd be surprised how irrelevant wikipedia and googling are to elementary and middle school educations. You say that as if the official elementary- and middle-school curriculum are the only things worth looking up. There is much
325.
▲
by
nybble41
5y ago
TDD is about iterating on the implementation . If you don't know what your inputs and outputs will look like then you're still in the specification phase and not ready to write code. You can use TDD as part of an iterative specif
326.
▲
by
nybble41
5y ago
If you are changing interfaces then you are changing requirements (which pertain to those interfaces), which means you must change your tests. What you are describing is not refactoring : "In computer programming and software design,
327.
▲
by
nybble41
5y ago
Refactoring should not break your tests. You wrote them without knowing anything about the implementation, so how can they break when you change only the implementation and not the user interface, results, or side effects? (If you change
328.
▲
by
nybble41
5y ago
Yes, the point of TDD is to force you to think about what your requirements are—and how you will prove that they have been met—from the users' (and thus the tests') point of view before writing the code. If you want to take a more
329.
▲
by
nybble41
5y ago
Coinbase might, but there are plenty of other high-profile targets who are unlikely to perform any "taint analysis" on the contents of their wallet. Like I said, most wallet software doesn't even present UTxOs as distinct ent
330.
▲
by
nybble41
5y ago
> Programmer responsible argued till blue in the face that his code could not have a bug because references (&) cannot be null . Of course they can. It's undefined behavior merely to create a null reference in C++, whether or n
More ›