HNHacker News
TopNewBestAskShowJobs

lrossi

1,124 karma · joined November 14, 2020

submissionscomments
lrossi··on An Improved Thread with C++20
A little disappointing. I was hoping to see lightweight thread behavior or other lessons learned from Go.

The ability to pause a thread from outside is interesting, but it doesn’t seem very useful in general.

It also comes with risks. What if it’s holding a lock? That could cause a performance/latency disaster.

lrossi··on An Improved Thread with C++20
It’s terse, but sounds fine to me.

> Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith.

https://news.ycombinator.com/newsguidelines.html

lrossi··on Why I Built Litestream
> Use application-level locking primitives, rather than relying on the database for purposes of getting consistent output from things like LastInsertRowId

You mean for generating unique primary keys? Why would last insert row id be slow?

> and in cases where transactional scopes are required

Could you elaborate on what you mean by this?

lrossi··on Why I Built Litestream
This blog post gives a nice example of how that could be implemented:

https://levlaz.org/sqlite-db-migrations-with-pragma-user_ver...

lrossi··on Why I Built Litestream
That’s nice. But I didn’t really take it literally.

Do you have some benchmark results by any chance? Although it’s a bit of a can of worms, and I would understand if you didn’t want to get into it at this time.

lrossi··on Why I Built Litestream
The negative value in the cache size pragma seems a mistake, but it isn’t. Negative values are used to specify a cache size that is a multiple of the page size (more or less) and the sign is discarded.

Not a great choice of API IMHO, but it’s a database, I’ve seen much worse.

https://www.sqlite.org/pragma.html#pragma_cache_size

lrossi··on Podman: A Daemonless Container Engine
Upside: At least they used a different name.

On other occasions, they just hijack the name. Like they did with dstat.

lrossi··on Podman: A Daemonless Container Engine
Indeed. After 30 years of Linux, we should have got better at naming things.
lrossi··on Can’t Find an N95 Mask? This Company Has 30M That It Can’t Sell
> Another obstacle comes from companies like Facebook and Google, which banned the sale and advertising of N95 masks

If this is true, these companies are responsible for thousands of deaths, and should be prosecuted.

lrossi··on Barcode scanner app on Google Play infects 10M users with one update
What you describe is actually worse than the mafia. They would offer protection to some extent against third party rip-off.
lrossi··on SpaceX SN9 Explodes on Landing
You could also call this TDD.
lrossi··on Even Google doesnt want to make games for Stadia anymore
Potential. The gaming market is very profitable since the pandemic started.
lrossi··on Proprietary Software Is Often Malware
> a superior UX to Adobe

I have a couple of years of experience working with that, and I strongly disagree.

It’s also quite buggy. I’ve hit crashes several times while working with large drawings.

There are better examples of desktop OSS that beat proprietary ones: Blender, vlc, ffmpeg+Handbrake, Firefox, 7zip.

lrossi··on I'm tired of this anti-Wayland horseshit
> So my new approach is “fuck you”. None of the Wayland detractors have a clue.

Nowadays I think even Microsoft is more friendly with its users than Linux desktop developers.

lrossi··on Show HN: A usable eBook reader inside a browser (azw3, mobi, ePub, pdf)
On iPad, it’s impossible to see the bottom of the page. It scrolls back up by itself. There’s a blink as well when it happens.

Also, please block double tap/triple tap. They trigger zoom in, then it’s impossible to zoom out.

lrossi··on Website Fingerprinting on Early QUIC Traffic
That’s exactly how I read it as well!
lrossi··on Most of the time, you don’t really need another MOOC
Reddit is overly moderated, to the point that many communities do not seem friendly at all. The programming ones are a mixed bag. But others are worse. I was browsing recently a medical subreddit which was a support forum for a certain class of diseases, and people were using codewords to refer to banned names of various medical problems, to avoid having their posts deleted. It was ridiculous.

For programming/tech related topics, I no longer use reddit these days, instead just read HN and some blogs. The community is nicer here.

lrossi··on Automating my job with GPT-3
Neither. The programmers will still have jobs to debug the apps as they are not handling correctly 1% of the inputs. The managers will come up with all the necessary processes to maintain oversight of the new activities and keep their jobs.
lrossi··on Automating my job with GPT-3
Sorry to hear about your startup.

Translating between natural language and SQL is a reasonable idea. I was thinking about this as well, but I didn’t try anything as I don’t have an ML background. I spent some time looking at the SQL side of the problem, and it seemed quite a rabbit hole.

