Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bcrl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
511.
▲
by
bcrl
3y ago
Wrong. Use something like aio or io_uring to submit 4 asynchronous writes in a single system call and you'll get way better performance. The kernel has all kinds of infrastructure that tries to coalesce and batch things that the writ
512.
▲
by
bcrl
3y ago
I stand by my position. The problem with fsync() is the question of when and where do errors get reported. If code checks errors on completion of each write it becomes significantly easier to know what write has failed. The error reporti
513.
▲
by
bcrl
3y ago
Using fsync() to flush data to disk is, generally speaking, the wrong way to do things. fsync() is like using a piece of wood to hammer a nail into the ground. It'll work under very limited circumstances, but will fail horribly to do
514.
▲
by
bcrl
3y ago
Ads are pretty much ephemeral online. Want to go back to an ad you saw 30 seconds ago on the previous page you visited? Oops, gone! Until this changes there will be no accountability on the quality of ads. I detest that the state of the
515.
▲
by
bcrl
3y ago
Context switches between processes are bad, but going into the kernel for an irq using things like aio and io_uring which can populate events into a result ring buffer doesn't add a ridiculous amount of overhead. Optane DIMMs avoided
516.
▲
by
bcrl
3y ago
Anecdotes are not real world statistics. Most people wouldn't identify a flipped bit of memory that caused a web page to glitch in their browser as a hardware problem. They'll just write it off as general enshittification of the
517.
▲
by
bcrl
3y ago
Density isn't the only issue - power usage is also a contributing factor. Because SRAM uses more transistors per bit, leakage of the transistors in large arrays is a significant source of power draw. In DRAM leakage of the single tra
518.
▲
by
bcrl
3y ago
This is why RCU, aka Read-Copy-Update, exists. RCU avoids the expensive synchronization part by delaying the release of the older version of the data structure until a point at which all CPUs are guaranteed to see the new version of the
519.
▲
by
bcrl
3y ago
Consumer drives usually exclude wear out in their warranties making the number of years pretty much irrelevant. What is does show is that vendors are more confidence in their FTLs and hardware nowadays compared to the first high volume SSD
520.
▲
by
bcrl
3y ago
Short stroking data doesn't writes within a page. It gives the FTL more time to shuffle data around in pages when garbage collecting and erasing pages. Erasing a page tends to take milliseconds of time vs microseconds of time for rea
521.
▲
by
bcrl
3y ago
I am well aware that flash is overprovisioned. One consumer SSDs the overprovisioning is quite small (maybe 5-10%), so short stroking the SSD will have a much greater effect than on enterprise SSDs. It also has the nice side effect of giv
522.
▲
by
bcrl
3y ago
Or bcachefs...
523.
▲
by
bcrl
3y ago
Short stroking SSDs is a commonly used trick in the toolbag of wise sysadmins for dealing with this kind of workload.
524.
▲
by
bcrl
3y ago
SMR and zoned storage offer compete and total utter crap performance in the real world. They have all the glass jaws of early flash firmware (garbage collection that took seconds to complete during which time no additional I/Os comple
525.
▲
by
bcrl
3y ago
It has nothing to do with fragmentation, but with wasted space. When ext2 was originally developed in the 1990s, the typical block size employed was 1KB as storage was orders of magnitude smaller, so wasting half a block per file on a flop
526.
▲
by
bcrl
3y ago
I'm explaining my reason for not running ad blockers in general. Every month I see interesting content that people have spend hours or days or weeks to produce, and the main way I have of supporting them is to let the ads on their sit
527.
▲
by
bcrl
3y ago
Not all of it, but some of it does. That's better than nothing.
528.
▲
by
bcrl
3y ago
And I do occassionally, but the vast majority of content I stumble upon in a given month doesn't have a Patreon option for support. Patreon is great for what it does, but it is most definitely not a low friction option to support rand
529.
▲
by
bcrl
3y ago
Whitelisting creates friction. Maybe if there's a button in the browser to do that for a site / page it would work, but there really should be a low friction way of supporting content that works across the vast majority of sites
530.
▲
by
bcrl
3y ago
I can't subscribe to Pateron for every single website that I visit. It's just not practical. I'd be more than happy to shell out $100 per month to an aggregator if they could spread it out amongst 50+ websites that I visit
531.
▲
by
bcrl
3y ago
Some of us believe that content creators should get paid. It's a pity that ads are the lowest friction method easily available to the general public to accomplish this.
532.
▲
by
bcrl
3y ago
That gaslighted me pretty fast. It asked me what I was doing; I said I was researching a CRTC proceeding, 2023-56. It then told me it didn't exist, asked if I was sure, then argued that I must be mistaken. Not impressed.
533.
▲
by
bcrl
3y ago
There was a time when that would work, but more rental properties won't help if all the landlords are colluding^H^H^H^H^H^H^H^H^Husing cloud software to manage their rental properties that use "data" to set prices. Have a li
534.
▲
by
bcrl
4y ago
Are self driving cars going to be the same as all the big platforms? If you're a platform, making it impossible to contact a human when your account has been wrongfully disabled / blacklisted is pretty much the de facto standard
535.
▲
by
bcrl
4y ago
I truly wonder how Intel is going to survive all the government subsidies to build new fabs they have signed up for. Fabs cost money to operate and require volume to generate profit. Intel does not have a track record of becoming successf
536.
▲
by
bcrl
4y ago
MOSH already exists, and it is a proper ssh-like protocol over UDP that takes advantage of the properties of UDP. It's great for use when traveling and being forced to use horrible high latency wireless connections.
537.
▲
by
bcrl
4y ago
Personally, it's par for the course. $largeplatformcompany thinks they don't have to accomodate corner cases, and the world allows them to continue doing so. Sad, but true. Nothing will change on this front until there is suffi
538.
▲
by
bcrl
4y ago
Trust of people you know is still a thing. The point of the article is that you can no longer identify the people you actually trust through any electronically mediated interaction as images, voice and video can mimic your closest loved on
539.
▲
by
bcrl
4y ago
I found it mind boggling when I went to Colorado to visit family and saw fields being irrigated to produce hay. The inefficiency of this compared to harvesting hay from areas where there is enough natural rainfall to support the growth of
540.
▲
by
bcrl
4y ago
Of course the dominant 2FA methods will be those that are easily forged, so the general public will still get swindled (I'm looking at you banks that are insisting on using SMS to "verify" my identity). It's as if nobod
More ›