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

Really though, having seen the vulnerabilities that have been found in many companies' websites, and their responses to them, I'm not so sure how trustworthy we can assume them to be.

I prefer to use Amazon or Paypal as payment options on those sites whenever possible


I think the key is that Photoshop and post processing tools should always be used to enhance the representation of reality, rather than distort it; except when showing something beyond reality is the intended goal.

It can also be said that post processing can be used to cover up mistakes that were made when the image was captured, and as a photographer one should strive to minimize those mistakes.

TL;DR: Photographers should do their best to do a good job when they capture an image and to be aware of what they are trying to convey in the final version that they share with the world.


One thing I find myself asking a lot is if it's really hard to make a program take advantage of the cores or if the prevalent tooling and paradigms of today make it hard to take advantage of the cores.

While most programs are not embarassingly parallel in nature, I suspect the latter plays a bigger role than most of us tend to admit.


I think you are exactly right. I've done a lot with concurrency, and the fact is that there is no life vest so you better know how to swim. I think an architecture made specifically for programs to take advantage of concurrency would help an enormous amount.

Right now we are two steps removed. There aren't even many good data structure implementations out there. There is moodycamel::concurrent_queue and different memory allocators like jemalloc and the new rpmalloc, but the vast majority of programmers likely don't even realize that malloc locks and kills concurrency. Maybe they grab something from boost that just surrounds a data structure with a mutex, which is lazy bullshit.

I actually think the majority of software that runs slow can be made to be sped up nearly linearly using dozens of threads, but the few niche libraries that help are overly complicated to compile and use, bloated with enormous dependencies and end up being a minefield of usage. At the moment many people's idea of multi-threaded is mostly fork-join techniques like openMP and that will never scale to using all cores throughout the whole program, since is one very narrow technique.


The particular implementation I had in mind is Erlang. Due to the green thread implementation, immutable data, and message passing, Erlang is able to offer a simple, robust concurrency platform. Of course it's still possible to write very sequential code but generally someone writing idiomatic Erlang won't have to go out of their way to get concurrency.


It is also far from ideal when it comes to performance from what I've seen. Maybe its overall design is good, but I don't believe that adding so much overhead over native programs is necessary.


From my somewhat limited reading it seems that the only inherent performance hit in Erlang's implementation is that all its processes can be interrupted externally, I think the term is cooperative multitasking?

Otherwise I think the rest of Erlang's performance is because it's optimized for reliability and distribution rather than raw performance.


I really think there's only two rays of hope for parallel programming.

One is promises (async/await). This takes the burden off the programmer for explicitly managing concurrency, and potentially allows lazy evaluation in many cases (if non-side-effecting). I've never worked in Lisps but it seems like a viable model in many ways.

The one I wanted to bring up was probabilistic programming. Imagine a tree where there's not just one place to put something, there's many, possibly distributed. As such you greatly reduce the chances of contention from multiple threads. They would also probably (almost necessarily) reduce the amount of rebalancing work.

GPUs seem like the perfect model here in multiple ways, not only do you have the massive degree of threading that surfaces any problems in such things but you also have the degree of threading to deterministically search these kind of structures. GPUs also highly discourage things like CAS or mutexing that we need to move away from.

(PS nice username)


I'm not sure how the tree you are describing helps anything. Reading can always be done concurrently, it isn't the problem - all threads can read from the same memory at the same time. The problem is writes, which means any alterations.

GPUs are useful for the kinds of parallelism that has always been known to be easy - fork join with all threads writing to new memory. There is no mystery to how to do this.

> CAS or mutexing that we need to move away from

compare and swap is the backbone of lock free programming. Mutexes to me seem to rarely be ideal, but there is no getting away from compare and swap as far as I know.


As someone with only a basic understanding of threads, what is a better idea than fork/joins for scaling? Are you talking about thread pools or something else?


Yes for thread pools instead of forking (could be process pools too). But that's only scratching the surface. It's how you communicate with those threads and allocate their work that makes the difference.


