skysight-inc/HackerNews huggingface dataset:
Better questions are those that more closely simulate a work sample, being aware that an interview is high stress and time boxed and thus not actually like work. I like an hour or more pair programming in a language the candidate is comfortable with on a simplified problem with some relevance to work.

For more senior candidates, you definitely wouldn't want to waste everyone's time with brain teasers because if the high risk of a hasty rejection - a deeper probing into systems they've built and and designed in the past, with an angle on relevant problems for the business, along with the pair programming.
Huh, TIL! Had no idea `x;` actually moved `x`.
This got announced in tandem with a bunk bed design - see Air New Zealand's skynest. You get more comfy bunk beds, but can't really sit. Would be good for overnight long hauls, I think.
No more than a regular map, as the trees in big parks don't have a mark: https://imgur.com/a/HIfFZTd
He gave it and failed the candidate.

After which the CEO personally and profusely apologized to the candidate. And offered a hefty per-diem consulting fee in compensation for this cynical (if not outright juvenile) waste of their precious, irreplaceable time.

Right?
"obviously" you should do this and the rank results under a language model (mainly joking)

edit: oooh and use beam search to limit the output size/time
SSE2 introduced native 128-bit types (__m128i), and GCC and Clang both have their own implementations that may be emulated in software or SSE instructions, depending on support.
I wonder if this would be faster on average (most numbers fail all five comparisons) for #2?

int y = x ^ (x-1);

return x == y * (y+1) / 2 && ([comparison list]);
Freeman Dyson Predicts the Future
I suspect that cpb is without using vector operations. AVX-512 lets you run 8 generators in parallel, and you can do even better with CUDA.
Milo’s followers do seem to believe that, but it’s not a reasonable conclusion; lots of people who Twitter doesn’t agree with politically have blue checks.
Yes, they turned away 150K people, everything as planned /s
Look at Go’s HTTP library. It’s much lauded for striking a good balance between performance and ease of use, but it’s not as performant as it could be. For that, fasthttp exists and is quite popular although not nearly as popular as the standard HTTP library.

Your comment gives the impression that this is a failure because the library for niche performance cases hasn’t become the go-to library for the general case. I disagree—it’s ideal that we have a canonical general purpose library and another for high performance cases.

Perhaps you would argue that we should have interfaces that allow for a pluggable performant implementation and an easy-to-use general purpose implementation? This is all well and good, but it’s inherently not possible, because the interface is about ease-of-use and the performance is achieved by trading off on friendliness. You might offer Rust as a counterpoint since many of its standard libraries use an interface that is suitable for the general case and the high performance cases; however, this is a lie: these interfaces (and the core language) are manifold harder to use than their Go equivalents. In other words, Rust’s “general purpose” interfaces trade ease of use for the ability to support high performance implementations. This tradeoff isn’t inherently bad, but it is bad to pretend as though it’s inherently good or that there is no tradeoff at all.
> I'm pretty confident I could use it immediately with no training and actually place an order for someone.

From experience I can tell you right now that POS software (officially stands for "point of sale", but in my mind most of them actually mean something else) violates pretty much every single expectation and convention you'd find in desktop software UIs.

In fact, I'd argue it's easier for someone who's never been exposed to computers to learn it than for an experienced computer user, as the novice would learn from scratch while the experienced user would expect the POS to behave like most desktop computer software which usually isn't the case.

I think part of the problem is that most POS software is designed to replicate a physical machine which has physical constraints such as a fixed number of buttons and small display area. In contrast, a computer can display anything and rearrange its UI depending on the context. Example: most POS software has a specific way (usually a button) to put an order on hold and be able to start ringing up the next customer's items while the existing order is invisible in the background, because on a physical POS there's no way to just duplicate the keyboard and screen and become two POSes side by side. On a computer however, the same is trivial by just having 2 tabs, both with the POS UI but containing the different orders. Most people would immediately recognise and understand (because of prior experience with browser tabs) without a need for training
It's unfortunate that the simple (and easy) underlying principles are not well known. See my other comment.

The bigger reason why recent languages have different declaration syntax is to avoid the need to carry a symbol table during parsing, and to avoid the need to parse all files serially instead of independently. Because to recognize a declaration the parser has to know which words correspond to types in the current scope.
With a sane government they might agree to pick up the COVID costs as I think is mostly happening in the rest of the world. Though with the current lot I worry it'll be a mess.
No this is a very good point, being B2B serving B2B means likely lower traffic and different concerns to being a B2B serving B2C companies.

