HNHacker News
TopNewBestAskShowJobs

SloopJon

2,602 karma · joined November 15, 2013

submissionscomments
SloopJon··on Itanium: Mark Architecture as Orphaned
> It's dead, Jim.

I wonder how many folks would miss this reference. If I'm not mistaken, it's only in the original series. On the other hand, I guess Itanium is even more obscure than Star Trek at this point.

I tend to assume that most people know at least as much as I do, so I was taken aback when, after explaining line endings to a co-worker, she asked, "What's DOS?"

SloopJon··on Number Parsing at a Gigabyte per Second
He touched on JSON parsers in a previous post about fast_double_parser: "People who write fast parsers tend to roll their own number parsers (e.g., RapidJSON, sajson), and so we did. However, we sacrifice some standard compliance." (The "we" in this context refers to simdjson.)

https://lemire.me/blog/2020/03/10/fast-float-parsing-in-prac...

He followed up in a comment: "RapidJSON has at least two fast-parsing mode. The fast mode, which I think is what you refer to, is indeed quite fast, but it can be off by one ULP, so it is not standard compliant."

The Github README for this new project says, "The fast_float library provides a performance similar to that of the fast_double_parser library."

https://github.com/fastfloat/fast_float

However, the benchmarks show a significant improvement relative to those in the fast_double_parser README:

https://github.com/lemire/fast_double_parser

I tried to run the benchmarks, but my CMake is apparently too old, and Homebrew barfed all over the living room rug when I tried to update it.

SloopJon··on Solar-Powered, Off-Grid Bike Can Bust Poachers Anywhere
The first thing I notice is the chain. Ars Technica had a story earlier this week about the Sondors Metacycle: similar power, similar weight, but no chain. Also, $25,000 cheaper.

https://arstechnica.com/cars/2021/01/this-electric-bicycle-c...

Granted, that the Metacycle isn't an off-road bike, but I wonder which is better for reliability in an area so remote that you need solar charging: a chain, or a hub-mounted motor?

SloopJon··on Mscsim – flight dynamics simulation software
It may be too sparse to answer your question, but there is a related paper on the author's web site:

http://marekcel.pl/docs/mscsim_doc.pdf

SloopJon··on What does the night sky look like on Mars?
I pulled this up in Stellarium, and the only real difference is that you can see Phobos, Deimos, and Earth. It doesn't seem to simulate the atmosphere.

I also tried this in Gaia Sky, but I would need to tweak the settings. The faint stars are too bright, and the bright stars aren't bright enough.

Any other recommendations for exploring our neighborhood virtually?

SloopJon··on Firefox 85
I haven't noticed Firefox for Enterprise before. At first I thought it was a new name for extended support release, but Enterprise is available in both ESR and the regular releases. I can't tell from the landing page what the difference is. Is this just about streamlining enterprise-wide deployment?
SloopJon··on Airpods Max Sucked for Me
I've had a lot of problems with USB DACs as well. I frequently find that audio degrades into a kind of stuttering or static that doesn't go away until a reboot. I've experienced this with multiple DACs (Aune, Centrance, O2, and Presonus) on multiple machines (iMac 5K, 16" MacBook Pro, and hackintosh). I feel like it's worse in recent versions of macOS (say, High Sierra and later), but it's intermittent, so it's hard to say.
SloopJon··on C++ Anti-Patterns
The advice about the order of includes is interesting, as it's the exact opposite of my usual habit. I see the point, and I'll definitely consider adopting it.

One thing I've been bitten by in the past is that Clang / libc++ on Mac sometimes doesn't require a standard header that GCC / libstdc++ does. I don't think this pattern will fix that, though.

SloopJon··on Rust for Windows
I had the exact same thought. I almost didn't bother following the link, because Rust for Windows is already a thing, but this is essentially a Rust equivalent to C++/WinRT.
SloopJon··on Ultraleap – tactile sensations projected onto your hands
I had to scroll down the page to see if Ultraleap is a product, a company, or some kind of open source project, and whether it has anything to do with the Leap Motion Controller. For those who were as confused as me, Ultrahaptics bought Leap Motion, renaming the resulting company to Ultraleap.
SloopJon··on Porting Firefox to Apple Silicon
Could be. I suspect that's a factor in the fonts available for download or document support in Catalina and Big Sur:

https://support.apple.com/en-us/HT210192

https://support.apple.com/en-us/HT211240

SloopJon··on Microsoft Space Simulator (Or, Charles Guy’s Galaxy in a Box)
I don't remember this game at all, but it sounds like it would have been a fun follow up to The Halley Project, which was kind of a scavenger hunt through the solar system.
SloopJon··on Beating Up on Qsort (2019)
Just for fun, I added pdqsort to the benchmark:

https://github.com/orlp/pdqsort

Here are some of the results on an Ivy Bridge hackintosh:

      size, qsort, inline, sort, stable, pdqsort, radix7
      1000,  88.0,   60.6, 31.2,   37.5,    24.6,   12.8
     10000, 109.3,   77.1, 45.6,   51.6,    29.1,   12.0
    100000, 137.1,   97.7, 57.7,   71.9,    33.3,   12.5
   1000000, 159.6,  114.2, 70.6,   88.6,    39.7,   20.4
  10000000, 185.2,  133.7, 82.0,   99.7,    43.6,   19.4
Edit: it's not quite as easy to plug radix7 into pdqsort's more varied benchmark program, which expects a template function with a type parameter of int.
SloopJon··on Analyzing the performance of Tensorflow training on M1 Mac Mini and Nvidia V100
The first graph includes "Apple Intel", which is not mentioned anywhere else in the post. Any idea what hardware that was, and whether it used the accelerated TensorFlow?
SloopJon··on Cross Language interfaces between C and C++ (2017)
In order to compile the ratpak library from Microsoft's calculator using Clang, I ported part of it from C++ to C. It's written in C++17 with some C features that only Visual C++ accepts. Off the top of my head, some of the changes I needed:

* add extern "C" to some of the headers

* include stdbool.h for bool

* include stdint.h for uint64_t et al.

* include stdlib.h and change nullptr to NULL

* change constexpr to enum

* change static_cast to C-style casts

* rewrite a function to take a pointer, rather than a reference

* write a min() function

I probably could have rewritten it as standard C++, but that somehow seemed like a more daunting prospect at the time.

SloopJon··on An additional non-backtracking RegExp engine
That caught my eye too. I looked for benchmarks of re2, but couldn't find anything more recent than this:

https://rust-leipzig.github.io/regex/2017/03/28/comparison-o...

burntsushi criticized it at the time as being unfair to DFA engines.

Incidentally, I also discovered that Firefox now uses Chrome's Irregexp engine:

https://hacks.mozilla.org/2020/06/a-new-regexp-engine-in-spi...

HN discussion:

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

SloopJon··on Automated Combinatorial Testing for Software
Yes, that's correct. Apart from the fact that the programs are apparently written in Java, Oracle Corporation has nothing to do with this.

There's a section of the web site on licensing NIST technologies, and links to patent license applications. Without a specific license for this patent, it's not clear how I'm allowed to use it. May I use the programs commercially? May I modify them?

SloopJon··on Automated Combinatorial Testing for Software
The page says that the software uses a patented oracle-free testing method, but that it doesn't apply to the public domain (Java?) programs that you can request by email. Although I hope the Department of Commerce wouldn't sue me, I'm not clear on the purpose or status of this patent.
SloopJon··on U.S. Bill H.R.69 introduced – To make daylight savings time permanent
On the coastal side of the enormous Eastern Time Zone, I like the idea of permanent EDT or the proposed AST. Permanent DST (nationwide) is slightly better for New England than AST, because it avoids the hassle of being in a different time zone than New York, D.C., et al. On the other hand, it's probably not as good for, say, Indianapolis.
SloopJon··on Design flaws of password managers
> it’s actually “design compromises”.

That's a good way to put it. I've seen several posts like this, and the tendency is to assume a set of requirements (e.g., a generator must be stateless), then fault a scheme for not satisfying them.

The main appeal to me of a password generator is that if you give me a batteries-included scripting language, I can rebuild it from scratch in five or ten minutes--no precious vault to lose. However, if you want to use a scheme like this on purpose, you're going to make some compromises:

* The OP's dpg script has extra logic to avoid similar characters (e.g., 1 and l), presumably to enable typing, rather than pasting. This chips away at the simplicity.

* dheera mentioned his "almost stateless" passenter script, with a publicly accessible configuration file. Would he be comfortable adding an entry for pornhub.com or ashleymadison.com, I wonder?

* baobabKoodaa mentioned his baopass utility in a previous story, which decouples the master password from the generated password using a keyfile. Awfully similar to a vault.

Although I'm not going to discourage anyone from using a password generator, I've come to a similar conclusion as you: the ability to store arbitrary information in the vault is really useful--usernames, PINs, security questions, account numbers, etc.

My current tool of choice is KeePassXC with a vault in a SyncThing directory, and a keyfile local to each system. I wouldn't mind better sync support, because I do occasionally get sync conflicts, which I don't even try to resolve.

SloopJon··on What’s Entering Public Domain in 2021: The Great Gatsby, Music by Duke Ellington
I had gotten used to that site showing what is not entering the public domain, thanks to the Sonny Bono Copyright Term Extension Act. (What a horrible thing to have your name on.) It's good to have something to celebrate again. It looks like Winnie-the-Pooh will be on the list next year.
SloopJon··on Experimenting on My Hearing Loss
> boost the frequencies as necessary

The trick is figuring out what's necessary. The first half of the post made me nervous, because it simply applied a gain of threshold - basedB. As he discovered, that's too loud.

What you want is a compressor. The second half of the post boosts the signal just above the threshold, but it's a little more complex than that. I haven't really studied this, but for starters you want to take into account things like the Fletcher-Munson curves.

I am intrigued by these types of projects. As my hearing gets worse, I'd like to be able to listen to music and watch movies with nice headphones, but with the assistance that comes from hearing aids.

SloopJon··on Raspberry Pi Server Mark III
That's a slick cluster in a box. I'm not sure which modules I'd put on it, though. Unless you harvest them from the 2 GB dev kits, the total price pushes up against a single Jetson Xavier AGX, which is a better value (and has an M.2 slot for an SSD).
SloopJon··on A case study on strict null checks
I ported some null-heavy Java code to C++. The source frequently returns an object, or null in case of error; e.g.,

    BigInteger bi = rational.asBigInteger();
    if (bi != null) {
        ...
    }
One of the classes is essentially a node in a graph, so in my first pass its objects were wrapped in a shared_ptr, which can be null. However, objects of the other two types are typically passed by value in C++, so I had to think about that. Exactly what std::optional was designed for, but do I want to require C++17, both in the implementation and the public interface? The syntax looks nice enough:

    if (auto bi = rational.asBigInteger()) {
        ... // bi is like a non-null pointer
    }
Java has java.util.Optional, but the source predates Java 8.

TypeScript's type guard approach is really clever. Once you've checked the value, you can use it like normal. No need for a wrapper class, or different syntax.

SloopJon··on Vitamin D and Covid-19
I don't know that I'd call it a "strange obsession," but it's a popular topic, right up there with intermittent fasting. Here are some active posts just from the last two or three months:

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

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

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

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

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

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

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

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

SloopJon··on CentOS Linux is dead–and Red Hat says Stream is “not a replacement”
For those who have glossed over the recent CentOS posts, because you don't really know what Stream is, or maybe didn't realize that Red Hat effectively owns CentOS now, this article is an accessible survey.

My question for the Rocky Linux team: if CentOS was struggling for resources before Red Hat's involvement in 2014, how is Rocky any better positioned to succeed?

SloopJon··on A Brief Goodbye to CentOS
I somehow missed that Red Hat started sponsoring CentOS a while back, and owns the trademarks. I mean, money and cooperation is great and all, but how could anyone have expected CentOS Linux to continue for long when Red Hat has such a fundamental conflict of interest?

Edit: here's the HN post at the time:

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

SloopJon··on Steve McConnell
I totally agree. Code Complete was my road map to a new field, full of recommendations for other books to read. I gave away my first two copies of the first edition, and eventually bought the second edition. It didn't have the same magic. I've looked for it in other books, like The Pragmatic Programmer, The Practice of Programming, and others, but it's like The Sixth Sense (or The Crying Game or The Usual Suspects): you can only see it for the first time once.
SloopJon··on [dead]
More cores is an obvious next step, but I'm curious to see how well Apple can scale the unified memory architecture. Can you put 32 cores (plus cache) and enough memory to keep them busy on a chip that retains the advantages of the M1?

Edit: answers to a similar question on the other thread suggest that it's NBD to move the memory off package.

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

SloopJon··on The Raspberry Pi 4 has a fan now – the Case Fan
I have an Argon NEO:

https://www.argon40.com/argon-neo-raspberry-pi-4-case.html

It gets hot to the touch, so I presume that it's dissipating heat like it's supposed to.

← PreviousPage 9 of 26Next →