Better HN
topnewbestaskshowjobs
Log inSign up

creata

2,965 karma · joined Sep 19, 2020 (6y ago) · 1,349 submissions

only a fool would take anything posted here as fact
Submissions

comment 1mo ago · link · parent

> That works, but it's not particularly intuitive.

It looks fine? The code fails because it dereferences the MutexGuard twice, so you instead dereference it once. It's hard to imagine that this contributes much to "Rust's difficult learning curve".

Rather, introducing even more potential implicitness on every `.` seems like it would make the language harder to learn.

Is there an example that really benefits from these features?

comment 1mo ago · link · parent

> There are Wikipedia pages which are flat out wrong (by any common definition of the term) and yet the editors won't allow any corrections because the primary sources are also wrong.

Not saying that doesn't happen, but do you have an example of such a page?

comment 1mo ago · link · parent

> Such citations could be easily gamed (if you cite a particular change)

What do you mean by "gamed"?

comment 1mo ago · link · parent

What makes you think that humans will be able to keep up with all that knowledge in the future?

comment 1mo ago · link · parent

I don't know much about the Fediverse, but if you can easily move your account or data from one tyrant to another (and it looks like you can) then that is a huge improvement.

comment 1mo ago · link · parent

To be fair, Y Combinator is partly responsible for some companies that are almost as bad as Amazon is toward their workers, so yipinwong's point kind of hits anyway.

comment 1mo ago · link · parent

> as these practices antagonise paying customers and quality employees and will lose money to the company in the long run

I've been hearing this for too many years, and so far it hasn't been true.

Maybe next year some of Amazon's customers will somehow become willing to pay more and get less convenience at other retailers, but I wouldn't bet on it.

comment 1mo ago · link · parent

Are there any public examples of contracts in use, or of the Bloomberg library that contracts were based on?

comment 1mo ago · link · parent

> Human code is slop.

I'm not saying you have to be grateful to the millions of people whose work the AI you use was trained on, but why shit on them...

comment 1mo ago · link · parent

I think it's better that some people have strong opinions. For example, the world would suck if everyone was rms, but he has nevertheless had a positive impact on the world imo.

comment 1mo ago · link · parent

It'll work in reality, but I don't think C makes any guarantees about how the pointer p is represented in (uintptr_t)p, only that a roundtrip pointer -> uintptr_t -> pointer will give back p. So (as far as I know) you can't assume that the offset needed to make (uintptr_t)p a multiple of `align` is the same as the offset needed to align p to `align`.

comment 1mo ago · link · parent

Or you can just use alignof(max_align_t), and your pointers will have the same alignment guarantees as malloc.

And I might be wrong, but even if you do accept a required alignment `align`, I think it's impossible in portable C to align a pointer `p` to it, unless you assume something not-strictly-portable about `(uintptr_t)p`, or `align` is less than some predetermined alignment that you used to allocate the char array.

comment 1mo ago · link · parent

In Scott Alexander's case, it's because he's into ideas (e.g., eugenics) that most people find reprehensible, so he has to couch them in a lot of bullshit to make them more palatable, and to give himself some credibility.

https://rationalwiki.org/wiki/Scott_Alexander

comment 1mo ago · link · parent

> which, admittedly is a mess

Why is the current system a mess?

comment 1mo ago · link · parent

Off-topic*: Can I even visit untrusted websites anymore? Firefox's security is probably far worse than Chrome's, and escaping the browser sandbox now seems accessible to way too many people.

* Kind of on-topic given the last sentence of the article...

comment 1mo ago · link · parent

3 + 2 is just 5. But people will sometimes write 3i + 2j for the point or vector (3, 2), where i is the vector (1, 0) and j is the vector (0, 1).

comment 1mo ago · link · parent

> Why do you sum up coordinates?

People use sums to denote vector components, too. It's common to see ai + bj + ck (pretend there are hats on i, j, and k) to mean the vector [a b c].

So with complex numbers, you can think of it as a vector aj + bi where j and i are basis vectors, but we call j "1", because complex numbers have a notion of multiplication, and in that notion, j acts like 1, in that zj = jz = z for any complex number z.

Nothing bad happens if you write all complex numbers a + bi as vectors or tuples [a b]. It's just less convenient.

comment 1mo ago · link · parent

For something so militarily useful? When the Soviet Union was still seen as a threat to the US? When it was already so expensive anyway? I guess it's possible, but it's hard to believe they'd just give up like that.

comment 1mo ago · link · parent

And people's love of AI is also surfacing their dislike of pure mathematicians. Plenty of comments along the lines of "turns out mathematicians were just idiot savants solving puzzles".

comment 1mo ago · link · parent

I've always wondered - if special and general relativity weren't known, could the GPS engineers have just measured the error and empirically accounted for it? I don't know relativity or GPS or engineering well enough to answer.

comment 1mo ago · link · parent

> we're hierarchical monkeys at the core

How could you ever think otherwise?

comment 1mo ago · link · parent

Fwiw the guy you're replying to is trying to replicate 1:1 the entire Adobe creative suite (and now Microsoft Office?) with the help of AI.

comment 1mo ago · link · parent

Why would there be a rug pull? Open models do seem to be giving companies like OpenAI and Anthropic some decent-ish competition, so if they try to increase prices too much then people can just leave them.

comment 1mo ago · link · parent

This "gap in understanding" doesn't seem like a situation that would last for very long, because AI companies have every incentive to market the shit out of the capabilities of their models to the public. And yet they don't - why?

comment 1mo ago · link · parent

Or they tell themselves the usual stuff - if they didn't do it then someone else would, technological progress is inevitable, etc.

comment 1mo ago · link · parent

> but that's not the case for concurrency

Is that the case because it's easy to avoid concurrency issues, or because people are afraid of even trying to introduce concurrency into their program due to those issues? Because if it's the latter, then trying to support some amount of safe concurrency makes sense.

12345
45