jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
One because memory allocations can be pretty expensive performance wise, two because you never want to manually allocate memory if you have the standard library accessible to you (you want to use smart pointers instead), three because the allocation is completely pointless here in the first place because std::unordered_map allocates everything it needs internally, you can just create the object on the stack, so you just introduce an additional indirection and an additional allocation for no reason.

All together whoever wrote the code has no idea how to write C++ and was probably just happy that the code didn't crash. (Also this essentially just benchmarks the unordered_map implementation that happens to come with whatever standard library they're using instead of anything intrinsic to the language. How fast unordered_map does certain operations can vary wildly between different implementations, and if you really needed a similar data structure that delivers absolute maximum performance for your use case you would write it yourself.)

Also these "language x is this fast" comparisons are generally useless anyway, if you care about a 5x compute speedup or less you're going to use a native language and fiddle with it until the compiler gives you the binary code you want essentially (which in return means they're all equally fast if you do things correctly), and if you don't care about a 5x speedup you can use whatever language you want, they're all fast enough.

The only "language benchmarks" that are actually useful are ones that compare different coding paradigms, for example using exceptions vs not using exceptions, or inheritance vs function pointers, etc. - but these kinds of things require a fairly good understanding of the language and compiler options, and their conclusion is very often "it depends".
Please don't do this here. Rather, if you have a substantive point, give us the information, so we can all learn. Conversely, if you don't have a substantive point it's best to abstain.
I think it's about time that people realize that learning grammar early is very detrimental in language learning process. As mentioned in the article "Nevertheless, Hamilton did not oppose the study of grammar, only its timing. “The theory of grammar should be taught only when the pupil can read the language, and understand at least an easy book in it”."

As an example in most of the Muslim majority countries, Arabic is thought as a second or third language. Apparently Arabic grammar is probably one of the hardest to learn and ironically the modern Arabic grammar was actually developed by Iranian scholars not native Arabic scholars. This makes many of the students cannot read and understand Arabic book (e.g. Quran) even after several years of studying.

The golden standards for Arabic language is the Quran. Even as the Quran has huge amount of words (~ 77,000 total words and ~ 15,000 unique words) because of its Semitic origin it only has root words of ~ 2,000 words [1].

To provide a better comparison perspective, English has ~ 10,000 five letter words and the popular word game Wordle only uses about ~ 2000 words. The entire Quran has much less vocabulary to be memorized even compared to the five letter words in English language excluding the other non five letter words that you need to memorize that is probably more than 100,000 words.

[1] The Clear Quran Series Dictionary:

https://theclearquran.org/dictionary/
I know some pretty capable devs who find Obj C challenging, certainly in comparison with JavaScript. There's a reason good iPhone/iPad devs command a high hourly rate.

Also, your hard earned Obj C knowledge will be pretty much useless outside Apple platforms.

There are definitely a lot of apps where you have no choice but Obj C, but reading OPs experience I think he'd enjoy focusing on designing the app rather than dealing with implementation details.
Full disclosure, I'm the lead designer of the game. It's on sale for 1.99 right now, btw, and there is a new playable class that just got freshly released. A female skeleton thief.
No matter what, you are my ideal weekend project success story, for making something useful, relatively easy to write and very fun.
If something is taking way too long, often times it shouldn't be made faster, it should be done differently.
For example, it takes me 4 hours to get to work, just making the car faster isn't going to help. Maybe the solution is to take a plane, get a different job,work from home, or move closer to where you want to be.
Daniel, I'm sure the Dark Patterns Wiki community (http://darkpatterns.org) would love to read the details of the $10 recurring charge pattern you mentioned. So far there have been a few very satisfying examples where companies have responded to being named-and-shamed, and have taken dark patterns out of their UIs in response...
Where's the promised math? Very little technical content here. Off to find a book..
OS updates OTA need your PIN, but using DFU mode connected to iTunes doesn't. I assume this is so a broken OS upgrade can't brick your phone.
“You’re repeating bullshit propaganda” is a highly disrespectful way to disagree with someone. It implies that you don’t merely disagree, but that the reason you disagree is because the other person is either engaging in bad faith or otherwise lacks the intelligence to realize they’ve been “tricked” into their beliefs.

