HNHacker News
TopNewBestAskShowJobs

SloopJon

2,613 karma · joined November 15, 2013

submissionscomments
SloopJon··on FDA Finalizes Rule to Deregulate Hearing Aids
> My heart truly bleeds for companies who face the insurmountable task of printing "may contain sesame"

The reason the regulation, and the commercial response to it, is controversial is that companies cannot simply print "may contain sesame" and be done with it.

"Statements such as 'may contain [allergen]' ... can be used to address unavoidable 'cross-contact,' only if manufacturers ... have taken every precaution to avoid cross-contact"

https://www.fda.gov/food/food-labeling-nutrition/food-allerg...

This is a counter-intuitive, and presumably unintended consequence of the regulation that sucks if you're allergic, but fining or jailing executives for complying with it is silly. Hopefully, enough other companies will see a competitive advantage in retooling their processes to deliver sesame-free products.

SloopJon··on Steven Spielberg: ‘No film should be revised’ based on modern sensitivity
The subheadline and four of the first five paragraphs address this:

"In 2011, Spielberg had already explained that the guns would be returning for the 30th anniversary release, explaining that he was 'disappointed' in himself."

SloopJon··on Cryptographic Best Practices
> * Built-in integration with external KMS service

The first thing I notice is that Tink doesn't support Azure Key Vault.

SloopJon··on Python-based compiler achieves orders-of-magnitude speedups
I don't see any indication that Codon makes any claim to generated code. It's just that the license prohibits production/commercial use of the compiler--not much different than other proprietary compilers like, say, Visual Studio.
SloopJon··on Python-based compiler achieves orders-of-magnitude speedups
Another big difference: "Codon is licensed under the Business Source License (BSL), which means its source code is publicly available and it's free for non-production use. ... each version of Codon converts to an actual open source license (specifically, Apache) after 3 years."

https://docs.exaloop.io/codon/general/faq

SloopJon··on Float-Parsing Benchmark: Regular Visual Studio, ClangCL and Linux GCC
Daniel chose three options: Visual C++, ClangCL, and GCC under WSL (2?). He says that ClangCL "couples the LLVM compiler (commonly used by Apple) with the Visual Studio backend."

I'm unclear on what he means by the backend. Is ClangCL essentially the same as using LLVM for Windows with the Microsoft linker, or is there a difference in code generation?

SloopJon··on Show HN: Llama-dl – high-speed download of LLaMA, Facebook's 65B GPT model
There was an Ask HN post about that idea a couple of months ago:

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

I have long wished for less linear stories in video games, where branching narrative (a la Choose Your Own Adventure) is one possible way to give the player agency. The problem is, true branches are expensive, because you end up writing a bunch of content the player never experiences.

I see a lot of potential, but it's going to take a different kind of craftsmanship, and likely many iterations, to realize something more than a novelty.

SloopJon··on GNU poke: The extensible editor for structured binary data
This is why I keep reading these threads, looking for something I can wrap my head around.

I started looking at Kaitai Struct not too long ago. I purposely started with a pretty simple format, but I think I'm not smart enough to figure out the input format. Also, I'm pretty sure I hate YAML.

I tried building Poke just last week, having resolved to try it since 1.0, but hit problems with the Boehm GC on my old Mac, and then what looks like Readline problems on my new Mac. I haven't given up, but I'm off to a slow start.

Hachoir, mentioned in another comment, looks promising, although the input looks suspiciously similar to a program I'd write myself.

SloopJon··on A Relational Spreadsheet
If you're asking for a GUI for simple CRUD on an arbitrary table, I think that's pretty common. What database are you using, and what API are you using to access it? (Edit: and on what O/S?)

If one of the obstacles to data entry is normalization, perhaps an updatable view if your database supports it.

SloopJon··on Wolfram Language and Mathematica Free on Every Raspberry Pi
I toyed with trying to get it running on a Jeston Nano a couple of years ago. At the time, Raspbian was still 32 bit, JetPack was 64 bit, and running 32-bit Debian software on 64-bit Ubuntu was more of a pain than I wanted to deal with.

