skysight-inc/HackerNews huggingface dataset:
Great to see this getting standardized!

I maintain an error package that lets users use structured types for errors and error codes [1]. It is critical to be able to wrap errors without information loss. I used one standard, a Causer interface, but I will be switching to Unwrap.

I see complaints about stacktraces here in the comments. I recommend always using pkg/errors or some error package with stack traces.

[1] https://github.com/pingcap/errcode
Of course that's true, but a move towards platforms like tinder leads to increased reliance on physical attractiveness. The portion of the market which is focused on attractiveness seems to be shrinking as time goes on.
> It also doesn't take 'many years' to internalise for/while loops, these are fairly basic constructs which are learned by most novices in the beginning of an introductory programming course.

The comment is referring to the patterns becoming ingrained in the mind through years of use, not that learning how to produce a while loop for the first time takes years.
Trends in STDs are going to be caused by people who are having a lot of unprotected sex. So those people who "have had actual sex with another human" count for nothing. What you need is a study that shows which people have been having more sex, and why they have been having unprotected sex.

Now compare that "have had actual sex with another human" study with studies from places like OK Cupid where they found that:

- women overall got the most messages on dating sites

- the second decile of women got more than 50% of the attention (ie: the hottest women got a lot of messages but the "in my league" hot women got far more)

- most women got some attention (even just 1 message during the study)

- only the most attractive men got attention, but closer to the level of the least attractive women

- the most attractive men will "date down" to improve their chances of having sex on their terms

- women in general will "date up"

Informal study with ten invented people: http://jonmillward.com/blog/attraction-dating/cupid-on-trial...

OK Cupid has plenty of studies, but here's one that looks at who sends the first message (overwhelmingly men): https://theblog.okcupid.com/a-womans-advantage-82d5074dde2d (there's another study based on interracial relations, and it turns out that all women prefer white men).

Spreading STDs isn't about how much sex you have, it's whether the one person you had sex with had an STD. Given the extremely asymmetrical nature of the dating and hookup successes, it's highly likely that the one person you had sex with this month had sex with a lot more people than you.

It doesn't help that the news agencies are reporting "cure for AIDs" and nonsense like that, so people don't take STDs seriously — we basically have an anti-awareness campaign making people more cavalier about sexual health.

There's no real puzzle here, just lots of contributing factors.
The system is rather nice to use, but nothing about the branding of this distro appeals to anyone, as far as I can tell.
So preachers selling holy water as cancer cures are being ethical then? Come on
As far as I'm aware, there are only two native ways to make an error unique enough to trace: Wrapping it with a unique string, or throwing a panic. You might be able to do something clever with panics by throwing them and then catching them to resume the thread, but I've never seen this done outside a few places in the Go standard library.
I assume that I have no right over my personal medical data as recorded by the NHS and can't deny the NHS the right to sell my personal data?

Of course not.
I feel these moves are part of a general move towards "industry ready" skills and away from fundamentals earlier and earlier in computer science programs (even prestigious ones). Whether that's a good or bad thing is a separate discussion from your opinions on SICP.

What's your personal experience with SICP? It sounds like you were a student in one of these courses ("we never used it again") but you also wrote "We never had any readings from SICP." so I'm not sure what you took and when. Did you work through SICP and still find it overrated?
Nice! Is the deck ‘infinite’ or are you shuffling a set amount of decks together and dealing from the limited set?
Ask HN: Would you prefer to live without cars?
For a long time I’ve preferred places where you don’t need to drive much. As I’ve gotten older, and especially since having kids, this preference has gotten a lot stronger. Even though we live in a very walkable place, I feel my children are greatly limited by the danger of cars all around. And loading / unloading our car with the kids is a huge PITA, so much that it causes my wife and I not to bother with the kind of short driving trips we used to commonly take.

