skysight-inc/HackerNews huggingface dataset:
I agree, but let's remember how young rust is, how little experience people have with it and its paradigms and how much they are used to code with c/c++.

How course it's hard for them right now.

Guess what, it was harder when they started c/c++ decades ago. There was less tooling, best practices were even less clear, all code bases looked different and the language ergonomics were way worse than today.

Give it some time. Some time for the language to mature of course. But more than that, some time for the dev to actually reach fluency, not only it the language and ecosystem, but on the general philosophy of this way of producing software. It's even harder given many have to unlearn years of experience and patterns that made them productive, and adopt, discover, or even even new ones to replace them.

We have hugely high expectations towards rust because of the amazing work the core team has already made in so little time.

I see the same reaction toward the last 2 flight crashes. People are shocked this can happen. I'm just amazed it doesn't happen more often. The institutions have generally done a fantastic job.

Now to say we should not fix what's broken in both cases.

But let's be fair to the incredible result we already got.
They were playing in the street
Oh I do, cultural stereotypes can be fun but you can't take them serious.

My partner is Hungarian and her stereotypes of the English where/are hilarious to me :).
It's drawn out because he had to literally build a car company from scratch and launch 4 successful models to finish it. I'd say he is excused.
If you wouldn't discuss it with your family around a dinner table, why would you do it on a platform where you connect with them?
Ask HN: What music do you listen to while working?
Hi, I was wondering whether listening to music while working increases your productivity. My "work" is mostly just programming.

Do you listen to music? And if so, what kind?

Thanks :)
> I see #2 as still keeping a good deal of blame on Boeing,

Agreed. When users of my software fail to use the software properly some large part of the blame is still on me.
> It would be really interesting to have a system that supported both modes, e.g. starting from Rust but setting a flag to turn borrow checker errors into warnings or something similar.

https://github.com/thepowersgang/mrustc kind of does that. It assumes the input code is valid at the moment.

But if you want to experiment first, you have other language pairs you could use. Python + typed Cython, or Ruby + Crystal, or other options...
I am not sure... browsing Patreon, I see that many artists earn a lot of money for say, digital art.
Yes. On normal cars this is achieves by sensors and brakes that I believe work at 100 times a second and up. Tesla have the advantage that they have similar control over acceleration. This technology has been common for years, and early on it had lots of downsides, but it's most recent versions is quite good. It's becoming more and more popular, even on enthusiast cars.

The main issue is while limited slip differentials do work, they are expensive, add weight, and they add friction. So the software solution gets you better MPG, better HP, and more control. There's many different names for it, traction control, torque vectoring, traction assist, etc.

Even Subaru who bet the heaviest on AWD (selling only AWD until they sold the BRZ), and had one of the best respected AWD systems is moving to open differential with the brake assist, on at least some of their cars. Not sure about the STI and WRX though.
Rust's contribution is memory safety without a GC, so as a new approach it's somewhat exciting. But for most programmers before Rust and today, memory safety has been a solved problem not worth thinking about because most programmers use a GC language.
The same people who are saying they cannibalising the same market, are often the same people who are saying that there is significant competition from other car makers incoming ...

As someone who will be buying an EV in the next two years, the Y has certainly kept me interested in Tesla.
The fact that it's around the time of the year to file taxes, and anger is sometimes a part of that experience, pulls the "mental autocorrect" in that direction.
Nuclear waste in reality is a tiny problem. The amount of waste is insignificantly small. Its not even waste as its valuable material for the future and should be considered as such.

The amount of fear spread about nuclear waste is so far out of proportion with the reality of the situation that its hard to even explain how crazy many of the believes about nuclear waste are.

Compared to all other forms of energy, including solar and wind, nuclear produces by far the least amount of waste to the envoirment. In fact, nothing escapes into the environment, everything is captured and can be handled appropriately.
Electrons are the best friends I ever had. (Seriously though, the longest lasting friendships I have had in my life have all been online.)
People are downvoting not because Rust is better choice for this project with the cons you mentioned but because Go is far better choice if you want less mental overhead and total cost
> As a person who study UX for living

