Better HN
topnewbestaskshowjobs
Log inSign up

initplus

1,857 karma · joined Sep 3, 2020 (6y ago) · 393 submissions

Submissions

comment 5y ago · link · parent

Validating an email is different from validating a primitive.

You can validate a primitive like an int based on it's own state alone.

comment 5y ago · link · parent

So does this make the case that common opengl implementations are just not very good? If this works so well as a technique why isn't it already in use by vendors?

comment 5y ago · link · parent

If you use C++ tools where your dependencies get pulled in and built from source like Go does, you get the same experience. If you only have prebuilt system libraries obviously this doesn't work.

It's not like Go's tooling is that much better than the best modern C++ tools, but the ecosystem is so much more unified by having 1 blessed set of tooling. Rather than 20 different package managers/(meta)build systems. No need to worry that I am using build system X, but I want to use a library using build system Y.

comment 5y ago · link · parent

Perceptual hashes are specifically designed to be resistant to minor visual alterations.

comment 5y ago · link · parent

It’s so it’s easy for jounos to copy paste the press release. You see it a lot with politicians also.

comment 5y ago · link · parent

One thing that they do not seem to be taking advantage of is how specialized many of their communities are. It seems primed for letting advertisers target to specific audiences, but as a user I don't really feel like the ads I get are targeted to what I read at all? Maybe I am uninformed but it seems like an advertising goldmine that hasn't been taken advantage of.

If you are a PC components retailer, users of /r/buildapc seems like an ideal audience to target for advertising. Camera retailer, where better than /r/photography? Cookware - advertise in /r/cooking. Repeat ad infinitum across every niche interest on the site.

They should be able to enable advertisers to do really effective targeting of campaigns. Is this not possible with their current ad tools, or are they not selling the capabilities to advertisers well enough? Or is there not actually that much money in targeted ads, is all the money in generic ads like Coca-Cola & cars?

comment 5y ago · link · parent

The trouble in Haskell is that an operator like %%@~ is just an arbitrary name.

In languages like K or APL, the combination of symbols is the actual definition.

comment 5y ago · link · parent

Well the trouble is that it makes developing detection nearly impossible.

And the line where the law is crossed is fuzzy. Say you use an AI classifier, at what accuracy is validating the results of that AI a crime? 50.000001%?

comment 5y ago · link · parent

This reads like a failure of the NCMEC, and the legal system surrounding it.

It is insane that using perceptual hashes is likely illegal. As the hashes are actually somewhat reversible and so possession of the hash is a criminal offence. It just shows how twisted up in itself the law is in this area.

One independent image analysis service should not be beating reporting rates of major service providers. And NCMEC should not be acting like detection is a trade secret. Wider detection and reporting is the goal.

And the law as setup prevents developing detection methods. You cannot legally check the results of your detection (which Apple are doing), as that involves transmitting the content to someone other than the NCMEC!

comment 5y ago · link · parent

I understand that there is potential a conflict of interest involved... but Unity's customers also want an improved product. It's a competitive disadvantage compared to unreal that they don't dogfood their own product.

Direct product flaws in Unity are more likely to push customers away to a competitor compared to nebulous business relations conflicts.

comment 5y ago · link · parent

It's tiring seeing so many people imagining solutions to transport that look like "Cars, but...". Cars are large and cause congestion, even if you make them autonomous. They need to be stored when not in use, which requires turning over more and more inner city land to vehicle use. And it becomes a self fulfilling prophecy: the more space you allocate to large carparks and multilane roads, the more spread out your city becomes and the any alternatives become less viable.

But instead this subject got 1 tiny paragraph near the end, in which this viewpoint "a form of degrowth".

"We can build more batteries, more cars, and more tunnels. And humans will be better off for it."

Honestly I just disagree with this take so much... I'm very far from a strident environmentalist but it should be obvious that this isn't the way forward.

comment 5y ago · link · parent

Why is it a liability? It’s how every other commercially licensed engine was built in the past. Unity is actually unusual in that respect.

See id, valve, unreal, crytek.

comment 5y ago · link · parent

Police have run bait car programs, and youtubers have run successful bait package schemes...

Don't see why this couldn't be scaled up to a large number of bait packages at pretty low cost... you just need a small GPS tracker embedded in the box.

comment 5y ago · link · parent

The whole country is structured so that verification by foreigners is next to impossible:

Foreign journalists cannot freely report from within the country. If the government does not like your reporting, you are forced to leave the country.

Information controls ensure that communication with China & the western world is controlled and subject to scrutiny. People in China cannot legally access most foreign news, or communicate with foreigners on social media. You cannot even access hackernews legally in China!

This creates an environment where it's extremely hard to actually vet any information about China, as there is such a strong communications barrier. Both for professional journalists and regular civilians. There is this immense culture of secrecy and information control that does not exist on the same scale anywhere else in the world.

Unsurprisingly this creates a situation where people distrust the words of the Chinese government. They have created this apparatus that prevents foreigners from verifying Chinese information.

comment 5y ago · link · parent

Depending on your database, it may be worse than just shorthand syntax. I encountered once a DB (that shall remain nameless) where replacing this syntax with the actual JOIN keyword resulted in dramatically better query plans everywhere it was used.

comment 5y ago · link · parent

GraphQL is stiff competition, in the sense of "stiff as a corpse". Yes, it has the words "query language" in the name, but that's where the similarities end.

In GraphQL, you can select fields of JSON objects, optionally a field may have parameters which affect the values it returns in unspecified ways. That's it. Because of this design, unlike in SQL where you are concerned with modeling the structure of your data, GraphQL also requires you to think about the API all users will use to access the data. In SQL, I can write a table defining the structure of my dataset, and then users of that table can perform arbitrary queries when they know what data they need (aggregate with a month average grouped by account ID, filter to only rows where x = 7, JOIN this to grab some data from some other table etc.).

GraphQL has no aggregates (sum, average...), no grouping, no joins, no sorting, no filtering, other than what you manually design each using parameters at schema design time. Good luck anticipating the use cases of every future consumer of your data. Miss one? Better dig back into your implementation code & implement that use case each & every time a new one comes up.

The only part of GraphQL that is standardized is the query syntax. In SQL, the actual underlying relational data model exists and the syntax of queries exists within that context, not so in GraphQL land. In SQL, I define my data structures, and users can write queries and access the data. But GraphQL throws up it's hands and says "not my problem, try one of these libraries that ask you to implement your own custom data access functionality for all your data types".

OK, so it's a rubbish query language, but even the graph part of the name is misleading. Assuming that you even have a domain that it makes sense to model with a graph of types, GraphQL provides you no tools for dealing with the backend complexity of such a design. Because the syntax is so simplified, there is no mechanism within the syntax to define rules about relationships between types. For example, imagine a simple parent/child relationship. There is no mechanism within the syntax to tell GraphQL that for parent X, parent.child = parent.child.parent . So you can't even think about writing a GraphQL query optimizer, because there isn't enough information about the structure of the data encoded into the schema or query to do so.

So in practice no GraphQL implementations that I know of have anything resembling a query optimizer - someone asks for cart.item, and then item.cart for a cart with 1000 items? Have fun re-requesting the cart from your DB 1000 times (yes you can cache the item by ID to save a DB lookup, but we shouldn't even need to hit cache here! Every programmer involved knows the data is the same, it's just dumb GraphQL has no clue about the details of the relationship).

comment 5y ago · link · parent

Copyright holders have complete freedom to license tehir work under any terms they like. I believe it's actually legal to sell commercial use licenses for GPL'd code for example. Or to switch licenses for all future releases.

You just cannot revoke existing license terms.

comment 5y ago · link · parent

Article says that some reclaimed land was filled with literal dumped trash in the past.

“At worst, they are made by throwing some dirt over the top of a pile of garbage, and building more city on top of it”

comment 5y ago · link · parent

There is a large culture among C++ users of distributing pre-compiled binaries of dependencies. See every Linux distribution, or the MSVC ecosystem where sharing precompiled .dll's is the norm.

In this context ABI breaking changes are not viable due to the proliferation of pre-existing compiled binaries. What the standard says is only half the story...

comment 5y ago · link · parent

Rule of three is such a common C++ concept though, I would be surprised if anyone with more than a few weeks experience with the language is still running into such issues.

comment 5y ago · link · parent

Building from source doesn't have to be inaccessible, if the build tooling around it is strong. Modern compiled languages like Go (or modern toolchains on legacy languages like vcpkg) have a convention of building everything possible from source.

So at least for software libraries building from source is definitely viable. Fro end user applications it's another story though, doubt we will ever be at a point where building your own browser from source makes sense...

comment 5y ago · link · parent

CMOV is slow because x86 processors will not speculate past a CMOV instruction. They do speculate past conditional jumps, so those are more performant.

This same property makes CMOV useful in Spectre mitigation, see https://llvm.org/docs/SpeculativeLoadHardening.html

Keeping CMOV slow is now an important security feature.

comment 5y ago · link · parent

I guess the question is how much typesetting do you want to stick into unicode? It works OK for emoji because the results are always simple: it's just another individual emoji, with the same size & characteristics as the original.

That said unicode is not free from typesetting weirdness, see the character ﷽.

comment 5y ago · link · parent

It's a problem everywhere, from bad KPI's to public policy. We have a bias towards metrics that are easy to measure.

It's much easier to measure large effects on a single metric, than small effects distributed over a wide range of metrics. Concentrated effects that affect one individual/org/group are favored over distributed effects that affect everyone. There are so many examples of policies where this thought process has been applied.

comment 5y ago · link · parent

These results are incredibly frustrating. Google should de-rank these autogenerated tech troubleshooting sites.

Yes, I clicked the link because it exactly referenced my issue. But it's not helpful to just see the same 5 tips copy pasted from elsewhere by an algorithm.

comment 5y ago · link · parent

Crypto is really exciting for new entrants to the finance space.

In traditional finance all water has been wrung out, but in crypto relatively unsophisticated versions of strategies like arbitrage can be quite successful. Traditional finance institutions are more sophisticated and have more resources than their crypto equivalents. I really think traditional finance orgs need to realize they can employ the same skills to the crypto space with a much lower investment for the same returns because the space is so immature.

comment 5y ago · link · parent

Tether as an organization operates with no transparency, and has a toxic symbiotic relationship with exchanges. I'm certain that Tether has backroom relationships with major exchanges - Tether provides liquidity to exchanges in the form of short term USDT loans. So Tether can claim their issues are backed by real reserves https://tether.to/wp-content/uploads/2021/05/tether-march-31..., omitting the convenient fact that much of the debt they own is itself denominated in USDT.

Tether uses this scheme to issue loans and collect interest without the pesky step of actually having cash reserves to loan out.

comment 5y ago · link · parent

Outsourcing to budget contracting houses in India is a very different experience to hiring individual remote employees from overseas.

comment 5y ago · link · parent

MTP is an absolute dogs breakfast.

I've had multiple experiences of issues on the device side causing the entire explorer.exe process to crash!

Explorers handling of the MTP protocol is not resilient to badly behaved devices, would not at all be surprised if there are security implications where a badly behaved MTP device can get an RCE in explorer.

comment 5y ago · link · parent

I was an old school die-hard Firefox user back in the day, have since switched to chrome... I want Mozilla to succeed and fight the browser monoculture.

I'm just not really sure what the "killer feature" to bring users back is? Chrome has kept their core UI relatively stable since forever. Meanwhile we are onto another big Firefox redesign where we make the tabs look different? Why follow UI trends (big spacing) that your core userbase dislikes? I could understand it if Firefox was a different kind of product, with a different set of users.

I don't really know what Mozilla should be doing here, but I don't think these annoying UI tweaks are it.

1
1011121314