I find that I very much wish there was a place I could live in the western / southwestern US where cars were entirely banned, so that it would be safe for me and my kids to get around everywhere via waking or biking. Crucially I would like my kids to be able to run / scoot / bike / whatever safely without adult supervision.

I find myself thinking about this more and more, and I ask this question because I’m curious to get an anecdotal “sniff test” from the HN crowd. Am I alone in this? Are there a few of you who think similarly, or a lot? Is there and unserved market out there of people who’d like to live in a totally different kind of development, or am I the crazy outlier?

Cheers :)
Loops of known size is the one of the best hints you can give to your compiler though. If the computation inside the loop isn't too complicated, the compiler will unroll these, often resulting in amazing speedups. In fact if you know that your array is pretty long but don't know its size, it's often worthwhile to structure the computation as a nested loop, where the inner loop processes chunks of known length (which should be fairly short, and picked to utilize the widest SIMD on your target CPU, e.g. 8 for fp32 on most Intel chips). Then when you run out of chunks you "mop up" at the end. Furthermore, if your chunk size is a power of 2 (which it should be), don't be afraid of the modulo operator (which is normally very slow): the compiler will automatically apply the x % chunk_size == x & (chunk_size - 1) trick for you. All of the above obviously only works if chunk size is known at compile time.
Very few satellites impact the naked eye night sky.

A space telescope would by its very nature be less impactful than most satellites, since it will be placed in a high orbit away from the glare of the Earth, also ensuring that the Earth fills less of the sky to allow better access for astronomy.
Smartphone-Based VR at a Dead-End with Google's Demise of Daydream VR
Is it cool if they refuse to serve black people then? Where is the line in your mind?
Fixing scrolling is likely more difficult than camera support. Scrolling in a modern stack tends to require complex optimization that spans many layers of software from different components. Camera support just requires a self contained driver added to the kernel.

Optimization in general is often harder then feature work.
Pop OS uses Gnome 3.
This reminds me of regex, and the struggle 2 months later to remember wtf I was trying to do there. Easy to write, hard to maintain, so thank you but no thank you, I prefer the loops instead even if it means going down at individual elements in a list/matrix. For any meaningful project maintenance is the threshold that will make it or break it.
This was a great engineering blog post in that it did a good job in describing, in detail, a large overlying problem (excess intra AZ bandwidth), its impact on margin (20%) and concrete steps to measure the problem and solution. This is exactly the type of communication we should be able to use as an example of the outsize effect engineering can have on the long term value of the company -- if there's anyway that margin increase can in some way be turned into CAGR, these increased margins could double the company's valuation in 4 years (in an ideal world, of course).

Very cool.
I don't disagree with you. But when these get cross-posted to sites like this one and lack the context of what they are, they often lead to really unproductive discussions about how broken music theory is or how there are better ways of understanding things or how they are fundamentally incomplete. You can see a lot of that happening in the comments of this article here. So I was simply trying to provide a little more background about how to view these kinds of tools.
Yup - almost everything with IO- at the front of it is below 50%. That’s a pretty good reflection of how awful the IOKit docs are.
> (x + y) is going to be an expression in almost any language...

But the equivalent for loop is not.
Young children have intuitions of great teachers
He missed a piece of the story. Caremark (the pharmacy benefit manager owned by CVS) also introduced an optional pharmacy network that increases copays at pharmacies that sell cigarettes -- that is, pretty much every retail pharmacy other than CVS's. [1] Whether this is just more "Courage to Lead", or a genius ploy to increase CVS's retail pharmacy revenue, or both, I leave you to consider.

[1] https://www.drugchannels.net/2014/10/thoughts-on-caremarks-n...
> This is a bit myopic with respect to how normal people view university education. For a typical person, the point of education is not to learn things, but to obtain a degree. The point of degree is to get a good job. If they manage to get a good job, that’s a success, and nothing more is expected from the university education

The point of a university, however, is for people to learn things. The fact that most people today treat universities as trade schools is unfortunate, and IMO is having a negative effect on universities and people (like myself) that went/are going there to actually learn something.
I think if "4 hours a week" means "spend 400 hours or 4000 hours then you can spend 4 hours a week" it's more honest. In short I think it's more honest to say, you might have to give up your lifestyle for awhile or have it be a small part of your life... For months or years. And have no guarantee of success.

It's not irrelevant it is key because it means giving up the way you live. It is important to go into it eyes wide open so if you lose you know how to try again or recover.

It's not a contempt I think it's a great idea I might even do it one day but the hidden catch of "lifestyle business" exists enough. And people deserve to know and compare with someone working their ass off, and compare chances of success.
Trump rallied people claiming immigrants were taking jobs, and that he was going to bring the manufacturing jobs back - as POTUS candidate Andrew Yang explains however it's automation that took the jobs - and those jobs lost aren't coming back. People believed Trump's words because he was rallying people emotionally yet didn't present any actual evidence or data.

Do you consider that manipulation or not? Maybe you'll argue "Trump just didn't know any better" - and that's not a form of manipulation, lying to people?

I didn't argue that it was one or the other set of voters who were manipulated. And yes, the two-party system has been very bad for democracy - why POTUS candidate Andrew Yang will implement Democracy Dollars among other policy to breakup the two-party system; https://www.yang2020.com/policies/democracydollars/
I think says volumes about how our social norms have changed. Remember, today’s decision makers grew up on the Simpsons.
You don’t really need to know any Ruby to do Rails. It’s so much it’s own ecosystem that you’ll end up learning Rails-flavored Ruby no matter what you do.

That being said, vanilla Ruby is a real joy and you’ll be a better developer if you do take the time to learn it deeply. One fun source of lessons is Ruby Tapas, which is a subscription video “channel” that presents tons of best practices and neat tricks in short ~5’ videos. I highly recommend subscribing for a month and plowing through the back catalog :)
The less grip your tires have, the shorter your life.
It hooks to the driveshaft, so you get rid of the transmission. That's a win. Fewer problems, and more space for batteries.

YC has a company in this space: "Open Motors"[1] They sell a "sled" on which you can put kit car bodies.

[1] https://www.openmotors.co/product/tabby-evo/
> How is this any different of a scenario than having the bank manager memorize a password?

Because in the other scenario the bank manager can be killed and the murderer can still use the "key" (the bank manager's lifeless face). Dead or alive the bank manager is still that same person.

With a password there's more security for the bank manager. If the robber kills the manager then the robber can't get in.
How can you use hooks right now? The standard is reagent which compiles down to classes which don't work with hooks. I think reagent has given a functional react and hooks style programming for years but now is a little behind the curve.
You just return codes between IPC or inter-service communication. No one is asking you to serialize error objects and send them.
Sounds like fizz buzz.
I just moved from Heroku to Dokku[1] on DigitalOcean w/ my site[2] and it's great. Dokku is basically set up to run in more or less the same way as Heroku except in a container on another platform. There's an one-click install image that you can use to set it up on a DigitalOcean droplet. It took me about 3 hours to move over and set it up, but that's mostly because I screwed up my DNS and nginx configs, otherwise it would have taken 30 minutes. Not sure how it would affect performance compared to Heroku, but I'm fairly sure it would save a lot of money for not too much effort. Perhaps not quite what you're looking for in every way, but you could definitely slash that bill without having to spend loads of time managing the server.

[1] - http://dokku.viewdocs.io/dokku/
[2] - http://sourcesort.com

p.s. just in case you did YC Startup School, you can use the deals to get $10k in infrastructure credits from DigitalOcean until Nov 1
Not all inflammation is bad. Supercompensation can't happen without it. In fact, taking anti-inflammatory substances during training can reduce the efficacy of training[0].

[0]: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5023714/
http://people.eecs.berkeley.edu/~bh/ss-toc2.html

Bills itself as an intro to SICP for high schoolers.
They're hugely popular amongst auto enthusiasts. Not only do "race shops" sell crate engines, but most OEM's sell them too. For example, here are Chevy's offerings. https://www.chevrolet.com/performance/crate-engines
This looks cool. You can monetize other people's OSS projects too, depending on the specifics of the license. Could be an interesting approach if you find the right niche.
Assistant easily recognizes voice and even has continued conversation mode. One data point isn't going to change that. If these weren't ready people wouldn't buy them in troves.
You don't even have to be alive for those things either.
European here, over 6 feet tall - I've never had an issue with any car, ever, because of my height. I've driven a tiny Kia Picanto, small Renault Clio, a VW Touran, various estates ("station wagens") a massive BMW X5 and many more; yes, bigger cars feel more spacious, because they are - but my height has honestly never been an issue, getting in, getting out, or whilst driving.

Unless you're literally 7 feet or so, I just can't see how this is a problem.
If groups perform differently on tests vs grades, different groups will lose or gain depending on the relative weightings between the two.

The best thing about having 2 measures that don't agree is you can pick which one you want to be the true source, and which one is terrible and wrong. Then you can write a story that fits your desired narrative.

If disadvantaged minorities did better on tests vs grades, do you have any doubt we wouldn't have a scandal about teacher's highly subjective racist marking?
Machine vision can use radio waves to see through walls and in darkness
Panera is losing nearly 100% of workers every year as fast-food crisis worsens
allowing for not just two but three trains in a given section... wow!
> After people binge through new shows, the big 4 will be the ones holding all the old content.

Do most people really want that old content? Apart from a few shows, I say no.
> Europe the average grave will be dug up and replaced 20-30 years after burial to make space for the next one.

How do you mean?

I come from a part of Europe that takes death seriously and I walk past 250 year old graveyards every day. Saw a fresh grave in one recently

I can go visit the graves of the last 5 generations of my family
Chile students' mass fare-dodging expands into city-wide protest
I only read the abstract from the most recent linked article [1], but it sounds like the results are statistically correct. For this field, that makes a lot of sense, rather than computing strictly “accurate” velocity/acceleration from finite differences (see [2] for the basics on this integration method / domain).

Edit (to make my comment clearer): they came up with a method to calculate the velocities they need for solving these equations with a new closed-form solution that doesn’t depend on the timestep size. This lets the author combine the new calculation with previous work to take big steps, yet still converge.

[1] https://www.tandfonline.com/doi/figure/10.1080/00268976.2019... which is actually also https://arxiv.org/abs/1909.04380

[2] https://en.m.wikipedia.org/wiki/Verlet_integration
You can enable fractional scaling in the elementary settings:

https://elementaryos.stackexchange.com/questions/15057/can-i...
Thanks, I think I will go and read the book first.
You get to watch the juicy WWDC sessions.
NYtimes ran an article about “helicopter parents” and how much those type of parents did to coddle their children. Unfortunately, the conclusion was extremely clear, children raised with hyper focused protective parents succeeded far beyond their peers. It works.

Interestingly, by major, CS students are given the most financial assistance from their parents. I think there can be a naive suggestion that having parents willing to pay your SF rent and take care of details like who does your laundry allows for hyper focused work on complex, abstract problems. The idea of “not coddling” your children may be doing more harm than good in a economy which requires specialized work.
These people are in Silicon Valley now mostly. Anecdotally, it doesn’t matter which major they graduated, they all seem to gravitate the same way
It's not required to write idiomatic JS, but pure functional code is very much idiomatic. (I.e. pure functional code isn't considered unidiomatic in JS as it might be in some other languages). Many people write the meat of their code in pure functions, and this paradigm is encouraged by React (especially with the invention of hooks).

As for libraries, you can just treat them as stateful external things you have to interact with the same way IO / network calls are stateful.
Lambda Stack is an alternative to Pop!_OS's tensorman, which doesn't use containers:

https://lambdalabs.com/lambda-stack-deep-learning-software

This is a one-line apt/aptitude installation for TensorFlow, PyTorch, CUDA, cuDNN, etc. When NVIDIA releases a new version of CUDA, you can simply apt-get upgrade to the latest version.

Disclosure: I work for Lambda Labs.
Not to be confused with weaveworks/CNCF Cortex project for high scale Prometheus monitoring https://github.com/cortexproject/cortex.
I used to have a job writing Pascal code. I liked it; it was easy to predict how it would behave. It was verbose, but in exchange it was easy to read stuff written by other people. And I've long thought it was a mistake to abandon strong typing. It's good if the compiler (or interpreter, or whatever) can report silly mistakes at the earliest possible stage. (I knows most people disagree, stop with the rock-throwing!)

I never tried to write a Pascal compiler, but I think it is pretty easy - I wrote a source-code debugger for one implementation of the language, which I think involved reverse-engineering the targeted compiler (can't really remember - too long ago). I had never before encountered a source-code debugger for any language at all (other than 8086 Assembler, which only just counts).

I just thought it was a cool idea, and one that would help me in my work. It was a "hobby" task, and I had a full-time job, a young wife, and kids. It can't have taken more than a handful of weekends.
Tl;dr : APL has implicit loops because almost everything is an array, and mentioning an array implies a loop to process it.

In C++, nowadays, people are encouraged to use Standard Library algorithms in preference to most loops; and to make an algorithm out of any loop that can't be cleanly replaced with a Standard one, and call that. The reasoning is similar to that explained in the article, except that saying which you are doing, by naming the algorithm, communicates better what you are trying to achieve than does coding the loop in place.

In APL, of course, naming anything with more than two or three letters, or wrapping a one- or two-operator expression in a function, gets you looked at funny, so that reason wouldn't apply.
Yes. Our GitLab has namespaces by teams, and I had to search every time I wanted to look something. I had starred multiple dozens of repos which I worked with daily.
Panera treated my friend terribly, changed her schedule without telling her that they just plopped a new shift into her schedule in 2 hours, and gave 3 hour long shifts to avoid any lunch or work breaks.

Treat your employees like trash, get unsafe food and high turnover!
> you can't really "improve" your looks after possibly weight loss and personal care without a doctor.

An appropriate hair cut (which might be going totally bald for some people) is a big deal. This also involves facial hair. Clothes are another easy and very effective thing to change. Eyeglasses. And all these things have to work together.
> In J we do this by creating a Boolean list, one value (0 or 1) per item of z

Does the word "creating" here mean you can't do a relatively simple check across array elements in J without allocating memory? E.g., soft realtime scheduling for such a simply operation is essentially just not possible in J?
It has a strange behavior for a few values of a: 0.7, 2.0, 3.0--3.2, 3.7, 4, 4.2 5.9, 6, 6.2, and perhaps a few more. They look quite different so it's worth trying.
This is my sole frustration with most composition-related libraries: they misspell pitch classes because “they’re the same note.” It isn’t just mathematics!
Actually, it doesn't even have to be microservices. At my current workplace we have over 1000 projects in our Gitlab. And many of those projects are a collection of up to 20 libraries.
Ok, you're claiming productive in /all/ circumstances? Going to have to disagree there. Also with the tone of that as a response but perhaps you didn't mean it.

Maybe giving those circumstances a bit more thought would be instructive and useful to you. Maybe not. Good luck!
You are right, they were co-owners of the garage.
Appendix A – For Fuck's Sake, Let These Copyrights Expire (2016)
A NES emulator in Rust using generators
Indeed, they were around 10% in Europe when they gave up, it was just a matter of "slow and steady".

However from the looks of consumer stores they are anyway wining on the not-iOS tablet front, as Windows 10 hybrid tablets are much more useful that Android ones using mostly upscaled phone apps.