My concerns about the US relationship to and other circumstances surrounding this conflict are legitimate, not “bullshit propaganda”.

In some sense you have the “right” to be as rude, unproductive, and disrespectful as the moderators or regulators of whatever medium you’re on will allow, I’m commenting on the rights we should bestow on people we’re communicating with, especially when we disagree.
As the world becomes a more digital place, we cannot forget about the human connection.

If you're going to build a business that's based on community, your business has to have community in it.

If your business is the right business, then money will never be an issue.
I can see companies doing an office share. Basically, like co-working space/conference space.

Get everyone in the office for 1 or 2 days/week. When your company isn't there, another company is using the space.
> Similarly, if you are obese, no generally available treatment that could be of medical benefit to you will be denied merely because it’s expensive and you’re obese.

Nope. There's a limit to everyone's insurance, beyond which they will not pay for more treatment. You won't get told that you're too fat but your treatments will cost more and consequently you'll get less of them. Your insurance contract is for a sum of money, not a specific set of life-saving actions.

But generally that limit is much higher than what you've paid so your expensive treatments take money from the pool.

> there is no ethical dilemma in insurers paying for HIV treatment regardless of whether the patient acted irresponsibly.

As long as their fees cover the payments. But if they're costing more than they're paying as a class, meaning that all other users are compensating them, then yes - dilemma.

> It’s obviously irrelevant here as we are just talking about access to drugs for HIV patients, not access to an inherently limited resource. Either you pay for Truvda or you don’t. There’s no queue.

Paying out of your own pocket, 100% fine regardless.
Hell I took it a step further - I didn't even submit mine.
I dont think anyone is taking this literally, but coming away with the point that it takes time to develop ideas and not to expect instant success even if you think you're the cat's pajamas.
While I love the concept and polish on this and would love to be able to recommend something like this to friends, I'm sorry but I have no room in my heart for zombies.
Okay. So what's the best .com alternative domain name extension; one that will not be subject to this tyrannical law?
Like it or not, that's the reality. Most people's expectations of what "back" does are influenced by their years of experience with Flash and other plugin-based content.
This company wasn't in a place like San Francisco or New York was it? Because 20% on top of a salary from most other places would be laughable.
Last I checked humans are limited in supply. AI users though...
We put it in our terms of service (and many companies that do signups over the web do, too). For big companies with strict privacy, they'll get in touch or let you know if they don't want you using it.

That said, my strong preference is to highlight customers where we personally know someone there or have received very positive feedback (just in case someone wants a specific reference).
It's been 15 years since I last had anything to do with long range LoS wireless bridges, but at least back then they also tended to flake out during snowstorms and heavy rain.
Russia still operates multiple nuclear icebreakers. Some of them are brand new.

As far as I know two Arktika-class ships are still in operation. Both Taymyr-class icebreakers still operate

Then there are five new project 22220 vessels under construction or under order. Each of them has two reactors that produce. 175 MW total.

Russia is planning to start building Project 10510 nuclear-powered icebreakers within 10 years.
They do?

Doesn't seem to exist many civil nuclear powered ships at all. And barely any non-US/Russian ships, at least still in service. From my quick searches at least.

Large nuclear military ships likely have some port restrictions anyway.
> Take a look at Apple’s functional organizational structure for an example of an engineering company done right.

I don't have an actual refutation here (and certainly don't want to start some kind of Apple flame war) but something about this doesn't seem quite right.
Good question. Pity people on HN are downvoting such well-intentioned curiosity. I think people are working on that ...

https://www.energylivenews.com/2020/09/02/us-startup-unveils...