So a student?
Its Indian version of tabloid news. AFAIK some local enforcement agency passed a rule banning PUBG near to school exams.
Why? There is literally no reason to have nuclear reactors in space.

Building a modern reactor that is not based on 60 year old technology would make more sense, but regulation have made that impossible and the government itself has 0 interest in doing so.
There's always a tradeoff. We could make driving much safer by enforcing drastically lower legal speed limits, much longer mandatory training for the drivers and even higher safety standars in cars. But we have chosen not to, because that would be perceived as limiting freedom, being inconvenient and cost money. But more than thirty thousand people die in car accidents every year in the US alone.
Bad analogy. This is more like...

Walmart tells a manufacturer they have to pay a special Walmart surcharge every time a sale is made, and that they can't raise their prices only at Walmart (or give discounts at other stores) to make up for the difference.

And, in addition, after the sale is made, if the product allows the customer to buy add-ons after they bring the product home, the customer is required to go back to Walmart to purchase that add-on, and another Walmart surcharge is assessed; the manufacturer isn't allowed to sell add-ons directly to the customer without Walmart acting as middleman.
> In Rust it's the overt explicitness of the borrow checker, and the friction it adds to one's programming.

Most, and perhaps all of the "friction" that the borrow checker adds to exploratory programming can be fixed with comparative ease by adding a few well-placed `.clone()` calls (for immutable data) and/or changing some type declarations to `Rc<RefCell<…>>` - at a minor cost to performance, in both cases. One might think that Rust needs to do more to support this use case, but given the performance implications, this is one example of how explicit can be far better than implicit. Regardless, it's absolutely the case that you can write "ALGOL" in Rust, just as you can write FORTRAN in any language. The code might not be at peak performance, it might even leak memory in rare cases, but it will do what you expect it to do otherwise.
This is an interesting result of the collision of device sales, and a digital distribution channel. The normal free market economic push back against Apple on this would go something like:

* Apple charges too much

* It's not worth it for apps to be in the App Store

* App Store selection drops

* Consumers stop buying iPhones

In practice though, Apple has such a foothold, and device purchase is so separate from App purchase, that most apps don't see a choice about being in the AppStore. Does that mean that Apple has a monopoly on iOS app distribution, and so should be regulated using anti-trust?

As an aside, the anti-trust section in this Money Stuff article is really interest: https://www.bloomberg.com/opinion/articles/2019-02-28/bank-s...
> the friction is coming from the fact that Rust can't be changed any more

The basic language as such doesn't change much, but what the compiler infers and accepts gets extended with almost every release. rustc from 2 years ago is a lot more strict than rustc now. And lots of lifetime annotations you had to do before, you can omit today.

The experience is much nicer and the friction definitely goes down.
Note that this is also what labor unions and advocacy organizations like the ACLU operate under. Are we still so blasé about “corporations shouldn’t have 1A rights”?

To preempt, campaign contributions are considered speech because (in theory) there are legal limits on what you can do with them.
also if in the future we actually make cellular standards where encryption isn't demarcated at the tower and instead setup e2e between consumer devices, some risks are mitigated

it's really a shame that with both 4g and 5g standards bodies did not already work on this.
> I couldn’t provide a family with the same lifestyle my parents gave me (a house, two cars, safe neighborhood, good school district, mother could stop working for several years to raise me), and they managed without college educations.

It depends where you live. That's probably possible on £30k in the UK including various benefits, certainly on £50k, as long as you live somewhere sensible.

What are the non-housing costs you need?

In 2008 a couple with 2 kids spent, per week:

Food and drink £103.53
Clothing and footwear £29.26
Household goods and services £27.11
Personal goods and services (inc health) £27.39
Transport £35.02
Social and cultural activities £90.08

£320 a week, or £1400 a month. That's £1800 a month after inflation [0]

