Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adwn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
271.
▲
by
adwn
3y ago
I'm not the OP, but for me it's the absolutely braindead design decisions around arrays, respectively the lack thereof. Arrays (or lists, vectors, sequences, whatever) are such a fundamental concept that not supporting them direct
272.
▲
by
adwn
3y ago
"Strictly necessary" is too strict a criterion. For me, ls without colors to distinguish between files and directories sucks ass, as would an ls which doesn't sort by name (also not "strictly necessary").
273.
▲
by
adwn
3y ago
> This idea is completely gone from the world of software engineering. Systems become overloaded with the implementation of every crappy idea under the sun -- if a PM in a fever dream can think of it, and an overworked dev can hack it t
274.
▲
by
adwn
3y ago
> In general, MPSC queues are super fast and there's no real reason to prefer a locked queue. There's one significant advantage that a locked vector or deque has over MPSC/MPMC queues: the consumers can dequeue all messa
275.
▲
Why the French Police are so Brutal [video]
(youtube.com)
3 points
by
adwn
3y ago
|
0 comments
276.
▲
by
adwn
3y ago
Well, you're 100% wrong: https://godbolt.org/z/en31xx9Yx clang optimizes this function to a single ret , optimizing away not just the memory access, but the call to malloc() as well. I does this (and is allowed
277.
▲
by
adwn
3y ago
Consider learning Rust instead, and use wgpu [1]. [1] https://github.com/gfx-rs/wgpu/
278.
▲
by
adwn
3y ago
> I find it easy enough to imagine a type of people that would not engage in such barbaric actions under any circumstances. None of the people in the back intend to cause injuries to the people in the front of the crowd, nor do they ev
279.
▲
by
adwn
3y ago
> [...] that people turn off their critical thinking abilities and value a commitment to some ideology more than being smart about things. That's not at all what is happening in a crowd crush situation. As explained in the video,
280.
▲
by
adwn
3y ago
We selected Qt as a cross-platform solution. The C++/Rust interface is the clunkiest and ugliest part of the application, and rather complex because some state is shared between several windows in the GUI and several threads in the bac
281.
▲
by
adwn
3y ago
For our client, we've developed a desktop application in Rust – with a thin GUI frontend in C++/Qt – to filter, process, and visualize sensor data streams (3D point cloud data from a Lidar). Each data stream was about 400-500 Mbit
282.
▲
by
adwn
3y ago
> But to claim that "hooliganism", "youth culture", and "religious fanaticism" have nothing to do with crowd crushes seems absurd [...] Whenever you believe to have identified the root causes for an event,
283.
▲
by
adwn
3y ago
> [0] https://archive.is/oaUF1 - NyTimes story How many "Select all squares with..." captchas do I have to solve to access the site? I closed the tab on the fourth iteration.
284.
▲
by
adwn
3y ago
Okay, great, and how is that a "luxury" that's available to the "average American"?
285.
▲
by
adwn
3y ago
> * And the average American doesn’t know that things they take fir granted are luxuries even to Western Europeans.* Such as? Name three examples, please. "smartphones and cars" doesn't cut it, those are pretty common even
286.
▲
by
adwn
3y ago
That's not a good argument, because it proves too much [1]. You could use the same reasoning to argue against pretty much any transaction: * Don't buy bread, because someone who knows much more about bread (the baker) would mu
287.
▲
by
adwn
3y ago
I suspect the reason for this is that even great engineers don't scale indefinitely: At some point, if you want to increase output, you have to delegate some part of your work. To increase output even further, you have to delegate even
288.
▲
by
adwn
3y ago
If it was much higher than what they ultimately spent on reproducing the product, then yes, "insanely high amount" might actually be an appropriate assessment.
289.
▲
by
adwn
3y ago
What happens in the following case? const foo: Maybe<boolean> = false; It seems to me that your code wouldn't behave they way you'd expect.
290.
▲
by
adwn
3y ago
> The thing about optimizing code is, you don't know where your hot paths are until you profile your code. Absolutely! So, you profile your program, and it turns out that 95% of the runtime is caused by malloc/free in tight l
291.
▲
by
adwn
3y ago
Don't let Perfect be the enemy of Good. The quality of encapsulation you can achieve in C++ is miles ahead of that of C, even if it isn't all that could ever be.
292.
▲
by
adwn
3y ago
If someone doesn't recognize when and how their tools limit the quality of their work, they can't be good craftsmen. There might still be good reasons to use those tools (e.g., no better alternatives, or an existing ecosystem), bu
293.
▲
by
adwn
3y ago
> The fact that C can do this is an example of how it's not limited. No, C is limited because it's mutually exclusive: either encapsulation, or zero overhead by-value passing. Other languages, like C++ or Rust, allow bot
294.
▲
by
adwn
3y ago
> Hell, they cannot even malloc() their own StringBuilder instance, because even the size of the StringBuilder is hidden. They have to use creation and deletion functions provided in the implementation as specified in the interface. An
295.
▲
by
adwn
3y ago
I think you're mixing up economic growth and population growth . Those are not the same, although they're not completely independent of each other.
296.
▲
by
adwn
3y ago
> Casting an integer to a pointer is implementation defined, not UB. You're right, that was a bad example. Here's a better one: int x, y; ptrdiff_t diff = &x - &y; This is Undefined Behavior, because &am
297.
▲
by
adwn
3y ago
1. If the CPU lacks an MMU and the address falls into an accessible address space, it won't segfault. 2. If the CPU has an MMU, it won't segfault if the address is mapped to an accessible region of memory. 3. This is besides the
298.
▲
by
adwn
3y ago
> the C representation closely matches what is actually happening It really doesn't, though. Although your CPU might present system RAM as one contiguous array of bytes to your program, the C compiler follows different rules – see
299.
▲
SERV: A bit-serial RISC-V core
(github.com)
9 points
by
adwn
3y ago
|
0 comments
300.
▲
by
adwn
3y ago
> It is the first fpga really designed with emulation in focus. Not really. In each generation of devices, Xilinx had one focused on emulation for while now: huge number of LUTs, huge number of general purpose IOs, relatively few DSP e
More ›