skysight-inc/HackerNews huggingface dataset:
I am currently learning Rust and I feel this intensely[1].

I really want to like Rust, but I feel like the way they cope with no GC (lifetimes, borrowing) fights me at every turn, and really simple situations in other languages[2] become these intensely painful situations. Every time you think you've worked out how to fix a problem you find while you've fixed that one you've actually created 2 more.

Want to have a data structure of variable size (eg a struct with an Vector in it)? You can't do that, structs have to be fixed size. OK so I'll make it a reference to a Vector. That's great, but now you can't have a factory function because the lifetime goes out of scope. OK so I'll wrap my reference in a Box. OK that's great but now your OTHER reference: a trait (because traits are also of unknown size) is complaining. OK I'll wrap that in a Box as well. Sorry, you can't wrap this trait in a box because before your trait requires implementors to implement copy because at one point you have to use the trait in more than one place and references break the lifetimes and--- THROWS LAPTOP OUT WINDOW

I'm going to keep chipping away at it for a bit longer, but I can feel my interest waning.

[1] Except for the bad docs bit, I really like the docs, and the error messages are definitely earnest in their attempts to help you.

[2] that I'm familiar with, which are no languages that don't auto-GC

-- EDIT --

To everyone taking the first line of my intentional rant paragraph and pointing out it works fine… you're correct, I am mistaken! Let me paste the reply I made to the first person:

---

You're absolutely right. What I really meant was that you can't have Vec<T> where T is a trait without also wrapping that in a box, which for me in turn doesn't work for a bunch of other reasons.

In any case, my point remains the same: it is very challenging-- at least for someone used to just creating data structures and letting GC handle it-- to build code that does what you want, and you spend large amounts of time "fighting" the compiler. I am OK if people wish to peg that on me being stupid or whatever, it doesn't change the core point: it's hard for new people to get into, and if you're wanting there to be less Electron apps and more native apps things like Rust being easy to use seems important for that.
How did you get funding? I'd like to get some funding for my project (ziglang.org)
I see this argument every time tech industry regulation is discussed, and I feel it misses the fact that legal and regulation requirements are generally not that bad... they just don't scale well.

The average website owner need not worry about SESTA, for example, because they can easily take individual action on an individual violation of the law as they discover it. But a giant corporation who knows that they likely have violations numbering in the five digits needs a compliance department to handle all of it.

Startups will not be heavily restricted by regulation, because by the time their regulatory requirements are challenging, they'll just need to factor the additional costs into their scale-up plans. And on the contrary, the increased requirements for large players will add cost and challenge to the established players that will likely make room for new startups to take advantage of and work in under the margin.
I can see where the author comes from. I've been working with ^W^W fighting against Tokio this week, and the error messages are horrible. Representative example:

error[E0271]: type mismatch resolving `<futures::AndThen<futures::Select<futures::stream::ForEach<futures::stream::MapErr<std::boxed::Box<futures::Stream<Error=std::io::Error, Item=(tokio_uds::UnixStream, std::os::ext::net::SocketAddr)> + std::marker::Send>, [closure@src/server/mod.rs:59:18: 59:74]>, [closure@src/server/mod.rs:60:19: 69:10 next_connection_id:_], std::result::Result<(), ()>>, futures::MapErr<futures::Receiver<()>, [closure@src/server/mod.rs:74:18: 74:74]>>, std::result::Result<(), ((), futures::SelectNext<futures::stream::ForEach<futures::stream::MapErr<std::boxed::Box<futures::Stream<Error=std::io::Error, Item=(tokio_uds::UnixStream, std::os::ext::net::SocketAddr)> + std::marker::Send>, [closure@src/server/mod.rs:59:18: 59:74]>, [closure@src/server/mod.rs:60:19: 69:10 next_connection_id:_], std::result::Result<(), ()>>, futures::MapErr<futures::Receiver<()>, [closure@src/server/mod.rs:74:18: 74:74]>>)>, [closure@src/server/mod.rs:78:34: 83:6 cfg:_]> as futures::Future>::Error == ()`
--> src/server/mod.rs:85:15
|
85 | return Ok(Box::new(server));
| ^^^^^^^^^^^^^^^^ expected tuple, found ()
|
= note: expected type `((), futures::SelectNext<futures::stream::ForEach<futures::stream::MapErr<std::boxed::Box<futures::Stream<Error=std::io::Error, Item=(tokio_uds::UnixStream, std::os::ext::net::SocketAddr)> + std::marker::Send>, [closure@src/server/mod.rs:59:18: 59:74]>, [closure@src/server/mod.rs:60:19: 69:10 next_connection_id:_], std::result::Result<(), ()>>, futures::MapErr<futures::Receiver<()>, [closure@src/server/mod.rs:74:18: 74:74]>>)`
found type `()`
= note: required for the cast to the object type `futures::Future<Item=(), Error=()>`

