HNHacker News
TopNewBestAskShowJobs

SloopJon

2,602 karma · joined November 15, 2013

submissionscomments
SloopJon··on What it feels like when Rust saves your bacon
> All it had to say was that rust tells you when you keep reference to on stack variable after it goes out of scope.

The author isn't just telling you that Rust is awesome because it tells you something, he's acknowledging the frustration in learning how to listen to the compiler.

It's kind of like Jerry Pournelle describing the ups and downs of USB by documenting an epic journey that all started with trying to scan some handwritten notes for his next novel using a Canon scanner he borrowed from Alex that he's just now getting around to reviewing, because the pins of the parallel port are too bent to use the old Epson. Okay, so maybe it was a little overcomplicated.

SloopJon··on Behind the Ferrari and Lamborghini rivalry
> After some time, on to the stage comes the car that many, including myself, had on a poster in their rooms growing up.

One of my favorite posters growing up was a white Countach, about five feet long by maybe two feet high. I had a much smaller print of a Ferrari F40. The appeal for a kid like me, of course, being that each had some claim to the fastest production car at some point.

It's kind of amazing to me that over sixteen years only about 2,000 were made. By comparison, there were about 9,000 DeLoreans in three years.

SloopJon··on Embracing Modern C++ Safely, Book Review
> Maybe I'm missing something but they don't seem to offer the book as a searchable PDF? There seems to be a Kindle edition and paperback only.

The InformIT page linked from the review has (I'm in the US):

* book for $64

* ebook as ePub, Mobi, and PDF for $51

* book + ebook bundle for $86

The sample PDF is searchable, so I presume the full PDF is as well.

If you're looking at the Amazon listing, then no, I don't expect Amazon to offer PDFs instead of, or even in addition to, a Kindle edition. Oddly, the Kindle edition is more expensive than Amazon's paper copy, or InformIT's ebook.

Based on the sample, this looks like a nice book. It seems to have Meyers-like advice in a more concise, reference-style presentation.

It's a slight concern that all four authors are from the same department of the same company. I don't know anything about Bloomberg Development Environment, but I would be skeptical of a similar offering from, say, Google.

SloopJon··on A Fast Excel Formula Parser and Evaluator
I've always been fuzzy on Excel's precision. It's frequently described as preserving or storing fifteen significant figures. I wasn't sure if it rounds before storing, or if that's just how it displays. After some experimentation, I've satisfied myself that it can store more than it can display.

For example, =PI() displays at most 3.14159265358979, no matter how many digits I ask it to display. If I add 1.999E-15, I get 3.1415926535898. If I type 3.14159265358979 (omitting the invisible trailing 3), then add 1.999E-15, I get 3.14159265358979.

In other words, Excel uses double-precision floating point, but never displays more than fifteen significant figures. You may be in for a surprise if, say, you round trip a spreadsheet through CSV.

SloopJon··on Master of Orion
I never played it, but Google turns up a game called Maelstrom that seems to fit the bill.
SloopJon··on How to compare floats in Python
See issue 1580 for a description of the change that displays floats using the shortestish decimal expansion that round trips:

https://bugs.python.org/issue1580

I thought there was a PEP for it, but evidently not.

Although this is generally an improvement, it can contribute to confusion.

SloopJon··on Starring your repo does not give you permission to spam me
Um, am I the only one who had no idea that my Github stars are public knowledge? I don't see anything about this in the documentation or on my stars page. Can anyone see this, or just the admin for the repo that I starred?
SloopJon··on How to get the most out of your 1:1s
I've had regularly scheduled biweekly meetings for the last several years. If we miss a meeting due to PTO or something, we don't reschedule, so meetings are sometimes a month apart.

One of my previous managers would just drop by my office on Friday afternoon to check in. This was shorter and shallower, more of a status update. My 1:1s tend to have a longer term focus: handing off responsibility for a project, and discussing which upcoming projects sound interesting.

As a soon-to-be manager myself, I will probably start with weekly 1:1s until I get to know the team well enough, then drop back to biweekly.

SloopJon··on Binary search with confidence
Tim Bray wrote a post, "On the Goodness of Binary Search," in which he stated, "Simplicity is good, and binary search, coded properly, (see below) is awfully damn simple" (emphasis in original):

https://www.tbray.org/ongoing/When/200x/2003/03/22/Binary

In an update to his post, Tim linked to Joshua Bloch's "Extra, Extra - Read All About It: Nearly All Binary Searches and Mergesorts are Broken" post about the problems you describe:

https://ai.googleblog.com/2006/06/extra-extra-read-all-about...

SloopJon··on Who Says C is Simple?
The context here is a tool that has to handle everything, so you won't necessarily run into all of these in your run-of-the-mill project. However, the author does claim:

> The following examples were actually encountered either in real programs or are taken from the ISO C99 standard or from the GCC’s testcases.

I have definitely seen (and probably even written) show-off code in C++ and other languages, but when it comes to C, I feel like the tricky stuff tends to be borne of necessity. For example, I test a code base that requires some type punning. The last time I investigated this, there didn't seem to be consensus on how to do this without UB.

Signed overflow is another bugbear in C. Code that worked perfectly fine for over twenty years was suddenly at the center of mysterious bugs when a new version of GCC decided to exploit some UB.

SloopJon··on Brand New Model F Keyboards
According to a "birth certificate label" on the page, China.
SloopJon··on Tell HN: I got 10x Hetzner storage at the same price
I'm dipping my toes into self hosted services, but I haven't tackled photos yet. Ars Technica reviewed a few photo options last year:

https://arstechnica.com/gadgets/2021/06/the-big-alternatives...

SloopJon··on Alarm raised after Microsoft wins data-encoding patent
It's really hard to tell based on an article like this. The ANS creator is quoted as saying, "I don't know what to do with it - [Microsoft's patent] looks like just the description of the standard algorithm." However, who knows how much experience he has with patents? It may be that Duda invented the shoelace, and Microsoft invented the plastic sleeve at the tip of the shoelace.

As Timothy Lee says in the article, the problem with this type of patent is that it boxes in how you can use the original technology: you can freely tie your shoes with this shoelace, but if you use a double knot, now you infringe a patent.

In some ways, this mirrors the difference between copyleft and permissive copright licenses. By failing to patent the original invention, Duda made ANS useful and widely available, but he now has no leverage against Microsoft.

SloopJon··on Rethinking Levels, Promotions and Salaries
My company has four IC titles, the description of which includes typical experience, with credit for graduate degrees. When we went from two titles to four, I was assigned the highest title, and joked that it was another way of saying "old".

I would be level 7 under Daily's system, making more than I do now, but then what's my monetary incentive to improve? Younger, less experienced colleagues can literally set a countdown timer to their next promotion/raise.

It feels a bit lazy, to be honest. Some people have commented that it will lead to coasting. The alternative that I anticipate is up or out: you're a level 5 performer at a level 7 salary. You might be happy at a level 5.5 salary, but sorry, you're out.

SloopJon··on Ask HN: Why should I trust password managers?
This question is incomplete without expanding on your "methods for safe handling of passwords on the web." Tell us what those methods are, and you'll get some thoughts on whether you should or shouldn't trust them.

Password manager anxiety is a thing. Maybe you're worried that you'll lose the vault, or that it will be hacked. I didn't like the idea that I couldn't log into something without it. The problem is, without a password manager, my passwords sucked. I had a core secret that I sort of salted for each site.

So my reason for using a password manager (KeePassXC with SyncThing, if you're interested) is that it's better than the alternative.

SloopJon··on Newegg has a bit of a scandal on its hands
I've bought at least two computers' worth of parts from Newegg, and generally had a positive impression of them, in part because of stories here about how they stand up to patent trolls. However, their reputation has indeed taken a dive. When they had coupons for 4 and 8TB Samsung SSDs last week, several comments on a deals forum pointed out this very incident.

I watched a couple of the Gamers Nexus videos, and even the most charitable explanation is pretty damning. One of the related links on YouTube was a former Newegg RMA inspector, who gave some background on how things used to be done. Even if this is limited to open box items, which I would rarely if ever buy online, it gave me enough pause to pass on the SSD deal.

SloopJon··on I love you, Hacker News, but you’re toxic
I think "debate" is the key feature of HN (indeed, most online discourse) that the author has identified. It's easy to base a comment on a flaw in an article, or someone else's comment on the article, so HN discussions can seem very contrarian, almost adversarial.

Randall Munroe may have said it best with his "Duty Calls" comic:

https://xkcd.com/386/

SloopJon··on Notes apps are where ideas go to die, and that’s good
This pretty much exactly describes my (ab)usage of tabs. I had a tab open with the HN submission for the death of Google Reader for two years, because there were so many interesting replacement suggestions. I finally admitted that Google had ruined RSS for me, and closed the tab.

Thank you for the OneTab elevator pitch. I'll give it a try.

SloopJon··on An Open Letter to Pixsy CEO Kain Jones, Who Keeps Sending Me Legal Threats
The submission for the previous post didn't get much traction here, so I'm seeing it for the first time. I'm pretty sure that "YYYYYYY" (ugh, Medium tries to hijack copy) is still named later in the post.

A few people have commented to the effect that this is a tempest in a teapot, but the phenomenon of copyleft trolling is news to me. It's fundamentally contrary to the spirit of Creative Commons and like-minded licenses, and has a chilling effect on their use. Cory claims that another of Pixsy's clients, Marco Verch, single-handedly shuttered a Dutch charity.

I've never paid much attention to the Creative Commons version numbers. I sure will now.

SloopJon··on I almost got banned from Hacker News
Discussion here is such that I sometimes read the submitted link as an afterthought. Apart from the occasional distraction of a comment by dang, I had operated under the polite fiction that this was the result of self moderation.

Jeff's account leaves me conflicted. I resent heavy-handed, unaccountable moderation, and boy would I be pissed if I was accused of stealing accounts to upvote a HN story of all things. On the other hand, if the alternative is regressing to, say, USENET, what can I say?

SloopJon··on Ask HN: How long until Google charges for private Gmail accounts?
I can't find the exact verbiage or screenshots, but my recollection is that Gmail used to be billed as effectively infinite storage, with the limit going up over time. However, that limit has been frozen at 15GB for some time.

I am now exactly the kind of customer you describe, paying for a 200GB Google One plan in large part so I don't have to fiddle with old email to stay under the limit. The price is reasonable, and hopefully as a paying customer I'm less likely to find my products on killedbygoogle.com.

SloopJon··on LibreOffice 7.3
Yes, I saw this installing 7.3.0.3 this morning: I started the computer, opened Firefox, then downloaded and installed LibreOffice. I have an aversion to closing my browser (and all of its tabs) unnecessarily, so I looked this up and found the Reddit post.
SloopJon··on LibreOffice 7.3
On Windows, the LibreOffice installer claimed that Firefox was using files that needed to be updated. This Reddit thread has some background on why that is:

https://www.reddit.com/r/libreoffice/comments/aoqmvr/libreof...

In short, you can probably ignore it and continue.

SloopJon··on MariaDB to go public at $672M valuation
I always thought of MariaDB as a fork of GPLed MySQL code that is now owned by Oracle. However, I see that MariaDB uses a contributor agreement, and reserves some features for a proprietary(?) enterprise edition.

Do I misunderstand the copyright status of MySQL/MariaDB, or has MariaDB been clever about how it adds features to the GPL core, such that they're not legally derivative works?

SloopJon··on It's dire: Raspberry Pi availability tracker
I looked online the other day for an 8 GB Pi 4, and could not find any, including at Microcenter (which claims to show store availability). I also looked to see whether the Jetson Xavier AGX is available. This used to go for $700, but I didn't really need it then. Now that I could use it, it's selling for at least twice as much.
SloopJon··on Uninitialized memory: Unsafe Rust is too hard
Despite being contemporaries, both nominally for systems programming, Rust and Go are very different, starting with memory management. If you're used to writing (correct) C++ programs, particularly those that exploit move semantics in C++11 and later, then you can appreciate what Rust is doing for you, weird syntax and all.

On the other hand, if you're fine with a garbage collector, which most people are most of the time, then Go is going to feel more natural. For some people, Go is more comparable to Python than Rust, because of this one big difference.

SloopJon··on Apple contributes to OBS to support screen capture using ScreenCaptureKit
For those of you who have contributed to a Github (or similar) project in your capacity as an employee, do you use a work account separate from your own?
SloopJon··on Parsing Decimals four times faster
The rust_decimal crate seems to use C#-style decimals, which always struck me as wasteful. Is there any particular advantage to that format over IEEE decimal floating point?
SloopJon··on Removing Banding in Linelight
Apple TV+ has a logo with an animated white-to-black gradient in which I always notice banding, even on a 4K OLED with Dolby Vision. I bet it would look better with this kind of dithering.
SloopJon··on SUSE announces Liberty Linux, new distro for those who miss the old CentOS
The article says that it's RH userland with an RH-compatible kernel built from SUSE sources:

> All of the userland of the new distro will be built from Red Hat's official Source RPMs (SRPMs), with the exception of the kernel. That comes from SUSE's own SLE enterprise distribution, currently on version 15 SP3, but compiled using a Red Hat-compatible configuration.

← PreviousPage 5 of 26Next →