If you do manage to get it working up to a point where it’s usable by the average person, you can take it one step further: auto generate simple apps or websites in a no-code product.

This might bring some hate from the dev community as we are automating ourselves out of a job, but it would be a pretty impressive product if it worked.

lrossi··on Visual Sentence Composer for Japanese
Duolingo is pretty bad to learn any language.
lrossi··on Emails a browser extension developer gets from scammers
Some of these problems might disappear if Google would introduce a payment scheme for Chrome extension developers. Then authors might not be tempted to sell them to scammers.
lrossi··on Pip has dropped support for Python 2
Or a certain temperature scale used in Liberia.
lrossi··on Why Working from Home Will Stick [pdf]
This is laudable, since I think recent apps like slack or teams are partially responsible for the increase in disruption.

Older ways of messaging, like IRC, were not focused so much on notifications and having a full message history that you had to go through when signing in. This forced people to use specialized forms of communication (video meetings, emails, wikis) for important information. Chat was used for casual stuff, for which it works well.

lrossi··on Google has turned off access to sync features for Chromium
He is not an ex Oracle PM. He’s an old time chrome engineer who switched to management, he said it himself on the thread.

But this kind of corporate robot attitude is common for Google. It’s always the same story with them: they deprecate some service, write a heartfelt message about how they are aware this might destroy some projects/businesses and how difficult it was for them to make this decision, but they’re gonna do it anyways. Thank you very much for doing business with Google, have a nice day.

lrossi··on Google has turned off access to sync features for Chromium
The response of the Director of Engineering towards the slackware package maintainer comes off as very arrogant.

I guess this is the end of the open source project. Chromium was never truly open source, more like free source, but now it’s not even that. It’s just another proprietary software.

Sad to see Google become the old Microsoft.

lrossi··on Software engineering topics I changed my mind on
> People who stress over code style, linting rules, or other minutia are insane weirdos

Cannot agree with this one. For example, different indent size can be misleading and has introduced many bugs that are hard to notice during review. Apple had a security issue because of this.

lrossi··on But how, exactly, do databases use mmap?
> huge pressure on the virtual memory (VM) subsystem due to extensive dirty page writeback and page steals. The VM subsystem is constantly modifying page table entries (PTEs). This PTE churn results in frequent translation lookaside buffer (TLB) flushes and many inter-processor interrupts (IPIs) to do so. These TLB flushes have a very negative performance hit.

Interesting. I was aware of various mmap limitations, but I didn’t think about the TLB changes/flushes, which obviously come with an important overhead.

lrossi··on Why Working from Home Will Stick [pdf]
Right, somehow I missed the time “theft” part. He thinks of his people as if they’re criminals.

This is like a textbook example of manager red flags that you should check for and avoid when joining a company.

lrossi··on Why Working from Home Will Stick [pdf]
> While most probably aren’t going to awol for a day at a time I know a LOT of people that now spend working hours doing leisure things

Oh, the horror!

> people are shifting work hours to ones more of convenience (again anecdotal)

They have no shame!

> But even some of my direct reports will slack significantly more if they think I’m not online. Responses that are normally in minutes take hours etc.I have to now probe for updates etc.

This all sounds very familiar. Let me give you another perspective on this.

It’s very stressful and disruptive to be pinged 20+ times a day. While some of those are people asking for my help, which I gladly do, a good chunk are managers and seniors asking for “updates” or checking in just to see “how it’s going”. Like we didn’t have a standup 4 hours ago. Sometimes it’s colleagues asked by the manager to check on others, so that it doesn’t look like they’re too annoying. I know because it’s obvious and I got asked to do the same many times.

The answer is that it’s going great, thank you very much. At least it was until you interrupted me for the nth time today and now I will have to waste time trying to remember what the hell I was doing in that debugging session. Actually no, a timer expired, so now I will have to restart the whole thing from scratch.

So yes, I sometimes stop answering the chat, or close it altogether. Because I want us to hit the deadline and ship on time, since I care about the team’s results instead of seeing how busy my subordinates are and feeling important for nagging people all day long.

A micromanager hurts the company by reducing productivity and team morale. Your subordinates are not “doing leisurely things” during working hours. They are probably brushing up their CV and doing leetcode to find another job.

lrossi··on Cache Management Lessons Learned
> So at least on Linux, cache performance hasn’t been an issue with LMDB. It’s noticeably worse on Windows, as is memory management in general on Windows, but obviously Windows is not a high performance platform to begin with.

This made me smile.

← PreviousPage 2 of 8Next →