If it still ships with 64-bit Raspbian it might be worth another try, but I would not be at all surprised if it's somehow tied to the Pi.

SloopJon··on SQLite the only database you will ever need in most cases (2021)
One significant caveat: "Free projects are paused after 1 week of inactivity." I'm not complaining, but I reckon a lot of hobby projects would see sporadic activity. For example, I used to upload a list of my CDs to a VPS, so that when I found something interesting at a music store, I could check to see whether I already own it (#FirstWorldProblems).
SloopJon··on Type Inference That Sticks
Although I personally think type inference is the killer feature that makes static typing accessible (almost always auto), I've seen hostility to it, in particular among C++ and C# programmers. The point of this project, as you say, is to be as explicit as possible in the code, while at the same time presenting a view of the code that is less cluttered.

My initial impression is that if I were to use a system like this, I would want any type annotation that differs from the default inference to be visible. The only choice left, then, is when to display redundant annotations, which is where a lot of the disagreement around type inference is, even without this scheme.

SloopJon··on C Port of Ken Thompson's Space Travel
I wonder whether that license is valid, given that it was issued by Caldera, when Novell was in fact determined to be the copyright holder.

I did find a forum in which a user stated: "[Novell's Legal Vice President] said that while Novell retains certain copyrights over UNIX, they also acknowledge and recognize the validity of certain legacy SCO/Caldera licenses regarding UNIX technologies."

https://www.betaarchive.com/forum/viewtopic.php?t=25745

SloopJon··on C Port of Ken Thompson's Space Travel
At the risk of derailing the conversation on this fun project, one my first thoughts was that this game for a long-dead computer is probably still under copyright for another few decades. Then it occurred to me that even after all of that SCO nonsense, I don't know what the copyright/license status of ancient Unix is.

The code in this repo does not show any license. The repo from which it's derived claims GPL 3.0, although the README notes: "The code in the original scans are (c) Micro Focus who own the rights to the Unix source code" (Micro Focus International having acquired Attachmate, which acquired Novell, which bought Unix System Laboratories from AT&T).

SloopJon··on Go 1.20 released
Oh, wow, thanks for pointing that out. I have to build HashiCorp Vault from source with CGO enabled because of the broken DNS resolver. Otherwise, it's completely unusable with a split-tunnel VPN.
SloopJon··on Whipper: Accurate Audio CD Ripping
Very promising: supports macOS 10.8 and later, last updated in 2021, and it read my whole CD collection in just a couple of minutes. Thank you for the suggestion.
SloopJon··on Whipper: Accurate Audio CD Ripping
Years ago, I had most of my music ripped to AAC in iTunes, easily accessible, browsable, and shuffleable.

I now rip each of my CDs to a single FLAC and cue sheet (using XLD on Mac), on the theory that it's the most accurate way to archive a disc. However, I haven't found anything that offers the same accessibility to such a collection as iTunes did. I look through folders, and drag a few cue sheets at a time into Foobar 2000.

Any tips?

SloopJon··on Solving a Dungeons and Dragons riddle using Prolog
I got the solution with a straightforward set of assertions in Z3. It was a lot of typing, and I wonder if there's a more succinct way to do this than the following:

    (declare-const blitzen Int)
    (declare-const comet Int)
    ...
    (assert
      (and
        ; lower bound for readability (1 is front)
        (> blitzen 0)
        (> comet 0)
        ...
        ; upper bound for readability (9 is rear)
        (< blitzen 10)
        (< comet 10)
        ...
        ; clues from the puzzle
        (> vixen rudolph)
        ...
        (< dasher vixen)))
SloopJon··on Building a Frankenstein 64
I was curious to see where the author sourced a SID chip, perhaps the most prized component of a C64 these days. It's an ARMSID, an ARM-based emulator.

I keep thinking I'll pull my C64 out of the attic, but the nostalgia is kind of fading for me at this point. That compact flash cartridge looks really cool, though. I would have loved something like that back in the day.

SloopJon··on Quickly checking that a string belongs to a small set
On my system (Windows 10, i7-10700K, Clang 11 with Visual C++ 2017 linker), frozen::unordered_set takes about 10ns. This is faster than std::unordered_set at 14ns, but slower than direct comparison at 6ns.
SloopJon··on Apple Announces iPhone 14 and iPhone 14 Plus
Although Google Fi claims to support eSIM, the front-line support was unable to help me connect an iPhone 13 Pro, and the back-line support never responded. The solution was to buy a physical SIM card.

Perhaps Google is uniquely incompetent, but I would be very wary about assuming that an eSIM-only phone will work with a given provider.

SloopJon··on Your doppelgänger is out there and you probably share DNA with them
There was a story about a pair of twins like that in the Washington Post recently:

https://www.washingtonpost.com/lifestyle/2022/08/24/virginia...

The marriage is known as a quaternary marriage, and the cousins are known as quaternary twins.

SloopJon··on H1B rejected – builds unicorn back home
> There is no path to a green card or citizenship for anyone who immigrated in the last ~15 years

I'm no expert, but I don't think this is quite right. For an applicant with a bachelor's degree, the cutoff date is February 2012 for India, and April 2018 for China:

https://travel.state.gov/content/travel/en/legal/visa-law0/v...

With an advanced degree, it's December 2014 for India and April 2019 for China.

Please correct me if my understanding is incorrect.

SloopJon··on H1B rejected – builds unicorn back home
I don't know what Kunal's temporary work authorization was, but note also that the STEM extension for the OPT program has been tweaked in recent years, so that you can typically get three bites at the H-1B apple while you're still on an F-1 visa.
SloopJon··on Tell HN: Unpaid home assignments are not ok
I applied for a QA position at a company that uses time-of-flight cameras with industrial robots. I researched their solution, got a sense for its architecture, and started toying around with building a Flatland-style version of their product. I figured that a demo like that would stand out much better than anything on my resume.

They rejected my application before I got too far with the demo, which would have taken me a lot more than six hours to finish. Although it might have been an interesting addition to my Github repo, it was kind of tailored to this one company.

I'm not disagreeing with the OP, because I probably wouldn't find an interview project nearly as fun. I wonder, though, whether anyone has been successful with a one-off, company-specific project like this, as opposed to a general portfolio of projects that you've made over the years.

SloopJon··on Elizabeth Cotton’s Fingerstyle Ragtime
Completely different music style, of course, but Dick Dale did the same thing.
SloopJon··on Keeping a project bisectable
This was my preferred approach for several years. The tests were in a repo separate from the code under test, and each declared its prerequisites, either as a feature or a version pattern.

If a test started failing, I could annotate it as an xfail with an open-ended version pattern. If I noticed that an xfail started passing, making it a upass (I think these were blue in our tests results), I put an upper bound on the xfail version pattern.

The nice thing about this was that I could always run the latest and greatest suite against any version, although it made it a little more complicated to run them as they existed when they were first run.

SloopJon··on Tom Lord has died
I don't know anything about Tom's situation, and I apologize if this in poor taste: a major preventable cause of brain hemorrhage is hypertension. If you have high blood pressure, it's not a joke. Get treatment.
SloopJon··on Learning Go as a Python Developer: The Good and the Bad
This has indeed been eye opening. We got bit by a dependency problem in which TensorFlow started pulling in an incompatible version of protobuf. After reading these comments, I don't think that pip freeze is quite what we want, but poetry sounds promising. We have a relatively small set of core dependencies, and a bunch of transitive dependencies that just need to work, and which we sometimes need to update for security fixes.
SloopJon··on Scrumdog – a program to download Jira Issues to a local database
In my case, I find it hard to query related issues of different types. It's kind of hard to explain unless you see how we use Jira, but I basically want to do joins. You can do some interesting things with the Structure plugin, or issueFunction() from the Adaptavist ScriptRunner plugin. The other thing I've done is to pull a few REST queries into a single-page app., but that takes more work.
← PreviousPage 4 of 26Next →