skysight-inc/HackerNews huggingface dataset:
Not especially. It's about 4% of the population.

https://en.wikipedia.org/wiki/Demographics_of_New_Zealand#Et...
> Dealing with people you discover that all the weird rules are there because somebody or a situation made them necessary.

Some are.

But many rules are there because someone with power benefits from them.
I would even go one step farther and say it's a mixture of both.

The classes at my uni could move at a more intense pace than other schools, and the problem sets and exams were also more difficult, given the academic aptitude of my class. Go on the MIT Open Courseware web site, and take a look at the physics problem sets to get an example. I'm not sure there are too many other freshman physics classes that require pulling all-nighters to solve the challenge problems.

Sure, I could always challenge myself more wherever environment I was in (I taught myself linear algebra and C++ coding in high school, even though nobody I knew in real-life could help), but there is a LOT said to be surrounded by peer pressure, mentorship from world-class professors, and other motivated, top-notch students with the same drive for success. I would not have pushed myself to do better to the extent that I did at my uni.
> Why C/C++ coders don't even write "Hello World" in Java SE before drifting away into rewriting the ball bearing (1907) part of the wheel is beyond me.

I write C++ & Java on a daily basis.

I don't know why I would ever willingly choose Java for a personal project. It's not fun & it's inflexible. And the C++ side of me cringes with how inefficient & slow "simple" things are. Especially for anything that doesn't last long enough for the JIT to come along and make it not horrendous.

If I want to pay for a JVM I'd at least go with Kotlin. But I'd take C# over Java if I had a choice.

And I don't know why you think C++ means "rewriting the ball bearing"? There's a pretty decent standard library these days, and no shortage of libraries to add anything else. Depending on what you're doing there's a richer set of available libraries for C/C++ than there are for Java even (such as anything to do with graphics).

> Java [..] has the same performance as machine code

It so incredibly doesn't. Maybe when value types are added then Java can regain some ground on the performance front, but right now you're absolutely paying a price for Java. Often a price well worth paying, but still a price.
Yes, it sucks on all these platforms equally badly.
We edit titles all the time, including sensational titles about Google or anything else. This is routine. You probably wouldn't remember such edits because you probably wouldn't notice them in the first place.

We particularly edit titles that users have started complaining about: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que.... Experience has shown that to be the way to minimize off-topic title complaints (https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...).

The meaning of the title in this case hasn't changed. Websites don't make noises when they record things.

Edit: out of curiosity, I looked for some other cases where we took out the word 'silently'. Here are some:

https://news.ycombinator.com/item?id=22678471 (changed from "~30% of Android apps silently inspect other apps installed on your smartphone")

https://news.ycombinator.com/item?id=20453115 (changed from "Apple is silently updating Macs * again* to remove Zoom's insecure software")

https://news.ycombinator.com/item?id=16715835 (changed from "Giraffes Silently Slip onto the Endangered Species List")

People have made HN title trackers over the years. My favorite is https://hackernewstitles.netlify.app/ (via https://news.ycombinator.com/item?id=21617016). It's not perfect because it can't distinguish what submitters did from what moderators did, doesn't know what the software changed, etc. But it gives the basic picture.
The world after Covid 19
>2-step initialisation is the only way around errors during construction whilst forbidding exceptions.

Static methods returing optional<T> or some more refined either type work fine and don't suffer the from the dreaded zombie state issue.

Having spent the last week fixing bugs after a refactoring of a class hierarchy that would somtimes leave base classes half initialized, I say please, for the sake of maintainability, dont use init methods!
Operation Enduring Freedom, the Iraq War, the Patriot act, etc, were all based on the premise of defending our freedom, when the reality is Iraq nor Al-Qaeda posed any existential threat to it.

The reason freedoms are often infringed upon in times of crisis are because it is often pragmatic to do so. Also, most of these protestors have little to any idea how the US government works, let alone how its founding father's intended it to. Many would probably be upset at what they read.
It only has daily limits, not session limits, right?
No, I am a SWE.

