Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adwn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
451.
▲
by
adwn
4y ago
> logic doesn't break in the same way source code breaks Uhh, sure it does. Any non-trivial digital hardware design, be it for an ASIC or an FPGA, will contain a lot of state machines interacting with each other, sometimes asynchr
452.
▲
by
adwn
4y ago
> The use of std::mutex (especially in frequently accessed structures) will bring your application to a grinding halt. Better solutions abound with concurrent sequential processes, or the Actor architecture. I might be misunderstanding
453.
▲
by
adwn
4y ago
Wtf. Those are not even in the same ballpark. One of them is showing support for people that want to live a "non-standard" lifestyle, the other is showing support for a dictatorial regime that started a world war and murdered mill
454.
▲
by
adwn
4y ago
Just a heads up: I think you replied to a post generated by some ML model. Check out that account's other posts, and you'll see what I mean.
455.
▲
by
adwn
4y ago
You're misunderstanding the purpose of an arena allocator: It's only for relatively short-lived objects which are all released at once; there's (typically) no transfer of objects to a new arena. This isn't as uncommon as
456.
▲
by
adwn
4y ago
> If you're going to do that, would you not be better saving all that time and code bloat (it's code you wrote that doesn't contribute to solving your problem) by just using a garbage collector from the outset? An arena-
457.
▲
by
adwn
4y ago
> The CIA has entered the chat. Please leave lazy, youtube-comments-style memes out of HN.
458.
▲
by
adwn
4y ago
> Either they stop this now or it's all over anyway. This is reckless - we need to start a path of de-escalation - give Putin an offramp. Get to back to calm waters. Putin has demonstrated again and again that he will interpret an
459.
▲
by
adwn
4y ago
> Our brief experimentation with Qt Widgets, on the other hand, revealed a shocking level of dysfunction in basic UI-layout implementation, in what is supposed to be a very mature UI toolkit. That matches my experience. Getting Qt Widg
460.
▲
by
adwn
4y ago
I really dislike C and C++, but I think your comment is needlessly hostile and insulting to C and C++ developers, and it doesn't add anything of value to this discussion. Please consider rewriting or deleting it.
461.
▲
by
adwn
4y ago
> There is no way to avoid most of things you listed. Oh yes, there definitely is: There are no function calls, nested expressions, or malloc in assembly – those are abstractions provided by the language and translated by the compile
462.
▲
by
adwn
4y ago
> Yes, it's a great feeling when your code fits like a jigsaw puzzle, but also more complexity = more code being executed. Behind that RAII, behind that "operator=" and that "p = new Struct", etc. there might be
463.
▲
by
adwn
4y ago
I don't see why that would require making all code unsafe? You might want to take a look at mio's source code [1], which uses epoll on Linux [2], and which encapsulates epoll in a safe way. [1] https://github.com/t
464.
▲
by
adwn
4y ago
You think negative numbers in a signed type are a 1-in-a-1000 case, really? Silently casting signed integers to unsigned is a terrible idea, and a recipe for bugs. And completely unnecessary to boot, because you could promote Int8 to Int1
465.
▲
by
adwn
5y ago
> You can load code written in different languages into different address spaces, you know. That's basically what separate processes are, so what's your point? > Calling into a native library is tough in JS because there&
466.
▲
by
adwn
5y ago
> How far would you extrapolate this? Where would you draw the line? To where it makes sense from an engineering perspective. Yes, that's what makes good engineering: selecting a pragmatic point between two extremes. > Yet, wh
467.
▲
by
adwn
5y ago
Isolating failures to small, restartable components, instead of letting them spread to the entire system, is a bug in your eyes?! Do you think rust-analyzer wouldn't ever crash if it were loaded and tightly integrated into the address
468.
▲
by
adwn
5y ago
I'm not sure I understand. Are you saying that compilers/analyzers should be written in the same language in which the IDE is written? If not, then how are you going to benefit from an "in-process type safe API" and thos
469.
▲
by
adwn
5y ago
The concept of a "plugin" isn't restricted to dynamically linking shared libraries, but rather defined by the concept of having an independent host application, which can load additional functionality at runtime. It doesn
470.
▲
by
adwn
5y ago
> The reason VSCode invented LSP is that different programming languages don't have a reliable way to intercommunicate (other than as separate processes communicating over a socket). The processes-communicating-via-IPC architectur
471.
▲
by
adwn
5y ago
Huh?! Have you seen the security detail of the US president? They're very afraid of their citizens – or at least of the occasional nutjob. And rightly so, as evidenced by the various assassination attempts in the last decades. >
472.
▲
by
adwn
5y ago
> He is well away that most programmers get paid at least median income, and often much more Yes, by working on unfree software , an occupation which he uncompromisingly condemns. Programmers working exclusively on free software wou
473.
▲
by
adwn
5y ago
> Twitter is where people who are or will be powerful, influential, or impactful get their information, form their opinions, and often debate really important topics. Anecdotal counter point: I'll be powerful and influential one d
474.
▲
by
adwn
5y ago
Signal propagation latency is only a problem if both end points need to be fully synchronous, which they don't have to be if they're independent units. Even the cores within single-chip multi-core CPUs aren't synchronous to e
475.
▲
by
adwn
5y ago
> Why is Rust preferred though? Is it "fearless concurrency" Yes. > a more modern stdlib Yes. > is it Rust's tooling with `cargo` rather the shitty tool-scape of C++'s make/cmake/meson and vcpkg&#
476.
▲
by
adwn
5y ago
> That burden exists if you're calling into it from C, it's just implicit. That point is absolutely crucial. It's not just implicit, it's also often undocumented. Recently, I tried to call LLVM's ORC2 JIT funct
477.
▲
by
adwn
5y ago
> (unlike e.g. free healthcare, space exploration, etc. which are a net win, economically) I'm a big fan of space exploration, but I seriously doubt that it's an economic net win.
478.
▲
by
adwn
5y ago
In another comment you're asking about vim support. So let me get this straight: You're using vim, yet you're unable to resolve the error message = note: /usr/bin/ld: cannot find Scrt1.o: No such file or
479.
▲
by
adwn
5y ago
> hard pass Why? You're willing to run some random open source project, but you're not willing to run the official Rust installation script?
480.
▲
by
adwn
5y ago
Although you're technically correct [1], your objection is a bit tired – in particular because in this context, "customer" clearly meant "target audience for a product". Building something that attracts millions of
More ›