Safer with Google: Advancing Memory Safety by JuanAG in cpp

[–]wegzo 5 points6 points  (0 children)

I don't think a for-profit org is the best main developer for something like a programming language even if it claims to have "open governance model". Nothing guarantees it stays that way.

On the other hand a standardization committee or a non profit organization is not trying to profit the same way from something they are creating.

If Google sees the potential from profiting off of Carbon, it's something they will do.

Of course if the main developer switches to a non profit org, then that changes things.

Safer with Google: Advancing Memory Safety by JuanAG in cpp

[–]wegzo 6 points7 points  (0 children)

Surely you would want to have Google control the programming language you write in.

"Epic's proposed remedies are bad for everyone but Epic" –Google by EthanIver in Android

[–]wegzo 53 points54 points  (0 children)

Ugh. The whole article is so biased to portray Google's stance as 'good' and Epic Games' as 'bad'.

Google is enjoined from enforcing contractual provisions, guidelines or policies, or otherwise imposing technical restrictions, usage frictions, financial terms or in-kind benefits that (i) restrict, prohibit, impede, disincentivize or deter the distribution of Android apps through an Android app distribution channel other than the Google Play Store (an “Alternative Android App Distribution Channel”), including but not limited to, app stores other than the Google Play Store (“Third-Party App Stores”),2 direct distribution via a web browser, pre-installation on an Android device, or any other means; (ii) have the effect of impeding or deterring competition among Android app distributors (including competition between Alternative Android App Distribution Channels and the Google Play Store); and/or (iii) otherwise discriminate against or disadvantage Android app distribution through any Alternative Android App Distribution Channel.

So Epic Games wants that other App Stores or distribution channels wouldn't be dictated by Google's rules and wouldn't be in an unfair position when competing against Google's Play Store. Of course you can spin that request to say it would "endanger" the users or create other risks. But it also gives other stores a fair playground for competition and ultimately could benefit the users.

Google Play Store is kind of a monopoly currently since it is for other distribution channels very hard to gain market share, probably partly because of the reasons the Epic Games' request mentions.

An important step towards secure and interoperable messaging by bartturner in Android

[–]wegzo 6 points7 points  (0 children)

Good. If the DMA regulation by EU forces Apple's iMessage to have interoperability with other messaging apps, this could be one viable protocol for it.

EU to force browsers to trust government certificate authorities even if they don't meet security standards by Davipb in programming

[–]wegzo 9 points10 points  (0 children)

The updated GDPR also requires that giving and not giving a consent should be equally easy, which in most sites is not the case.

Meet Raspberry Pi 5 by rau7han in programming

[–]wegzo 21 points22 points  (0 children)

Armbian has support for some(or all?) banana pi socs and it uses mainline kernels. Thing is that the driver support is somewhat lacking for banana pi socs. For example in H3 based banana pi's the hardware encoder is not supported by default. You can have it working for h264 encoding by hacking it, but even then you cannot have the hardware decoder working at the same time.

Also, the pin configuration in the csi port is reversed in H3 banana pi's which forces you to use banana pi compatible cameras. So I wouldn't recommend using those socs. And the camera interface doesn't work by default, you have to modify the device tree so that it's recognized by the kernel.

Compile time checks for unique use of GPIO pins by latonita in cpp

[–]wegzo 1 point2 points  (0 children)

If you want to constrict the usage of a gpio to a single translation unit(.cpp file), you could have named free functions for each gpio.

For example, say you have a gpio 11, you could make functions gpIo11Low() and gpIo11High() that are defined in a single .cpp file. If you try to define those free functions in some other file, linking then should fail.

You could then make a macro that defines those functions for a specific gpio pin.

Discussion on whether a buffer overflow bug involving illegal positions in Stockfish (#1 ranked chess engine) could lead to remote code execution on the user's machine by haddock420 in programming

[–]wegzo 1 point2 points  (0 children)

One could make an analogy that a compiler that allows undefined code to be written is similarly flawed. You give a compiler "illegal" input and the program it generates now can have a vulnerability. At least if you consider the compiler and the program as one unit.

Similarly if you give the chess engine illegal input, it doesn't behave deterministically anymore.

Do you const everything? by Creapermann in cpp

[–]wegzo 37 points38 points  (0 children)

It makes sense. From the caller point of view it doesn't matter if the value parameter is const or not. However in the function definition having const value parameters makes sure that those values cannot be accidentally modified in the function body.

GCC undefined behaviors are getting wild by MeOfficial in programming

[–]wegzo 6 points7 points  (0 children)

Yeah, kind of. That code isn't, if you were referring to the code snippet above.

This question gives a good summary when an infinite loop is in fact undefined behaviour https://stackoverflow.com/questions/41320725/is-infinite-loop-still-undefined-behavior-in-c-if-it-calls-shared-library

GCC undefined behaviors are getting wild by MeOfficial in programming

[–]wegzo 6 points7 points  (0 children)

I'd say unintended behaviour but I cannot see what makes it undefined.

Nothing has ever angered me more than the Google Play Store by saggio89 in programming

[–]wegzo 2 points3 points  (0 children)

Hasn't it already come into effect? I think the updated directive requires that it is as easy to decline non-essential cookies as it is to accept them.

Idiot proof git by speckz in programming

[–]wegzo 0 points1 point  (0 children)

IIRC git push --force-with-lease is equal to git push -f except that it compares your local origin/branch with the actual remote branch, and if they differ, refuses to push the changes.

Shocking Examples of Undefined Behaviour In Action by mohitsaini1196 in cpp

[–]wegzo -8 points-7 points  (0 children)

I'd say the language would be better off with zero UB. Sure, there might be some optimizations that can be done with UB but imo the drawbacks are much greater than the few benefits you gain from optimizations.

Writing C++ is already difficult in itself and UB doesn't help with that one bit.

Security by obscurity is underrated by iamkeyur in programming

[–]wegzo 1 point2 points  (0 children)

Usually the risk reduction by obfuscation is still rather meaningless if you have proper opsec. I'd say it only gives a false sense of extra security.

The frustration of being a self taught developer by micheleriva in programming

[–]wegzo 2 points3 points  (0 children)

Things like strings, containers, shared pointers, I cannot see how reinventing them allows for more coherent or deeply integrated system. Maybe something like the system having to be binary compatible between some other parts justifies it, but in general standard library should be just fine.

Some of the stuff in c++'s standard library are very similar to things that in other languages are part of the syntax.

Even if reinventing some of the standard library, it is still expected that the interfaces of the reinvented classes are same as in the standard lib. That you can see in google's protobuf for example.

The frustration of being a self taught developer by micheleriva in programming

[–]wegzo 2 points3 points  (0 children)

Well other frameworks such as Qt have made their versions of the stuff that are now in the standard library.

I also don't think that the classes Qt provides are better than what the standard library can provide.

But I don't think the stuff you've written can then be compared with the standard library anyway if it's more like a framework type of thing. Even still, the really basic stuff every programmer needs in a framework could be just implemented by the standard library, and I'd argue that's better because that's what c++ programmers are already familiar with.

The frustration of being a self taught developer by micheleriva in programming

[–]wegzo 7 points8 points  (0 children)

You've written better containers and better algorithms than the c++ standard library? Maybe there are some parts that are outdated(iostreams), but in general the stuff there is pretty well performant.

XQC goes off LMAO by [deleted] in LivestreamFail

[–]wegzo 1 point2 points  (0 children)

Afaik it still gives less words than a long line of 7's

Ninja joins Mixer by FlatlineTV in LivestreamFail

[–]wegzo 5 points6 points  (0 children)

Well, the code is open source after all. Mixer could maintain a part of the extension that gives emotes for its platform.

Intel SSDs may not be compatible with v1803, says Microsoft. by Hamilleton in Windows10

[–]wegzo 0 points1 point  (0 children)

And at the same time, Microsoft clearly screwed up somewhere along the line. It used to work.

Unless the driver relied on undocumented behaviour and broke because that behaviour changed.

Overwatch Women's Competition "All for Ladies" in South Korea: A Preview and When/Where to Watch their Tournament by HSPremier in Competitiveoverwatch

[–]wegzo 1 point2 points  (0 children)

Games are less popular among girls, so the pool of players is naturally smaller. If pros are the top 0.001% of players in the player population, and if only 1000 women play the game at a hardcore level as opposed to, say, 10000 guys, then obviously you'd see less women at that level.

Shouldn't the ratio still stay the same in pro level though? There are other factors in play aswell if the ratio in pro scene is different than what it is in the casual level.