I indeed later was reminded by a PM college that I should have been talking to a PM for supportive information.

Now have been working in a small startup for a year. I definitely can see that I was lacking the expertise.
Thank you for making this! I was using StayFocusd until now. The look and feel of Intention feels so much fresher and easier to use. Also, having a lot more flexibility for blocking is a great feature. And of course privacy. Much appreciated.
> This is why there was no alarm in January 2020 among the small but dedicated group of Old Macintosh enthusiasts.

> Nobody I know wants to set the computer’s clock to 1920.

What about the even smaller and more dedicated group of old Macintosh using time traveling enthusiasts?
Being cool and a rebel is totally a benefit.
Oh, I don't disagree. And even if you look at policies, the cultural response to a given policy can significantly affect the overall effectiveness. Things like density matter too. I can leave my house for a walk and not see a person. Hard to do in Manhattan.
You may not be aware of how many banks/airlines/ticket websites have outsourced their fraud fighting to solutions like Shape Security, or Sift (Science). Web-wide tracking via cookies is a reasonable and widespread technique for fighting fraud.

Given your background I'd imagine you'd be aware of this.
Heh ! that's why I said this https://news.ycombinator.com/item?id=22937262

BTW you mention Prof. Bertsekas a few times, did you ever run into Pof. Tsitsiklis ? He has done some work in the area of epidemics around 2015. Mentioning just in case you knw him
>Modern triple A games like red dead redemption 2 are a giant collection of such tricks.

It's just too bad somewhere along the way they forgot games were supposed to be fun as they were slapping eachother's backs over how ingenious they were to be able to render every flea and tick on a horse's asshole while you clean it out and feed them a carrot.
> I believe many developers integrate with Stripe expecting that their JS library executes and shares data only on the pages where Stripe UI elements appear on the page.

What makes you believe that exactly?

If you include stripe.js on your About page, all bets are off for that page. You can believe all you want here, but you have explicitly included some 3rd js code, so feigning surprise that it gets executed is shallow.
As a Python developer, I would only use a Java library as an absolute last resort, possibly even below implementing it myself or abandoning the softtware.
Things I Wished More Developers Knew About Databases
https://newworldwebinfo.blogspot.com/2020/04/the-world-after...
More evidence that the rationality assumed as the pilar of economic theory just doesn't exist.

Humans are deeply irrational, we make decisions mostly based on our emotions which are heavily influenced by our social environment.
I don’t think recital 47 allows carte blanche data collection in the name of fraud detection, and at the very least I would think there is an obligation for disclosure of the data collection, a mechanism to access it (DSAR) and the ability to correct inaccuracies.
Does someone know if using grep on a binary file is somehow defined by POSIX?

At a glance, I couldn't find a reference on the grep page:

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/g...
Someone who used to be a Googler once told me: "A group of great engineers lead by a terrible manager will never succeed but a team of mediocre engineers lead by a great manager just might." I don't think anyone doubts Google has great engineers but I don't think it's enough for them to win. All you'll end up with is a lot of great products with no futures. I found myself in a similar situation in my previous job: a bunch of ex-Googlers and a weak leadership team. In the end, we ended up making a lot of components that went nowhere because no one would pay for them.
That Was Fast T-Mobile’s Network Already Getting Bigger and Better with Sprint
Firm Is Looking to Fund 3 New L.A.-Based Companies Within a Month
Thanks for your assessment. Chicken's community looks pretty cool. I'm not super concerned about speed or portability right now, I'm just scratching a personal itch. I'll have to check out Chez soon though.
Google Home will finally let you adjust 'OK Google' listening sensitivity
Show HN: LensAI as a marketing tool that grabs every customer's attention
Hi, Y Combinator Community!

I am Pavel, a co-founder of LensAI. I want to introduce you to a new affiliate marketing platform I am currently building with my team of engineers that turns image and video content into an interactive shopping experience.

We are building the LensAI product to give Advertisers an innovative way to turn around the current tendency of their ads being ignored.

LensAI Technology's prime focus is to oppose causes that minimize the chances of the advertisement being viewed. We aim to boost any advertising strategy as we fight ad blindness and ad irrelevance and provide Advertisers with a tool that helps them to sell their products in the times of the world's overproduction.

Studies show that desire to shop often comes from the visual content we explore, that is why we created a new ad format that is hyper-relevant to the content and being delivered in that perfect moment of the content inspiration.

We taught AI to perform both content and context analysis. We also enabled it with a function to automatically deliver our AI-powered ads, and they are embedded straight into the detected product from image or video content in real-time!

Here is the project link https://lens-ai.com
Please, make sure you stop at Slide #2 at lens-ai.com to see how my technology works on the famous "Diana" movie trailer.

We are on ProductHunt: https://www.producthunt.com/upcoming/lensai

Let me know your thoughts!
That might be a stronger way of putting it than I would.

The canonical example is iterator chains with complex logic compiling down into vectorised and unrolled loops. Powerful logical abstractions are used by the compiler to generate code that does what it says to do without the runtime cost of closures or whatever other logical but not mechanically necessary things you have.

Iterators can't go out of bounds, so the compiler can elide those checks. There are still some runtime costs at the intersection of safety, ergonomics, and performance. Bounds checking, overflow checking. But they have escape hatches and are relatively rare in the language. Most things do compile out.
At that time, if you made software available for export (and that included making a version freely downloadable), it was limited by law to 40 bits.
New and Improved: A Guide to Managing Remote Teams
Part of the necessity of Office at the company I work is that they use macros in Excel to help with certain tasks. Looking at it now, GSheets has macros but I’m not sure that they’re as functional as a VBA macro.

GDocs has found a nice spot in one of our departments as a scheduling tool, though.
the child wasn't removed, it was renamed from arguments to posonlyargs, this is related to the change of allowing functions to specify that given arguments are always positional.

This module exposes internals of python, and providing such guarantees would cripple development, because it wouldn't even allow for refactoring the code.

Most languages don't run into this because they don't expose internals like that. You typically extract that yourself and you accept it can change every release.

As for dis, that's very different, the bytecode is just an optimization of the CPython, python code could work perfectly fine without it, the bytecode was introduced to make it faster and other implementation won't use I would imagine that Jython and IronPython most likely don't implement it since they have their own (JVM and .NET)

ast on the other hand is expected to be identical if a language claims to be compatible with a given version, and you would expect PyPy for example to also provide this package.
Dirt cheap with respect to pricing only a few years ago. Keep in mind comparing a 4 x 10Gb SFP+ switch with an 8 port discount switch are apples and oranges. The former provides L3 support per port and L2 functionality such as VLAN tagging. The discount switch is likely oversubscribed on the backplane (cheap switch controller) and is almost surely unmanaged. You also have to consider the savings of 10Gb - each port is not just 10 x 1Gb, but a full 10Gb lane. If you calculate the cost per Gb comparing a discount switch (8 x 1Gb switch) with a discount 10Gb switch (4 x 10Gb) - yes, it does cost more. But for anyone who wants or needs to move large files or data at home 10Gb isn't considerably more expensive. You pay $15 for 8 ports of 1Gb @ $1.87 per Gb where as that 10Gb switch you're paying around $143 for 4 ports of 10Gb @ $3.57 per Gb. So the cost factor is about 2x, but then again - L3, L2, manageability, etc are all constraints the discount switch can't compete with either. To each their own, but putting the cost of 10Gb in perspective of what it takes to move the same bandwidth with a 1Gb switch (requires LAG capabilities and even then you'd still end up short).

As for power - a typical optical 10Gb-SR will be power draw listed at 1W (PHY would draw less). It would appear to me that the power aspect is a moot point.
University of the People has a free-ish CS program. You might look into that. It's zero tuition, but you have to pay $100/exam (or at least that's what it was when I was looking at it).
So, if his encryption was implemented perfectly the source code would do nothing to speed up decryption. Author admits this in the 2018 thread. If there was some bug or oversight, he gave the NSA a way to break into millions of machines. So should we conclude author doesn't trust his own software as advertised?

Without even getting into the social engineering possibility. I don't see a way this looks good for the author.
> For example, if you're worried that one of the compilers might be malicious, you can use the other compiler to check on it: https://dwheeler.com/trusting-trust

This still requires the use of a use of trusted compiler though. Comparing two compilers arbitrarily shows if there is consensus, it does not give guarantees about correctness.

From the link.

In the DDC technique, source code is compiled twice: once with a second
(trusted) compiler (using the source code of the compiler’s parent), and then
the compiler source code is compiled using the result of the first
compilation. If the result is bit-for-bit identical with the untrusted
executable, then the source code accurately represents the executable.
> Pub/sub in Event Sourcing is a bad idea

I find this point surprising. I would say the exact opposite. I would say that pub/sub and event sourcing are two sides of the same coin: events.

> what to do if sub happens after pub

That should only ever be a problem with a non-durable transport that doesn't have serialized writes per topic. Which, admittedly, can be pretty common. But it's not so much an event sourcing or pub/sub issue as much as a choice of message transport issue.

> Concurrency. Ensuring aggregates are essentially single-threaded entities is a must. Having the same aggregate id running in multiple places can cause some really fun bugs. This usually requires a distributed lock of some sort.

Or it requires partitioning the queues and using an optimistic lock when writing (just to be on the safe side).
Same, which is kind of hilarious since they've actually shut that down about ten months ago [0].

[0] https://techcrunch.com/2019/09/11/google-express-to-close-in...
Functions with side-effects are common in LISP. That's why LISP functions are more like traditional procedures and less like mathematical functions. There was a mathematical 'theory' presented, but it differed from the actual programming language LISP (see the LISP 1 Programmer's Manual, 1960): https://kyber.io/rawvids/LISP_I_Programmers_Manual_LISP_I_Pr...
Smoking is clearly not healthy. But I wish the benefits of nicotine were more widely known and discussed.

I smoked from age 16 to 23 and now I'm 27. I've had cravings for the stimulation that I miss for the last 4 years. I expect to have them for the rest of my life.

As a teenager, smoking was mysterious and therefore attractive to me because everyone seemed to agree that it's bad. The benefits were a secret that I had to discover through first-hand experience.

I don't regret quitting smoking and I'm not planning on starting up again, but the "smoking is bad" messaging is not as clear-cut as it seems.
> If you are an average user, you only need to remember: buy the 3600.

The only negative - It requires a separate graphics card. :/
Creating ‘Yuru-Chara’ and a New Class Conditional GAN Approach for SmallDatasets
> Your security should never depend upon security of your source code.

For sure. I don't think it's about that, though.

Even if the application in question were open source, if the project lead is willing to cooperate in any way their government asks, they could probable ensure the existence of a back door. For this reason, where possible, I would prefer to use encryption software written by people who are principled to a fault (or who at least do a good job acting as if they were).