I think the quick and dirty answer is yes, although I doubt I would structure things the same way as a normal thread pool.

If you think about the heart of the problem, it is really synchronization, and that only needs to happen in certain places in programs. Anything you can break up into pieces that can be transformed independently can be leveraged for concurrency, which also implies that independent stages in a pipeline can be concurrent as well.


I don't know anything about your game but I wonder if you could use SQLite to a similar effect.

If you just want things as JS objects, you could have a Player table with a column for playerID and a column for the JSON string.

I'm not saying you shouldn't use Mongo/NoSQL, I just think SQLite is an interesting potential choice. (e.g. https://sqlite.org/appfileformat.html)


The main concern of the question is the side projects, not whether the employee is performing adequately. This two questions are inherently tied together. If the employee wasn't performing then they would be fired regardless of the side projects.

So in order for the side projects to be a concern, it implies the employee is still performing their job at normal levels. So then the question becomes, why does the engineer have time and motivation to work on the side projects?

And ultimately I think, the answer to that question is that there's some failure on the part of company leadership, as other commenters have pointed out, regarding motivation, available work, and how over accomplishing is valued.


I have a lot of respect for Waymo's approach to this.

While Tesla and Uber have both just recklessly (imo) jumped in and started setting loose self driving cars and making bold claims, Google/Waymo has really taken a slow and measured approach and given great care to making sure their cars are actually safe.


Actually I think Waymo is too cautious. Tesla has thousands of customers effectively acting as test drivers for their autonomous software, which allows them to collect data at a much faster rate and discover more 'edge cases' than with a more cautious test environment.

33,000 people die each year on US roads and self driving cars offer the chance to dramatically reduce that figure over time. The more aggressively we can test self-driving software now, the faster the software can be improved.

So as long as the accident rate for autonomous Teslas is initially no more than for human drivers, the Tesla approach will lead to fewer deaths in the long run.


Tesla no longer sells cars with automatic driving capability. The hardware is there on newly shipping cars (although the sensor suite is weak) but it's not active. There's a lawsuit.[1]

It's unlikely that Tesla gets much useful data from vehicles. To debug a vision system, they'd need the camera data from all the cameras, and that's too big to upload over the cell phone data link.

[1] https://www.forbes.com/sites/brookecrothers/2017/04/23/tesla...


They don't need all the vision data -- likely what they're doing is running their beta self-driving features in the background all the time, and only send data back (1) when the driver's input differs dramatically from what the self-driver would have done itself, presumably because the driver saw something their software missed, and/or (2) when a driver gets in a crash (at which point they can check if their algorithm would have prevented the accident).

They just need to send back data from a few seconds before either of those scenarios to quickly accumulate a giant library of one-in-a-million edge cases they can test future algorithm tweaks against. I think it's a reasonable strategy.


This is a gross misrepresentation of what's happening with AP2. AP2 is not up to feature parity with AP1, but it's not true that "it's not active".

This article summarizes the latest AP2 software release: https://electrek.co/2017/03/30/tesla-autopilot-2-0-camera-8-...


I couldn't find a reference to this:"Tesla no longer sells cars with automatic driving capability." Can you point to one?


Search Google for "Tesla disables autopilot".


Thanks. I found that when they transitioned to Hardware2/AP2 they cut out most autopilot functionality, and since then have been gradually releasing updates that bring back that functionality.


If you believe that self driving cars will make roads much safer you should be for lots of testing and a measured approach. It only takes a few more high profile accidents before society turns against them.


Self driving cars also offer the chance to dramatically increase that figure. They have failure modes that do not exist with human drivers. Cautious is good.


Google's approach is cautious, however has Tesla been reckless?


Arguably. Tesla has not done a good job educating their customers on the limits of their "Autopilot" system, which has led to at least one preventable death.

https://www.theregister.co.uk/2016/07/28/tesla_autopilot_dea...


Is it possible to extrapolate from the recorded reduction in accidents after the introduction of autopilot and work out if fewer people have died as a result of introducing when they did?

Here's an article which describes a 40% drop in the accident rate:

https://electrek.co/2017/01/19/tesla-crash-rate-autopilot-nh...

The NHTSA's figures show a drop from 1.3 crashes per million miles before Autosteer to 0.8 crashes after Autosteer.

Would any of those crashes have been fatal? I don't have the numbers to answer that but I posit that introducing Autopilot has prevented more deaths than it has caused.


The utilitarian approach is such an interesting way to frame problems like this. It's obviously wrong for me to murder to my neighbor for their organs, even if those organs could save five other lives. But is it okay for a car company to roll out an AI program if it saves more lives than it costs? When viewed from afar the utilitarian mindset is always so alluring.


I think you're making a bit of a strawman here that people usually do with respect to utilitarianism. The utilitarian answer with 5 people on an island, where 1 is a doctor, 3 need organs, the remaining person has available organs, and the 3 are necessary to keep the group alive -- is to kill the one person and take their organs.

However, in a society where people can observe the actions of others and form motivations in response to policies, etc, you'll find that because society reacts fairly poorly to organ harvesting, because organ harvesting is implausible to do at scale without extra bad things happenning, etc, the utilitarian solution is actually not to go about doing it.

Only a naive utilitarian wouldn't try to also remain consistent with something like a Kantian imperative of global self-coherence.

Now, as for cars and testing self-driving on real folks, well, this may be something where the water is pretty murky. I think that society will react poorly enough to early bad events in self-driving that a measured approach is actually the best for saving lives in the long term.

The critique here shouldn't be that "well, utilitarianism sure looks good from afar, but would you murder your neighbor?" It should be "The problem is too difficult to address with utilitarianism because it involves complex societal factors and responses."


It's a bit contearian but if you will lose 100% of your population by not sacrificing 10%, then your scoiety is doomed in a way where normal ethics can't really apply. The guy refusing to give up his organs is going to be condemned as the naysayer nihilist who "wants us all to die".


I don't think replacing one set of risks with a smaller set of risks is at all morally similar to killing one person to save three.


A Kantian approach also works here though.


The person you're responding to isn't claiming that Tesla hasn't done a good job in the technology, rather in educating their users of its limits:

> Tesla has not done a good job educating their customers on the limits of their "Autopilot" system

The death was preventable, even with the technology deployed.


Where's the proof that it was a driver education problem? This argument gets rehashed every month or so here on HN.


Well, every time this discussion comes up, HN spends >100 posts splitting hairs as to what calling their system 'autopilot' implies.

Given that the technology is useless if you use it as 'intended' (Be aware, and in control of your vehicle 100% of the time[1]) I don't think this debate will be settled anytime soon.

[1] My 97 Avalon drives just fine when operated under those conditions.


Not to mention basing this on a single data point where a fatality occurred. How about the tens of thousands of other drives vs standard? That would at least be statistically relevant.

Even though what they released isn't a self-driving car but a glorified cruise control. I personally don't really see how that is reckless at all.


By describing and marketing driver assistance technology as self-driving technology.


Which is kind of funny, because every pilot knows the limitation of each kind of autopilot. I think a lot of it is public expectation of that kind of name.


Right, and if drivers read ALL of the fine print of Tesla Autopilot, they would have been informed of the limitations of that system as well.

The problem comes when the Large Print promises things that the system does not do.

Another problem came from the implementation of the system where Tesla did not verify that the driver maintains hands on the wheel.


The large print says to keep your hands on the steering wheel and be prepared for the autopilot to fail or disengage at any time. I don't see how this is promising a self-driving car?


It does now, but in previous versions it did not.


And even now, the popular perception is that Tesla is autonomous, and it is only the regulations holding them back.


googles cars have gotten in a few fender benders and side swipes

people have died using teslas autopilot


There was only one accident I'm aware of in which the Waymo vehicle was at fault; the vast majority have been humans doing stupid things like rear-ending them at stop lights and t-boning by running a red light.

(Disclaimer: I work for an Alphabet company.)


"At fault" is one relevant metric, but not the only one. An autonomous vehicle should at least meet, and ideally surpass, human-driven ones in avoiding accidents for which they're not at fault as well.

I'd be curious to know if Waymo vehicles experience more, less, or the same number of not-at-fault accidents per mile driven as human-driven ones.


That's a tricky one. Avoiding an accident for which you are not at fault could easily cause an accident for which you are at fault. Human drivers have a pretty bad record with that particular situation.

Also, there are some network effects at play here, the higher the percentage of self driving cars the more rare that situation should become.


I agree that there's a tricky calculus involved in some scenarios, but I think there's a much wider domain of not-at-fault scenarios where autonomous vehicles should be able to surpass humans unambiguously. Example: an autonomous car being tailgated by a human-driven car, with a stop sign or light up ahead. Different braking patterns have different likelihoods of causing an accident.

Autonomous cars really have to be able to handle these scenarios at least as good as, and ideally better than, humans: there's not a complicated split-second balancing act to worry about.


Tesla have stats saying their autopilot, for all its limitations, is already much safer than a human driver: https://electrek.co/2017/01/19/tesla-crash-rate-autopilot-nh...


Humans will do stupid things. A self-driving car has to drive safely in spite of them.


How do you avoid being rear ended at a stoplight?

There may be ways to avoid some of the other types of accidents, but those ones (which have happened several times) are difficult to escape.

The real question is what's the safety threshold - safer than median human? 90th percentile? 99th?


> "How do you avoid being rear ended at a stoplight?"

The same way defensive (human) drivers have been doing for a long time: leave room between you and the car in front of you. Gauge cars coming up behind you and roll forward if they need extra room to stop.

Does not prevent 100% of rear-endings, but a large portion of them. Most rear-enders are not cars plowing full-speed into you, it's someone misjudging their braking and not being fully at-rest when they needed to be. Leaving some margin for this kind of error helps avoid the whole incident.


Change lanes, allow the other driver to overtake, start braking a little earlier and more gently, touch the brakes to flash brakelights let the driver behind know that you are stopping soon. All ways i deal with tailgaters in different situations - it's a judgement call though.


Don't google cars drive on a limited number of preplanned routes with a very low speed ceiling?

That is more cautious, but that doesn't, on its own, suggest better tech. That is that the Google cars are actually safer, more advanced, etc.


> with a very low speed ceiling

Those are the Koala cars. Before those, there were the Lexus which went in highways too.


That also could be because autopilot is only usable on highways (IIRC) and the fatality rate per accident on highways is much higher than standard town/city driving.

Either way there's not nearly enough data to draw conclusions from.


Autopilot won't stop at stop signs or stop lights, so it is not as useful when not on highways.

Just to clarify the downvotes.

Highway driving is safer.


Google's self-driving cars started on highways (easier problem to tackle) before moving on to city streets.


There's a lot more tesla cars than google cars. And I don't think there was a single death directly because of autopilot (not 100% sure though). Also, autopilot is safer, so it actually _saved_ lives.


If downvoters don't believe autopilot is safer, here's article about NHTSA report: http://bgr.com/2017/01/19/tesla-autopilot-crash-safety-stati...


I'd guess the downvotes are more for this part:

> I don't think there was a single death directly because of autopilot (not 100% sure though).

There was a death, and it was very prominent.


Yes, I know about that white truck death. By 'directly' I meant situation when autopilot 'went crazy' because of some bug and sent your car in a spin on a highway etc. Probably should have used different wording.


I imagined as much. Even so, "autopilot sent your car in a spin" vs "autopilot ran into a truck" is a distinction without a difference for the people inside the car.


Tesla warned that driver still should be alert, they implemented warning so driver would keep hands on the wheel etc. NHTSA reported that driver had 7 seconds to react on the truck. In a spin situation because of some bug autopilot would create the problematic situation itself, even if driver will be paying attention to the road.


Yeah, the problem was letting people get the expectation that it was an autopilot when it wasn't. Decades of Human Factors research in aviation had already established that people can't maintain focus on a sufficiently-monotonous task.


Uber and Tesla have had to play catch-up to Waymo. This kind of approach is reckless but also is run-before-crawl.

The outfall is that it led to bad PR for self-driving cars.


> The outfall is that it led to bad PR for self-driving cars.

Bad PR? Example? I haven't seen much negative spin on self-driving cars in mainstream coverage recently. If anything it's been highly optimistic while still being honest by mentioning the difficulties the companies are trying to overcome.

I don't think people are under-estimating the challenge here, even the layman. But the potential ROI when it does work would dramatically be safer, environmentally friendly, and efficient with human time.

Given the current state of driving is highly dangerous, we'd benefit from iterative progress towards self-driving cars, ala what Tesla is doing. Controlling risks doesn't have to mean holding tech back until it's perfected.


>While Tesla and Uber have both just recklessly (imo) jumped in and started setting loose self driving cars and making bold claims

Do we know how many lives have been saved from Tesla's autopilot? I've only seen anecdotes but I get the impression that it's already a big net win for safety.


Killing a few extra people today to bring self driving cars to market faster could actually save more lives in total. I have much more respect for Tesla for shipping something.


The system that killed people didn't represent a point of progress for their self driving tech. They decided to abandon the hardware package it was using.

Their current implementation doesn't seem to be learning any higher level behaviors (there's a Youtube video of guy using it in a park where it repeatedly accelerates towards islands in the road and then flails off the road as it goes too fast around the island).