Housing costs say £650 a month for a mortgage [1]

£2.5k a month, or a net of £30k, that's a single income of £42k a year [2]

You'll also get £1800 in child benfit.

If you have larger outgoings, say 30% more to £2400 a month plus housing, you're looking at a net of £36k, or gross of £52k [3]

(Marginal tax £50k-£60k is 69% though so there's not much point earning more than that, until you're past 60k and it drops back to 51%)

[0] https://www.in2013dollars.com/uk/inflation/2008?amount=1400
[1] https://www.rightmove.co.uk/property-for-sale/property-70111...
[2] https://listentotaxman.com/42000?plan=2
[3] https://listentotaxman.com/52000?plan=2
Yeah? I’m off to read some Jane Austen. Seeya!
During this time there were a total of 67 new
subscriptions. Of these 58% (39) came from the
new design and 42% (28) came from the old design.
Looks like the new one is a clear winner.

Is it? This seems a small population to settle on a clear winner.

Using R's prop test, I get a p value of 0.22. (Type "prop.test(39,67)" to calculate it).

I think this means that in a world where it makes no difference which design is used, you would get a result as significant as this 22% of the time.

An alternative is the Adjusted Wald method. You can try it online here:

https://measuringu.com/wald/

Which gives some confidence intervals which also range from "could be better" to "could be worse". Even when you reduce the confidence level from the typical 95% to 90%.

a quick check with an A/B testing calculator
even says that this result has significance
(~90% likely)

Which calculator was that?
You are wrong about Reddit.

* Reddit AutoModerator has settings option where every submission and/or comments must be first approved by moderator. AutoModerator supports relatively complex moderator rules. https://www.reddit.com/wiki/automoderator/full-documentation
You can also allow only approved submitters or design rules for allowed submitters.

* Questions to moderators in Reddit should be send as messages to moderators. They show in completely different place where moderators can reply and discuss.
My guess is that these are all unintended consequences of very big systems. If you have so many actors in your playground as Facebook, then it just becomes impossible to foresee the results of your actions, and how people will use the platform.
Although it's not completely pseudoscience, in a sense that microexpressions do exist. You can't detect most of them with your bare eyes, and those you can detect (pupil dilatation) are not significative and can be caused by external factors. I heard in a skeptic podcast that the "ripple under the eyes" in case of a true smile is not fake though, its one of the few thing they got right (not the first time a pseudoscience got some part right, but this time it not just lucky).
Treatment of fuel waste is not really a difficult problem.

This is where swiss fuel waste is stored :
https://www.zwilag.ch/en/cask-storage-hall-_content---1--105...

An area less than half a (european) football stadium to contain 45 years of fuel waste for 4 nuclear plants. As of April 2018, there are 449 operable power reactors in the world.
That means you need an area as large as 56 football stadiums to contain all the fuel waste in the world. Not exactly an impressive area. A solar park this size would output energy equivalent to less than a 10th of one modern nuclear plant.

*EDIT: changed a 1000th to a 10th. It greatly exaggerates the solar capacity, but it doesn't change the point anyway.
I gotta give it to them, it's insane how fast they're moving.

In less than a decade they've gone from one highly niche electric supercar to a luxury sedan, a luxury SUV, a mid-range sedan, and a mid-range SUV.

And in sales they're crushing competition that have been building cars for literally a hundred years.

