skysight-inc/HackerNews huggingface dataset:
Actually then remapping your brain and how you want to achieve things seems incredibly challenging

The thing that I have come to appreciate more strongly is that you actually have to think about the same ownership rules in other languages to write bug-free code. Consider e.g. the following Go code:

https://play.golang.org/p/3qfd5B8_ktK

Whether a subslice is still referring to the same array as the slice that it was derived from depends on whether there were any appends that required allocation of a larger backing array. Whether/when this happens is an implementation detail.

Rust prevents this ambiguity by not letting you borrow a `Vec` simultaneously as immutable and mutable (or multiple times mutably). Since the `push` method takes `&mut self`, you cannot have any mutable/immutable slices of the same data.

Another example. If you take a slice of a large array and only use that slice from there on, the slice will (obviously) prevent garbage collection of the backing array [1]. Again, Rust's ownership system prevents such memory leaks, since a slice reference cannot outlive its (owned) `Vec`.

[1] https://forum.golangbridge.org/t/free-memory-of-slice/3713/2

---

I would argue that the cognitive load in other languages is actually higher if you want to write correct code (except perhaps in languages with immutable data structures, such as Haskell), since you have now compiler helping you out. It's just that other languages allow us to cheat when it comes to ownership. For worse or better.
Yea there were a few things like that to emulate it. Things like JSONP + document.write() were also very common, though very ugly.
You say parody, I say honest representation voted to the top of the page, on article that was knocked off the front page by flagging or mods. Part of the problem is that quite a few people here are representative of the broader industry which is full of young people who think the last decade and half are just how the world works. These are the people who look at all progress as though it must conform to Moore’s Law, and think the unregulated free-for-all of their industry so far is just how it is.

Reality is slow to catch up to new things, but it is utterly inevitable.
> "Why did I do that?"

It's your innate social humanity peeking out. Don't smother it.
From what I've seen, most employees of big tech cos seem to have carved out a distinction in their minds about how their data hoovering company does data hoovering right, and the other data hoovering companies do it wrong. These distinctions don't hold up super well to scrutiny (which is why doing so is an incredibly fast way to get blocked due to cognitive dissonance).

At the end of the day, Upton Sinclair said it best: "It is difficult to get a man to understand something, when his salary depends on his not understanding it."
[on the Cforall team -- also a CS 343 TA] We've incorporated the main uC++ feature set into Cforall, but are still using uC++ for 343; maybe in another couple years when Cforall is stabilized a bit we'll give it to the students.
Let's do this in a distributed way. No company should host our life events/photos/thoughts.
Well if ya have $1200 to burn, you should sue them. It’s a good exercise because if you’re freelancing, you should get use to it. It’s highly effective to be litigious if you’re freelancing.

ALWAYS protect yourself and your work or, as you can see, you’re worthless.
I'm obviously about as far from the modal Rust user as one can get, but at this point the language has completely melted away into the background. I'm often tempted to write smallish scripts in dynamic languages, but even for those I frequently choose Rust just for the Cargo ecosystem. In particular I never see a reason to use C++ unless I'm contributing to a codebase that's written in it.

It takes different programmers different amounts of time to get to this point, and I certainly believe we can do better to make it easy to get up to speed, especially when async I/O is involved. But it does come eventually.
You can edit Sketch files on Windows, using the Lunacy app[0]. It's not full featured yet.

https://icons8.com/lunacy
Big Data and AI Platform with TLS Certificates
There's an amusing irony here - you are claiming that I have mistranslated you, but by the claim you made in your first post in this thread, that would be because you have been too sloppy in your statement of your position. In this one case, I might agree with you.
I don't like the pretense of the law, but the hysteria surrounding this is truly astounding.

No, Gmail, Facebook, and Travelocity are not complicit in the sex trade by virtue of the fact that someone can use their services to conduct such actions. Section 230 still exists. Without it, yes, you might actually be right, and the internet would implode due to the liability involved in running any service at all. We already covered this 20 years ago.

The operative word in the new law is "knowingly." If Gmail knowingly provided services to a pimp, if Facebook knowingly hosted a group to facilitate trafficking, and if Travelocity knowingly sold sex tourism packages ("we see you're renting a hotel and a car-- would you like to add an underaged escort?"), then the law applies. Selling someone a ticket to Thailand isn't a crime. Giving them recommendations on the local brothels might be.

Backpage is in the shit because they knew they were hosting child prostitution ads and actively tried to hide it from police. Silk Road couldn't claim 230 because internal documents showed Ulbricht knew he was facilitating the drug trade (and even knew what the consequences would be!).

The message is clear-- if you're going to run an illegal site, don't participate in its content or market it for those purposes. Don't seed it or hire anybody to seed your content. Just stay out of it, run an agnostic platform and let the users generate their own content (4chan isn't technically a porn site, after all). If something is brought to your attention, delete it and document it-- you fulfilled your obligation.

