Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mappu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
331.
▲
by
mappu
4y ago
There's a TOCTTOU going from the filename to the file handle, but once you have a handle, - on Windows, another process deleting the file is prevented (unless you explicitly opted-in to cooperative FILE_SHARE_DELETE); and - on Linux, a
332.
▲
by
mappu
4y ago
Is your FIPS .dll/.so publicly available? It's surprisingly hard to get FIPS crypto in Golang on Windows.
333.
▲
by
mappu
4y ago
Paging u/TazeTSchnitzel - congratulations, what a phenomenal creation. Is this the same dynarmic from Citra/Yuzu?
334.
▲
by
mappu
4y ago
Just a theory: containerized backends gave developers much more freedom of choice to pick technologies that happen to work better with SQLite. Go and Rust work great with SQLite because all the concurrency is mediated within a single applic
335.
▲
by
mappu
4y ago
This is days later, sorry, but - you can't use an interface as a map key, so this shouldn't apply, right?
336.
▲
by
mappu
4y ago
Cgo is a real option here, or at least would be an interesting comparison. The function is likely called with large enough data to amortize the (few ns) overhead and it's certainly more maintainable. Another option is GOAMD64=v3 /
337.
▲
by
mappu
4y ago
See also this recent (Nov 2022) LWN article regarding the new oops limit: https://lwn.net/Articles/914878/
338.
▲
by
mappu
4y ago
Is this really the case? Can you link to anything or an example on go.dev/play/ ? I can find a mention of "cmp.Equal" having that behavior, but that's just a third-party package panic.
339.
▲
by
mappu
4y ago
This was fixed recently in Linux by Matthew Wilcox and others, in a way that can benefit all Linux filesystems. Folios of pages were added in 5.16, the page cache was converted to use folios in 5.17, and large-folios were in 5.18.
340.
▲
by
mappu
4y ago
It's not possible to fix the first one (to merge the ARC with the Linux page cache), because the necessary page cache internals are GPL-only.
341.
▲
by
mappu
4y ago
Btrfs RAID 5 is "fixed" as of kernel 6.2 - see https://www.phoronix.com/news/Linux-6.2-Btrfs-EXT4 Although I'd still suggest single-block-device-btrfs on mdadm instead. The per-file RAID in btrfs (/
342.
▲
by
mappu
4y ago
Happy birthday for tomorrow!
343.
▲
by
mappu
4y ago
A Steam client update is also ~100MB and it happens frequently (seems like every 1-4 weeks at usual pace).
344.
▲
by
mappu
4y ago
It's a sign of the times that there is only one 2022 phone officially supported.
345.
▲
by
mappu
4y ago
Thank you and sorry for detracting from the point of your very interesting article. I'm using Chromium 108 on Debian - i can see the scrollbar appear fine in Firefox 102.
346.
▲
by
mappu
4y ago
Sorry - if this is your website, could you please not hide the scrollbar? The CSS file has a comment This below keeps the regular scrollbar for scrolling the page, if present, because that one makes sense to be there. but it doesn't
347.
▲
by
mappu
4y ago
Most of the bracket lines are space-indented and most of the if lines are tab-indented - likely GitHub rendering with 8-space instead of 4-space tabs is making it look worse than intended,
348.
▲
by
mappu
4y ago
Samba outperforms ksmbd anyway - https://samba.plus/blog/detail/ksmbd-a-new-in-kernel-smb-ser... The main reason to use ksmbd is if you can't use GPLv3 Samba. Most PC SMB servers will still be using Samba ins
349.
▲
by
mappu
4y ago
> the only ones that transition are between those two genders? No, NB is considered trans too (regardless of AGAB).
350.
▲
by
mappu
4y ago
> And Id throw a boat load of money at defining a stable DE framework that resolved the kde gnome schism once and for all. Even with a boatload of money, how would you go about this? Write a shim lowest-common-demoninator API that can
351.
▲
by
mappu
4y ago
> I did a small benchmark and found for high concurrency write-only loads, the results of each goroutine writing directly vs using a mutex were basically the same. I'm interested to see your gist, but just to note this specific pa
352.
▲
by
mappu
4y ago
Most of Go dependencies these days come from your $GOPROXY, which by default (proxy.golang.org) is available over IPv6 just fine.
353.
▲
by
mappu
4y ago
The built-in one actually sleeps and polls to check if the write lock is free again. It's a disaster for high write throughput. https://sqlite.org/forum/info/00312b3d02bc0583 Sqlite's internal one has to
354.
▲
by
mappu
4y ago
> A benchmark performed on go 1.15 showed 60ns of overhead for calls into C This concern is a bit overblown, the Cgo boundary is heavier than an ordinary function call but still a zillion times faster than doing disk I/O on the da
355.
▲
by
mappu
4y ago
Go + SQLite user at $DAYJOB here. WAL is essential, and the next essential trick is to open a single db.Conn up-front and hide that behind a mutex for any transactions/queries that will write. All callers can pick this.db_rw or this.db
356.
▲
by
mappu
4y ago
Fraunhofer are doing this thing: https://en.wikipedia.org/wiki/Powerpaste
357.
▲
by
mappu
4y ago
I checked the zstd source and i'm surprised to see you're right - There's a little x86_64 assembly but I don't see a single SIMD instruction anywhere, and no intrinsics neither. Seems like brotli is the same. I assume zs
358.
▲
by
mappu
4y ago
Zstd's decoder is very very fast for what it does, what ideas do you have to improve it? It's unlikely to beat lzo family on decompression speed, but that's a different class of compressor entirely. And probably there are sti
359.
▲
by
mappu
4y ago
My understanding is that it's not possible to legally get a license for Windows in that case, as there's no SKU for it. Has that changed? Otherwise it's nonviable at $DAYJOB,
360.
▲
by
mappu
4y ago
Definitely look into Chinese technology here, they're much further along this curve. Not just ss but also xray/v2ray, cloak, goodbyedpi, trojan-gfw etc.
More ›