Better HN
topnewbestaskshowjobs
Log inSign up

SloopJon

2,613 karma · joined Nov 15, 2013 (13y ago) · 775 submissions

Submissions

comment 4y ago · link · parent

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?

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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?

comment 4y ago · link · parent

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?

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

Even outside of the recent scandal, I've long had mixed feelings about Blizzard: harassing independent servers, always-connected DRM (I got booted out of single-player CoD: MW so many times), and milking franchises with remasters. I will say, though, that after a several year hiatus, a friend and I have discovered StarCraft 2 co-op with weekly mutations, and it's a lot of fun.

SC 2 recently went free-to-play. If the rest of their catalog is added to Game Pass, that will be something. Blizzard games have been stubbornly expensive years after release. I wonder what this means for Battle.net?

comment 4y ago · link · parent

> it will be incorporated in a company's proprietary project thus lowering the expenses necessary to develop it

Without necessarily taking a position on the ethics, I would point to macOS and its derivatives as a clear example of this. Apple invested significant resources into a successor to System 7 called Copland, abandoning it in 1996. While the purchase of NeXT in 1997 hugely influenced the design of OS X, look at all of the free and open source projects that accelerated its development: Mach, Clang/LLVM (and GCC before it), KHTML, KJS, CUPS, much of the BSD and GNU userland, and the list goes on.

macOS, and by extension iOS, would not be where it is today without its open source core. Put a little spit and polish on it (no small thing, of course), add a kernel extension named Don't Steal Mac OS X.kext, and voila: new O/S.

comment 4y ago · link · parent

In the US, at least, Google Fi is essentially a T-Mobile MVNO. It was previously T-Mobile, Sprint, and U.S. Cellular, but T-Mobile bought Sprint, and U.S. Cellular divested a fair amount of its network.

I saw conflicting reports about whether Google Fi was affected by T-Mobile's reported text message censorship. I don't know where it stands on this iCloud Private Relay issue.

comment 4y ago · link · parent

I'm trying to think of a case in which Apple has used public opinion in this way. The closest I can come up with is Adobe Flash, but Apple was the one blocking a product on its platform then.

comment 4y ago · link · parent

I tend to keep way too many tabs open in my browsers, some of which I never, ever go back and read. Once in a while I dump these evergreen tabs into bookmarks.google.com (yeah, I know), which is just enough to satisfy my inner hoarder that I haven't completely lost whatever was so special about that tab.

I have this fantasy about a browser history on steroids that remembers not just the URLs, but the contents of everything I've ever visited. Not necessarily 100% retention of images and layouts, but at least searchable text. There are so many times when I'm simply unable to convince Google to find a page I read a few years ago. I've probably even bookmarked a project or two along those lines.

comment 4y ago · link · parent

In terms of space usage and its impact on the buffer pool, storing as 128-bit integers (if your DBMS supports it, which MySQL does not) is essentially equivalent to the bin16 case in the first "UUID insertion rates" graph. Performance still falls off a cliff, just a little bit later. As the author says, "The use of a smaller representation for the UUID values just allows more rows to fit in the buffer pool but in the long run, it doesn't really help the performance, as the random insertion order dominates."

If you look at the fastest approach the author tried in the second "UUID insertion rate" graph, it actually stores a modified UUID in a 36-character string. There is a missed optimization to store the modified UUID as 16 bytes, rather than 36, but imposing some order on the keys is the dominant improvement.

comment 4y ago · link · parent

I bought Loopy HD several years ago after seeing Jimmy Fallon and Billy Joel use it for "The Lion Sleeps Tonight." YouTube has some slide shows with audio, but I can't find a video that shows Jimmy using the app.

I can't say that I've used the app to as good effect.

comment 4y ago · link · parent

Neither counter nor idx strike me as an improvement over i.

