Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dezgeg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
181.
▲
by
dezgeg
3y ago
Performance comparison of this code might not, however, as fgetc() based parsing is not efficient. (Each call takes a lock in the FILE object).
182.
▲
by
dezgeg
3y ago
Hard disagree, splitting to multiple repos has a heavy cost; biggest of them the pain if you ever need to commit something to both repos at same time. Splitting the codebase to multiple repos shouldn't be done lightly.
183.
▲
by
dezgeg
3y ago
How would that make a difference?
184.
▲
by
dezgeg
3y ago
Maybe you can do similar amount of feature/planned work as them then for the rest do off-the-record speeding up the compile times, or something else that could speed up the rest of the team.
185.
▲
by
dezgeg
3y ago
It's not any slower in the typical case where destination buffer is large enough to fit the source thing. And if that's not the case then we are most likely in a error case (either caller notices the truncation and decides to abor
186.
▲
by
dezgeg
3y ago
Not really, more that the implementation of sscanf() is stupid and calls strlen() even though implementing sscanf() that doesn't require that is perfectly possible.
187.
▲
by
dezgeg
3y ago
I hope not, as entire reason he went there was to punish the bankers for their role in the 2008 financial crisis ;) ( https://www.reddit.com/r/linux/comments/zzhd9/comment/c69cam... )
188.
▲
by
dezgeg
3y ago
Interesting; they are pretty common here, although ofter paired with a passive antenna for 3g/4g, like this: https://mt-tech.fi/wp-content/uploads/2020/05/image.png.webp
189.
▲
by
dezgeg
3y ago
Could you point to some examples of such breakage?
190.
▲
by
dezgeg
3y ago
That's how modern 4G/5G base station equipment works; with the antenna panel and electronics in one unit.
191.
▲
by
dezgeg
3y ago
Can relate, I've been very happy with my Moto G 5G Plus. No bloatware, and with its included rubber shell it even survived an one story fall without any damage.
192.
▲
by
dezgeg
3y ago
> I'm not sure if you can use the hardware designed to act as a host to act as a device, but it wouldn't surprise me. I don't how it is for PCIe, but for example USB is very asymmetric and host controllers generally cannot
193.
▲
by
dezgeg
3y ago
These kind of high speed interfaces aren't just something that one just bitbangs on some microcontroller. I think even the first step, ie. finding a RISC-V chip that has capability of acting as a PCIe device at all will be a challenge.
194.
▲
by
dezgeg
3y ago
No, they are not just a converter that exposes raw NAND to your PC. Rather they abstract away all the details of how painful raw NAND is to deal with into simple "read/write sectors" interface that all your normal filesystems
195.
▲
by
dezgeg
3y ago
For starters, I doubt that acting as a NVMe device is something you can do with a off the self "inexpensive RISC-V" with any kind of acceptable performance. A NVME engine would almost certainly be something that the flash controll
196.
▲
by
dezgeg
3y ago
Well, it's worth noting that Linux backward compatibility is not absolute guarantee, but rather "if feature is removed in a forest and nobody is around to hear it, then it's not a backward compatibility break". Eg. for i
197.
▲
by
dezgeg
3y ago
At least for 32-bit x86 I've run into such problems. The Intel Quark platform has such an old CPU core in it that normal Ubuntu binaries wouldn't work on it (even at the the platform was relevant), as it lacks conditional move ins
198.
▲
by
dezgeg
3y ago
> The solution was to tell nix to disregard the nix store, in order to force the local build. If this actually led to avx512 being enabled in the package, then that's a bug. Nix builds should not be dependant on the machine doing th
199.
▲
by
dezgeg
3y ago
Yep, can confirm this took me by surprise when working with chinese colleagues in our company. Eg. I would read someone's out-of-message saying "OoO, going to hospital today" and be freaking out. But then they would be just o
200.
▲
by
dezgeg
3y ago
Many kernel people really are stuck in their ways like that. They don't want to leave their Mutt (e-mail client) at any cost. I recall some are even to this day running using a text console (ie. no X11 or Wayland).
201.
▲
by
dezgeg
3y ago
Or it could be as simple as that the software update application on the device has been patched to re-add the malware after flashing the software update.
202.
▲
by
dezgeg
3y ago
Maybe in the early days of C, but with modern compilers doing stuff like keeping variables in only registers, inlining functions, stack cookies, merging non overlapping variables etc. that seems not really worth it. If you want to avoid acc
203.
▲
by
dezgeg
3y ago
I've met several people that seriously think that C89 is the peak of programming languages and that C99 just brings misfeatures (like, allowing variable declarations in middle of basic blocks according to them)
204.
▲
by
dezgeg
3y ago
The sad truth is the license of non-GPL Linux kernel modules is very rarely cared about nor enforced. There are ton of embedded devices that don't bother with the NVIDIA shim scheme but ship with straight proprietary .ko:s on the devic
205.
▲
by
dezgeg
3y ago
How can you ever really be sure that there is no way to change the code running on the hardware, either unintentionally via some exploit, or intentionally via a deliberate backdoor or a debugging interface enabled in production? As a practi
206.
▲
by
dezgeg
3y ago
Here's a demo running on just the drive: https://cdm.link/2021/07/freespin-is-a-demo-made-for-the-com...
207.
▲
by
dezgeg
3y ago
This is wrong; using floating point (or rather, the vector register set like XMM) is used for example for cryptography. It does have extra cost though (as kernel doesn't normally save FPU/vector regs).
208.
▲
by
dezgeg
3y ago
It's not quite just disabling compilation of code, but also disables some runtime checks (eg. "else if (iomap_use_buffer_heads(srcmap))" branches will be false at compile time and optimized out). But the difference is probabl
209.
▲
by
dezgeg
4y ago
But do you then get Wine that is capable of running 32-bit Windows binaries? Or can Wine do it nowadays without?
210.
▲
by
dezgeg
4y ago
In my experience they are very well supported. I think the old USB controller lacks some of the performance optimizations mainly. Not sure how fast the new board versions get support, though.
More ›