HNHacker News
TopNewBestAskShowJobs

floating-io

593 karma · joined April 10, 2023

Just me. I live at https://floating.io; stop by if you care. :)
submissionscomments
floating-io··on Submarine cables cut in the Red Sea.Authorities looking at potential terrorism
No.

Terrorism is when people use terror for political purposes. While it is often synonymous with crime, the "terror" part is rather critical. Most often, the terror is over the target's personal safety, or that of the target's loved ones.

Having an undersea cable cut does not terrify a sane person without extenuating circumstances. Therefore it may be an act of war, but it is not terrorism in the slightest.

Redefining "terrorism" for the purposes of treating lesser criminals under harsh terrorism laws is unethical, immoral, unjust, and downright awful.

floating-io··on Go run
> You'll loose that `go run.go` the moment you need code generation.

Not really.

  //go:generate ...
It's pretty handy.
floating-io··on Go run
I looked at that recently for a project I'm working on, but walked away when I found that important parts of the net package are pretty much nonexistent on ESP32.

You know, like net/http, for example...

I might have misread the docs, but somehow I doubt it.

floating-io··on Unexpected responses from ChatGPT: Incident Report
Pretty sure that was his point.
floating-io··on Floats Are Weird
That strikes me as an unnecessarily elitist answer that holds us back.

I'm hardly a mathematician, or even college educated, but AFAICT this all boils down to the fact that I can type a number into the computer, and it can't represent it exactly internally, so it misrepresents it, silently.

Where I come from, that's called "a bug", regardless of cause.

Non-mathematicians (and even non-accountants and non-financiers and the like) have to math money all the time. They do it in daily life. Some of them even write programs to do it, because they know enough about computers to do that.

They don't expect that their expensive smartphone is going to screw up the calculation due to some esoteric representational reason that they need four or eight years of college to be aware of, let alone to understand or explain.

And they shouldn't need to!

I would argue that if computers can't do the job correctly in every case without the user jumping through hoops, then we should be continuing to develop methods to make it better.

floating-io··on Recording and visualising the 20k system calls it takes to "import seaborn"
Unless the programming language you use happens to perform 20,000 system calls before it ever even runs a line of your actual code...
floating-io··on Reverse-engineering an encrypted IoT protocol
While the reverse engineering was interesting to read about, I found the Batman Equation far more amusing! :)
floating-io··on vDPA: Support for block devices in Linux and QEMU
I really wonder how much longer the VMUG licensing is going to be around...
floating-io··on Cloudflare defeats patent troll Sable at trial
If I'm understanding what you're saying correctly, then I'm not sure where you got that idea.

Patent holders are not required to license their patents last time I checked. You are simply required to acquire a license prior to using patented technology.

If they don't want to license it, you're SOL.

(edit: if you were speculating on what should be, and not what is, then my bad... :)

floating-io··on BuildKit in depth: Docker's build engine explained
I recently took the plunge in a couple of my CI pipelines and had little trouble. The only thing that actually broke was that the `--cache-from` option doesn't accept a tag, where it does for docker. Everything else pretty much Just Worked.

That said, my pipelines are fairly simple, as are my Dockerfiles, so...

It shaved significant time off my pipelines, though, not having to wait for a docker-in-docker service to spin up (I use Gitlab with Kubernetes runners).

floating-io··on Make Invalid States Unrepresentable
Of course, if you’re going to constrain your data, make sure your constraints are actually correct…

  case February => assert(value >= 1 && value <= 28)

Last time I checked, 2024 is a leap year, so Feb 29 is valid…
floating-io··on My favourite Git commit (2019)
I would argue (rightly or wrongly) that there are two common truths to such a scenario:

Scenario 1, you’re doing a bunch of small changes that work towards a larger purpose. They’re what I like to call “checkpoint commits”. They aren’t the whole story —- just a step along the way to whatever you’re trying to accomplish.

Scenario 2, you’re coding instead of thinking. Making “random” changes until you get what you want, but because you’re continuously delivering, they all go to production. Note that “you” here might be the developer, or it might be business people demanding things from said developer.

In scenario 1, IMO you should be working on a branch. Then, when you’re finished, you squash your commits and replace the countless mini-messages (“fixed”, “Oops”, “wtf?”) with the actual message you want to be there when you merge it.

In scenario 2, especially if it’s driven by business, you’re probably SOL. In this instance, however, I tend to feel like people are making more work for themselves. If they stopped and thought it through for half an hour before starting work, it might only take an hour’s worth of work and one commit, instead of a day and thirty commits.

Of course, there are always shades in between. :)

floating-io··on General purpose MCUs built in to LEDs emulate candle flicker
Polling has never implied blocking. It’s actually a way to avoid blocking. I think you’re thinking of “busy-wait loops”.

The difference between “polling” and “busy wait” is whether or not the CPU is doing other unrelated things between samples.

The difference between polling and interrupts is that with interrupts the CPU can halt entirely while waiting rather than having to take those samples in the first place.

floating-io··on For many home-schoolers, parents are no longer doing the teaching
Did you totally miss the part where I clearly indicated that I’ve not bothered to research and find out if it’s true? Hanging around schools to observe it firsthand would be pretty damned creepy at my age since I don’t work in education and don’t have kids. Nor do I pay much attention to the board elections for the same reason.

The fact that those running for board positions typically have their political affiliation next their name on the ballot, though, should tell you something.

Whether it be Republican or Democrat is entirely irrelevant to the point I was making. The fact is that almost all school boards likely do lean one way or another. They have agendas beyond education, either consciously or unconsciously. Those agendas will make their way into the curriculum, however subtly or overtly. Those agendas will be political, religious, and/or just plain personal.

Whether you agree with whatever agenda they have does not change that simple fact.

That agenda is being taught to impressionable children. Whether that’s good or not depends on who those people are, and what your own opinion of that agenda is, and whether your child is enrolled in a school using the resulting curriculum.

But there IS an agenda that they’re pushing, just as much as any homeschooling parent pushes their own.

And that is the ONLY point I was actually making.

There was no need to try to shame my political views or knowledge —- which you aren’t even aware of, because I never reveal such online since people are so damned irrational on such topics, and that irritates me.

floating-io··on For many home-schoolers, parents are no longer doing the teaching
I don’t normally comment on this sort of thing (I don’t have kids, am not precisely “normal” (whatever that is) and dislike speaking publicly on sensitive topics, anonymous or otherwise), but this touched a nerve for some reason, so I’ll throw a couple of things out there for you to consider:

1. Parents are not the only ones who push their own desires and beliefs. Thought experiment: how many members of the group that decides the curriculum vote Republican or Independent? Scuttlebutt (unverified by me) is that most folks in US schools and on US school boards are Democrats. Regardless of one’s opinion on political matters, that (if true) would suggest a certain uniformity of thought, and the likely presence of a conscious or unconscious agenda that would then get passed on, deliberately or otherwise, in the resulting curriculum.

And that’s before we get to the general tendency of many groups (regardless of type) to naturally attract like-minded souls in the first place. I only used political affiliation as a visible indicator of the phenomenon (assuming that the rumors are true about Democrats and schools, which as I said, I don’t actually know ;), not to promote one or another party, and not to imply that it’s anywhere close to the only factor.

2. IMHO, schools, public or private, do not fix social issues, and in a certain subset of children, may actually create them. I say that as someone who was never homeschooled, and yet has significant issues socializing (though I’ve learned to hide that fact in public over the years, and have a good career). Your thoughts on friendship resonate with me to a degree, and school did not help it one iota. Probably made it worse, actually.

I won’t go into my personal opinion on “the right answer,” because it’s irrelevant in the end. I have no kids, and thus no skin in the game, nor do I actually know “the right answer.”

Just some food for thought.

floating-io··on HashiCorp switching to BSL shows a need for open charter companies
When I read about mid-stream license switches like this, the term bait & switch comes to mind. It seems unethical.

People bought into the product based on various factors, one of which may have been the license. They put hundreds or even thousands of hours into integrating that product into their environment. Then someone pulls the rug out from under them.

That Hashicorp were accepting community contributions from people who will never see a monetary return on that investment —- while Hashicorp makes money on their work —- adds insult to injury.

Businesses who use that kind of tactic are not high on my list of people to give my money to.

floating-io··on Anyone using LoRA? What did you learn
I wonder how annoyed the LoRa Alliance is with this particular acronym, which is one capitalized letter away from their trademark?
floating-io··on Show HN: Markwhen: Markdown for Timelines
Random feedback:

- On an iPad Pro (iPadOS 16.1.1 - not sure how current that is offhand), the UI is extremely unintuitive and/or broken. Tapping the example landed me in an editor that then took far too long to figure out how to get out of.

- It remembers that the editor is up. Once up, getting out and back to the homepage is next to impossible until you figure out the UI (clearing cookies probably would have worked, but that’s not exactly convenient). Reloading just takes you back to the editor.

- The timeline and one other view (can’t remember which one offhand) just showed a black screen.

- One of the biggest draws for markdown for me is the fact that it, in general, reads like a formatted text file. The formatting “instructions” are almost transparent in that sense. Not completely, but almost. My initial view of the example timeline’s source did not feel that way.

For example, sections:

   Section welcome #welcome
   Blah blah blah
   EndSection

   Section foo #foo
   Blah blah blah
   EndSection
(Ignore my extra caps; iOS is annoying like that.)

“Sections” in markdown would be written more naturally, and the end intuited based on the following content:

    # Welcome
    Blah blah blah

    # foo
    Blah blah blah
The extra wordy markup means little, and detracts from readability. Similar with groups. Date formats appear to get somewhat complicated as well. If that was resolved, I think it would be much better.

This is just a surface reaction to what I see; I didn’t do a horribly deep dive. I love the idea. It just needs some work if it’s going to be as smooth as markdown.

JMHO, and good luck in any event. =)

floating-io··on Junk websites filled w AI-generated text pulling in money from programmatic ads
I once worked at a company that did something very similar to what you’re suggesting. It doesn’t work as well as it sounds.

The problem is that the feedback mechanism is far too easily compromised (both by intentional means and unintentional ones).

In order for such a scheme to function properly, the ad network has to be able to tell how many sales were made as a direct result of the click. The feedback loop needs to be nearly perfect. As things stand, it is terribly easy for ad purchasers to game, and not everybody is honest.

I agree that the concept is ideal, but I have yet to see an implementation that actually works without a great deal of additional effort (and a lot of human attention, and many many arguments…).

floating-io··on This website is solar powered and running on a Raspberry Pi-like computer
Things like this actually bother me. They make it seem like the only way to be energy efficient is to give up all amenities, including aesthetics.

This is not the way to promote energy efficiency IMO.

floating-io··on How To Get Started In Soldering
Adafruit tends to sell things like their feather boards with loose headers, leaving the buyer to solder them. If you like playing with stuff like that it would give you an excuse to buy more boards.

Timely; I just finished soldering headers to a Feather about 30 minutes ago. :)

← PreviousPage 7 of 7