Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jcranmer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
751.
▲
by
jcranmer
1y ago
> RISC-V is newer but my understanding is it's still based around ARM, just without royalties (and thus isn't bringing many new ideas to the table per say) RISC-V is the fifth version of a series of academic chip designs at Ber
752.
▲
by
jcranmer
1y ago
> Many of these people were arrested because they had entered the country illegally and then sent to foreign prisons. Actually, most of the illegals being arrested didn't enter the country illegally; they legally entered the country
753.
▲
by
jcranmer
1y ago
I don't think the order creates any new violations of privacy law. OpenAI's ability to retain the data and give it to third parties would have been the violation in the first place.
754.
▲
by
jcranmer
1y ago
I was a TA for an intro to assembly language course, which means I got my office hours full of all of the students who struggled with assembly language and had to work with them one-on-one to get them over their roadblocks to pass the class
755.
▲
by
jcranmer
1y ago
The primitives of control flow in programming languages are sequencing, if, while, for, switch, return, and "early return" (goto restricted to exit a containing block). We might compile these into a form that represents everything
756.
▲
by
jcranmer
1y ago
> But now your locks are only one byte in size, That's not a very useful property, though. Because inter-core memory works on cache-line granularities, packing more than one lock in a cache line is a Bad Idea™. Potentially it allows
757.
▲
by
jcranmer
1y ago
The first one doesn't seem to actually give me the script, so I can't test it. The second one didn't work for me without some code modification (specifically, the "count code blocks" didn't work), but the resul
758.
▲
by
jcranmer
1y ago
Most of my day job is worrying about the correctness of compiler optimizations. LLMs frequently can't even accurately summarize the language manual (especially on the level of detail I need).
759.
▲
by
jcranmer
1y ago
> I think part of that comes from most people using Google as the benchmark, which has been hot garbage for years now. Honestly, I think part of the decline of Google Search is because it's trying to increase the amount of AI in se
760.
▲
by
jcranmer
1y ago
There is no solution, much less one that is portable across different Unixen. The core problem is that, because of the ability of filesystems to effectively contain other filesystems within them, the number of bits to uniquely identify a fi
761.
▲
by
jcranmer
1y ago
To get the right answers for accounting, all you have to do is pay attention to how you're doing rounding, which is no harder for floating-point than it is for fixed-point. Actually, it might be slightly easier for floating-point, sinc
762.
▲
by
jcranmer
1y ago
For starters, it's giving up a lot of performance, since fixed-point isn't accelerated by hardware like floating-point is.
763.
▲
by
jcranmer
1y ago
I've found fear of the use of floating-point in finance to be a good litmus test for how knowledgeable people are about floating-point. Because as far as I can tell, finance people almost exclusively uses (binary) floating-point [1], w
764.
▲
by
jcranmer
1y ago
Floating-point is completely commutative (ignoring NaN payloads). It's the associativity law that it fails to uphold.
765.
▲
by
jcranmer
1y ago
A double-precision float has ~16 decimal digits of precision. Which means as long as your bank account is less than a quadrillion dollars, it can accurately store the balance to the nearest cent.
766.
▲
by
jcranmer
1y ago
The article mentions this briefly, but Tunisia just wasn't as important to the French as Algeria was. To France, Algeria (at least the populated northern coast of it) wasn't a colony, it was Metropolitan France --it received full
767.
▲
by
jcranmer
1y ago
> Traditoinally you split the farm when the sons (it need not be sons, but sexism generally comes in somehow as someone needs to leave home for genetic diverstiy reasons and the entire culture needs to follow the pattern in general so le
768.
▲
by
jcranmer
1y ago
> that won't stop you from paying for lawyers for the firm suing you. Note that in the US, the usual rule does not allow for shifting attorney's fees to the loser.
769.
▲
by
jcranmer
1y ago
A business tends to break its components down into different units or departments, and then (from a financial perspective) largely boils down those units into "how much money do you spend" and "how much money did you bring in
770.
▲
by
jcranmer
1y ago
Pointer provenance is UB in the C/C++ sense, although it's one that largely lurks in the implementation-defined behavior of "integer/pointer casts are implementation-defined." The closest you're going to find
771.
▲
by
jcranmer
1y ago
Plenty of things! The resulting pointer may not be pointing to an object that is currently live, for example. It may not even be pointing to an object that makes any sense in the language's object model. It might be pointing to a retur
772.
▲
by
jcranmer
1y ago
> Some people simply aren't comfortable with it. Some people--especially when those people are closest to the workings of the operational semantics--not being comfortable is a sign that it is in fact harder than it looks. The proble
773.
▲
by
jcranmer
1y ago
How would you implement integer-to-pointer conversions without UB?
774.
▲
by
jcranmer
1y ago
This is already discussed for Rust: https://github.com/rust-lang/rfcs/pull/3605 . TL;DR: it's not as easy as it looks to just add "freeze."
775.
▲
by
jcranmer
1y ago
The basic problem with uninitialized buffers is that they effectively require write-only references to exist, and Rust's type system doesn't have (and doesn't easily support) write-only references, only read-only and read-wri
776.
▲
by
jcranmer
1y ago
Given the ample reporting of Russian speakers in places like Odesa switching to speaking in Ukrainian as a result of the 2022 invasion to distance themselves from Russia, or the difficulty the Russian occupiers of Ukraine has had in finding
777.
▲
by
jcranmer
1y ago
Gauge differences less than ~25mm are considered interoperable to some degree. At a 4mm gauge difference, that's basically less than the tolerance for even the most demanding high-speed track.
778.
▲
by
jcranmer
1y ago
> What you're really saying here, is that Russians are fundamentally different people than you, because they fall for any dumb propaganda, whereas you don't. No, I don't read that at all. There's plenty of Russian pro
779.
▲
by
jcranmer
1y ago
One of the most useful functions of a good manager is to act as a shield for their team from upper management firestorms. That's a role that I think AI is particularly unsuited for, given their tendency to be obsequious. As a more gene
780.
▲
by
jcranmer
1y ago
I don't think it's so much AI that is screwing up the education system as it is the "STEM über alles" crowd doing so. They've spent decades effectively telling people that it's the STEM fields that matter most,
More ›