I have hope that things will improve on this front when `impl Trait` lands.

EDIT: After re-reading this, I want to add that I don't mean to hate on Tokio. I like the basic design very much, and hope that they can work out the ergonomics issues and stabilize the API soon.
I never had the impression that Musk cared much about privacy but I seem to be wrong. Or perhaps it has more to do with the current POTUS and his impact in the environment. Either way, I am happy for his decision.
Because there's an emotional attachment, because you realise that, while the child may not be able to to enjoy the full range of what life has to offer, in the majority of cases the support and love that you have to offer will be better than the care offered by an institution. The momentary smile is quite rewarding.
This is being done by many [ex. 1], but you've identified the challenge: often it's too late to catch offenders once the satellites have seen the damage.

[1]: http://data.globalforestwatch.org/
I'm 64. Kids are grown.

Most days, in bed by 9 and up by about 4 am. So 7 hours. Sometimes a little more. Usually get up an hour early and go to the living room and sleep in a chair for the last hour.

I have some back issues and use an adjustable bed and sleep upright sort of for the first 1 to 3 hours. Then on my side. When I go to the chair it is just right for upright sleep.

I go to the gym at 5 am and need 30 mins to an hour before doing my gym routines.

At 64 I love a good nap. At work at lunchtime for 10-15 minutes. On the weekends for 20 - 25 minutes. Naps are always upright just like a meditation sitting posture.
My point is more that there will always be people who insist that a definition isn't clear or doesn't have a basic consensus. I think they're usually wrong in the very assertion. In any case it is negative-productive to discuss definitions if you never stop discussing them and move on to the real content.
Here's a link to the actual presentation https://web.archive.org/web/20100817162301/http://dl-web.dro...
FYI here’s a link to delete your Facebook account: https://www.facebook.com/help/delete_account

Earlier I had “deactivated” my account thinking it would get deleted, but then I learned I have to visit this page to actually delete it.
Especially since they're calling it "Open Speech Recording" you would think that they would be more interested in joining forces with the industry.

It's also interesting that the agreement states, "Google may use the clips ... share the clips with others, including the general public, for example, as part of a public dataset to facilitate research" instead of Google will share the data.

Compare that to Mozilla's Common Voice project which has no agreement.
I'm coming from working in Typescript in Nodejs for the last 3 years and I've found it incredibly approachable. It's possible that it's because OOP is less prevalent in JS compared to the ones you mention as well as the author's use of Python. Then again, maybe it's just syntax similarities.
Coming from well established js libs to python I have found the documentation really hard to deal with.

I'm not entirely sure why that is. I really like getting to a repo on github and having the docs in the readme. Both python and rust have their own language specific doc implementations ReadTheDocs and docs.rs (I think). And you usually have to go to a separate site to view them which is fine, but I really dislike ReadTheDocs. It anyways seems really hard to find what I actually want. Take flask and alembic
Well, if you're not paying for health and dental, and you don't have any corporate training programs, and there aren't OSHA requirements and other costly regulations, you really have to give something up as an employer to retain good help.
I was born and raised in South Korea, and I have multiple years' worth of work experience in my home country. While I do agree that this argument could most definitely go both ways, I do think that 67% of workers opting to stay longer goes on to show just how prevalent the concept of "face-timing" at work really is in my country, regardless of which profession you work in. I can personally attest to many nights - more than majority of my work days, in fact - where I've found myself and my teammates working (or pretending to, at least) late into the night, just because my manager gave no signs of leaving anytime soon.

