Better HN
topnewbestaskshowjobs
Log inSign up

GrumpySloth

4,901 karma · joined Sep 13, 2020 (6y ago) · 1,641 submissions

Submissions

comment 3y ago · link · parent

When you have the length, you can unroll the loop, so that you e.g. do 4 iterations at a time. With NUL you can’t do that. Moreover, loop iteration can be done in parallel (instruction-level parallelism) with processing the content of the string, since there is no data dependency between the two. With NUL you introduce a data dependency.

comment 3y ago · link · parent

Same as going from 64 to 65.

comment 3y ago · link · parent

I use only if_epair and then pf to NAT it to the external world. I’ve only had issues with if_bridge, where I would either be able to make connections between jail and the external world, but not between host and jail or vice versa (between host and jail fine, but not between jail and external world). And it would act really flaky, like getting one ping response, followed by silence. pf is a lot simpler and more reliable.

comment 3y ago · link · parent

Same with Google Maps. It’s really annoying.

comment 3y ago · link · parent

I have iCloud disabled, so that’s not it.

comment 3y ago · link · parent

Except Keychain credentials. I still don’t know how to make my iPhone forget how to log into Discord after deleting the app. (It logs back in after reinstallation.)

comment 3y ago · link · parent

Ligatures were used centuries before computers were a thing.

How it was done on printing presses: <https://www.dreamstime.com/royalty-free-stock-photo-ligature...>.

Also, this problem applies more to countries outside of the first world.

comment 3y ago · link · parent

Same here. Similarly, I stay away from macros. I think they have a detrimental effect on Rust’s development as well, where sometimes proposals of semantic features are rejected, because something can be done with macros on the syntax level. Maybe it can, but each time it’s inferior. So not only does a user need to deal with macros written by others, but some things aren’t going to get macro-less solutions and the user is forced to write macros from time to time as well (if there isn’t a crate with them ready). And don’t even get me started on the effect of proc macros on compilation times.

comment 3y ago · link · parent

The latter. Yes, it takes more space, but all photography software understands this format, unlike some special proprietary Adobe stuff that you're going to lose, when you lose access to Adobe software. Bitrot is inevitable, choose software which can survive it.

I also preserve the RAW and XMP files in case I'd like to reedit something (although in practice I never do that). But I don't put my trust in those in the long term as much as in the TIFFs.

comment 3y ago · link · parent

Wow. This post just prompts me to take another look at xmake.

comment 3y ago · link · parent

I use ACDSee for RAW development and photo collection management. It uses XMP sidecar files, but I don’t know if it’s compatible with Photoshop. I suspect not (and I don’t care, I stay away from Adobe). I also accept that someday ACDSee may go bankrupt, my copy can bitrot etc, so I just export all my edits to 16-bit ProPhoto RGB TIFF, to have a high-quality lossless version for archival in addition to the low-quality 8-bit sRGB JPEGs I publish on the web.

comment 3y ago · link · parent

“Social species” is a generalisation. As such, it’s not a good argument against a more particular statement. (Different species aren’t born with an axiom of solitary/social which would then produce more particular consequences, but particular behaviours are imperfectly generalised into a taxonomy. The specific here has a higher weight than the general.)

What I see in online discussions is people repeating this mantra, because it agrees with their own inner experience. But it’s unnecessary to force this onto others that this doesn’t resonate with as much, invalidating their experiences.

comment 3y ago · link · parent

Note to the author: I'm not sure if that's intentional, but if it isn't: the "cursor: default" rule in CSS for the html element creates a weird effect where hovering over text doesn't change the cursor's shape to indicating possibility of text selection (vertical bar), instead keeping it as the default triangle shape.

comment 3y ago · link · parent

Those are not the only options. Old-style procedural structural programming while avoiding unnecessary side effects, globals etc is just fine.

comment 3y ago · link · parent

It surprised me how the justice.gov version was printed, scanned and OCR-ed with junk text in place of text to copy.

406.

Indictment Documents(hackerfactor.com ↗)

3 points · by yakubin · 3y ago · 1 comment

comment 3y ago · link · parent

> desktop apps have so many issues (installation/breakage/crashes

Day-to-day I use a Mac. Installation is me dragging an icon to a folder. Sometimes I use Linux or FreeBSD. There installation is a single command. I don’t see the problem. Difficulty/effort level is equal to bookmarking a website. Indeed, with PWAs it’s literally the same thing. The meme of installation being hard needs to die. First lack of it was born as a made up advantage of webapps, and then webapps copied it.

Breakage/crashes — same thing happens with webapps, but is more frequent, annoying and silent (as in: often you don’t get a popup that something crashed, instead clicking on things stops effecting anything, buttons are randomly marked inactive, scroll is broken), not to mention terrible responsiveness.

comment 3y ago · link · parent

I've never had a computer which would work with the official ideologically-pure installer. Always had to use the non-free one. I'm glad this vote turned out the way it did.

comment 3y ago · link · parent

In the beginning of Gnome 3 I loved this feature where you could reply to someone’s chat messages straight from the notification without switching apps/windows: <https://lh6.googleusercontent.com/-hIyeIWfFyvc/ToRSxqZnFQI/A...>. It eliminated a costly mental context switch.

But XMPP is dead, so I don’t use such apps anymore. I also haven’t been using Gnome for a very long time now. I’ve read somewhere that they removed this feature though.

comment 3y ago · link · parent

I’ve never had weekly 1:1s. That’s the first time I’m hearing about this idea. Sounds dreadful. In general, throughout my career my mental health and by consequence productivity were inversely correlated with the frequency of meetings. I perform terribly under micromanagers and excellent under hands-off managers. When I need something from my manager, I message them on Slack (honestly I’d prefer mail, but the culture now sets different expectations).

comment 3y ago · link · parent

> Shunting Yard in TXR Lisp [2015]

I think you skipped the 3rd prompt, which I suspect was (pretty-truth-table '(not a)).

comment 3y ago · link · parent

Not really. All those GPL clauses about being forced to publish modifications would be null and void. All that GNU drama over companies taking Linux code and not publishing their modifications wouldn't hold any legal water.

comment 3y ago · link · parent

At that point you might as well use a dynamic array which doesn't invalidate old pointers, when growing the internal buffer: <https://yakubin.com/notes/comp/reserve-and-commit.html>. It also exhibits much better space utilisation than std::vector, not worse.

(Sorry about the suboptimal formatting. It appears that web technologies aren't up-to-par when it comes to this type of content. I intend to rewrite this post in TeX and add some graphs in TikZ when I find a spare moment.)

comment 3y ago · link · parent

I knew whom you were talking about before even clicking the link. It’s excellent. But I’ve lost all hope we’re going to see another episode of this. :)

comment 3y ago · link · parent

The thing is though that the depth is contracted disproportionally much more than width and height, which results in a non-linear transformation of perceived dimensions. This causes lines to bend. At 47mm straight lines aren’t bent no matter the distance from whatever there is in the picture. At shorter lengths there are always regions in your photo which are distorted in this way. You can’t fix that by changing your position. The only thing you’ll do is change what object is bent and in so doing maybe make it less obvious.

comment 3y ago · link · parent

Your link doesn’t load for me. I’m talking about the contraction of depth when using focal lengths greater than 47mm and lengthening of it when using shorter focal lengths. I guess you can contract depth as well by walking backwards, but at this point your subject is so small you lost a lot of detail. Also, your subject may be gone by then.

comment 3y ago · link · parent

Digital zoom doesn’t fix the distorted perspective.

comment 3y ago · link · parent

I don't know about any special offers, but looking at standard pricing on rsync.net it would cost me $15/month for 1TB, while on Hetzner the same would cost me €3.94/month.

comment 3y ago · link · parent

Wow! It's the first time I'm hearing of this Hetzner offering. It's ideal for my offsite backup needs. Thanks!
1
131415
55