HNHacker News
TopNewBestAskShowJobs

pietroglyph

1,220 karma · joined November 17, 2017

submissionscomments
pietroglyph··on FFmpeg as a Library : libav tutorial
It’s good to have something like this. Last time I worked with libav the only available good documentation was the official examples and the ffmpeg (the tool) source code itself, along with the comments in the headers.
pietroglyph··on The most effective malaria vaccine yet discovered
Yep. Animals are the most common way that diseases are introduced to humans, and industrial animal agriculture brings these animals into close proximity with themselves and us. Removing animal products from our diets not only mitigates this huge disease reservoir but also removes a huge source of greenhouse emissions, land use, pesticide use (for feed), and animal and labor exploitation (the meatpacking industry is extremely exploitative in the United States.)
pietroglyph··on Reprojecting the Perseverance landing footage onto satellite imagery
An interesting side point is that the graph optimization approach used here is somewhat similar to modern graph-based visual SLAM

The graph in the article can be seen as a factor graph. VSLAM systems usually have a (kind of bipartite) factor graph with vertices/variables that are either keyframes or ‘good’ features, with edges/factors between features and the frames that see them and between adjacent frames; each of these edges are the factors in the graph. This structure results in very large but sparse graphs, and there are factor graph optimization libraries that take advantage of this sparsity (e.g. g2o or GTSAM.) These libraries also use specialized optimization techniques for some of the nonlinear manifolds (e.g. SO(3)) that arise in SLAM problems.

pietroglyph··on Google to Distrust AC Camerfirma SA (CA) Starting Chrome 90
This is a good list of the incidents precipitating this event, if you don’t have time to read the thread: https://wiki.mozilla.org/CA:Camerfirma_Issues
pietroglyph··on GitHub Source Code Leak
> impersonating Nat Friedman using a bug in GitHub's application.

This is not a bug, it's a part of how Git fundamentally works. If you want to mitigate it you have to sign your commits. GitHub could only attribute commits in the UI if they're signed, but I suspect that this is considered too much friction to enable.

pietroglyph··on Thrust Vectoring at Model Scale
Joe Barnard (the guy behind BPS.space) has some great videos behind the controls involved in this project on the BPS.space channel: https://www.youtube.com/channel/UCILl8ozWuxnFYXIe2svjHhg

He also has a ton of other really great talks on controls engineering on his main channel.

pietroglyph··on Uninstall Nano Defender
I agree that they’re liable for some things in the court of public opinion (which happens to have a very short attention span and limited agency), but I don’t see how they’re legally liable unless you’re implying that the EULA would be found to be unenforceable in court.
pietroglyph··on Ask HN: Resources to encourage teen on becoming computer engineer?
+100 on this. A social environment that encourages this is a huge motivator. A good FIRST Robotics team is one way that you might get this (not all teams will have great student experiences, but they’re probably your best bet for this type of environment.)
pietroglyph··on C++20 has been approved
The thing is that this is not a huge issue in practice. I stick to uniform initialization in 99% of cases and it works out pretty well. I have far fewer bugs from initialization screwups than from other things.
pietroglyph··on How will the world vaccinate seven billion?
Most of your reply isn’t really correct.

> A vaccine is also an attenuated version of the virus so if becoming immune from the virus doesn't last long it won't last long from a vaccine.

A vaccine can be an attenuated virus, or a piece of mRNA or DNA, or a distinctive viral protein. Which type of vaccine you use+the adjuvants that go with it can result in very different immune responses and efficacy over time.

> This is false, immunity is strong and long-lasting.

Immunity to COVID-19 varies a lot person to person and is poorly understood. It does however appear that many people can be reinfected (especially people who had mild symptoms the first time.)

pietroglyph··on New ‘Meow’ attack has deleted almost 4k unsecured databases
Sounds like a good public service. I’d much rather have my data deleted until it’s secured than have it stolen by someone else.
pietroglyph··on Website allows you to experience what it is like to live with dyslexia (2016)
Out of curiosity, is English your native language?
pietroglyph··on An even worse anti-encryption bill than EARN IT
> Our word used to mean something. > But now? How can we hold a higher ground than China when our own police forces use the very same tactics against our own protesters? How can we accuse the other side of building concentration camps when we have our own?

But we’ve had things like this for a long time. The police have acted like they do for generations, we had concentration camps for Japanese people during World War II, and we’ve always done a variety of other reprehensible things (propping up brutal dictators, destroying native civilizations, institutional racism of every possible flavor.) Frankly, I’m shocked that our word ever meant something.

pietroglyph··on Dust in the Light
> how are the people living in the white neighborhoods to be blamed for that?

They aren’t necessarily to be blamed for that. This blog post isn’t really assigning blame to white homeowners.

pietroglyph··on How to Make this Moment the Turning Point for Real Change
> Basically everyone who isn't an outside agitator, but if you don't already believe me I doubt I'm going to change your mind.

Trotting out a nebulous, totally unsourced claim and then implying that anyone who questions you is wrong beyond help is… not exactly a convincing tactic.

pietroglyph··on Google postpones Android 11 beta
> The real reason the situation can't improve is the people angry about police brutality are misinformed and don't want to learn.

What information are the people angry about the current situation missing?

> It's not about the reality of the situation; it seems like more of a tribal thing.

This seems needlessly dismissive. The “reality of the situation” is that police brutality needlessly kills people frequently, most of the people who are killed are black, the police involved are rarely held accountable, and nothing has seemed to change for years.

pietroglyph··on Google postpones Android 11 beta
> US cops work in a dangerous environment

In the US policing doesn’t even make it in the top 20 most dangerous jobs by fatalities [1] or injuries [2].

[1]: https://advisorsmith.com/data/most-dangerous-jobs/ (original source is BLS; this source just did the per-worker math) [2]: https://www.bls.gov/iif/oshwc/osh/os/snr02_00_2018.xlsx (2018 is the latest data available from BLS)

pietroglyph··on Show HN: This Word Does Not Exist
Amusingly, I got: "nonhumanoid, adjective; not having life". It appears that the model would describe itself as lifeless.
pietroglyph··on Ask HN: Would you choose Dalvik VM to Arduino?
This reply is a little late, but I work on things in the robotics space where there are much more robust libraries for C++ than in Java, and some little extra features (e.g. operator overloading for linear algebra libraries) really make a big difference.

For students however I think that Java is probably the better call (fewer footguns, more resources like the AP curriculum.)

pietroglyph··on California voters to get mail-in ballots for 2020 election
In Washington state where I live, voter registration includes soliciting a signature, which can also often be checked with drivers license signature on file.

You have to be ignorant or deliberately acting in bad faith to say that signatures are an issue, because about 10 minutes of research will show you that states which do vote by mail get around these issues pretty easily.

pietroglyph··on California voters to get mail-in ballots for 2020 election
States like Washington do mail-in voting quite successfully.

Vote-by-mail is cheaper (no polling places to run), increases voter turnout (which is why it’s universally opposed by the Republican party), and actually reduces fraud risk because it leaves a paper trail and removes the opportunity for voter intimidation at polling places.

pietroglyph··on Humans Not Invited
I got in. Looks like the final site has an XSS problem.
pietroglyph··on Ask HN: Would you choose Dalvik VM to Arduino?
Sounds like a cool project!

I prefer C++ to Java, but I think there’s absolutely a niche in the US educational market because the AP Computer Science A test uses Java. It could be pretty nice to have a Java-compatible MCU for the high school students I mentor because that’s the language they know, and it would make some cool hardware projects more accessible.

pietroglyph··on Why are Soviet math textbooks so hardcore in comparison to US textbooks? (2017)
My (slightly more recent) US high school experience had nearly all students cover the calculus you described by the end of high school, and about 1/5 of the students got fast-tracked to the point that they studied linear algebra and multivariable calc by the end of high school.

I talked to a couple of friends about this, and about 1/2 had similar course offerings.

pietroglyph··on First Robotics Competition: An International High-School Robotics Competition
Mentor involvement really varies team-to-team. I’ve seen teams where the students don’t do a lot on the software side, but the majority of teams I’ve seen as a “software helper” volunteer at events (and talking with other teams) have had significant student involvement.

On another note: the FIRST Robotics Competition’s official support library (WPILib) includes a number of advanced control features (trajectory generator, extended/unscented/“regular” Kalman filters, LQR) that were written almost entirely by students. I was one of the students involved in this work, and I can say with certainty that students can get a tremendous amount out of the program.

pietroglyph··on PID Without a PhD (2016) [pdf]
This is how I teach middle school and high school students basic controls. They implement and tune a proportional controller, then the derivative part, and then I give them a feedforward model for the plant (usually a brushed DC motor.) The PD controller and feedforward is very easy to write and is quite approachable once you see how simple it is, and it can be very exciting to see a motor “do as you command” before your eyes.

I avoid integral control because it’s less effective and much harder to deal with than good feedforward. Most of the mechanisms we use (in the FIRST Robotics context) have a feedforward model and good system-identification tools so this works out well.

pietroglyph··on PID Without a PhD (2016) [pdf]
What? If you have a good model of your system then you can (relatively easily) turn it into an optimization problem and use a LQR to choose gains for you. It’s true, this method still gives you knobs you might have to tune (Q and R), but these are easily conceptualized because they slide the cost of state excursions and control effort along a Pareto boundary. That means that you can get optimal PID gains just by saying how much you penalize a state excursion vs. how much you penalize control effort (e.g. distance from your reference point v.s. fuel use, or something like that.)

It’s also certainly true that a LQR won’t help you if you have no a priori knowledge of your system, but for many of the mechanisms we need to control this isn’t a problem.

pietroglyph··on Ask HN: How can a intermediate-beginner learn Unix/Linux and programming?
Just because a C programming experience is possibly going to happen far off in the future doesn’t mean that beginners should commit to having a traumatizing ‘70s computing flashback as their first real programming experience.
pietroglyph··on Ask HN: How to deal with burnout clashing with Covid downturn and stress?
> There is always another crisis around the corner where you can apply lessons learnt. The world is getting a whole lot more complicated compared to what our small brains can handle, thanks to hyperconnectivity and info exploding, so expect a whole lot more weird ass black swan events ahead.

I’m curious, do you mean that there will be more black swan events due to hyperconnectivity and they’ll be weird, or that there’ll be the same number of black swan events but they’ll be weirder due to hyperconnectivity?

I understand the reasoning behind the latter, but if it’s the former I would be interested to hear why hyperconnectivity results in more black swan events.

pietroglyph··on Tokyo Olympics “looking at a cancellation” if coronavirus not contained
> not including people who returned on evacuation flights.

This bit seems important. The “only 400 tested!” statistic people are citing seems much more reasonable in this context.

Page 1 of 7Next →