Better HN
topnewbestaskshowjobs
Log inSign up

devit

4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions

Submissions

comment 8y ago · link · parent

Any actual software?

Seems amazing for face shot retouching.

comment 8y ago · link · parent

Don't think it has a bright future since Rust and Kotlin share much of what brings people to Scala and are better in many ways, including and perhaps most importantly the fact they are improving faster than Scala.

comment 8y ago · link · parent

Seems to have already been known in 1993, according to Wikipedia?

"The best known genetic risk factor is the inheritance of the ε4 allele of the apolipoprotein E (APOE).[45][46]" where [45] is from 1993.

What's new? Am I misunderstanding something?

comment 8y ago · link · parent

The idea is that users will no longer give services so much data if it's guaranteed to become public (and thus services will no longer require or even ask for it), so the rule will tend to enforce itself.

And if they do, then the data being public prevents those services from gaining a competitive advantage from the data, thus making it easier to compete with them, and resulting in a more competitive market and thus better services at lower cost for users.

comment 8y ago · link · parent

Google would have to provide it to you.

The way to achieve radical transparency is simply a law that says that if you hold (some kinds of) personal data, you must make it publicly available for free.

There's of course the issue that some things must be kept private (e.g. authentication data, but maybe also things like web searches that are personal but essential to use a service) and drawing the line can be hard.

The issue that this tries to solve is not really "privacy" per se, but rather the existence of entities monopolizing data.

comment 8y ago · link · parent

The problem lies in accepting "m['xz'.substr(0, 1)] = true;".

This line must only be accepted if a proof that 'xz'.substr(0, 1) != "x" is provided (for instance, inferred from a runtime check or encoded as a type) [obviously, that's impossible with that specific value]

While "unergonomic", code that doesn't do that is just broken and might for instance result in a security catastrophe if the key is attacker controlled.

comment 8y ago · link · parent

Here's an exhaustive list:

1. localhost (depending on your OS)

comment 8y ago · link · parent

Yes: your program fails at runtime, and you have no idea of where the problem is, because the place where the type invariants are violated is not related to where an exception is thrown or an incorrect result is produced.

It's basically like using and debugging C/C++ code, where it looks like there is a "type system" but in fact you are just arbitrarily manipulating a big byte array that contains all your data and the call stack (except with TypeScript it's a graph of untyped arrays and dictionaries instead).

comment 8y ago · link · parent

Lisp has hard to read syntax and no static type system, so not really something to imitate.

comment 8y ago · link · parent

Comparing the accident rate of autopilot Teslas to all cars is absurd and disingenuous, since obviously Tesla drivers are wealthier than average (they bought an expensive car), and thus much less likely to have accidents in the first place (car better maintained, more intelligent, more risk averse, less stressed, less dangerous behavior, etc.)

They are also admitting that their system can be used as a self-driving system (you can not have your hands on the wheel, and the warnings can apparently be ignored), and that it failed to act as such for 5 seconds and 150m hitting a static object.

Again, there should be criminal liability for them, and they should not be allowed to offer any system that is autonomous enough to be used without hands on the wheel but that can't correctly self-drive the car.

comment 8y ago · link · parent

Seems pretty inexcusable for a self-driving system to ever hit a static obstacle (while not trying to avoid another collision).

There should be manslaughter charges for this kind of thing.

comment 8y ago · link · parent

If scamming something like this is possible, the scammers have an incentive to scam as much as possible, so the "scam ratio" will tend to grow to 100% quite fast unless there's a huge amount of legitimate business.

comment 8y ago · link · parent

Has any novel useful insight on humans ever been deduced from all this data?

comment 8y ago · link · parent

Is this going to the Supreme Court or is this the final decision?

comment 8y ago · link · parent

Driver not looking at the road (as obvious in any automated vehicle).

Might be wrong, but it looks like either the headlights are not the maximum setting, or they are broken or the camera is underexposing the picture.

And complete software or hardware failure at detecting the obstacle.

Definitely not a combination that should be driving on public roads at night.

That said, the pedestrian is crossing outside of a crosswalk at night without looking at the road, so they are at fault as well.

Note however that obviously even a terrible driving system like this one is extremely more likely to hit an unattentive than an attentive pedestrian (and in fact even more than a good driver, who tend to have accidents due to more exceptional circumstances than "neither party was looking at the road"), so that doesn't excuse Uber's fault, and actually makes their position worse.

comment 8y ago · link · parent

The rationale of the GPL is that if one allows a commercial closed-source derivative of an open source project, then the commercial derivative will always be the best one, since it can incorporate any changes from the open source project, but the open source project cannot do the same.

This means that the best software will tend to be proprietary software as long as there's anyone at all making such proprietary derivatives, which is the opposite of the FSF's mission.

Instead, by preventing non-free derivatives using the GPL, proprietary software can only be better if the total amount of work put on it is greater than open source software, which is a non-trivial barrier.

AGPL just extends that logic to remote services.

Part of the GPLv3 instead seeks to reduce the commercial success of freedom-denying hardware by preventing it being shipped with GPLv3-licensed software.

comment 8y ago · link · parent

Expecting random customers to use a knife to free themselves when either in unexpected freefall or underwater without having ever tried it in training seems indeed highly insane.

Why not use normal safety belt buckles, plus ideally an electronic autorelease system that the pilot can trigger?

comment 8y ago · link · parent

The reason implementation inheritance with substitution (aka "virtual methods") is bad is that it results in classes having two APIs: the normal public API and one for inheritors, the latter of which is usually undocumented, and even worse the APIs are conflated.

To see the issue, imagine you have a class representing a thermometer, with two virtual methods: get_c() and get_f() returning the temperature in Celsius and Fahrenheit degrees respectively.

Now it turns out that a specific model of that thermometer was miscalibrated and always returns 10 C more, so you decide to make subclass that corrects the behavior.

Unfortunately, that's impossible (without composition or mutable state).

A first attempt could be to override get_c() to call the parent and subtract 10. However, get_f() will still be wrong unless it happened to be implemented by calling get_c() and converting.

A second attempt could be to override both and apply the correction to both. Except now if get_f() is implemented by calling get_c() and converting, the correction will happen twice!

The issue here is that how the class uses its internal API is undocumented, and also that the internal and public APIs are conflated, making it impossible to change only one.

This can be solved by never having a class call overridden functions on itself, but that just results in a system that is equivalent to composition with delegation.

If such overriding is really required, it can be accomplished by adding a "callback interface" parameter to the constructor and documenting how it is called and how it's expected to behave.

comment 8y ago · link · parent

Civ 4 or 5 depending on whether you think "1 unit per tile" is a good idea or not.

Make sure you use the latest community AI mod since the original AI is usually not great (mediocre in Civ4, bad in Civ5 and nonfunctional in Civ6).

comment 8y ago · link · parent

Can anyone explain what's so complex about a "payroll system"?

Presumably you just have a table with people with salary, and every month you wire the money and record information about the wire or otherwise have a way to record when the person has taken cash.

You might want to have more complex rules for determining schedule and amount of salaries, and support for contractors, unpaid leave, taxes, etc. but that doesn't seem particulary complex either.

How can this possibly take more than 100 person-years (i.e. < $30 million) to make even a truly extravagant version of?

Not to mention that presumably such software already exists and could be used instead of writing a new one.

[obviously my explanation would be corruption, but I wonder if I miss something]

comment 8y ago · link · parent

This works, although the downside compared to Rust is that soft pointer validity is checked at runtime, meaning that a program that compiles can still randomly fail at runtime and that performance is worse due to the checks.

The key idea and massive difference from standard C++ is that object destruction is delayed until a "quiescient state" happens in what is a reframing of RCU [https://en.wikipedia.org/wiki/Read-copy-update], allowing to freely use raw pointers as long as none survive across a quiescient state.

[note however that this system allows to take pointers to stack variables, so they have to restrict raw pointers to function arguments only - it would be better to also introduce a "heap-only" pointer that can be freely returned/stored on the heap/etc. but can't be stored in types that live across a quiescient state, from which stack-or-heap raw pointers can be derived]

This also results in the downside that things like mutexes can only be safe if they are kept locked until a quiescient state happens, since that's the only lifetime that the system understands.

Likewise, you can't do this like prevent updating a collection while iterating unless you are fine with freezing the collection until a quiescient state happens.

In general, you are much better off using Rust (or an equivalently expressive language, if it existed), since that allows to statically check for correctness, not have to delay freeing memory, and allows to use lifetimes and linear types to secure mutex locking, collection iteration, and other things where lifetimes are essential.

comment 8y ago · link · parent

Ever heard of a concept called "free speech"?

The problem of Reddit is the opposite, that they arbitrarily ban subreddits, like the ones you cited.

The second problem of Reddit is that whoever gets to first register a subreddit gets to arbitrarily censor it, so whoever happened to register, let's say, "javascript" first, now gets to be a dictator of JavaScript discourse, and the Reddit admins in this case, instead, do nothing in response to complaints.

The third problem is that any competitor site is going to be unsuccessful due to network effects except at attracting the banned Reddit communities, so you get a site that is full of trolls and controversial communities without balance from the rest of society.

comment 8y ago · link · parent

I found this game to be terrible, in contrast to Shenzen I/O which I found somewhat fun.

The issue was the lack of any meaningful constraint, which means that there is no difficulty and solving the puzzle is just a matter of tediously entering a sequence that produces the desired result.

In theory you could try to get the most optimal solution, but that doesn't seem very fun either, since the lack of programmability and variety makes everything very bland.

comment 8y ago · link · parent

What about the concept of turning Gecko into Servo piece by piece?

That is, continuing the Quantum work until there is either no C++ code left, or the C++ code left can turned off via config option ("prefer perfect security over perfect compatibility") while still having a browser that works on the vast majority of the web.

comment 8y ago · link · parent

Any progress on genetically engineering chicken so that only female chicks are produced, or even better artificially producing eggs without any chickens at all?

comment 8y ago · link · parent

That seems a good thing economically.

Imagine there's a place on Earth that is somehow truly amazing and fills you with happiness for a long time for just visiting it.

Obviously, it makes sense to have as many different people as possible be able to appreciate it, which requires having them visit only one or a few nights.

Clearly, people should not be able to monopolize a flat there for 365 days a year, and if they do they should pay a fortune since they are denying other 364 people access to the place.

This also works for less amazing but still touristically interesting places.

Also the best solution would be to have enough housing to meet needs both from one-day-per-year demand and for 365-day-per-year demand, but if that's impossible tourists should definitely be the priority over wanna-be residents.

comment 8y ago · link · parent

The best theory is based on the fact that males can have an unlimited number of children while females can only have one every nine months.

Hence, being an extremely sexually successful male is much more rewarding for the propagation of their genes than being an extremely sexually successful female.

Thus, males evolved to take more risks than females since there is a much bigger payoff for them: if a male can become an "omnipotent king" he can father children with every woman and spread his genes a lot, while a female "omnipotent queen" still can only make one child for every nine months.

Hence, males have more variance, meaning that the top in any field are very likely to be males, but also there are going to be much more men who are extremely unsuccessful.

This also means that women are probably better off on average, since psychological (as opposed to genetic-propagation-related) utility is logarithmic and thus reducing variance is advantageous for the individual.

comment 8y ago · link · parent

Use forum software that already implements the required features.

comment 8y ago · link · parent

Looks like software patents can actually benefit society in some cases.
1
383940
51