If you want to be descriptive, name the purpose of the loop variable. If it's an array of foos or an array named foo, then use something like fooIx. Then when you loop over an array of bars, use something like barIx. If you're counting retries, call it retryIx or retryCt (or something that describes what you're retrying, like loginAttemptIx).

Depending on the context, i may be fine. However, a single-character name like that is bound to be reused, which is a bad smell.

comment 4y ago · link · parent

This is not a category of software that I'm familiar with, so I don't know how Nebulosity compares to its competitors, free or proprietary. My intuition says that 71,000 lines of C and C++ code is manageable for a person or group with the right motivation.

One thing that puts a clock on it in the intermediate to long term is camera support, which I gather from the README is a significant maintenance task. The project will bleed users if it doesn't support their new cameras.

Edit: it looks like Nebulosity sold for $95. Some other software in this space I see mentioned on the Cloudy Nights forum are Astro Pixel Processor (€ 165), PixInsight (€ 165), and Siril (free).

comment 4y ago · link · parent

> Thankfully now the clang / lld / libc++ / lldb ... toolchain works pretty well on Windows

Off topic, but I wonder if anyone knows whether it's possible to use rustc with lld, instead of link.exe? I tend not to have Visual C++ on my home systems. Is it as simple as the Cargo equivalent of LD=lld-link.exe?

comment 4y ago · link · parent

I just started looking at music streaming software last week, and installed Navidrome on an Oracle Cloud instance as a test. So far, so good, although it took a while to discover that Oracle's Ubuntu image uses iptables, after which I found that the network connection with unlimited ingress and 10 TB of egress is a lot slower than the advertised 1 Gbps, at least on a free-tier ARM instance.

My impression has been that MusicBrainz has more typos and weirdly formatted metadata than FreeDB. Now that I know more of its background, I'll look into it more. My CD collection is mostly ripped to full-album FLAC + CUE, so correct metadata will likely be an important part of converting to MP3 for streaming.

comment 4y ago · link · parent

The article suggests that hashing (PBKDF2) is done client-side only, and that LastPass stores this hash directly. If true, this is very bad. However, LastPass claims that PBKDF2 is also used server side:

> We then take that value, and use a salt (a random string per user) and do another 100,000 rounds of hashing, and compare that to what is in our database.

https://blog.lastpass.com/2015/06/lastpass-security-notice/

While it's true that the client-side hashing means that LastPass never sees your plaintext password, the first hash effectively becomes the password. Then it's on LastPass to treat it as such, which they claim to do by hashing it again.

Edit: another link describing the use of PBKDF2:

https://support.logmeininc.com/lastpass/help/about-password-...

comment 4y ago · link · parent

This is a nice turnaround from 2015:

> Werner Koch wrote the software, known as Gnu Privacy Guard, in 1997, and since then has been almost single-handedly keeping it alive with patches and updates from his home in Erkrath, Germany. Now 53, he is running out of money and patience with being underfunded.

https://www.propublica.org/article/the-worlds-email-encrypti...

https://news.ycombinator.com/item?id=9003791

Recall that this was in the wake of Heartbleed, a vulnerability that exposed our dependence on OpenSSL, another critical, and chronically underfunded project.

The project got a nice boost after that article, leading to this Ars Technica story about the windfall:

> Given the ramshackle state of massive GnuPG code base, it's not clear what's the best path forward.

http://arstechnica.com/security/2015/02/once-starving-gnupg-...

https://news.ycombinator.com/item?id=9011138

Nonetheless, a fundraising campaign followed just two years later. It turns out that $150K isn't actually that much of a windfall.

comment 4y ago · link · parent

I tried to activate an iPhone on an existing Google Fi plan using eSIM, and it was a nightmare. The frontline support is responsive, but can't do anything about it. The specialists I was escalated to were useless, and only reachable by email every day or two.

After a week of this nonsense, it occurred to me that maybe I could start over with a physical SIM card. I chatted with frontline support again, and he said he was positive that would work. (So why didn't anyone suggest that?!) I couldn't use the old card, because it was clearly beyond their capabilities to reactivate a perfectly good SIM card, but I was able to buy a new one at Best Buy and complete the process in about five minutes.

I would have swapped the card in the first place and been blissfully ignorant of the eSIM fiasco, but I somehow had it in my head that the iPhone used a smaller card than the five-year old phone it was replacing. It may not be eSIM's fault, per se, but if the design is dependent on carrier competence, it's fatally flawed, as far as I'm concerned.

comment 4y ago · link · parent

That Reddit thread is a better source link for this submission.

comment 4y ago · link · parent

I very much like backlit keys. My Max Keyboard Blackbird is red, which is just right at its dimmest, although when the side panels reset I always turn them back off.

On the Kinesis Freestyle Edge, I actually like the per-key RGB lighting as well. Most of the alphanumeric and punctuation keys are red, the home keys are green, and the rest are blue. I also turn off the backlight for keys that I don't use, like PRTSC. It looks gaudy as hell, but I feel like it makes it easier to find certain keys in the Freestyle's slightly unusual layout, and to come back to home position.

The other thing I like to do with RGB lighting is to make different layouts different colors--QWERTY is all blue to distinguish it from my multi-color Dvorak.

comment 4y ago · link · parent

I know you're pointing out the author's concern about acknowledging his LGPL library, but I otherwise would have missed what is one of the cooler features in this huge post, CenteredInterval.

Indeed, the post essentially brags about how big it is:

> In Version 1.0 there were a total of 554 functions altogether. Yet between Version 12.0 and Version 13.0 we’ve now added a total of 635 new functions (in addition to the 702 functions that have been updated and upgraded).

With these batteries-included languages, mastery of the language really requires mastery of the library.

comment 5y ago · link · parent

My favorite way to use tmux or et is with tabs in iTerm2.

comment 5y ago · link · parent

The post quotes a comment from the Python source code for the dict object:

  This is done by initializing a (unsigned) vrbl "perturb"
Is "vrbl" a term I should know, or just a prvrs abbrvtn for variable?

comment 5y ago · link · parent

For those who like a little contemporary folk with their jazz, David Wilcox wrote a nice song a while back called "Chet Baker's Unsung Swan Song." (k.d. lang covered it as "My Old Addiction.") Worth a listen while you read this article or get lost on Wikipedia.

Edit: although David Wilcox is fun live, I suggest you look for the studio version with the flugelhorn part; e.g., https://www.youtube.com/watch?v=kEBncfBVmxQ.

comment 5y ago · link · parent

> Supported for three years as the latest long term support (LTS) release.

This is the first thing I look for in these announcements. .NET 6 is the successor to .NET Core 3.1.

comment 5y ago · link · parent

I made a diagram like this for a test automation system inside the firewall that talks to cloud providers. Using Graphviz (DOT), it was challenging to depict the system faithfully without a maze of lines from nodes on one side of the graph to the other.

I agree with the sentiment of defining a graph in code, but I really wanted to give it a nudge from time to time, like swap these two nodes so the arrows don't cross. I'm only an occasional user, so maybe there are ways to do it.

comment 5y ago · link · parent

At the end of the post is a link to a Github issue to "support compiling and linking c++ code":

https://github.com/ziglang/zig/issues/4786

It was closed in March of 2020.

1
567
26