Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Submission + - Instagram tightens eating disorder filters (bbc.co.uk)

AmiMoJo writes: Instagram has placed more hashtags which could promote eating disorders on an "unsearchable" list after a BBC investigation found that users were finding ways around the platform's filters. The photo-sharing network has also added health warnings to several alternative spellings or terms which reference eating disorders, some of which are popular hashtags on the platform.

Submission + - Chinese Are Listening to Trump's Cell Phone Calls

Rick Zeman writes: According to The New York Times, the Chinese are regularly listening to Donald Trump's cell phone calls. While he has two NSA-hardened iPhones, and a secure landline, he insists on using a consumer-grade iPhone, even while knowing he's being eavesdropped upon...because it has his contact list on it. 'White House officials say they can only hope he refrains from discussing classified information when he is on them.' But, officials were also confident that '...he was not spilling secrets because he rarely digs into the details of the intelligence he is shown and is not well versed in the operational specifics of military or covert activities'; in other words, security through ignorance.
The article mentions the rationale is to be able to listen to his calls to find out what and whom influences him, and that the Russians also listen in, albeit with less frequency because of his unique relationship with Vladimir Putin.

Comment Re:Sounds overly complicated (Score 1) 339

I don't think your break down is what this is really about, although perhaps I'm misunderstanding you. There are few concepts (cough...) at play here. One is whether the language itself supports a notion of duck typing or not. Java generally doesn't. You must explicitly implement an interface to adhere to it, and even if your class has methods which do implement it, the compiler still will generate an error or the runtime a class cast exceptions if you attempt to treat it as the desired interface.

If you were to implement concepts in java, I imagine it would have to be permitting a cast as mentioned above by the compiler, rather than treating the types as different. Note that both interfaces and concepts have same compositional power, except that concepts end up being more flexible, as you are generally only enforcing the type in the scope of a particular algorithm, not a class, even if many classes end up supporting the concept.

Back to C++ land. Templates in C++ incidentally fit into a duck typing oriented model, *unlike* Java. Thus, concepts almost existed to provide order to somewhat unwieldy compiler errors from the template system and provide explicit design clarity for those implicit utilizing concepts previously.

Finally, IMHO, modules (and module signatures) implement the idea of concepts quite elegantly (eg. in OCaml).

Comment Re:s/Have/Have Not/g (Score 1) 173

I actually like ML style: "let foo = bar in zed".

I agree that curly braced languages should stay as curly braced languages, but it's myopic to assume it's the only choice for scoping when designing a new one.

In any event, you're right that what is broken about GO is not really the scoping mechanisms.

Slashdot Top Deals

And it should be the law: If you use the word `paradigm' without knowing what the dictionary says it means, you go to jail. No exceptions. -- David Jones

Working...