You'd still have deniability as to what your users are up to; after all, you can't be expected to police all the user-generated content faster than they can create it.
> Yet if the bar for C++ competence is "never wrote a use-after-free"

The bar for C++ competence in that regard is RAII.

Furthermore, your strawman doesn't hold up. The object slicing problem is actually like someone being foolish enough to cast a 64-bit int to a 32-bit int and then complaining that the programming language is broken because the 32-bit variable doesn't hold 64 bits. Of course it doesn't. Why should it? And why make excuses an play the pin-the-blame game when the problem is caused by ignorance? Heck, you're assigning heterogenous objects of variable-length to a data structure that by definition was designed to hold homogeneous sequences of fixed-size objects, and even still you want to pin the blame on the language? How, if you clearly don't know what you're doing?
> But if Tarsnap were located in the US, it would not be responsible for collecting that information from Canadian users.

Responsibility is not defined by gut-feelings, but by law. So, with a suited law, Tarsnap could also be bound in Canada's jurisdiction even if it were located in the US.
There may be enough people out there now who wouldn’t mind paying for a social network with the assurance that their personal data isn’t going to be mined and sold to the highest bidder. Definitely wouldn’t happen 15 years ago though, but a lot has changed. These people are probably more valuable to advertisers and if they disappear from Facebook it might cause advertising revenue to seriously dry up.
Massachusetts is attempting to promulgate sales taxes on out of state Internet purchases using similar logic applied to cookies [0]. It seems that all it takes is nouns being put on these things, for that parasitic ambient authority to attempt to jam itself in.

Having said that, as a USian, it seems like it's at least possible for EU regulation to have its intended effects (/me glances at uUSB connectors on everything). So, especially because I bear no responsibility for its existence, I'm cautiously optimistic that the GPDR will do some good pushing back against the surveillance industry, rather than simply being yet another tool to strip individuals' freedoms away.

[0] Hey, maybe if it holds up in court, it will spur development and adoption of browser-based nym management!
True to that, but feel a bit violated.
Okay, so the creators of this safer C promising that it isn't going to grow to the same size as C++? I guess if they're promising that, that makes sense.

C++ was a C variant once.
Which I always use [this scene][1] from Spider-Man to remember:

Peter Parker: Spider-Man wasn't trying to attack the city, he was trying to
save it. That's slander.
J. Jonah Jameson: It is not! I resent that! Slander is spoken. In print,
it's libel.

[1]: https://www.youtube.com/watch?v=vcM1kTZm-nM
Thanks for such a fair evaluation! That's honestly the first time someone has put my comment in context like that... I appreciate it :)
Why not recognize it and flag it as an issue?
I think many people overlook that "undefined behavior" mainly limits portability. Invoking undefined behavior won't cause your program to do random things, it just might not do the same thing when you switch to a different compiler. This is still a big problem, but not as big as people make it out to be, in my opinion. I think undefined behavior problems in the standard could be fixed, but compilers would need special flags for backwards compatibility with programs that rely on it.
5 years from now: "listening for illegal speech in city streets using TensorFlow"
The title is asking for attention unnecessarily since the neural network will not be able to distinguish between "legal" and "illegal" chainsaws. It should just say: Listening for logging chainsaws [...]
Seriously? Dell owns 50% of Pivotal with the rest owned by companies like General Electric and Microsoft. The valuation is $3B. They aren't coattailing anything - it's an actual business with actual customers and actual value.
I vote for small claims court. Quick to do, cheap (no lawyer needed), and can award enough to cover your costs, and should teach them a lesson.
Would it work to add a boxed_clone() function to your Material trait that returns a Box<Material>? (or create a BoxedClone trait if you need that pattern more generally)

Implementations of boxed_clone() could still use &self.clone() to limit boilerplate.

Alternatively, if the Materials are not going to be modified and you just need multiple references to the same object, you could replace the Box<> with an Rc<> or Arc<>.
From a recent publication in an IEEE conference related to intelligent vehicles:

"Radar is robust against bad weather, rain and fog; it can measure speed and distance of an object, but it does not provide enough data points to detect obstacle boundaries, and experimental results show that radar is not reliable to detect small obstacles like pedestrians."

This would be because the wavelength of lidar is in the micron range while that of vehicle-detection radar is in the mm-cm range. You won't be able to reliably get radar reflections off of mm/cm-scale objects or object elements, or accurately (<1cm) localize object boundaries. Good navigation would require tighter localization.

Radars are really good, though, for detection of objects, including identifying moving objects, close up -- canonical examples being walls and other vehicles. Radar sensors are rather cheap (having been in mass production for a long time) so it's common to have one on every bumper or corner.
[also a CS 343 TA] I personally agree with you -- if it were up to me I'd refactor CS 343 into a pair of courses, maybe focusing on high-level concurrency constructs with a follow-up course on building that sort of runtime system.
> You're right, it wasn't either but it was a bit of both.