My counterpoint would be that the B2B companies don't always seem to recognise this, but it's not to say they haven't internally decided not to pursue that market. I think it's a shame if they have, it's a very large market!
How do you watch them?
in the country I live the cinemas are mostly for Hollywood movies. Tried to watch online, it says it's not available in my region. So torrents?
LOL you innocent thing. The bottom level is going to sell out immediately, to people who don't require or need it. Look at how many front row or exit seats are taken by short people. I'm not faulting them, it's a nice seat. But as someone over 6'5 with knee problems, I curse them silently in my head every time. Same will happen here.
I interpret it like this: Twitter somehow intended threading as this revolutionary innovation all along...

... which couldn't be further removed from reality.

Going back into the past, Twitter originated as a side-project without a clear goal or business model. Over the past 15 odd years, it has pivoted several times, depending on how the audience interacted with the service, and what were best decisions towards monetization. No more, no less.

At one point, Twitter was a micro-blogging platform. It didn't even invent micro-blogging. There were many services alike at the time such as identi.ca, FriendFeed, Plurk, Tumblr and so on (https://en.wikipedia.org/wiki/Microblogging).

The main reason why tweets were originally 140 characters long was because they made it relatively easy - for the time - to connect with the service through text messages. Remember: Twitter originated in the era before the iPhone was introduced. They stuck with that limit because that was what set Twitter apart and what made it radically different from other services.

Threaded Twitter entirely hinges on the notion of @ mentions. Which wasn't originally even a feature of the service. It took until 2008 before they added that @replies and only in late 2009 they became @ mentions as we know them now. https://en.wikipedia.org/wiki/Mention_(blogging)#@_(At_sign)

At that point, they didn't even have this vision of "threads". Users simply started to create these "cowpaths" on their own in order to circumvent the 140 character limit by @ mentioning themselves and creating these long reads on the platform.

The primary reason why doing that is appealing... is because that's where the audience is. Because Twitter happened to funnel massive social networks into a centralized solution which gives individuals the immediacy of communication at zero financial cost.

Put differently, if individuals would be able to reach out to a large audience through a decentralized online solution as part of a public commons at zero cost and with the same level of immediacy, there wouldn't be much need for a service like Twitter. Whether or not content is threaded isn't even relevant. That's just the form, and that always follows the function.

Twitter doesn't represent society at large nor does it represent how humanity at large communicates. It's just one of many forms of communication, albeit a very visible one as large amounts of capital have been sunk into this particular private venture.

As such, the prerogative of being part of the crowd using a decentralized, open infrastructure is that one is always free to look for new and different ways to connect, communicate and convince that don't necessarily have to be subjected to the whims of a single private actor. If threads on Twitter work out for you, even when Twitter designs against them, that's fine. If you want to use some other tool, that's valid too.

Even in the age of social media, there are still people running BBS'es.
I use a Duxtop 9100MC 1800W induction plate for most of my cooking and it's quite powerful. Settings above 6 are only good for searing steak and boiling water. No scratches after five years.

Bought it because the apartment's dopey coil stove takes forever to do anything.
Until our way of governing ourselves doesn't change, everything scientists and engineers do can and will be converted into a weapon or tool of oppression. We should be more vigilant and we should demand better from our elected officials.
It's going to spread here, I'd rather have it and get immunity sooner than later when it's full swing and treatment might be limited.
We're building and improving our internal machine learning platform. We decided recently to support the fast.ai courses. You get everything you need (notebook, object storage, data, parameters and mettics tracking and deployment). Our colleague teaches at university and we're opening the internal platform to about 30 of her students this week to prepare their final masters project.

They don't have access to compute power (GPUs) or bandwidth to download datasets hundreds of gigabytes of data, which they'll find right there, so this should help them since they don't need to have powerful machines or worry about experiment tracking.

We also have a Publish option to make an application from a notebook in one click behind the scenes with training parameters in a form generated automatically, so they can write scripts and instrument model training.

The fast.ai course will also help current or future members, and other students. It's important for us to make it even easier for people to enter the field.
We can actually solve Towers of Hanoi non-recursively by manipulating bits:

max = 1 << no_of_discs;
for (x = 1; x < max; x++)
printf("move a disc from %d to %d\n", (x&x-1)%3, ((x|x-1)+1)%3);

where x&x-1 is smaller than x as much as (x|x-1)+1 is larger than x, by a 2-power corresponding to the least significant 1-bit in x.
That program didn't exist last time I looked into it, I'll definitely be following up on it. I actually know some people who would be great candidates for small wind turbines under it, so I'll be mentioning it to them.

Another challenge is that the solar is part of an RV, which makes permanent grid tie challenging, but I'm definitely considering just "donating" it when I can at this point.
I hope it was pride in having added value to the lives of many and satisfaction with a life well lived. The best any of us can hope for.
> At this point, the hospital called the CDC requesting permission to perform the COVID-19 testing. The CDC denied the request on the ground that I did not have the most life-threatening symptoms

Two questions:

1. Why would the hospital require permission to run a test?

2. Why would the CDC not want to test suspicious cases before severe symptoms present? From what I've read, the virus is contageous whether severe symptoms are present or not.
Photovolatic modules are vastly cheaper now, a factor of ~20. This has become a total game changer for the energy industry.
True and a good point. Though you also don't have to do security reviews for most saas's, just third party libraries that you add to your product.
Former lead architect of Apple iCloud Photo Library on infrastructure, privacy
we can't yet conclusively determine overall death rate, let alone for the US, of covid-19 (or alternatively speaking, the error bars of our current estmates are very large), so throwing out numbers with decimals insinuates a level of knowledge we don't yet have.

note that we've had single-digit number of deaths (one?) in the US so far.

34K people die of gun violence per year in the US, not a small number. what's insignificant is the number (tens to low hundreds per year) who die in mass shootings or from terrorism in the US.
Next up: Learn mandarin in 0.1^99999999999999999999 seconds.
Get Executives emails Then Market to them
It is what I read by an associate in microbiology and infection control [1]. I tend to listen to experts but maybe he's wrong about the field he is studying, I'm not an expert :)

Translated from Norwegian:

- Does a facemask help against spreading virii?

- No, not when you are using it out among people. The point is that you will scratch your face and get your fingers in contact with your soft tissue. So it is counterproductive to use these regular paper masks, says associate in microbiology and infection control at the University of Southeast Norway, Jörn Klein.

[1] https://www.nettavisen.no/nyheter/smittevernforsker-munnbind...
I kind of have to agree with you. A true conservative perspective would seek to avoid creating mechanisms that control speech.

I'd be interested in stopping the "shaping" problem. Where, by algorithm, people only see things said to their specific demographic slice. Let everyone see what you're saying to everyone else, and let your speech be judged and argued against.

You can fool all of the people, most of the time, if they're always divided into "some of the people" all of the time.
The current policy seems to be to add characters to Unicode even if nobody uses them any more. Is that a complete flip from what it used to be? Because I feel like that's the only way character reform would have mattered.
Coding Jobs Won't Save Coal Country
English too. Policeman, bathwater, catwalk, headstone, toothbrush, etc.
Or, more likely: they don't actually know the real numbers. So you can treat what you do get from them as lower bounds, that's the bits they are sure about so they report them but events have possibly overtaken the authorities there to the point that their reporting is completely botched.
Ah, OK, I hadn't watched the video - then it might actually be a real improvement.
One of the first things I got told about databases is that you may build the most beautiful database schema for the domain, but it will never be able to be complete.

For the applications that I designed so far, that meant that I always made room for intentional loopholes like free-form comments or ways to override hardcoded processes. It is not 100% perfect and foolproof, but it made using these applications a lot less painful in practice.

A wholesale return to paper is like trying to put the genie back into the bottle. It is really about how rigid a process can become without becoming a barrier or burden.
Because it's a CDC test in limited supply, and they're doing their best to try to balance the available supply with detecting as many cases as possible. The challenge is that the spread is changing rapidly enough that the guidelines will inevitably be a day or two behind periodically.
.. that sounds almost like a regular seasonal flu infection.
Premium economy is not typically another $100 - it's generally 2-4x the cost of economy.
It doesn't. COUNT counts when the argument is true. CL:NIL is not true.

The correct way to count the number of things, here symbols, is:

(loop for s being each symbol of (find-package :cl) count t)

; -> 978

or use:

(loop for s being each symbol of (find-package :cl) sum 1)

The Common Lisp standard says this in 6.1.3 Value Accumulation Clauses:

> The count construct counts the number of times that the supplied form returns true.

So the original code is NOT equivalent to

(let ((count 0))
(do-symbols (symbol (find-package :cl) count)
(incf count))) ; -> 978

but to

(let ((count 0))
(do-symbols (symbol (find-package :cl) count)
(when symbol ; test if true
(incf count)))) ; -> 977
Here's a similar one: What's the best possible time complexity of a program that plays perfect chess, assuming we could write such a program?

Answer: O(1), since it could be written as one big lookup table from game state to optimal move. To get a nontrivial complexity class, you have to have some parameter that can vary, so e.g. the question "what's the time complexity of a program that plays perfect chess on an n-by-n board?" (assuming a suitable generalization of the chess rules is given) is much harder to answer.
However, the c community never felt like going on and on and on about bitwise manipulation... Anyone have any idea why people get so hung up about explaining monads?
What are the best scary teacher games for iOS Android users in 2020
Show HN: Edtr.io – Intuitive web editor, open source and fully adaptable
I’d at least entertain the possibility that this means the CDC has a limited number of test kits right now and can’t yet afford to give one to every single person who has a cough. It would be a bummer for some serious cases who wouldn’t get tested, if they had to test everyone who asked as long as they had kits available.

They were pretty clear yesterday that they’re ramping up test kit production and test sites as fast as possible. They didn’t answer a direction question about how many sites there were yesterday, implying to me that the number is pretty low.

https://www.cdc.gov/media/releases/2020/t0228-COVID-19-updat...
If stopping is not an option, delaying (or decreasing the speed of spreading) is the next best thing. Who is to say we won’t have a vaccine or some other treatment soon?

Delaying means reducing potential deaths, suffering and economic impact.
>You still need to sit with them to put them to sleep, nobody seems to have made an app that buys back that time.

I don't know why anyone would want to buy back that time. I might even pay to be able to do that again.
I don't see it get mentioned much, but Yandex's reverse image search [0] will also match similar facial images. It works surprisingly well.

Other search images can obviously perform this function, but I think most stay away from it because of the creepy factor.

[0] https://yandex.com/images/ - click on the camera for the reverse image search
The core problem is that the CDC (and country) has had the capacity to test only a few hundred samples per day. Meaning, they don’t have the ability to test everyone with flu-like symptoms.

Nobody thinks it’s right to NOT test every potential case. It just wasn’t possible.

Good news: Just today, they released new rules that should increase testing capacity by 400x.
Say what you will but I would love to see some balance and tolerance.
Because all test samples are sent to the CDC headquarters in Atlanta for testing. They only have a certain number of people available to analyze the test results. And the number of test kits is limited so the CDC is trying to triage cases until the supply opens up.
Talking glibly about a situation in which thousands of people died is not a great way in general to get people to your side.

No, when people’s lives are on the line and a building might be brought down due to an airplane crashing into you, you should not even think about binders or paperwork, much less making others think about binders.
Maybe they're incompetent.
I just saw a virologist give out the flu argument in addition to presenting the naive mortality rate and making an intentional arithmetic mistake (100-3.5=97, perhaps 96.5 does not feel such a big number anymore).

I would recommend to study this site https://www.worldometers.info/coronavirus/ if you want to be more informed.
The probability of the problem occurring is vanishingly small - much smaller than a bit flip due to a cosmic ray in the machine computing it, leading to a wrong answer or a crash. And even that doesn’t matter, because the computations are repeated so often.

Again, the application determines what the most suitable PRNG is.
These seats appear to replace overhead storage. Say goodbye to your free carryon... a plane full of upcharges can outstrip the handful of people who can afford upgrades.

Of course, if you're 7' tall, I'm betting you can't fit at all. If you're north of 300lb, or 70yo, or have physical disabilities, you might not be able to clamber into the upper seats. I don't think that will impede the airlines though.
At the end of the day, everything is a tree.
What about tax havens and such? As you said, if I put some money into the stock market,

* my broker/bank takes some. If my broker is a public company, some of the money goes to pay operational expenses, and some of the money goes to their shareholders as dividends.

* the stocks I bought go up slightly. They get cheaper capital, and their owners get an unrealized gain.

Schematically, we can assume all bank employees put all their money into the stock market. So the end result is that the benefits accrue to shareholders of public companies, regardless of which stock you buy.

But if money never exits the financial system to go back into the real economy, none of this matters. If a large chunk of the public stock market is held by buy-and-hold investors who just never liquidate their investments nor pay tax, this money will never come to benefit ordinary folks.

Some of it will, by way of pension funds and whatnot. But it's worse than spending it on normal consumption, as I see it.
Come on, this article is the poster child of unnecessary politicization. The Guardian isn't claiming that the buy is about politics, and there doesn't appear to be any evidence it is, so why call Singer "Republican mega-donor" or talk about what Trump has to say about him?
My five cents, for what it's worth. You are basically playing the odds. And some strategies are increasing the odds while others are not.

So yeah, taking a domain / business that can easily and quickly iterate in big market is increasing the odds. Better even if you can theoretically cover multiple markets with only minor changes. Even then there are no guarantees, so.

The risk with the last approach, at least a risk I face basically daily, is to loose focus. In my case logistics. Everybody moving physical goods from A to B is a potential customer. So I have to maintain focus, because the little differences make all the difference. Also, I bootstrap. So my runway is limited. For now I have a solution for solar modules in Europe for small order sizes and work on one for furniture and other heavy-bulky goods for e-commerce companies. And I hope one of them flies before I have to go looking for a job elsewhere.
Ask HN: What features would your ideal programming language have?
That would be a breath of fresh air
Can you be specific about what balance you'd like to see from Twitter? Are there people you'd like to see banned or something?
> The bottom level is going to sell out immediately, to people who don't require or need it. Look at how many front row or exit seats are taken by short people.

This is easily solved by the market. Either charge a premium for being able to reserve the bottom seat, or auction them off.

> But as someone over 6'5 with knee problems, I curse them silently in my head every time. Same will happen here.

Were those exit seats simply not available because they've been booked, or because you weren't willing to pay the premium?