Let's imagine Linus Torvalds or Greg Kroah-Hartman in this same situation. Linux source is available, so let's say they were asked to ensure that a certain patch to a cryptographic API was not accepted before a certain window. Maybe the crypto API maintainers were on the call as well saying that they were on board with the plan (apologies to those people, I don't know you and mean no offense). I like to think that they would:

1. Turn down the NSA.

2. Attempt to get the word out about what they had been asked.

3. Find new crypto maintainers.

And yes, it's entirely possible that this is not at all how it would go down. Maybe they would be very cooperative. I don't know any of these people personally. But what I do know is that they have not, as of yet, made a blog post about that time when the NSA did ask them to betray an unspecified user and how they did everything they asked without resistance.

I don't think I'm being idealistic here. Software and encryption are global endeavors. People who blindly believe that the enemies of their state are also their enemies, or even that obedience to local laws is a moral imperative, should not write crypto software. Or at least, I hope they make their beliefs known like this guy did so that I can avoid their software.
Fstream is hardly a paragon of good design. Then again there is no reason to call close in the destructor as fstream destructor itself will call close.

If you care about reliability and want to make sure your stream is flushed, you probably want an explicit commit interface and reserve the destructor for rollback (which necessarily shouldn't possibly fail).
The jury has a different role than appellate courts. The jury is a fact finder.

Among other things, appellate courts look at the application of those facts to the law. Appellate courts also can review if the facts determined by the jury (or a judge in non-jury cases) are unreasonable, whether fair procedures were followed -- including jury make-up or jury process.
The packaged version is minified js, so it's not really readable.
Pure profit maximizing behavior is devoid of morals or conscious reflection, so this behavior isn't surprising. If the govt didn't want this to happen they wouldn't have allowed it to, it's not like they didn't see this coming.
Ask HN: Is there a map of US/worldwide hospital utilization?
Also a ripgrep fan. I rolled my own search tool[1] due to dissatisfaction with the available options at the time, but I gave ripgrep an evaluation when it came out and it was really good. I ultimately still use my own tool because I'm very attached to the way grep colors/formats stuff (and I implemented the same scheme in findref) but I use ripgrep on large code bases (like the Linux kernel) since it performs a lot better due to various optimizations.

[1] https://github.com/FreedomBen/findref
> * But go and dig down and find out why that 2+ parking space rule exists. You will find...*

It's easy to find what arguments people gave for instituting a rule.

That is often different from the real reason it was enacted or is kept around.

There is always a nice sounding argument for even the most blatantly unfair rule. Normally, due to Motivated Reasoning, the people benefitting from them even honestly believes the arguments!
I've barely convinced a close circle of friends to use Signal after using it for years. The latest cash injection from the former WhatsApp founder led to plenty of updates that my friends love, like the "encrypted" (iirc?) stickers made by the community.
> Apple pays me for 8h a day, why can't I work another 4h a day for Google if I choose to do so?

You can, if you are being paid by the hour. But you probably aren't being paid by the hour, you are probably collecting an annual salary which means you might be expected to work 8-10 hours per day, not work for other companies, and other restrictions.
Unless I'm remembering wrong, 411 only gave directory assistance for your area code. To get the phone number for a naval base in another state, he would need to dial that area code plus 555-1212 to contact the local directory assistance for that location. Might be wrong though. Where I grew up there was a charge for using directory assistance so my parent prohibited us from ever using it instead of the phone book.
As someone who saw this first hand, Stripe’s fraud detection really works. Fraudulent transactions went down from ~2% to under 0.5% on hundreds of thousands of transactions per month. And it very likely saved our business at a very critical phase.
Anyone hear from DO on when the expect it to come back?
It's not. It was previously considered signature because it was a prism with a gleam on one corner. Post-simplification, I would still consider it signature, but definitely not unique.
I am getting severely screwed by this
At which URL did you find that text? I can't locate it on his site.

I can confirm, though, as an expat, that there is a special kind of fear/restraint involved in needing an opt-in, discretionary permission from a government to be permitted to physically return to your home (which you already paid for) and your family. It causes a lot of security-conscious people to err far on the side of caution, which, indeed, may not even be an error at all.

Immigration policies generally affect a very small minority of people in a country, so strengthening the rights around them simply isn't a priority in most societies, and risks/chilling effects like this fall out as a result.
> New Zealand is the only country that has a government that [thinks] full elimination is a viable option.

Are you sure this isn't because NZ is one of very few countries where full elimination is a viable option?
Sure, let's continue to reward incompetence by further funding openssl.

In a sane world, everybody would have switched to libressl ages ago.
Fair enough. I guess I know what Zeit means, but not Vercel. Maybe they just wanted the “V” to fit nicely next to the triangle? ;)
IIRC VS Code also uses ripgrep internally for searching.