I'm not an expert on that tech though.
Buy 2. Put one in offsite location (e.g. your notary). I don't have a notary; I got one always in my pocket, and the other one at home in a safe (pickable though). YMMV.
I loved Simple when it started, but had to transfer away in 2018 after they rolled out some new security system which started flagging withdrawals from nearby ATMs, at stable local businesses, which I'd gone to for years, as suspicious transactions. Each time, I'd have to call to get my card unlocked. After three times, I begged their support people to please contact someone up the chain know I was closing my account because I literally couldn't get my money out. They were sympathetic but refused to countenance the idea that the transactions were incorrectly categorized.
It's not just ass-covering.

Many of the people who work on those platforms don't want to be complicit in a coup.
> I always wonder why executives earn so much money

Well connected?
That's true. But wasm also required some extra codegen and optimizations for i64 types for example (also simd and atomics). In addition, wasm will have more specific CFG optimizations for WebAssembly. For example
https://bugs.chromium.org/p/v8/issues/detail?id=11298
Under the covers, both podman AND docker use runc. Redhat is writing a new version named "crun" which is lower overhead and faster:

https://github.com/containers/crun
I redid some docker builds yesterday with podman, and filled up my laptops 99GB entirely with layers. Docker was handling it somehow better.

I used --squash, cleaned up the various apt-gets but boy it made me realise that for every abstraction we get leakage - sometimes serious leakage
Heaven forbid someone make a joke on the internet and not take your frustrations as seriously as you seem to take yourself.

To address your frustration at the analysis stopping there: What do you expect someone who is likely more versed in web dev and their unique distributed systems to do? Do you expect them to have the expertise to decompile an app from a third party, an app popular enough to cause this much traffic? And if they did, would it be worthwhile when their only concern is limiting/lowering that traffic?
In a hypothetically pure Bitcoin economy, that could work. But If we all switched to Bitcoin, the speculative upside would be exhausted and we’d be stuck with all of Bitcoin’s flaws and limitations. If you think $8 transaction fees are high now, how bad do you think it will be if every transaction was suddenly a Bitcoin transaction? Trick question, because Bitcoin has hard used block size limitations and it literally cannot support transactions at scale. By design.

With the speculative upside removed, why would anyone choose to use Bitcoin? Why Bitcoin over any other cryptocurrency with significantly better technology?
I found the Rust Programming Language book [1] very helpful for learning, and with rust installed you can open it by typing rustup doc --book.

[1] https://doc.rust-lang.org/stable/book/
I think it’s unethical for a highly overvalued company NOT to issue shares. Good capital allocation means issuing shares when you’re at an insane valuation and buying them in when you’re severely undervalued. They could have issued shares, paid off debt, or used the cash to launch new products, etc.
Couldn't any negative number be used as a niche for file descriptors in Unix? Could Option<File> use -2 to specify None?
This is risky, because if the fed accidentally injects too much money by buying back too many bonds, they can always un-inject it by selling the bonds back (and banks are compelled to buy). This lets the fed be more aggressive because it knows that if it goes too far and starts seeing more inflation than it intended, it can always walk back its decision. But there's no realistic way to do that after having given $1000 to every adult.
Those changes started happening years before Microsoft and have nothing to do with the acquisition.
> What's the average effective tax rate for high-net-worth+ individuals if unrealized capital gains are included as income?

That's a completely pointless question. If I own 50% of GameStop, my net worth will have gone from $650 million to $12.2 billion to $1.8 billion in like 45 days. Sure, this is an extreme example, but it happens over longer stretches of time to a ton of the richest people.

How exactly do you expect to tax that movement of those unrealized gains?

> You can get variable and fixed rate loans against your investment accounts.

That you eventually have to pay off. The money you pay it off with will be taxed.
Nice ! Python allows to define operators too, but AFAIK you can't use Unicode in those ? And ² (or any other sub/superscript number - at least some letters are fine) is not allowed in identifiers either.

The point is to get closer to math notation though, if anything x +² y is IMHO even farther away than (x + y)*2 !