Do you have a link to the video?



That's terrible performance.

The problem seems to be that Tesla's system is extremely dependent on a nice clear white line at the outer edge of the road. On this road, near the traffic islands, the roadside grass sometimes overgrows the road edge and obscures the white line. The white line has also been scuffed by cars near the edge of the road. [1] The Tesla runs off the road in that situation.

There are two kinds of self-driving. One came up from the DARPA Grand Challenge, which was off-road. That kind first looks at the terrain and obstacles, and figures out where it can physically drive safely. There's LIDAR profiling of terrain. Then it looks at road markings and figures out where it's supposed to go. If the road markings lead into an obstacle or drop-off, it will stop or go around the obstacle. That's Waymo.

The second kind came up from lane-keeping and auto-brake systems. Those are very dependent on highway markings, and only work right on freeways. That's Tesla's original system.

It's hard to tell about the others. Volvo has an extensive sensor suite. Otto seems to be mostly a lane-keeping system for freeways. Uber hasn't released much detail.

[1] https://youtu.be/UZ1XLqc5IUg?t=46



wow...this is pretty scary.

Imagine if the video didn't have the friendly European accent and patches of green. Imagine if that was a real life scenario and the greens were a hazard.

I wonder if there are more such videos that show Tesla Autopilot freaking out. It would be an eye opener, Tesla's stock price is dependent on Autopilot among other innovations.