It was not a bit of both. It was work. Yes, they could chat while doing some easy repetitive tasks, the same way as worker in work now chat while doing repetitive tasks. However, this was not low effort hobby you do whenever you feel like and can take random amount of time. It was work that needed to be done whether you feel like it or not. And preferably fast while keeping quality, because there was a lot of work like that. It also had to be done whether you are nine month pregnant or not and whether baby wake you up at night or not.

I don't know why you think it was supposed to be slow work. That makes sense only insofar you see and treat it as a hobby instead of as actual task that needs to be done, because you need result of it.

Fun fact: washing cloth without washing machine took whole day once a week. It was physically hard tiring work that required you to beat the thing to beat the mess out of it in cold water. If you want meat (which they definitely did not ate often), you gotta kill chicken. And clean it. Again, messy work that takes a lot of time.
Warning: this article does Not includes graphic images… but it should
Of course, but that's what parenting is, to a huge fraction of people -- it's innately recognizing that children displace parents, generation after generation. It's not because of society, it's the cause of society.
Why? Why aren't Americans allowed to pursue their own interests? If Putin wants to assist, say, movements opposed to globalism and neo-lib foreign policy, and those movements want assistance...? We've used help from foreign nations before, such during the War of 1812, or naval blockades during the civil war.
hey this is really cool:)
I like looking at what bags people use, its nice to see some that are 'battle tested' - for ideas on what to pick when I go travel hiking:)
The point of modern society would seem to be to enable the existence of people so wealthy they are practically gods and never have to work, except on what they want to.
IBM’s blockchain-ready CPU is smaller than a grain of salt, costs just 10 cents
That makes sense. I didn't put that together.
I'm not a lawyer either, but have been going through the GDPR process at my job. It doesn't matter if you operate or are established in the EU. If you have EU visitors/users they gain the protections of the GDPR and you have to comply.

GDPR affects any org/site that collects personal or sensitive data. Amongst many others IP address and email address are considered PII under GDPR. We use IP address for some high level geolocation data and decided to drop the last octet so it's not tied directly to an individual visitor. The specialists we spoke with had concerns about free form input fields because anyone can write anything they want in them.

In the case of hackernews it seems like email address, ip, profiles, and comments could contain personally identifiable data. I'm also curious how HN similar sites are supposed to comply with GDPR removal requests when it can destroy the usability and functionality of the site.
This is simultaneously appalling and unsurprising. It's the unsurprising part though that's the trap because people use that to paper over their disgust and replace it with resignation.

Buried in that Twitter thread is some ruby code for collecting statistic from the FB data dump.
https://gist.github.com/dylanmckay/2b191a10068bd87d0fffba242...
Indeed. The witch hunts of the Inquisition were in this same vein as well. A major driving force was that of censoring anyone who did not adhere to the official dogmas and doctrines of the state: heretics, blasphemers, etc.
> The wall is impassable until a point that you make a key discovery which lets you make your through. Often that discovery is a eureka moment – it felt impossible only hours before.

These moments are my favourite, or at least most memorable, parts of learning. Which is what attracts me to hard, important concepts because they tend to be the most rewarding once you begin to grasp it.

I'll never forget when SICP's connection between programming and abstraction started to really click, after much effort, and the way it blew my mind, despite having programmed for a couple years. Really grasping the fundamental concept took the whole experience of programming to the next level - and made learning other things easier like a rolling snowball.

The fact the author's walls never got "smaller" is a real problem, that can be disheartening.

That said, brick walls aren't always bad things. Although it's often hard to tell whether it's a reflection of a poor design/structure of the thing you're learning, or just the learning material, or the learner themselves. Then there is the question of "necessary evils" of steep learning curves which, who knows, might be required entry-fee for a truly great language or tool (see: Emacs/Vim).

Haskell was much the same way for me. Each cliff I climbed had a new big cliff waiting. It got me into learning not just pure FP but also lambda calculus/set/category theory. It felt never ending. I ultimately never went "all in" with Haskell (maybe because of this) but what I did learn has been very useful in my non-Haskell programming elsewhere, so it's not all for naught. But it was admittedly a hard and significant time investment which isn't for everyone... nor necessary for being a productive programmer. But I don't regret it.
I get this, and I’m sure if my kid was in this situation I’d feel the same way. For all of the kids who aren’t mine though, I can see the other poster’s point. That’s just as much a part of being human as being attached to your own offspring.