So excited for the zero-exhaust future.
Exactly. It's like looking at how little people spend in total on drinking water and deciding that this means it's not very important to the economy.
In relative numbers yes, but I wouldn't call short of a billion active devices "quite small".
thanks! was interesting to read.This is great advice but you need to work even harder than somebody who went to college. As long as you have that piece of paper you will usually be able to float from decent job to decent job even if you're a total idiot. However, a trade requires actual skill and dedication and you can't just say fuck it to your boss one day and expect to find work in the same town in many instances.
This lead to a whole year of every car ride starting with, "Daddy, are you sure you know where you're going?". Kids also have a way of reminding you of every failure you ever made and never letting you live it down.
Interview with Jesus Castello
Ridiculous amounts of pedantry here. Apparently companies can't lie because they have goals, according to a two year old account, 1/3 of whose comments are about Tesla.
Thanks! What did you like about it? I personally never heard of them.
Defamation law exists for a reason. Or harassment law.
I am neither a Googler nor a laywer, but I think yes and yes - if you don't care about copyright ownership and only licensing (which most of the time is fine - you usually only care if you either want to commercialize it later or you want to make sure either you have standing to sue infringers or Google doesn't), there's an easy process for open-sourcing something and letting Google retain ownership, and a much more involved process for confirming that Google doesn't own it. So it's easier to let Google claim copyright and not argue about whether they really have had ownership.

Some relevant links are https://opensource.google.com/docs/releasing/ for the personal-project-with-Google-copyright flow and https://opensource.google.com/docs/iarc/ for the personal-copyright flow.
How to Change Other People's Behavior
When n is guaranteed to be very small it does not matter. Even an exponential solution would be fine in these cases. The 'algo nerd' on your team ought to know this.
Banking pays poorly compared to tech roles at private equity and hedge funds. Even losing out to Silicon Roundabout and even sleepy Whitehall at the moment, though it is all fairly volatile.

I suppose trying to work at any of the smaller FAANG offices in London might be the best you can do in the UK?
> How long it took somebody else in your team to solve the same problem

I don't think that is a good measure. I know many developers who want to solve everything fast because fast is productive in their eyes. The problem is they end up having a bug or three and spend some back and forth time with QA. So, now they didn't actually solve the problem fast and they wasted QAs time. I prefer to get a more holistic understanding of the code before fixing the issue and not get any bugs back from QA. In retro, when the QA tells the team how many bugs there were, I am proud when I'm not a part of that count.
The Smallest Place in New York City
You need to enable security notifications, and you will be notified of key changes.

> Turn on this setting to receive notifications when a contact's security code has changed. Your messages and calls are encrypted regardless of this setting.
this isn't production-ready yet, but there's a federated blogging platform being developed called "Plume" that might satisfy a few of criteria that you've listed in this thread: https://joinplu.me
No, I think you're right. I recall in the earlier days of HN it would bring up items from days ago when I submitted them. I recall seeing a discussion about this where a mod suggested it's due to the increased volume on the site and how many good posts no longer reach front page.
I'd love it if they did, seems like a retrofit for the 25% different parts would be MUCH faster than building a new line from scratch. I suspect the USA market no longer needs 5k m3s a week, but so far the Europe and China market demand seem to be healthy.
My initial thoughts were:
Such is the fate of efficient economies (like the US) that have effectively turned farming and logostics into specialized utilities

Quickly followed by:
Try enjoying your arts and entertainment when you are hungry and have to walk to the venues.
> Hi, I was wondering whether listening to music while working increases your productivity.

It definitely depends who you ask. I tend to listen to a mix of punk (classic, hardcore, skatecore, crust, grindcore) and metal (crossover, thrash), trip-hop, and jazz.

I enjoy fast-paced music while programming, as well as more relaxing low-tempo instrumental music.
I don't believe this is true. Every time I've asked about a key change, it has been because someone either got a new phone, reinstalled the app, or reset their phone.
The issue I see is this, Apple Music does not play fair, it is similar priced with the competition but it is in fact subsidized by Apple, any application or service it is in danger because if Apple wants and it is competent it can create an Apple version of it and give itself smaller prices(or free), native integrations that the competition does not have. This is not fair for the users (it may be fair f5rom other POV but not for the users, fair competition is better look like IE as an example)
Big Banks and Wall St. are glad you think like that.
According to Swedish press, the attack was motivated as a revenge on the attack on Drottninggatan, Stockholm in 2017.
If Visa or MasterCard tried to charge 30% transaction fees, they'd be laughed out of the market.

The problem is that you can't laugh Apple out of the market for payments on iOS devices, because they don't allow other entrants into that market.
Netflix + Prime + (1-2 Apple Movies) + Books + Movies in Theatre + Games.. I say it's reasonable to assume people spend a lot on entertainment. May be without realizing. Different reward centers?
but rust is supposed to make everything better? surely this is just conservative propaganda?
rust is trash but the kind of person who puts stickers on a laptop thinks it's a good thing, so hey let's drop C++ for it.
> Since you like car metaphors: it's like a taxi driver buying a car and the the dealer expecting to take a cut from all the taxi fairs even though the dealer's involvement ended the moment the car rolled off their forecourt.

I think this is an incorrect analogy. This is why Apple only charges for physical goods, not digital ones. The rationale is they distributed your product to customers you would never have had access to without them:

- they spend marketing dollars to get those customers;

- they develop and maintain a platform so you can run your business on it.

By simply publishing their app on the App Store, Spotify gets access to 15% richest customers of the smartphone market. If you’re charging customers for something they consume on that device, then I think it’s fair to pay a share.

That being said, I have no idea how this will play out in court. Intuitively, 30% the first year sounds like a lot of money for a distribution fee.
The second home is usually a hobby by itself that includes building, woodworking, gardening, some light plumbing and electrical stuff etc. It's very different than a hotel or Airbnb.
Rosenblatt’s perceptron, the first modern neural network
Exactly, you have to have transport and agriculture to enable that level of art. Likewise, tourism, education, construction. It is really a meaningless comparison in one sense. But it does make sense in terms of things like trade disputes: why put tariffs on ordinary steel/aluminum to prop up an inefficient and undercapitalized industry, when that imposes massive costs on a much bigger industry like construction? Or alternatively, one should look at the linkages between industries, and see what the choke points are.
Canadian Inuit collectively suffer from PTSD inflicted upon them in the residential schools. They were abused as children so they abuse their children now. It's hard to see where is the aboriginal culture and where is the pain brought on them by white men.
Soviet Communism also sounded pretty fun on paper but it turned out that Serfdom 2.0 (we'll own everything and take good care of you, promise!) was pretty shitty all-around.

Putting a banner on some popular place is ok, but it devolved in the current mess due to market forces and I'm not really sure we can fix advertising with enough regulation.
While I agree that Huawei shouldn't be trusted, I find it hypocritical that western governments don't mind their own companies working with Huawei to install western build surveillance hardware and software in Huawei managed networks.
The Absurdity of Cyber Laws – Infinite Loops, Bugs and Responsibility
> criticizing using unsafe in rust and comparing that to C++

In that comment I was mostly criticizing the amount of code. That code doesn’t need to be written in C++. std::list has stable iterators so you can put list iterators to the hash map. This way LRU structure becomes a trivially simple wrapper over std::list and std::unordered_map containers.

Note how Rust developers implemented custom linked list on top of raw pointers, doing manual memory management with Box::into_raw(Box::new(Node::new(k, v)))

C++ implementation doesn’t need a single new/delete, hence much safer than unsafe rust. LRU cache is simple, not too hard to implement correctly in C++ just because it’s very few lines of code.

> it's just that no compiler besides rust will warn you that recursive data structures are hard

In GC languages like C# or Java it’s both easy and safe.

In C++ they can be challenging to implement correctly, but because it’s all unsafe, I get huge amount of help from all levels of the stack. OS debugger, C runtime, C++ standard library, compilers, they all evolved for decades trying to improve life of developers like me writing unsafe programs which use raw pointers. You can implement a recursive data structure without a single new/delete, relying on standard collections for memory management. It doesn’t guarantee pointer safety just like unsafe Rust doesn’t, but at least no need to worry about memory leaks.
If the language, architecture, religion, sphere of influence, culture & laws were all completely different why wouldn’t you distinguish it?

We distinguish between the Roman Republic vs Roman Empire and in lots of ways they had much more in common than the Byzantine.