Unlike here in the States, individualism is not a value that society values; rather, it's essentially frowned upon. Confucianism manifests itself in modern society by being extended into the workplace; the idea of "we're all in this together" is almost forced upon workers, even in situations where it's clearly more of an individual thing. When your manager is working up until 10PM, I don't think a lot of Koreans would find it easy to leave work at 7PM, even when the work that's been allocated to her/him has been done.
Sighted is the term used to talk about people who are not blind, low vision, or visually impaired. The best ter for the person you're talking about is probably low vision, but many low vision people use the term blind as well. Most blind people are not, in fact, totally blind, only about 10%. I call myself low vision, for example, but sometimes use the term blind.
The line item veto will never be back, it should never have happened. Congress writes laws, not the executive. I'm with you on the rest of that.
Yes, but it relies on people actively doing so. For example, look at the following torrent of the 2012 Olympics Opening Ceremony in 3D [1]. Yes, it is an illegal video copy, but a video that there are no legal ways to access anymore. This torrent has no seeders and because I don't have a copy, I therefore can't seed it.

[1]: https://thepiratebay.org/torrent/7487775/2012_Olympics_Openi...
> widely

I'm not sure you'll find much well-reasoned support for this notion outside of California and college campuses.
Congrats to the Dropbox team.

Apologies if this is a naive question but I haven't had much success Googling.

I've never heard of a company going public without an investment bank's support. I assume there was a law to require this.

When did that happen?
Can you check when he created the account? He hasn't made any "toot" yet, so he might've just created the account so no one would pretend to be him?
I try to be in bed by 9pm and up by ~4:30am most days, including weekends. If I sleep in on weekends too much, it ruins my schedule for the following week and I feel exceptionally tired on Mondays.

(Late 20s, work a 7-3 as an engineer, married but no kids. Really like this schedule.)
I'm 26 and doing something similar to you - working a contracting day job and building a product in the evenings. This means I'm up between 8am - 2am on weekdays (6hrs sleep) and catch up on sleep on the weekend.
Malicious users will always find ways around machine learning algorithms, though. So if the law makes it impossible for someone to run a legitimate personals website (as it seems to already be happening with Craigslist), then doesn't that amount to government-instituted prior restraint on what should be legitimate free speech?
7 hours, sometimes less sometimes more. Usually more when I have a few days of less sleep in a row. In bed anywhere from 1130 to 1 AM on weekdays, up anywhere from 6 to 9 AM. Daylight savings time makes it much worse :)
The deal here is the "want to believe". People who believed those faked news were voting for Trump anyway.

