Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
K0nserv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
31.
▲
by
K0nserv
4mo ago
I don't doubt that's true for everyone who reads HN, but having seen the other side there are loads of people who don't make the effort and could've found their own answer in the knowledge base. I find LLM customer servi
32.
▲
by
K0nserv
4mo ago
Agree. I actually think we'll see a resurgence in art and graphic design as a consequence. At least for now people can spot AI generated artifacts and many immediately have a negative reaction to it. I don't read blog posts that f
33.
▲
by
K0nserv
4mo ago
I don't like AI customer service either, but having seen the other side it cuts down huge amounts of inbound queries (where the answer can usually be found in knowledge bases) and provides an answer faster than a human would. As long a
34.
▲
by
K0nserv
4mo ago
I think views on AI are not really views on AI, they are views on capitalism. People don't feel optimistic that AI's impact will benefit ordinary people because, even if works out, the benefit will accrue only to capital owners. T
35.
▲
by
K0nserv
4mo ago
Unironically parroting uniparty lines is moronic. Sure there are problems with the Democrats, but both-sideism is at this point being wilfully blind. As an external observer to US politics it would be great for the country to move past the
36.
▲
by
K0nserv
4mo ago
The title is a little weird. The problems outlined are mostly about the community and governance, not the language. To address at least one part of this: rewriting things in Rust. I think this is less about security and more about people wa
37.
▲
by
K0nserv
4mo ago
But remember, C is simple.
38.
▲
Rust for Linux Live
(corrode.dev)
2 points
by
K0nserv
5mo ago
|
0 comments
39.
▲
by
K0nserv
5mo ago
I'm also curious about that. One thing to keep in mind: the invariants you have to uphold in unsafe blocks are quite stringent. I expect that in some instances the Rust code has new UB due to this.
40.
▲
by
K0nserv
5mo ago
> If that was true, then I would expect followups to reduce UB and unsafe in general, or at least requiring a lifetime for caller-owned memory. It's been like a day since the merge, presumably such followups are coming.
41.
▲
by
K0nserv
5mo ago
Sure, but that's kind of orthogonal. Imagine doing this by hand I still think going like-for-like with the Zig, even if that means a lot of unsafe, is a good approach. But I suppose if you are already using LLMs it's more reasonab
42.
▲
by
K0nserv
5mo ago
It's not that weird to end up with this when translating C/Zig/C++ to Rust. A first pass can use unsafe and then when the code is in Rust you can work on reducing the unsafe. Trying to eliminate all unsafe as part of the rewr
43.
▲
by
K0nserv
5mo ago
It's not that strange. TURN has two main use cases: peer-to-peer when no viable direct path can be found and working around very strict firewalls. Based on the author's experience the first isn't relevant and the second isn&#
44.
▲
by
K0nserv
5mo ago
Realised all of these examples are for async, but they apply equally for sync.
45.
▲
by
K0nserv
5mo ago
This is a great question and there isn't a definitive answer provided in the sources I linked. Broadly I think there are three approaches: 1. For frequent and small CPU heavy tasks, just run them on the IO threads. As long as you don&#
46.
▲
by
K0nserv
5mo ago
I think you are correct, in so far that often N:M threading is overkill for the problem at hand. However, some IO bound problems truly do require it. I haven't kept up with the details, but AFAIK the fallout from Spectre and Meltdown a
47.
▲
by
K0nserv
5mo ago
There is work happening on keyword generics[0], which would let a function be generic over keywords like `async` and `const`. For now the best option to write code that wants to live in both worlds is sans-io. Thomas Eizinger at Fireguard h
48.
▲
by
K0nserv
5mo ago
Indeed, that's a much better formulation.
49.
▲
by
K0nserv
5mo ago
I built https://github.com/k0nserv/plid with Pgrx and had a great time. I did have to scale back some of the magic (dropping derive PostgresType etc), but even so the support pgrx provides is excellent. I also talked t
50.
▲
by
K0nserv
6mo ago
The US spends the most per capita[0] on healthcare in the world, all to receive a healthcare system that still requires lots of citizens to carry private insurance. I've never dug deep into why, but it sure is noteworthy. 0: https:&#x
51.
▲
by
K0nserv
8mo ago
There are a few problems with how Trump is going about this: 1. The tariffs are too broad, they don't target a single or a few industries. 2. Trump has gone back and forth many times on them, using them as negotiating leverage, not as
52.
▲
by
K0nserv
9mo ago
What does the US gain from taking Greenland that it doesn't already have? If the US does invade an ally to acquire territory I think Canadians should be worried. In any case, what the US gains is the wrong perspective. This is about Tr
53.
▲
by
K0nserv
9mo ago
> In c the callers isn’t choosing typically. The author of some library or api decides this for you. Tbf this applies to Rust too. If the author writes fn foo(bar: Box<dyn BarTrait>) they have forced the caller into dynamic
54.
▲
by
K0nserv
9mo ago
Yes, in part because the US outsourced a lot of their industry to China since. The US is still one of the principal per capita emitters, they need to cut emissions by two thirds to catch up with Europe and in half to reach China.
55.
▲
by
K0nserv
9mo ago
It's not really a refutation of my point about how building a good component library is hard, to suggest using another component library. Of course, if you use one it's easier, that was my entire point.
56.
▲
by
K0nserv
9mo ago
That's really interesting. Are you speaking from experience with websites where you know who authored them or from seeing code written by humans and Opus 4.5 respectively?
57.
▲
by
K0nserv
9mo ago
Oh no I'm very cynical about that.
58.
▲
by
K0nserv
9mo ago
Having worked on a design system previously I think most people, especially non-frontend developers, discount how hard something like that is to build. LLMs will build stuff that looks plausible but falls short in a bunch of ways (particula
59.
▲
by
K0nserv
9mo ago
Everything that's been said publicly is just pretence, just like Maduro's/Venezuela's supposed drug trafficking. This is about Trump being and old man in his waning days who wants to create a legacy. Those around him hav
60.
▲
by
K0nserv
9mo ago
While null-pointers are possibly under #1 it seems much more likely that you'd produce other kinds of invalid pointers(out of bounds, unaligned etc) than nullptr. The use of null pointers to signal absence and failure is surely the mos
More ›