Using a billion miles of real world experience to decide that that technology was insufficient is, in fact, progress.

It may have gone the other way. Remember, the primary sensor technology in 99.999% of cars out there is two front facing visual-light cameras pointing the same way on a swivel and couple of mirrors.


That's an awfully generous take on their decision and pretty dismissive of the squishy stuff located behind the the Mark I eyeball.


It's not progress if the market leader, Google, already knew (or at least decided) that approach was wrong.


> Killing a few extra people today to bring self driving cars to market faster could actually save more lives in total. I have much more respect for Tesla for shipping something.

There's no evidence to suggest that is the case. If anything, Tesla has made it more dangerous to assume that it's safe and falsely autonomous.

When you create new drugs, the FDA definitely doesn't look to kindly on people who think like Silicon Valley. "Killing people is product testing" won't fly in pharmaceuticals.

I'm glad that we don't have people like you designing drugs for the masses!


What's the equivalent of animal trials for autonomous vehicles? Closed-circuit tests?

Is there any evidence that these companies haven't gone through closed circuit tests and passed before testing in public roads?

The next step in drug trials is, in fact, testing on humans and some do suffer serious injury or death. I don't think there's any way around it and the greater good of having a pharmaceutical industry at all outweighs those unfortunate incidents.


IIRC, 30-40k people die every year in car crashes in the US. Based on the real-world testing Waymo has done over the last few years (where they tested the cars, but had a (not-driving) driver in the driver's seat at all times and weren't doing any commercial service), that figure would drop to essentially zero.


