Hacker Newsnew | past | comments | ask | show | jobs | submit | kleiba's commentslogin

Another interesting read: how Lucas Pope did dithering for moving game scenes in his indie game "Return of the Obra Dinn": https://forums.tigsource.com/index.php?topic=40832.msg136374...

Why do some snowflakes stop in mid-air?

I haven't looked at the code, but I suspect that those flakes have hit another snowflake and are now considered "fallen" snow. And for fallen snow there's probably an optimization that only x% of particles are updated every step

I wrote a similar snow app a couple of years ago in Logitech Modula-2 for DOS. I used an array to hold the flake data. If a flake stopped when it hit another flake, it would go again on the next round because the flake it hit would also keep going.

> This can be traced to people in a car believe they can control whether they have an accident or not (and largely can).

This is true. In France, about two thirds out of the people dying in a car accident are the actual drivers responsible for the accident, according to the 2024 Road Safety Report.


"largely" is true, but because planes are more than 3x safer people are still being wrong when they fear plane travel.

People try to treat "largely" as "fully" and that fails.


It's not about statistics. It's about control and knowledge. I know if a car I'm in is driving safely. I can ask the driver to calm down or let me off. In a plane I have nothing. I'm just sitting in a tin can, no idea whether the pilot is flying responsibly or not. No idea whether the landing is routine as hell or kinda sketch. Even if i could talk to the pilot the only thing we can do is land.

And have you thought about airplane landing? It's insane. This big clunky metal bird full of literal jet fuel coming in at like 400kmh or whatever, bouncing around on the tarmac as it's desperately trying to regain control and slow down.

Honestly I don't see how a rational person could not be stressed out in that situation. Yes we all know it usually works out, but we also know if it doesn't work out we're very likely going up in a ball of fire. And no matter what the stats say it doesn't feel like a safe situation. It feels like a near death experience. Seriously. Every time I fly I mentally come to terms with the fact that I might die. Every time we take off and land I'm feeling the bumps and jerks, listening to the sounds and wondering whether this is normal.

I fly at least a few times a year, and I don't take any drugs for it, but I fucking hate it.


> I know if a car I'm in is driving safely. I can ask the driver to calm down or let me off.

Do you know that all the other cars on the road that might hit yours are being driven safely?

How do you feel about busses and trains?

> And have you thought about airplane landing? It's insane. This big clunky metal bird full of literal jet fuel coming in at like 400kmh or whatever, bouncing around on the tarmac as it's desperately trying to regain control and slow down.

A car is a metal box full of fuel kept under control by four rubber balloons.

At least a plane is heavily monitored for safety, checked before every flight, and controlled by highly trained professionals.

> Honestly I don't see how a rational person could not be stressed out in that situation.

A rational person would not be worried. The fear is very much an irrational reaction and a psychological problem that a few people have. Most of us will happily go to sleep on a long flight and our biggest fear is boredom.


A lot of people (here and elsewhere) don't get how many people are just terrified of flying. I was on a flight many years ago (on admittedly a pretty rough transatlantic flight) when the woman next to me was basically in tears and grabbing my arm.

Personally, I don't love being bounced around in a plane but I'm reasonably confident that wings aren't coming off the Boeing jet--whatever the company's other faults.

I'm certainly a lot more nervous driving in a snowstorm or on a twisty mountain road.


I was afraid of flying until I worked at Boeing and acquired an intimate knowledge about how safe they were.

My lead told me they can fix everything but the nut behind the wheel.


If you're in a commercial plane, the driver is acting immaculately, with a margin of error so small you'd never be able to notice any problems. So you'll never need to ask the driver to calm down or let you off.

(But it's worth noting that all the control in the world won't keep you safe in a car. You can have/be an inhumanly perfect driver and it's still pretty dangerous to be on the roads.)

And then every other complaint you list is irrational. "how a rational person" avoids being stressed out is by knowing it's safe. The bouncing on tarmac is safe. Ball of fire is less likely than in a car. Bumping and jerking happens in lots of safe situations. The sounds are normal.

I'm not saying it's wrong to feel fear, but do not pretend the fear is rational.


> The bouncing on tarmac is safe.

It's not long ago that I saw a video of a plane landing in Canada, the right landing gear collapsed and the whole plane rolled around crushing the wings and creating a huge ball of fire. Miraculously everyone survived but passengers described being showered in jet fuel while a huge fireball was going off outside so they clearly weren't far off getting roasted.

It obviously isn't safe. It's a situation where if anything goes wrong, there is a very high chance that everyone involved goes up in flames. Now we all know it usually goes well but saying it's safe is a stretch in my book.

Shit happens all the time in aviation. Planes are told to land on a runway where another plane is taking off. Plane manufacturers install buggy new systems without informing pilots causing hundreds of fatalities. Planes collide in mid air. Birds fly into the engine.

And yes, pilots make mistakes. They are absolutely not acting immaculately all the time. They're human, we all make mistakes. Some, more than others. And some times things go wrong no matter how perfectly the pilot flies.

I never said I feel safe in a car at all times. I just said I feel more in control. But I often feel unsafe in cars too, particularly when I'm a passenger. A lot of drivers drive unsafely by my judgement - they drive too fast for the conditions, too close to other cars, they're looking at passengers, phones, the view, or messing with car settings instead of looking at the road. They get angry for no reason and drive more aggressively. They expect everyone else to drive perfectly and if anyone doesn't do what they expect they have close calls and blame the other driver rather than realizing they should simply have given them more space.

Basically, most people drive in such a way that if anything goes too wrong or goes wrong at the wrong time, they will be helpless to do anything about it. I try to drive in such a way that when things go really wrong I can still compensate for other people's mistakes. Of course it's impossible to be 100% safe but I am quite confident that I'm very significantly safer than most drivers.


> This is true. In France, about two thirds out of the people dying in a car accident are the actual drivers responsible for the accident, according to the 2024 Road Safety Report. --- This is because a large number of accidents don't involve another car.

Your point?

To add to this, here's a piece of anecdotal evidence. I've watched a lot of traffic accident videos in my life, and in the vast majority of the videos including two vehicles, both drivers are at fault.

They may not be legally at fault, I don't really worry too much about that, but by my judgement they could have avoided the accident by paying attention or driving slower or driving less aggressively etc.

Same goes for pedestrians by the way. The absolute vast majority of pedestrians who get hit by cars could have avoided it by paying attention and taking some responsibility for their own safety.


And if France it's anything like the UK, the absolute vast majority of these deaths are people driving drunk at night. If you are driving in city traffic at 20mph commuting to work your chance of dying is nearly zero - there's always a chance someone else might be speeding and crash into you, sure, but it's nowhere near the general rate of deaths in cars.

As a seque to this - knowing the above, I find it insane that various institutions are pushing for more and more aggressive driving aids.


My perception is that drink driving is now pretty rare in the UK.

The biggest dangers I see regularly on the road is simple aggressive driving. Overtaking too much, tailgating, multiple lane changes in one go (on motorways), not driving slower in bad conditions.....


That not true. Drunk driving is not remotely the biggest cause, let alone the "vast majority". Speeding is.

And also: note you're only considering the pov of a person inside a car. In the last decade deaths among pedestrians and cyclists have skyrocketed, courtesy of society willingly accepting that it is normal and rational to have 4000kg vehicles with 180bhp being used ubiquitously to move 70kg humans to the grocery store. Since public infrastructure is completely designed around cars, with pedestrians and cyclists pushed to the edges or protected from cars by lines of white paint, it's no wonder this is happening.


I stand corrected - I looked it up and yeah, you are right, drunk driving is only the cause of about ~20% of road deaths in the UK.

>>And also: note you're only considering the pov of a person inside a car.

Well the person above was talking about how dangerous driving is, to which my argument still stands - if you are just commuting to work in or near a city, your actual risk is incredibly low(as the driver or passanger).


I've never done that yet I've never had any trouble finding water past security or even on a plane?!

Airport prices in the UK for recreational travel work like so:

Flight from London to Barcelona: £16

Bottle of water past security: £5

Train to airport: £26

Taxi enters drop-off area for 30 seconds: £7

A person who wants to get the advertised flight at the advertised price has to be very careful.


> Taxi enters drop-off area for 30 seconds: £7

To be fair, I entirely understand the absolute necessity for this.

The reason for its introduction is before hand the PHVs (Uber etc.) of this world would, instead of using the car parks, go up to the drop-off area and wait there.

Because there was no charge and no penalty, what they would do is drop off a passenger and then sit there waiting for their next job to ping on their screen.

This became a particular problem at Heathrow T5 where the drop off area is relatively tiny.

The result would be that at busy hours, private individuals attempting to drop off their friends and family would be unable to find space and end-up double-parking and causing safety hazards.

For a while they tried to use airport Police to enforce it, but the volume of PHVs was just far too great. Hence the cameras, charges and penalties were introduced.

It should also be noted that at Heathrow, if you do not want to pay the £7, you can instead drop people off for free at the Long Term Car park and they can get the shuttle bus back to the terminal.


Rather than charge everyone £7 or more for a drop off, wouldn't it make more sense to charge the people abusing it an absurd amount? I'd much rather see a £25 fee after 90 seconds and an additional £125 fee after 5 minutes than £7 for 30 seconds.

It seems less about making things more efficient and more about just squeezing a little bit out of money out of everyone.


Recently parked in a Spanish airport carpark that worked similar to this.

First few minutes free, lower tariffs for 5-10 mins (or maybe fixed charge at those limits?), then like 1 euro per minute after that.


That'd be a lot of surveillance and bookkeeping.

In San Francisco we have toll tags called FasTrak. You can pay for parking at the airport with it. Of course, there, it's just the normal, pretty high airport parking rates, but there's no reason you couldn't use such a tag for enforcing quick free drop offs and pickups with exactly that much precision. Enter the drop/pickup area with your toll tag, if you're out in 3 minutes, no charge. 5 minutes, $4, and if longer than that, $20/hour or whatever. It's not like computers mind doing that math.

On the other hand, one can also question if the £16 cost for the flight makes any sense. A more correct price would be £500. It's about time that the airlines pay the same taxes for fuel as everyone else.

What is the correct cost for a flight leaving in 3 hours with an empty seat? What is the correct cost for a scheduled flight leaving in 2 months with no seats sold yet?

Tickets aren't the same price for everyone, and planes fill to variable levels. Plus there are addons like luggage fees and beverages that have a huge markup. What is the best way to solve for that?

Besides, it averages something like 53L of fuel/passenger to make that trip. Hardly necessitating £500.


You can do whatever calculations and speculations you want, but the fact is that airlines do not pay any tax on fuel and no VAT on fuel. Not sure why they should not.

Another thing with flying is that it is so easy to go long distances as it takes limited time. A trip London-Barcelona is a 1.5-2 day trip one-way by car. You think twice before doing that. An intercontinental trip London-Bangkok is impossible by car, but creates more CO2 than all energy one person uses in a year (heating, cooking, going by car to work etc). Dirt cheap and in the blink of an eye.


I agree. A mandated minimal price per km.

Tangential, but given the myriad externalities of air transport, such low fares for flying are deeply unethical and a perverse incentive that we are going to need to address one day.

Take an empty, open water bottle through security and then fill it up at the free water fountains!

There is often no free water.

I've been all over the USA, continental Europe, and Japan, and there have always been water fountains. Granted, I've never been to one of the "don't drink the tap water" countries.

I just had this experience at CDG, at the AA gate. I really don't know why people seem to think this is a made up problem. You may have found drinkable water at your gate, but airports are big, and your experience is not universal.

Correct, I pay for it for you, every April 15th.

Which airports?

Price of water from water fountain (to be found on basically any western airport and most non-western I've ever been to) - 0.

I get your approach, but say where we live (Switzerland) if you have something not tightly around your body like a fleece jacket, you have to take it off and put it through scanner, this is default. Sometimes they still ask me to go down to t-shirt even if its obvious I don't have anything in pockets.

Not worth the hassle for something that is mostly free and probably healthier compared to plastic bottles stored god knows where and how long. I'd imagine if they catch you, you are going for more detailed inspection since its obvious you didn't forget 1kg bottle in clothing you wear by accident.


Even in your own car dropping off your friends or family at a UK airport (at least the London ones) requires paying a £6 fee now. Just to get to the dropoff area, even for 30 seconds as you say.

But hey, at least the luggage carts are free…


In Edinburgh the (small, we often need 2) luggage carts are now £2.

Right, but what do you think the alternative is? There is limited space close to the entrance of the terminal, it has to be rationed somehow. Also what happens in practice is people take advantage. A trust-based 30s wouldn't work. Even with the current fees you can hang around Heathrow drop off and see the police having to move people along, check unatended cars, etc.

There's limited space everywhere. It is rationed by people not wanting to be there. There's limited space at the baggage claim but nobody is charging you to be at the baggage claim.

You think people don't want to drop off at the airport? There's literally a multi storey full of short term parking at every Heathrow terminal. They wouldn't fit in the drop off area at all.

You are charged to be at the baggage claim. The airline pays it on your behalf, from your fare.


you are not charged to be at the baggage claim

If you can find a way to utilize the baggage claim services without paying someone at some point I'd love to hear it.

Just because you're not handing someone your card as you walk up to it doesn't mean you're not paying for it.


nevertheless you are not charged to be at the baggage claim. You can stand there as long as you want to, and your bank balance doesn't decrease.

Baggage claim being run by a charity, obviously.

> nobody is charging you to be at the baggage claim

Not yet.


The alternative is not charging. JFK somehow manages. Yes there's traffic, but it keeps slowly moving.

JFK is pure hell compared to Heathrow, never mind to an actually well-run airport. I'll stick to paying for my externalities.

I have three major airports in reasonable driving distance. None of them charge money to pick up or drop off at the terminal. It works fine.

And what's your experience of other world airports? Have you been to Heathrow? What about somewhere like Changi? It's not just the dropoff that sucks at JFK.

Public realm is almost universally terrible in America because Americans rarely leave and don't experience anything better. It's bad, actually, to wait in traffic for a large portion of your life.

See also: the revolt over NYC congestion pricing. The congestion fee in Manhattan should be $50 or more.


I've only transited through Heathrow, I haven't tried the driving experience there. I have tried it in various other airports in Europe and China. None of them charged money to drive up to the terminal either and they were all fine too.

Sometimes the American experience isn't different from the rest of the world and it's your experience that's unusual, you know.


You understand that e.g. in Chinese cities they restrict car ownership and you have to enter a lottery/bidding system to get valid plates. Cars are a luxury. European cities have their own restrictions and discouragements. Rationing happens in many ways.

I have still never experienced an airport with pick-up/drop-off traffic as bad as JFK, and I've travelled to almost every country in Europe, plenty of countries in Asia, and Canada. Maybe South America can beat it though, TBD.


That's probably a "JFK is unusually bad" thing, not an "everything is terrible in America and those idiot Americans don't know any better because they never travel" thing. I haven't been driven to JFK since 2001 and I don't remember what it was like then, but driving anywhere around NYC requires great patience.

London is worse _overall_ for traffic than NYC, so I don't think it's that. I like America and Americans, but it's a fact that they don't travel much. JFK is not just bad for drop-off, it's chaos and run-down in general.

Many of us travel internationally quite a bit. And again, this thing you think is uniquely American very much is not.

At Edinburgh airport, you can park at the Park and Ride nearby but it costs a tenner to get from there to the airport - a distance you could walk in about 20 minutes.

Yeah it’s got out and out criminal at this point. Not sure why we should accept a £6.40 charge to drop someone or collect someone from an airport when that’s the actual function and necessity of using an airport. I got charged £100 at COUNCIL OWNED Manchester airport for picking up a friend who accidentally had put themselves in the drop off zone rather than the collect zone. Just completely vile and disgusting corporatism at every single level.

Are you saying they fined you for picking someone up in the drop off area? If so that's pretty wild. It's all just traffic at the end of the day.

Yes. They have paid sneaks standing around and the second you do something like that they radio to the people who control the barriers so you can’t get out without paying it. Just completely f*cked state of affairs.

https://www.manchesterairport.co.uk/terms-and-conditions/dro...

“ 1.3 Breach of these terms and conditions may result in Parking Charges up to £100. An additional fee of up to £70 may be applied for the costs of debt recovery.

9.1 Drop-off only: The Drop Off Zone may only be used to drop-off passengers and not for pick-up. There are separate designated areas for the pick-up of passengers. Use of the Drop Off Zone for any other purpose will result in the issuance of a Parking Charge.


I do that all the time in certain airports when the drop off is essentially empty with 0 line but pickup is a half mile row of cars.

Kinda antisocial. If everyone acted like you the drop off would be clogged as well and some people would miss their flights.

The drop off is frequently clogged anyway so you have to plan for that. Where I'm at the airport will advise the use of the opposite one if things back up. Early in the morning the departures sign will suggest using arrivals if you see traffic backing up and vice versa in the evening.

Shhhhh

When people say "water" here I have to assume they mean "vodka". Otherwise you can just bring an empty bottle and fill it on the other side. It's the toiletries that pose a problem.

I've been in many airports where there is no water on the other side of the X-ray. At KLIA and DPS they have none to buy even, and then you have to fight for it on the plane. At CDG you have to buy it, no water fountain. It's extremely aggravating.

I’ve definitely found free water fountains at CDG.

Now, one of the Bucharest airports literally does not have potable tap water. Their well, being under an airport and all, is contaminated. By email, they did inform me that the water is microbiologically fine. Unsure of their pipe to the municipal system was been built out.


Probably a issue with PFAS contamination. Stuff was used in firefighting water, and has contaminated just about every airport and the surrounding area's groundwater, all over the world. So while microbiologically safe, it has PFAS issues.

Either that or hydrocarbons from leaks over several decades or deicing fluid easily infiltrating their wells, or all!

Or they don’t test it and therefore can’t certify it but I did take a swig and immediately spat it out.


Well none at the AA gates, just had to buy it at Relay at usurious prices.

Disappointingly, in my case it's usually just water. I'm walking towards security with my bottle, I can either slip it in my pocket or put it in a bin. Not throwing it away saves a bit of time and quickly becomes the default choice.

Depending on the airport and terminal (e.g. shitholes like Frankfurt, especially terminal 2), filling it on the other side might mean a washbasin in a stinky toilet because they'd rather you buy overpriced bottled water. And many airports that do have at least water fountains only have some that seem deliberately designed to prevent you from using them to fill any reasonably sized bottle.

Also, don't count on security not throwing away your empty water bottle anyway just because they can.


Wow, it's refreshing to read that we maybe we don't have it the worst in the US, right here amongst everyone's beefs with TSA. Every airport domestically I've ever flown to has not just water fountains, but the convenient bottle-fillers (usually connected to the normal fountains). I always just bring an empty plain disposable plastic bottle, for its light weight, and security never bats an eye at it.

Some airports charge money for water after security.

Others disallow even empty bottles at security screening


> Others disallow even empty bottles at security screening

I haven't encountered this. Could you name some?


Nobody disallows empty bottles through security, that's a lie.

I have had an empty water bottle thrown away once so it's not a lie even if it might not be universal.

"Someone threw this away once" is not the same as "banned at security."

What do you mean "had"? I just turned mine off a minute ago. I am yet to make the transition to flat screen TVs but in the mean time, at least no-one's tracking my consumer habits.

Not through your TV, but they see you driving to the last Blockbuster tho

I wish.

It gets even better when you click on "raw", IMO... which is what you also get when clicking on "raw" on Github.

"Other people" might also just be junior devs - I have seen time and again how (over-)confident newbies can be in their code. (I remember one case where a student suspected a bug in the JVM when some Java code of his caused an error.)

It's not necessarily maliciousness or laziness, it could simply be enthusiasm paired with lack of experience.


Funny, I had a similar experience TAing “Intro to CS” (first semester C programming course). The student was certain he encountered a compiler bug (pushing back on my assumption there was something wrong with their code, since while compilers do have bugs, they are probably not in the code generation of a nested for loop). After spending a few minutes parsing their totally unindented code, the off-by-one error revealed itself

Off topic, but I feel like this could be made into a Zen Koan from The Codeless Code[0]. You're almost there with it!

[0] https://thecodelesscode.com/


Offer topic, but the Codeless Code isn't Zen Koans. It's formatted like Zen Koans, and it's entertaining and brings value to the world, but it isn't the same thing.

Our postgres replication suddenly stopped working and it took three of us hours - maybe days - of looking through the postgres source before we actually accepted it wasn't us or our hosting provider being stupid and submitted a ticket.

I can't imagine the level of laziness or entitlement required for a student (or any developer) to blame their tools so quickly without conducting a thorough investigation.


I had a professor who cautioned us not to assume the problem was in the compiler, or in anyone else’s code. Students assuming that there is a compiler (or similar) bug is not uncommon. Common enough he felt it necessary to pre-empt those discussions.

have found bugs in native JVM, usually it takes some effort, though. Printing the assembly is the easiest one. (I consider the bug in java.lang/util/io/etc. code not an interesting case)

Memory leaks and issues with the memory allocator are months long process to pin on the JVM...

In the early days (bug parade times), the bugs are a lot more common, nowadays -- I'd say it'd be an extreme naivete to consider JVM the culprit from the get-go.


Congrats, you're half way there to publish your first self-help book!

And then there is the “11 Simple Rules of All Self-Help Books.”

People have mentioned that some of us add our blog links in the comments but here we go https://brajeshwar.com/2024/11-simple-rules-of-all-self-help...


Very cool!

I understand that the 1.5B is small enough to run locally... but does it actually in the Sweep AI Jetbrains plugin? That is, if I install the plugin, will I download the model automatically and the plugin doesn't phone home?


no, as far as I can see there is no way to configure the Jetbrains plugin to use a local endpoint.

Yes, I get the same vibe, as one has to sign in to their site to use the plugin. Kind of grimy for them to seemingly imply that it is locally run when it isn't.

Why not?

Can someone make a better plugin?


Not at the moment, if you install the hosted Sweep AI Jetbrains plugin it uses our hosted (larger) model.

> How much more process could the German government really add here?

Hahaha, good one, little padavan...


Never underestimate the power of german bureaucracy lol

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: