430 karma · joined Jan 13, 2022 (4y ago) · 180 submissions
1.
Show HN: Inverse Kinematics in the Browser(grippy.app ↗)
2 points · by softcactus · 3y ago · discuss
2.
Show HN: Inverse Kinematics in the Browser with Rust(grippy.app ↗)
2 points · by softcactus · 3y ago · discuss
comment 3y ago · link · parent
All an agent has to do is query their current spot in the graph and it will return a vector that leads them to the next lowest cost. This is useful if you have lots of agents going to the same location.
https://www.youtube.com/watch?v=BHcQ4JCj27w
The description of this video has a lot of good resources. I made it when I was a much much worse programmer though so I wouldn't bother actually watching the video lol.
comment 3y ago · link · parent
comment 4y ago · link · parent
I am not trying to be pedantic, just wondering out loud. 16,000 shells per bomber sounds like a lot, but I am sure you are familiar with the statistic that 250,000 small-arms rounds were fired for every insurgent killed in Afghanistan, and 25,000 rounds fired per kill in WWII. I can't find an actual hard source on the ratio of bullets per kill though. Bombers obviously cant hide behind cover, but I wonder if that 16,000 number isn't as unreasonable as it seems.
> I well know the death rate for B-17 crews - my father flew 32 missions in 1944 in one.
He sounds like an amazing man. I get queasy in light turbulence. I can't imagine the stress and horror of even a single bombing run. That's more than anyone should ever have to go through.
comment 4y ago · link · parent
> The 8.8cm german flak gun WAS a radar-guided AA gun.
The Kommandogerat 40 was a rangefinder/computer, not a radar. It had the capability of being radar-guided, but was not necessarily radar-guided by itself.
For the Kommandogerat 40 you needed a direct line-of-sight (they were still used in overcast conditions though) but it would compensate for the velocity vector of the incoming targets, altitude, wind, and would relay fire controls to all the flak pieces in the battery. Not as nice as a radar, but it was able to be fielded in mass quantities, and I think it deserves its place as 2nd most devastating weapon of WWII. Especially since towards the end of the war, the Germans were the ones playing defense. It made the strategic bombing campaigns of the allies very painful. The RAF bomber crews had a 44% death rate. That's deaths, not casualties.
It also excelled in direct fire roles against ground targets.
comment 4y ago · link · parent
The 8.8cm german flak gun WAS a radar-guided AA gun.
> and proximity fuzes for artillery shells
The axis may not have had proximity fuzes, but the 8.8cm flak was so accurate that during a statistical analysis it was determined that the part of the gun that introduced the most accuracy were the timed fuzes. They switched to shells that detonated on impact and actually ended up scoring more kills than before.
The actual piece of equipment that made this thing so accurate was the fire control computer, the Kommandogerat 40.
https://drive.google.com/drive/folders/1UnrEetRYIuLoUT--ic0i...
Here is a Google Drive link to some scans I made in college of the book written by the designer. It explains all the calculations that the analog computer is doing.
comment 4y ago · link · parent
I recognize that 'gain weight for the winter famine' is a bit extreme but I'm just willing to gain 5 extra lbs than I normally would.
comment 4y ago · link · parent
Sanibel Island has 7,821 housing units at an average density of 454.6 per square mile.
Median sales price of the homes in 2021 was $1.64M, average price was similar.
So a rough approximation of the value of the homes on the island alone is $12Bn. I am not sure how you would translate that into damage costs, but in a scenario of total destruction then $12B would be lost.
I have no real evidence other than visiting Ft Myers and Naples a few times, but I can tell you there is (was) a lot of very valuable property right next to the ocean. I don't doubt that if you look at the total distribution of damages that there is a long tail of less severe damage as you go inland, but the conservative estimates from my napkin math shows that it's likely a significant number (over ten billion) occurred just from properties on the small stretch of coastline.
https://en.wikipedia.org/wiki/Sanibel,_Florida https://sanibelrealestateguide.com/average-price-homes/
comment 4y ago · link · parent
DCA into ETFs with the leftovers.
Buy a little bit more non-perishable food than I need every time I go to the store. Extra bag of beans and rice here and there. Also eating unhealthier than usual since I figure if there's a food shortage or energy shortage during the winter I'd rather be 15lbs overweight.
Continue to learn skills that I think will be valuable in the future/will get me ahead of the average person in my field. I was a child in 2008 so I have never experienced a bad labor market, but I figure I just need to be more employable than average (if I am mistaken then that's what the 2+ years of savings are for). There is always money to be made and people will want to hire those with skills that can make them money. If tech is in a bubble then just being able to make CRUD apps wont land six figure salaries anymore. I'll need a good reason for someone to hire me.
comment 4y ago · link · parent
However because it's all we know, it seems that the real absurdity would be the government designating these sites as 'no-build' zones-- or at least FEMA washing their hands of any damage that should happen to these sites.
This should be a wakeup call that many aspects of our current way of life are unsustainable, not that it's just standard operating procedure to rebuild from the ground up every 20 years only for everything to be washed away again.
comment 4y ago · link · parent
The underlying premise is a misunderstanding of equity that persists today. The idea behind leftist ideologies is not to handicap the brilliant and able, but to extend the material buffers that allow brilliance to flourish to everyone:
“I am, somehow, less interested in the weight and convolutions of Einstein's brain than in the near certainty that people of equal talent have lived and died in cotton fields and sweatshops.”
But at the time and today, people (leftists included) thought that leftist ideology must have been based in envy or some inferiority complex. Harrison Bergeron is that 'meta-ideology' taken to its extreme.
comment 4y ago · link · parent
https://www.reddit.com/r/photoshopbattles/comments/g9jn6r/ps...
comment 4y ago · link · parent
1. I don't think whistleblower protection would have applied anyways since what the government was doing was technically legal.
2. Snowden seems like an asshole and a nightmare to work with, but I don't think that should factor in to the credibility of any arguments he makes which are backed up with sufficient evidence.
3. The biggest thing that changed his perception for me was how much he leaked. It would have been better if he had only gone after documents that pertained to privacy of US citizens.
comment 4y ago · link · parent
Do you think those chickens will never come home to roost? Do you think their training and equipment and tactics wont soon come to border patrol, and then your local police department?
Sure, this agency with a carte blanche now is 'only' targeting people who don't look like you or speak your language or share the same values as you. But how long do you think the US can go before its departments are weaponized by someone who has dreams of being dictator of the US? 20 years? 50? 100?
Rather than just writing Snowden off because he would rather live in the relative freedom of an authoritarian nation than rot in the cell of a 'free' one, maybe take his argument at face value and recognize the real danger of unaccountability.
comment 4y ago · link · parent
On the one hand you have Biden calling out Trumpism/MAGAism as a threat to democracy, on the other hand you have the media hyperfixation on the optics of his speech: 'omg he looks like a dictator!!'
Meanwhile when you look at the machinery underneath and how our system really maintains the status quo, fascism is the standard operating procedure. How can someone claim they want to restore justice and the sanctity of democracy when the extrajudicial killings of US citizens is just another Tuesday?
I don't think he really needed to criticize the substance of Biden's speech, since, given our leaders hyperfixation on optics, there was no substance to analyze in the first place. The speech was nothing but a layer of feel-good frosting concealing the violent means of control underneath.
comment 4y ago · link · parent
Trying to tackle inflation by suppressing wages is both immoral and silly. How is that a 'free market' solution? It's the equivalent of price controls. I am glad that the Fed has taken that as their position, only because it seems to have made people across the political spectrum realize that there is a real antagonistic relationship between the architects of the system and those living within it.
comment 4y ago · link · parent
Tech bros need money to get height gainz -> must pass tech interviews/bring a product to market -> intelligence
But also there is probably a correlation between height and wealth as well. Either way I don't think that it's anyone's place to determine who should reproduce.
comment 4y ago · link · parent
There are so many assumptions being made here. I want to know what the conditions in this hypothetical world are. It sounds fascinating.
comment 4y ago · link · parent
https://blog.risingstack.com/writing-a-javascript-framework-...
comment 4y ago · link · parent
First I wrote a little 'RTS' game in Javascript where the player writes code for the units in game and runs the code in the browser. But the player/programmer needs more info about the game's state. Which means I need dynamic html components to display the changing state of the game. Easy enough, I used a lightweight library called slim-js to give me the functionality I needed minus the ugly boilerplate of the Shadow Dom. But now my dynamic components were re-rendering every single frame, since they were tied to a callback that was triggered when the game re-rendered. Ok, I'll just save the state of the game into a map and only update when there's a missing value or a new value. But all of this state management and custom component logic is overhead that makes the page harder to maintain.
I also wanted to use typescript to make sure I was passing the right values back and forth, which means transpiling every time I make a change. I also need to serve the index.html with a webserver, so I can import ES modules. Http-server works well enough for this, but what if I want to add another page to my site for watching tournaments run on the backend?
It was a nice exercise to learn /why/ frameworks like React exist. Moving forward I'm definitely going to move to a React-based page since I'm already starting to outgrow my vanilla-ish stack.
Here's the game if you'd like to check it out: https://ai-arena.com/
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent