HackerTrans
トップ新着トレンドコメント過去質問紹介求人

veddan

no profile record

投稿

An io_uring-based user-space block driver

lwn.net
102 ポイント·投稿者 veddan·4 年前·38 コメント

コメント

veddan
·3 か月前·議論
I think it should be possible to get rid of the Option tag without introducing any unsafe code by changing index in Gc from u32 to std::num::NonZero<u32>.
veddan
·7 か月前·議論
For LLMs, I just pulled the latest llama.cpp and built it. Haven't had any issues with it. This was quite recently though, things used be a lot worse as I understand it.
veddan
·3 年前·議論
In git a branch is a name that points to a commit. When you commit to a branch, you create a new commit and then update the branch to point to the new commit.
veddan
·3 年前·議論
I think you can do this with

  <meta name="googlebot-news" content="nosnippet">
veddan
·3 年前·議論
There's also JSON_ARRAYAGG.

https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions....
veddan
·3 年前·議論
I'm a bit behind on modern PostgreSQL so I might be wrong, but I believe MySQL has better support for what they call "online DDL" (modifying tables without blocking simultaneous queries).

Last time I checked, MySQL supported it in more cases. MySQL can also be explicit about it via "lock assertions":

  ALTER TABLE ..., LOCK=NONE;
will give an error if the requested operation can't be performed while still allowing concurrent reads and writes to the table (if you're fine with preventing writes you can use LOCK=SHARED).

The LOCK clause isn't just an assertion and can actually affect how MySQL performs the operation, but I tend to think of it as asserting "this won't cause downtime by locking this multi billion-row table while it spends an hour rewriting it".
veddan
·4 年前·議論
We actually had an accidental back button hijack at a place I used to work at. It was an SPA, where if you navigated to / it would check if you were logged in. If so, you would be redirected (client-side) to /home, otherwise you were sent to /login. This was done with pushState() instead of replaceState(), so going back from /home would take you to / which would immediately see that you were logged in and send you back to /home.
veddan
·7 年前·議論
We recently got something similar in Sweden too: https://www.spelpaus.se/

It's a blocklist that all licensed gambling companies in Sweden are required to respect. You add yourself to the list for a certain amount of time, and can't unblock yourself until that time has expired.