In other words, I’m not going to stare, or look away from a disabled kid. I’m also not going to invest emotionally, or go out of my way to change how I think and act day in and out for them. If someone asks me for help, I’ll help, but they’re not likely to register for me otherwise. I won’t look away, but I also won’t look; disability doesn’t make me more or less invested in strangers.
They are behind the Spring Framework - https://github.com/spring-projects/spring-framework.
The idea is that everyone is on it, that's what makes it a viable platform. An all encompassing social network requires an all encompassing social network.

Your idea would be similar to healthy meals that take 4 minutes to prepare to combat fast food chains: a big reason why McDonald's is as large as it is, is because of the speed of it.

And of course to the last point: anything would be insanely profitable if a billion people pay a dollar per month for it.
Reading between the lines; using genetics to justify racism against group X is dreadfully wrong, but let's not close the door on our ability to use genetics to justify racism against group Y.
You are correct, it's very easy to check to see if a private key matches a cert:

$ openssl x509 -pubkey -noout -in cert.pem | openssl rsa -pubin -outform der | openssl sha1
writing RSA key
(stdin)= 92635f3403046f4d7d0e0b40829dc24b0370478d
$ openssl rsa -in key.pem -pubout -outform der | openssl sha1
writing RSA key
(stdin)= 92635f3403046f4d7d0e0b40829dc24b0370478d
Protect them from what? this is a partisan knee jerk reaction to goings on in DC. More importantly these actions are potentially detrimental to local companies the interests of which are intertwined with the state's.
I don't believe they ever set up a warrant canary.
Definitely. People are reluctant to buy $1 or $2 mobile apps that would be really useful, even though they would never notice the money was gone. Just because most apps are free. Also, most people lose more than they gain by deleting their facebook or anything else. Tech people tend to care about privacy because of all of the terrible implications and possibilities that come with all your personal info being freely bought and sold, but the vast majority of people will never (at least consciously) suffer any ill effects of government tracking or targeted ads.
Interesting. Regarding "competitive" pricing, I've always found that "call for quote" is synonymous with "unaffordable".

I wish this blogger would've called for a quote, it seems like a minimal amount of "journalism" to bring a real addition to the article beyond regurgitating a press release.
Maybe (though it's vague enough to mean anything), but it's definitely of the Musk does it, you can too variety.

Those alternatives never went anywhere for the past 14 years. Musk is late to the game, what's his wiki prove?

The "I've got new respect for Musk" mantra (actually stated in this thread) when he's doing what other people have been doing for a decade, only difference is, he's rich, is very follow the crowd for something which prides itself on individuality like HN.
Each employee should act according to their conscience, not according to your conscience.

Your perspective reminds me of a Chris Rock joke: "How come it's only unemployed people who tell you to quit something?" The point being: it's really easy to tell someone to quit their excellent, fulfilling job over some moral outrage that you perceive.

Finally, while I understand this is an unpopular opinion around here, I believe the tech community's focus on privacy is overwrought. We should expect to be tracked on the internet. If you're doing something that you don't want to be tracked, there are numerous tools to avoid tracking. Making those tools cheap and accessible seems like a worthy cause to me. Fighting for overly broad legislation like this seems like a waste of time.
Implementation defined behavior is not the same thing as undefined behavior.

Undefined is out of the scope of the language entirely. Using a non-existent index into an array, for example. While you might reasonably expect the program will just look past the end, there is not guarantee it will do so. Optimizing compilers, in particular will assume such a thing cannot happen, and can assume a code branch that does something like this is impossible to reach and discard it entirely.

No one will "fix" such an optimization bug, because the code behind it is valid for ASTs that may have been put into that form from conforming code generated by macros and branches that wouldn't be called. There's nothing to fix.

You're telling it to do something impossible, and it's assuming it can't happen.
Reference counting can also lead to big cascades of objects being freed, which can make it impractical in realtime context as well. This makes RC useless for systems which have hard constraints here (e.g. automotive).

And of course, once you are multi-threaded, you can more or less forget about "predictable and deterministic" with RC, too.

In contrast, there are real time capable garbage collectors.
Pivotal Software files for IPO
A wild IPv6 attack appears Open DNS resolvers on IPv6 [pdf]
Exactly. Just look at how the US government quickly and easily wiped out all those insurgents in the Middle East. Oh wait... it's been a decade and a half since the attack on the World Trade Center, and they're still there making trouble.

If you're fighting the government head on in a conventional war, and the military sides with the government against the citizens, then of course you'll lose. So don't do that. Armed citizens defending themselves and their families on their own turf against modern militaries using asymmetric warfare techniques have actually proven pretty effective.

In any case, you're assuming an all-out civil war where the government has free reign to send in the military against its own citizens with no concern for political fallout, using whatever level of force is needed to achieve their objective. In practice they don't have that much freedom even when dealing with a foreign group intent on causing us harm. Under more realistic circumstances, the mere possibility of armed resistance serves as a major deterrent to tyranny vs. the ease with which unarmed civilians can be rounded up for "re-education".