It takes a lot to switch from Democrat to Conservative, not just some news that you read on the net. Political opinions are not that fluid and don't change easy.
I assume he is talking about Planet Labs (https://www.planet.com/) - a very cool service.
Banks would make money even if stock goes down, through "stabilization" https://www.bloomberg.com/view/articles/2016-11-25/appeals-c...
> it'll be selectively enforced

This is the crux. These laws are not meant to be enforced universally.

The objective is having ammunition to use when other motives determine the target to strike.
While we can't even define what a species is[0], this is quite an overstatement. I think you'd be on stronger, albeit equally politically charged, ground if you used "breed" or "variety".

[0] https://www.sciencenews.org/article/defining-species-fuzzy-a...
Add losing $300mm to friends of Goldman, JP and DB by letting them screw Drew &co on their IPO pricing to the long list of ways Dropbox has found out how to lose money.
Great points you bring up and indeed things do get complicated as you face a bigger and more organized operation. This is the case in parts of the Tembe territory in Brazil and it is the reason why we work with many partners and agencies on the ground to ensure that the data we capture is used wisely.
But from what I understand, even if you're using github https://about.gitlab.com/features/github/, you can have the CI/CD of gitlab feature.

Also, I wonder what's the benefit of in house installation in your case?
Trump organization charges Iranians for worldwide digital burglary
Yep. LinkedIn as well. Still without one, and starting strong. Very much realize I must put my data where my mouth is.

Similarly, I'll be far less likely to hire one who has Facebook on their resume.
Like the revisions to Section 230 in the US?
That belief isn’t just something they got from nowhere. Your contempt for their choices is bizarre and really offensive.

If they have a better option, perhaps you could illustrate what that might be. Perhaps grab a coding job? Or waitressing, with all the benefits and pay that comes with (and sexual harassment with no recourse, not much #metoo for underpaid waitresses)?

Or, are you offering a job?
Beggars can’t be choosers. News at 11.
A lot of them sellout.
In EU, are they not obliged to keep some data? Imagine the case: commit a crime using FB, delete your profile. I cannot imagine the judge/police would not get some exploitable data...
World’s Wealthiest Lose $71B in Market Selloff
I'm blind and seems to me like this is a simple misuse or misunderstanding. "Low vision" is usually the accepted term for this in the US.
Hail drumpf!!!
Wow this is the same as me. Never realized how big an impact kids would have.
The only adjustmnent being asked for there was an adjustment of expectations.
How do you quantify the confidence of your model? Do you use a Bayesian model or just the log-likelihood? Because the latter can act strangely in some cases.
Hehe, fair enough. May I ask the question this way? What is the intrinsic risk of a land war between the US and another foreign power? I'm currently mobile trying to find the ATF and NRA data on distribution, but my recollection was that most fire arms were concentrated in larger collections. How do you characterise firearms ownership in the larger civilian market? It makes 100% sense to me regardless of law if you live in Nevada or Alaska to have some sort of force to bring to bear where the faculties of the state are in short supply and geographically challenging, but why rifles in suburbia?
My guess is likely Planet.

https://www.planet.com/products/
Hey, Elon, why don't you build a better Facebook? Call it, "the better interplanetary Facebook".
Presumably it's a reference to the way peak-usage IE created custom requirements and ignored established standards - partly to undermine other browsers, partly just because they were too big to care.

Chrome defaulted top-level event listeners to passive with no real warning or discussion. Chrome no longer passes Acid 3 like it used to. I'm not a web-dev, but I know the list goes on at some length.

So the concern here, whatever its merit, is that Chrome is now undermining other browsers and changing the web for its own benefit.
Ask HN: Do you use kettlebells
I'm 64 and finding that I need a whole body experience at the gym. I have foot and ankle problems and can't jog. I take a beta blocker so getting my heart rate up is hard.

I've just started doing kettlebells and think this might be the answer. But I only have used them two days in a row.

What are your experiences with kettlebells? What is your age?
I have a similar story: http://genesisdaw.org/post/progress-so-far.html

This is why one of the main features of zig listed on the home page is:

"Small, simple language. Focus on debugging your application rather than debugging your knowledge of your programming language."
> For example, when gcc yells about comparing signed and unsigned ints, I find that there rarely is a true safety concern involved. I hope Rust is better than that.

In Rust these are treated as two completely different types so this is a compiler error and not a warning. You need to explicitly cast one of them to make the comparison and integer types are not automatically converted in any way. You have to do the same for any other operation involving the two types (e.g. addition).

You could certainly define the `ParitalOrd` trait for the two types to make the comparison possible (I don't know the implications off the top of my head). The language defaults to safe and explicit.
7, and I try to always be awake before my 6am alarm. If I hit it, I know I'm in for a less than stellar day
I don't think so. The same thing happened to SNAP where the stock immediate spiked after the IPO due to speculators. Now that a year has past since the IPO, it turns out that the IPO price was pretty reasonable.
6 to 8 hours. I basically haven't had the same sleep schedule from one day to the next in roughly 20 years. That oddity started when I got... hooked on the World Wide Web in the mid 1990s. It has proven practically impossible, and or undesirable, to go back to a normal schedule ever since. So one day I might go to sleep at 4am, the next at 2pm. My point of sleep typically rotates around semi randomly, for example if I stay up later to do something that can rotate it further the next day, or if I sleep one hour sooner or later etc. This lifestyle is, apparently, likely to shorten my life expectancy. No alarms, unless there's something I absolutely have to be up at a certain time for. To make this functional, sometimes I have to plan ahead on an intentional sleep schedule rotation for unavoidable time commitments (or otherwise get stuck with less than ideal sleep).
No, Facebook was planning on being a customer of Spacecom, the satellite owner. Spacecom is SpaceX's customer.
I know that feeling of wanting to get a few more things done before going to bed. But I also know (from many times that I have tried) that I will not be able to trust my work the next day. I'll misunderstand things or just forget to follow through and have to clean up later. So personally, if I'm working on a long project that's important to me, I'll try to make sure I'm getting to sleep most of the time. Anyway to answer your question, I can get away with about 5 hours of sleep only once, but I need closer to 7 on a regular basis.
> I did find the documentation for promises and tokio to be pretty confusing.

I've been learning Tokio just this week, and I think this has to do with their ongoing refactoring away from the tokio-core crate to the tokio crate.
A lot of people are focusing on why the car didn't stop or even slow, but what about the human driver? I feel like this practice of having a human driver behind the wheel doesn't work as well as we might think it does. It is likely giving people and legislators a false sense of security if they think a human has the ability to intervene properly to stop an accident
They've provided the same amount of logic basis and argument for their claim as you have for yours.
Grindr next?
Terms that don't appear in everyone's favorite bill: "voter-verified", "open-source" (not sure why Gabbard has that hyphen), "preservation". On the other hand, it does begin with "It is the sense of Congress that, in light of the lessons learned from Russian interference in the 2016 Presidential election..." so it ought to play well with the military-intelligence-enforcement-industrial-media complex.
If Gabbard somehow got all those important things amended into this most favored bill, it would lose all its co-sponsors. Democrats and Republicans are like Coke and Pepsi. If we had actual democracy we might end up with something palatable.
Beware of Roboadvisors Bearing Low Fees
As Tony points out below it is often too late with satellite imagery and they can only capture after the devastation occurs.

Our system is as real-time as it gets. In fact you can download our app right now and listen live to the sounds of the forests:

iOS App
http://bit.ly/RFCx-iOS

Android App
http://bit.ly/RFCx-Android
Just to counteract the crazy low amounts of sleep people are reporting here - I sleep at least 8 hours on weekdays, and 9 or more hours on weekends (up to 11 if I didn't sleep enough on weekdays). I can't do less than that and remain productive for more than a few days.
React User Authentication Using Firebase
I bet you could get plenty of anecdotal evidence on this. What would you want to see from research? Metrics on awake vs sleep deprived vs "caught up after sleep deprivation"? Sounds interesting.
Elon Musk Just Removed Tesla and SpaceX from Facebook
Facebook and Google actively opposed SESTA. It looks like they switched sides due to it getting watered down a bit (unfortunately), and likely not wanting to remain on the side of "supporting sex trafficking" once it became clear the bill was definitely going to pass.

Original: https://internetassociation.org/introduction-stop-enabling-s...

Reversed: https://internetassociation.org/statement-in-support-of-the-...
On point 1, he failed to understand that 99.9% of population is not IT savvy, not to mention how much time such setup would take and then maintain to run smoothly with all security patches, etc.

2. He misunderstood initial description of Drop; that the files will reside locally even if you lose internet connection you still can access those.

3. He was wrong about "viral" but right about inability to "make money off of this" :)

Congrats on listing!
>If my success depends on me/my company having FB presence, then my business sucks.

And then...

>How this idea of FB being the "place to be" got so much traction is beyond me.

If FB is "the place to be" as you say it is, then it is a valuable marketing resource and your first comment doesn't follow. I don't see how it's any different than advertising on TV in the early days. All of a sudden a new medium for reaching an even larger number of people popped onto the scene, so people used it heavily.

You may not like FB, but you can't dispute the fact that you are able to reach a lot of people for little to no cost using it. You can't then go on to say that a business "sucks" because it relies on FB for marketing.
Coincidentally, `impl Trait` stabilization was just approved, meaning it should be in the next beta: https://www.reddit.com/r/rust/comments/86f3h6/impl_trait_sta... . It will be a crucial step forward for Tokio's error messages.
And I just bought some more tesla stock