Any way to have (x + y)² or √(x + y) to work ?

––––

The new AZERTY has a lot of improvements : ∞, ±, ≠, √, the whole Greek alphabet, () and [] and {} next to each other... but for some reason they've removed the ² that the old AZERTY had ?

http://norme-azerty.fr/
That’s an argument for Dublin. Not only do you get English, you also have a simple transition because the ROI has easy access to both the EU and the UK even post Brexit.

While English may be an advantage in other areas, I suspect the main reason the financial industry will gravitate towards Amsterdam is its history and therefore presence of skill in financial areas.

The Netherlands is after all the birthplace of capitalism, corporations and free markets.
Not trolling - I genuinely wanted to know what the article says. I tried to read it, and got through, I don't know, 5 or 10 screenfuls before giving up, my mind numb.

The article would be much improved with an opening paragraph that summarises the findings.

It would also be improved with formatting that clearly differentiates the article text from the extensive site text it quotes. That site text is designed to numb users and put them off reading. It worked for me.
Tesla learned from Toyota's playbook! At least they were settling their "unintended acceleration" issue as Tesla were getting started: Deny and minimise systemic faults, recall quietly if ever, and blame it on the user wherever possible. I think they paid billion dollar fine in the US?

I had a 2002 Celica that tried to kill me (gas pedal that got stuck under the floor mat at 90... 95... 100... on the M62) but I loved it too much to hold a grudge.
that is quite the synchronicity.

that rebrand may be daunting but i support it.
It came at such a great cost in fact. The vast majority of your taxes are simply wasted. If the US Government were on Charity Navigator they would have a 0-star rating.

It'a absurd to defend such a position, especially one rooted in a traditional of violence via arguments that were used to justify the enslavement of entire races.
"...and struggle as much now to keep focus and not drift into continuing internal conversations as I did when I started."

If you notice that you're having an internal conversation then you have awareness and you should rejoice in that! I think too often people assume that meditation needs to be a completely focused empty mind at all times. Mingyur Rinpoche does a great job explaining it (and is a great teacher, would highly recommend his courses): https://www.youtube.com/watch?v=thcEuMDWxoI
I thought it was because the more par value you put on your stocks, the more its going to cost you during incorporation.

FYI: My company has 10,000,000 stocks valued at .01 a share, it cost $94 total [Delaware C-corp].
"It's entertaining"

He has a very unique perspective on that situation.

Exciting that he is coming to Ycombinator full time. Expecting some interesting Ask PB threads in the future.
That would be Bogdan Butnaru's work. Email me and I'll forward your email to him.
http://nxhx.org/
Nah I'm saying that some things have a level of healthy natural scarcity to them. That scarcity can be removed artificially to not always beneficial ends.

Would I want an unlimited supply of free chocolate? Sure. Would I trust myself with it? Definitely not. Same applies here.

I'm aware that for example Tiktok owes its entire popularity to its smart filtering and suggestions, but that's also why I've never tried it myself. It's like going out of your way to try heroin or something. You know it's not gonna end well.
> Maybe we are long overdue for an open standard protocol for social interactions on the web

We have those. They are called websites and emails.
I know what you mean when it comes to learned tricks. I've got two young ones and I find myself turning to some, and trying to turn away from other, learned tricks haha.
All the stuff going on in your head is ego and fear.

I’ve put dozens of things out there over the decades and there is only one metric that you need to care about…

Is anyone using it regularly? (Or are people consuming it - if it’s words)

Anything else and you’re just hyperventilating while wasting time.
No actually it’s WebGPU, WebAssembly, and WebXR
Was it Nestor that buys into the "acid diet" idea that has been debunked?
Yeah, I imagine it would. I can invalidate the cache myself, but it would not make sense for a user to do so.
In what bizarro world do C++ namespaces qualify as modules?

There are rumors that Apple's clang developers are working on something in that direction, but until that vaporware is done and standardized, C++ programmers have to use the C preprocessor's automated text copy-and-paste mechanism in lieu of a proper module system.