> people who think like Silicon Valley. "Killing people is product testing"

Not sure you can attribute that thinking to any of the actual engineers working on this.


I think you slept through an ethics class


Maybe they just subscribe to an extreme utilitarian ethical philosophy?


If that is the context their analysis is bad.

There's little evidence that anything Tesla has deployed is an important step towards viable self driving vehicles.

They are apparently mapping the locations of odd situations, but that is pretty meh (and doesn't require the mapping system to be in control of the vehicle).


Well, if Tesla was a Japanese company and people died, ritual suicide would be the one of two possible options. The other is dishonor.


There are different kinds of ethics.


The one where you build and market something but then it turns out to be something less than expectations.

Ethic issues arise when the expectation is that the occupants will live and then your product falling short on those critical constraint.

Because when you design something for the masses, you are directly responsible for the deaths caused by your product.

This is not a matter of philosophy, from one engineer to another, it's our duty.


I think it's definitely a spectrum.

To me the most important binary distinction is whether it's "remote friendly" meaning you can work from home if you give an excuse, and remote friendly meaning it's expected that you'll be working remotely on a regular basis.

Once you're in that second category there's range from "work from home one to several days a week" and "never set foot in the office again"


Supervision doesn't always mean micromanaging or looking over their shoulders. You have to adjust your supervision strategies to the task and environment.

>> 9. Exercise care and thought in supervision. Over supervision hurts initiative and creates resentment; under supervision will not get the job done.

You might give your engineers a lot of freedom but at the end of the day you know what they're working on and you see their outputs.


It seemed like in the panel they just kept looping back to the performance and concurrency, to which the Ruby guys would say "So what, Ruby is fast enough for 99% of apps", completely ignoring all of the other strengths of Elixir.


Because Elixir is better than Ruby in webapp space, in term of speed, you don't need to reach for caching and complex backend solution as early as RoR.

I think this is a big win.


Except in this case there exist(ed) far less keys than demand, with the original company (Nintendo) selling them for a flat price regardless of supply vs demand, i.e. if Nintendo sells 1000 Amiibos at $25 each, they'll have $25000, even if those same Amiibos end up being worth $5000 each on the secondary market.


So what? That's not a rebuttal the parent comment. In fact, this argument seems strikingly similar to the normal piracy defense of the content being too expensive to purchase.


But it's not too expensive to buy from the original creator - I think this is the point the parent made.

I'm not sure the majority of people would pay Nintendo 50 bucks for this certain Amiibo, but I'd bet it would be quite a few more than those who will pay a reseller.


It looks like pythonaut_16 has edited their comment to say something completely different than what it did when I posted my reply. It used to be excusing NFC hacking on the grounds of Amiibo being limited, and therefore not everybody who wants one can necessarily get one.


I have not edited the comment, maybe you confused mine with someone else's or misread it?

Anyway my point wasn't to support or deny Amiibo hacking, just to highlight the contrast between basic/pro software versioning and Amiibos.


Ok now I'm confused. I know I was trying to reply to a comment that was basically saying that it's ok to do NFC hacking because of the limited availability of Amiibo, but I don't see any comment like that anymore.


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

Search: