skysight-inc/HackerNews huggingface dataset:
Spoiler: the overall best algorithm is one you've probably never heard of...

Code: https://github.com/senderista/hashtable-benchmarks

Docs: https://senderista.github.io/hashtable-benchmarks/

Graphs:

https://github.com/senderista/hashtable-benchmarks/wiki/32-b...

https://github.com/senderista/hashtable-benchmarks/wiki/64-b...

Shameless plug: I'm looking for a job, so if you like what you see and need a Java/Python/Rust hacker, feel free to email me at tobin.d.baker@gmail.com.
exercise, omg you have no idea how much this helps.
> "they will recover"

If you invested in 1914 German stock market, it didn't recover until 2014.
U.S. Needs More Skilled Immigrants from Two Countries
here we go, another white man been brainwashed by western medias.
None of these allegations were ever proved in court. We were fully prepared to defend ourselves, but decided settling was in the best interests of consumers,” said Jim Greer, a spokesman for AT&T.

Stay classy Jim.
What is the force of gravity at any point in such a sphere? So what does GR have to say?
Influencer Nation: 86% of Young Americans Want to Become One
Top APIs I've enjoyed working with:

1. Stripe (Best)

2. Twilio

3. Twitter (Does what it needs to do quickly)

4. Puppeteer (Amazing. Was super helpful.)

5. Google (mostly ok but could be better)

APIs I've hated working with:

1. Paypal (the worst - docs are horrible and UI is not consistent with most of the help material out there because it changes all the time. Have you tried their support? That's a beauty)

2. Facebook (same story but manageable compared to paypal)
Terrible. I bailed out of a contract because not only was the working environment very poor, but I also recognised I was a long way from being useful there. I'm two weeks out and lost.
You build it up gradually. For example, let's say we're writing an isComment function (and please excuse any misunderstandings about C comment syntax):

Test:

it("starts and ends with slash-star", function() {
assert.isTrue(isComment("/**/"), "empty comment");
assert.isFalse(isComment(""), "empty string");
assert.isFalse(isComment("foo"), "not a comment");
});

Code:

isComment(text) {
return text.matches(/\/\*\*\//); // excuse any errors; haven't actually tried this
}

That's the first TDD loop. Takes less than a minute. But it's obviously incomplete, so now we build it up, step by step.

Add another test:

it("can contain text", function() {
assert.isTrue(isComment("/* foo */"));
}

Modify the code:

isComment(text) {
return text.matches(/\/\*.*?\*\//);
}

That also takes less than a minute. We continue in this way, step by step, handling more and more specific edge cases, until we think we've handled all the cases. For example, the next test might be it("can span multiple lines").
And tell your partner that you're going to therapy, you'd be amazed at how supportive they can/will be.
How much do you think they should be fined?
Hacks always start as "infeasible". But eventually the technique is refined and there's a kit for $20 that can let anyone do it by following simple instructions.
1) try to buy something from backcountry.com
2) realize you can't access their website because you're not in the US
> I sure hope you don’t need the army, police, schools, fire, water, roads, air and so on. Most adults came to realize at some point that some things need to be provided as a group, and they’re not free. For those everyone has to pony up.

I'd be willing to pay for some of those. Lots of people have an inability to separate 'goods and services required for society' and 'government.'

Society can have all of those things, there need not be a government and there need not be taxes.

> paying taxes is social contact

This is just an empty phrase used as propaganda. There's no such thing as a 'social contract.' Taxes are taken under threat of physical harm and death, always have been.

> To keep it stable I’d make more dollars

This has the presumption that you, or someone should be in charge of what money is worth. That should not be a function of the government.
Probably because the "good word" is to a large extent, in fact, corporate decor: https://read.cesletter.org/
Does CRISPR work on all cells at once? Or we are talking about gametes?
Yes. RH is lending these people real money to execute real trades. RH should be ashamed of themselves, this has the potential to be a existential fuckup.
I love your comment. Especially this:

> Most small problems with mental health can be dealt by bringing in consciousness.

I think that what I do is, in the end, the same as you -- I just do it a little differently. Years ago, I developed a habit of questioning why I'm doing whatever I'm doing -- particularly if what I'm doing is unusual or emotional.

The key, for me, is that the question and answers are intended to bring light on things to make the unconscious conscious. The answer should be accepted as a point of information and without judgement (actually doing that is hard, though, and comes with practice).

Once you have an idea of what's happening with you, you are in a better position to notice and work on actual issues, if they exist.
I only see this happening in exploding tech markets like SF, where the impact would honestly be minimal - some people might have to downsize but we wouldn't see mass unemployment or homelessness/crippling debt like after 2008.
I always thought this was a weird definition of "rational". If you're already rich, which I assume most hired CEOs are, why is prioritizing money over people a more rational decision? Is that money going to change their life in any meaningful way? Is it any less correct to say it's in their best interest to stop working as soon as they have enough money to live comfortably for the rest of their life, to minimize stress and maximize lifetime?

I understand that it's rational behavior for someone driven exclusively by money, but that's an important qualification. Most people are not money robots, so they aren't given these jobs.
I really don't to use an app and I don't buy mindfulness in the slightest so for me, I write down important things that are nagging at me at the end of the day or standout negative events etc in a little diary I keep in my bag so it's where even I am and I can keep track of these events

Apart from that, I take time to do things that are in no way related work so I go to the Cinema with non-IT people, I joined a cycling club where the only rules are that you're not allowed to talk shop or politics and we just trundle about talking about all sorts, what ever really.

Outside of that, I try and integrate exercise into my day so like, get off a bus stop early to work or cycle instead of talking the bus when it's not to cold or wet.

At the end of the week, I get off early to see my therapist and we just shoot the shit really and talk about all sorts, or sit in silence. I don't get the process, but it works whatever it is for the most part. As long as I'm not stressed, things generally aren't terrible, but they ain't always great either
Your link requires to be logged in to see the actual bug ticket.
I believe SwiftUI's not doing anything that isn't available in the public version of Swift. There may be some stuff that's still going through the proposal process, not sure.
I moved around a lot and as a result was targeted by the bullies at every new school. I learned early (grade 1) that the best way to deal with them was to fight back, quickly, viciously, using every dirty trick you can think of (I almost took one bully's eye out with a rock, for example). It doesn't matter how much of a beating you take in the process, so long as they think twice about trying it again. Bullies look for easy targets, so make yourself as hard as possible, and make sure there are witnesses.

Worked every time (6 in total), but it got me into a lot of trouble with teachers and principals who disagreed with my methods. If I were a kid today, I'd be a lot sneakier, because the things I did would get you juvie nowadays.
With Walmart, it seems like they lowered prices because people prefer lower prices. Is there evidence they did it to brute force local markets, or is that your interpretation of the facts?
I read this argument last time so the passage you quote actually take your argument into account. Sure, street level trains can go somewhat faster than cars but not a whole lot. Contrast that Elevated or underground lines, which can go much faster, have express trains and so-forth.

The OP makes a great argument that buses plus medium rail/subways/etc is much better combination to add to a city. I think that argument has to be made more loudly, for the other reason - US planners are bad, if there's a to force them to be better it should be taken. Maybe really smart people do light rail well but the US city doesn't deserve to be trusted to do that.
Blogspam of https://edition.cnn.com/2019/11/04/health/screen-time-lower-...
I yearn for a day when a manager will approve a month-long rewrite of the app fronted in something sensible just to save 200MB of RAM. "The developer who wrote the MVP had 2 web dev courses and a week to write it from scratch, now all of you with your CS degrees want to spend a month making it smaller?"

The fact of the matter is that quality simply does not matter in today's world. Not in software, not in hardware, not in food, clothing, cars, or basically any other area. It's all about minimizing costs.
15 minutes is a really long time to meditate. Anyone who's new to it, I suggest starting with 30 seconds and work your way up to 15 in increments of 30 seconds to a minute. It's like starting with an empty bar when weightlifting.
> The same amount will be worth less in the future! ... When the economy works well you have inflation, when the economy works badly it becomes deflation.

This is backward, actually. If the economy is working well then withholding consumption (i.e. saving) means that more goods are available for others to either consume or invest. The portion that ends up invested should result in higher future productivity and, in the absence of currency supply manipulation, decreasing prices (deflation), a natural reward for producing more than one consumes.

Only in an economy which is consuming capital—investing so little that productivity is actually decreasing—should prices increase over time. In that case we need more investment to bump up production—the investments don't need to be all that good to be better than the status quo, and anything with a positive return is superior to just waiting for prices to increase further. In the deflationary case, however, we should be more selective about where we invest. It's better for the economy to simply hold our funds in reserve rather than actively compete against more competent investors to expend resources—not just money, but the labor and material it represents—on ventures that will provide lower-than-average returns.

If we expand the currency supply to manufacture inflation and thus make it look like we need more investment when we actually don't then the net result is malinvestment, wasted resources, and a lower average rate of return. It's not good for the economy or the average citizen, but the extra transactions and higher nominal prices directly benefit the bankers and tax collectors with influence over monetary policy.
Asks -> helps / co-ordinates (a planned and orderly shutdown of towns that are no longer necessary).
Ya know - I agree with the Tech's first statement - it's a FANTASTIC idea. Too bad it's technically infeasible. really too bad that she lied about it over and over.

I'm not really surprised that he'd never heard, though. The story was much more popular in the startup/tech space than the medical space. I know a bunch of people working in molecular diagnostics who hadn't heard about it while it was happening - though they've all been incredibly fascinated and engaged by the recent book.
I have a mood disorder and generalized anxiety disorder.

This is the most accurate answer in the thread.

> Having strong relationships, having a therapist, and keeping a regular schedule.

These are the things I'm actively working on. I'm only 6 months into working full time. It's monumentally difficult just to achieve those 3 things. I haven't worked an 8 hour day since training because I often feel drained and unproductive and end up just going home.

Right now, I'm doing CBT, and my therapist and I are focusing on ways for me to feel less drained at work. It's amazing how little things like taking 5 minute breaks and not eating at my desk have helped.

I feel like everyone I know who works in tech is either seeing a therapist or would benefit from one. If you can make it happen, try it.
Artificial Intelligence could offer some answers for Africa's rapid urbanization
I would argue that Dollar General has morphed itself away from the traditional "dollar store" model and is focusing much more heavily on the "general store" idea of old.

Sure you can get cheap stuff there, but not significantly cheaper than the similar products that a grocery store would have.

Their edge is that they are open later and have more of a focus on stuff that you are likely to need last-minute.

For example, when our kids were still wearing diapers, Dollar General was a typical stop as soon as we got to my mom's house for the weekend.

Similarly, if you're out of shampoo, toothpaste, etc. Dollar General is going to have a better selection than the grocery store.

Need a birthday card? Dollar General.

My mom likes to go there for cheap outfits for the grandkids. We don't get clothes there, but they have a decent selection.

In my experience Dollar General is an asset to a small town. It complements the other businesses rather than driving them out. Contrast to Walmart, which will do its best to kill small business.
Mind if I ask which state? I'm asking because I live in CA and all I keep hearing is people being outbid and some times with cash offers.
Take a look at the parts of the D3 API used here and explain what parts of the React API could be used to replace them. They serve two very different use cases.

React has tools for state management, code reuse, routing and other common front-end needs and leaves the DOM content to be decided by the coder with XML-like markup. D3 abstracts over the DOM content to handle the specifics of rendering while the coder focuses on the data.

Pairing D3 with React or Vue is a very common decision. Because this project seems to make little use of React beyond memoization I would think that doing without React would be much more plausible.
This is a fantastic post. Would love to see an even more detailed walk through some code examples, and discussion of development to production of these models. Do you have any other resources you would suggest?
That's my understanding of AT&T's current implementation of unlimited at the moment
Perspective is a funny thing. This article by a billionaire lists as examples of the world going mad low interest rates and the possibility of inability to meet future pension obligations.

No mention at all of the prospect of global civilizational collapse due to climate change with no one doing anything substantial about it, millions living in squalor as refugees, genocidal war or government officials openly admitting to criminal behavior with no repercussions.

I could go on, but why disturb Mr. Dalio's meditations on the possibility of teachers rising up and demanding their benefits?
I can confirm this experience. Integrating all this new stuff meant keeping open multiple pages from the docs in parallel, each of which had a warning at the top that certain aspects are different and sends you yet to another page, depending on the integration, it felt like a giant spaghetti mess. I also found some bugs, for example, it was not possible to input sub-cent amounts on their dashboard for tiered plans.

On the other hand, a couple mails and a quick chat on their IRC resolved most of it. But I really wish there would be a clear map/diagram of what route to take depending on what you want to achieve.
Japan however is shrinking in population and missed the whole baby boomer generation for obvious reasons. Without the population growth, they can't grow their GDP to get their debt levels in a reasonable range.
Such as who? I agree with GP and still think this is biased projection. Factors such as growing trade control over APAC and a middle class larger than the population of the U.S. only speak in favor of the Yuan. Also, what you call shady currency control can be viewed as a be a signal of ensuring stability.
Please go after T-Mobile next. They throttle their "unlimited" to unusable.
> Grocery Stores closing really is happening, and really is a problem. And it's part of what's killing towns

No, it's a symptom.

The real problem is "the town should shut down". This is the standard "people are gung-ho about capitalism when things are going up, and angry about it when things are going down."

There is a lower limit past when a town no longer makes sense from a self-sufficiency standpoint.

If people in small town genuinely want to change that calculus, then they need to start talking about Universal Healthcare and Universal Basic Income. Unfortunately, those are the kind of solutions which small town people tend to oppose.
What would an HN guidelines compliant post have looked like? Genuine question. This was an event that might have killed as many people as the holocaust, and someone said it was "well meaning". I thought I made a polite and non flamebaity response. Am I unable to disagree with that, or start a discussion about it? If I am, how would I do it?
No, they won't 'happily invest' in China at all.

The RMB is a fully politicised/made up currency - which is fine for them, but toxic for outsiders.

The CCP decides what happens there with the click of a button. There are capital controls, arbitrary confiscations, no accounting principles, opacity at all levels. Gov owns all the investment banks and controls lending. It's all magic.

China wants the RMB to be a global currency but nobody will touch it until it becomes 'credible' - but the magical properties are just too 'powerful' for the CCP to ever let go of, and as long as it's magic, it's no good to you and I, so it's unlikely it will ever happen.

The only path I see is 25 years of really consistent and reliable management on their behalf AND a major degree of seigneurage in their region of influence - by that I mean Vietnamese, Indian, Japanese etc. businesses and governments forced to hold sums of RMB just for the purposes of operations with China. The more seigneurage, the more 'apparently consistent' China is - the more people will take it on.

But otherwise, no.

The USD has a long, long way to go before it starts losing real trust. I can't imagine how much debt the US could take on before people really think it becomes a problem. If a lot of 'very bad things' happened at the same time - say major war, economic crash, political dysfunction (much worse than Trump), shenanigans at the Fed ... then we might see something happen.

Remember that the ECB does not want people flooding into their currency either. Everyone is already playing a game of 'devaluation->competitiveness'.

More likely we would see more diversification in other currencies and in other assets.

I fear countries that have opened their borders to capital will face punishing real-estate prices from here on in. London, New York, LA - pretty much every Canadian city (Canada is boring and stable, just what every corrupt international business person wants) ... A home in Toronto is becoming 'international currency' and it's problematic.

As the OP posted - I don't think real estate is going to be the thing that pops.

Even as Warren Buffet is hoarding cash (the ultimate bubble signal) - there's nothing on the horizon to indicate a pop. Without a pop, things could go on for quite some time.

If we can find a 'new normal' with China trade, and I think we will - and if there's no super major wars (unlikely) ... it may be possible that we're in for a long period of relative 'kind of stability' - fluxuations and pops here and there, maybe some minor stagflation or negative growth ... but otherwise things work out.
Robinhood has changed their app several times based on users finding various bugs and workarounds that affected the trades they can place.

Another famous case is user "1ronyman" who opened up a massive options spread that had a potential loss of $500k which was 50x bigger than his account [1]. Proper risk calculations would never let him make the trade in the first place but Robinhood did and likely had to take the loss.

It shows the dangers of playing fast and loose as a "tech company" in heavily regulated and complex environments like fintech.

1. https://www.reddit.com/r/explainlikeimfive/comments/ah578l/e...
> the operating system itself not coherent

> settings app and the control panel

After using Mac, I once decided to explore Win7's control panel on a friend's machine. I counted ten different kinds of windows in there, not including third-party additions. Some of the windows had controls that weren't used anywhere else in the system—iirc it was the side panel with navigation links.

Hearing that MS now made another entire app for the settings, in addition, was a knee-slapper.

Control panel is my litmus test for the quality of a desktop environment. E.g. you can easily see how Gnome 2 stole ideas from Mac, in the good sense.
I made the mistake of getting an ultrawide that is not curved.
Been getting some neck and trap issues from it.
Doesn't matter which one, but just make sure it's curved if you get an ultrawide.
They will switch to 20 for modules. No. 1 headache is build times. It will literally save money.
I never thought of it that way. For me Laplace is all about region of convergence and representing things like the Dirac Delta function in a way that’s easy to manipulate.

Basically the video ignores the idea that the X(w) integral may not exist. It doesn’t for many x(t). I don’t want to type a book, but basically the X(s) integral exists (where it does is called the region of convergence) for many more x(t), so there are classes of functions which can now be analyzed where with just Fourier, they could not be.

The other thing is delta functions. With Fourier they are a pain but with Laplace they are a breeze. This is especially important if you want to mathematically model how the control system will respond to a jolt or impulse. I always figured that is why control engineers use Laplace.
This entire class of bugs should be caught via fuzz testing. Swap out the live back-end with one that fakes execution against a snapshot of prices, do whatever you can do, and verify position sizes are within leverage limits.