Edited to add: an article and video about the clang C++ modules work-in-progress

http://isocpp.org/blog/2012/11/modules-update-on-work-in-pro...
Same irrational presumption as the other guy, see my response.

I would also like to point out that studies show early agricultural societies had notably worse health than hunter-gatherers. This would make it unlikely that a successful, happy tribe would adopt agriculture just so they could "get more".
To be fair, SIMD in JS was kicked off by John Mccutchan who was on Dart and soon after joined Dart VM team. While there was appetite for SIMD in JS (Brendan, in particular, was a big proponent of John's proposal), I think it wouldn't have happened when it did without Dart and his work.
Here is a video of him talking about it with Kevin Rose https://www.youtube.com/watch?v=0cWl9UTHZoE
Homosexuality and gender identity aren't the same thing...

I find these (spammy) posts annoying also, but what does his/her orientation have to do with anything?
Turns out that most of these questions can be answered with just "arson", and I might even consider giving a further interview to someone that actually did.
1. That's purely because of trust and reputation. Google is in the business of tracking people, Apple just wants to sell expensive hardware.

2. You might be right there, although I'm sure it'd be possible to disable it.

Overall, I'd love it if they added this. I'm surprised however that Apple hasn't attempted (or perhaps they have) to buy Yelp - seems like it would make a lot of sense for them, especially as Yelp is fairly heavily integrated into iOS anyway.
Started by an Australian. http://letskillpaypal.com/?page_id=4

Found myself in a similar situation with Air Asia recently. Any lawyer types have tips on initiating effective class actions? Are you allowed to get their competitors to fund advertising them?
Questions that imply you're looking for better ways to spam also tend to fair poorly; can't imagine why. http://stackoverflow.com/questions/3905734/how-to-send-100-0...

FWIW, legit SEO questions do have a home on SE: http://webmasters.stackexchange.com/questions/tagged/seo
That wasn't my argument. I hope they burn the whole thing down. It is a terrible embarrassment and shame on the whole country.
no idea if it accomplishes anything, but i wrote a strongly worded complaint through the jetblue website here - http://www.jetblue.com/contact-us/email/concern/
And Binney, Drake, Wiebe are even more unambiguously moral than Snowden (although I think Snowden is closer to them than he is to Manning). Those 3 deserve a Nobel.
Philosophically I may agree, but in this case "perfect secrecy" is a mathematically defined term with a specific definition.

Basically, it is mathematically impossible for any encryption scheme to ever provide better data secrecy than the OTP, so I think calling it "perfectly secret" is perfectly alright :)
There is no such guarantee. Right now, the publishing industry is in its own conundrum on how to deal with Facebook. FB is reportedly in talks with content providers, including the New York Times, to publish content directly on FB's platform...the ostensible reason being that it provides a better user experience. Publishers would get more eyeballs and presumably some cut of the ad revenue, and publishers who don't go for this, well, they may find their external content more and more deprioritized. As the Atlantic pointed out [1], back in 2011, Facebook announced "social reader" apps and news orgs jumped on...and when FB decided less than a year later to drop the effort, well, all those efforts were wasted.

FB is in a much stronger position now, and conversely, publishers have only gotten weaker. Ideally, publishers would take the tack that you've described...FB will undoubtedly provide some kind of API that would make it easy for news orgs to export their CMS data as easily as they do for their print and web editions...if publishers don't like how things are going, then they just pull out, and their API points to another platform.

The problem is that publishers are very weak financially and have shown very little ability to innovate. And consumers have shown mostly apathy about the way their daily attention is diverted to social networking and linkbait...so news publishers have serious existential issues on top of their financial ones.

1. http://www.theatlantic.com/technology/archive/2015/03/facebo...
I 100% do not believe Facebook would have done this if Ossoff and Warnock had not won the GA special elections. This is about acknowledging which Party is about to be in power more than anything else.