skysight-inc/HackerNews huggingface dataset:
I don't know a great deal of C#, but couldn't you just do:

T Log<T>(string msg, T result) {
Log(msg);
return result;
}

var result = operation switch {
"+" => Log("addition", a + b),
"-" => Log("subtraction", a - b),
"/" => Log("division", a / b),
_ => throw new NotSupportedException()
};

You already have a lambda for calling Log(), no need for a second to call the inner function. This does change the order of evaluation though.

I just mention it for academic interest. To be honest, I find the idea of passing a parameter to Log() (whether it's the value or the function) that your don't actually want logged, so that you can shoehorn two statements into an expression, abhorrent. Just write the two statements out! I think an old-fashioned switch statement is the right tool here.
At least there it's obvious... If you search for a product with a specific feature you are easily screwed without noticing until later... :(
This is not much of an advantage with respect to string interpolation as you could just as easily put your new value in a (nicely named) variable and insert it wherever.
Would Stripe or Paypal ever create their own credit cards?
There’s already plenty of billionaires land grabbing in crypto through hedge funds. As far as I can tell that started around 2017 and doubled down in 2018.
Opinion: Amazon Isn’t Interested in Making the World a Better Place
[link] hypress-project-skeleton – a wordpress development stack
As someone else in the room who doesn't want to see your password, it's a lot easier to avoid seeing all the characters you're typing in than avoid accidentally seeing the password if it's in plaintext on the big screen.
So to be clear, you think google MUST use 8.8.8.8 on its own chromecast device in order to spy on your mother-in-law?

A more plausible version - google knows most of the people use shitty ISP provided DNS servers, so instead it's using faster DNS that wouldn't inject shit as your ISP will.

EDIT: never mind. It's for ads.
I agree that a wall isn't all that effective for solving this issue. Leaving the laws the same, something like the purposed "tech wall"[0] a combination of machine learning and sensors would probably be more cost effective for the stated purpose. That said leaving things as they are is rather inhumane and since I've been alive I have never seen a serious effort to change our immigration polices from either side, instead it seems like a great deal of effort to maintain the current slave caste system. I don't blame the people coming here, I blame the people encouraging them to do so and then denying them rights when they arrive.

[0]https://www.washingtontimes.com/news/2019/jan/13/democrats-n...
LINQ is surprisingly powerful when you start overloading SelectMany, as that allows you to implement Monads nicely.
To be fair, I'm an ops guy, not a search engineer. ;) It's valid to say AV might not have implemented the basic concepts as well and I don't want to devalue Google's innovation. It just annoys me when people assume PageRank was a unicorn and nobody else was doing anything similar.
"Simple" and "easy" as in straightforward bureaucracy in the application process?

Or "easy" as in a no/few applications are ever denied?
You're holding it wrong.
Most of his issues with magic links don't exist everywhere. Maybe "Notion's" magic links are bad, but not everyone does that.

They're not tedious if you persist the login beyond 1 session.

There's also no need for any type of codes. You just receive the email, open it, click the link and then you could be potentially logged in for months or longer (it's up to the site who issues the link).

It's one of the easiest and fastest flows you can ask for with technology that works today in all major browsers.
Sea level rise is not a concern for the vast majority of countries for at least a century even in the most cynical climate change scenario.
Everyone uses Outlook or Gmail for businesses.
It may be that I'm tired and haven't really spent enough time processing this article, but what about it gets you to "He's a cretin"? Any particular points of Postman's that you'd call out?
> I am completely invested in ensuring that nobody bypasses it to the best of my ability.

Then your network is a private walled garden and not "the internet", and I don't know why you expect consumer devices designed to be able to get to the open internet to work unmodified.

I mean, I'm sure your decisions are made with the best intent, but how is what you're doing any different technically than the DNS hijacking the Comcast et. al. have been caught doing?
A lot of password managers clear or restore the clipboard after a short period.
Too late to edit, but gnu coreutils statically linked is 8.8MB total for 105 executables versus 5.5MB for Ubuntu's dynamically linked version.

The largest executable is ptx at 272kb vs 72kb for the Ubuntu binary.

For the smallest, false is 48k statically linked vs 32k for the Ubuntu binary.

If all 970 executables in /usr/bin average out to 100kb of extra space, that's less than 100MB overhead.

[edit]

Stripping the binaries decreases the size to about 7MB total or byte sizes of 34312 vs 30824 for a stripped false binary and 251752 vs 71928 for ptx.

For download times, a tar.xz is a good measurement and it's 819k for the 105 statically linked files or 1015k for the full installation of coreutils including the info files and manpages.

[edit2]

Some proponents of static linking talk about performance, I think it's a negligible win, but as I have it handy I thought I'd measure:

10000 runs of a dynamically linked "false":

real 0m4.650s
user 0m3.602s
sys 0m1.391s

10000 runs if a statically linked "false":

real 0m3.025s
user 0m2.047s
sys 0m1.287s
You can actually pretty much do what you want, regardless of your gender. It is a myth that your "sex" or "gender" forces you into certain roles. Your physical attributes may influence your roles, to some extent (giving birth, lifting heavy stuff,...).
Agreed. Many orgs will end up null routing the DoH resolver IP addresses. I warned them about this from the start of DoH development and they ignored me, since most end users won't block anything.
Be aware: likely illegal in many countries, and can get you into serious trouble.
Lets put it this way. A superyacht to massage the ego of oligarch is around $275 million with about 10% of that yearly for upkeep. How much would it cost to replace the lead pipes in Flint, Michigan? Replacing lead pipes would be about $7500 per home.

So at the cost of one man's ego, we could replace the lead pipes in 36,667 homes in Flint, Michigan.

Which is the greater loss of social welfare: the lost enjoyment of a yacht or clean safe water for tens of thousands of children?
Static libraries are a potentially bigger problem when your library is tightly coupled to a particular version of some other process (eg an X windows server).

The real distinction in my view is between tightly coupled components and loosely coupled ones. Loosely coupled as a design paradigm is harder to design and maintain for the programmer and in some cases has a performance impact, but a lot nicer for the admin and feels ‘cleaner’ to me, at least.
I like the magic links, but more as a secondary option or at least an equal option to a password. I have yet to see a site completely depend on the magic links and I hope that doesn't become a thing.

I also really like the "go to this website on your computer and enter this code" for logging in to Apple TV, Chromecast, etc so you aren't typing a 30 character password on a TV remote.
> So it's better to have professional models in ads being paid to fake that passion rather than self-educated hobbyists?

If they're faking it then yes. You keep conflating "self-educated" with "hobbyist" and it's starting to seem a bit disingenuous. A self-educated person who is making a substantial portion of their income from promoting products is a professional. They shouldn't portray themselves otherwise, and if they do they're being dishonest. That's not a problem with professional models or actors who are clearly performing a role.

Since disclosure of interest is strictly relevant to the conversation, do you by any chance have a horse in this race? I don't. I barely even use Instagram, and my only experience with modeling was one charity fashion show when I was a child. I have never been paid to promote anything, nor do I wish to enter that line of work. Can you say the same?
Question: has any progress been made in removing reverb?

There are many, many historical recordings (and modern ones made in less-than-ideal circumstances) that suffer badly from reverb. Seems like a valuable use-case that -ought- to be in reach today.
100% of cafés in Italy serve coffee in non-disposable cups and it rarely costs more than a euro. It's a cultural thing, not economical. Most food and beverages are take out by default in the US.
Thanks, so it seems like a spam comment trying to get people to buy their app, using your comment as fuel.
Holy synchronicity! I just ran into this this morning when trying to null route a hostname on my co-workers computer and nobody could figure out why chrome could still resolve the IP after we changed the hosts file.
I've been using minisign, signify, and ed25519 on a project and they're minimal but wonderful. They're fast, they have small key and signature sizes, and I found it way easier to integrate the reference ed25519 implementation into my project than say libgpgme or OpenSSL.

Ted Unangst of OpenBSD gave a nice talk on the design of signify: http://www.openbsd.org/papers/bsdcan-signify.html

The OpenBSD use case is quite limited and doesn't require PKI, so you won't find web of trust, keyservers, or anything like that. It would be awesome to have minimal solutions to those problems as well though. Anyone aware of attempts?
Her district is like a mile away from the proposed Amazon office, she has the bully pulpit of the nation 1000x more than any other congressperson in the area does, she talked a lot about the Amazon plan, and celebrated helping destroy it. I don't think it's unreasonable to bring up her incorrect understanding of how tax credits work.

> "We were subsidizing those jobs. The city was paying for those jobs. So frankly, if we're willing to give away away $3 billion for this deal, we could invest $3 billion in our district ourselves if we want to. We could hire out more teachers, we can fix our subways, we can put a lot of people to work for that money if we wanted to."

https://www.nbcnews.com/video/alexandria-ocasio-cortez-react...
This sounds similar to the state of affairs in Scandinavia. The part about there being little pride in being a soldier rings especially true. Scandinavians have died in military operations in Afghanistan, but you never hear about it. No one wants to hear about it, because we don't see ourselves as warlike nations. Germany probably has that times 100 due to the legacy of the Nazis.
What's good for the field (we've decided) is when we only allow a 5% Type I error rate (95% of published positive results are correct). What's good for the individual is to drive their Type I error rate up just enough so that they can publish as much as possible without getting caught.
For someone on HN, if you spend more than a couple of hours mental energy per card in total, it's not worth it.
An aggregate metric based on comment karma scores would probably be the most useful. That said, you will need other HN users to grant you access to their accounts to be able to get this data.
First of all, shit like this year after year is why I don't use fb or insta.

That said, if somebody went on one of my websites and commented that they were mad at me and planned to show up at my house and do nefarious things, well, yes I certainly would be on the lookout for that person.
Sure, designing quantitative trading strategies. That’s the easiest example I can think of. There’s basically nothing public out there (that actually works).

To a lesser extent, certain types of datasets can’t be found on the internet either. They may exist digitally, but they’ll never be sent across public networks.
Every good coffee shop does this.
> My TV isn't going to be internet connected, even if it's able to.

I admire your sentiment but recognize that on the current path that means at some point in the future this choice will mean "I don't have a TV." What is missed here, and alluded to in other comments, is that the costs for things are being subsidized by selling the digital exhaust they generate. Creating more exhaust means more margin, less (or even zero) exhaust means less margin. Since consumer electronics compete on price, a zero exhaust device will cost more and won't sell as well. So the market won't produce them. Further, the ability to convert a consumer device to one that generates zero exhaust will get targeted, and since there is no way to "win" that race, the final act will be a consumer device that refuses to operate if its ability to spew digital breadcrumbs is disrupted. Just like HP "all in one" printers will refuse to scan a document if they are low on ink. They don't need ink to scan, but the purpose of the printer is to create a recurring revenue stream for high margin ink, so all functions are in service to that purpose. Allowing utility that would mitigate the need to buy ink is unacceptable.
Wouldn't we observe the exact same behavior if the two were in an equilibrium where long term average cost was minimized (and, incidentally, equal to the price) and something caused LTAC to rise?
Pretty sure the opposition is opposed to those as well...
I believe that they have created a double-edged razor blade. DoH can protect people that have malicious ISP's. It also hands over a lot more control to Google. I don't like either of those scenarios.

By control, what I mean is that once DoH usage to G servers hits critical mass, they can decide who can visit what. Not that they would, but they can. People generally do what people can do.
This is probably naive, but I’m imagining something like the US Library of Congress providing these models in the future. E.g., some federally funded program to procure / create enormous data sets / train.
Use the guest WiFi, that's what it's there for.
It's not quite "my idea", it's how hot beverages have been served and drank for centuries before the invention of disposable cups.

Somewhat related fun fact: did you know that the waffle ice cream cone was invented to make the ice cream "to go" before paper cups were widespread?
Did you just assume this robots gender?

/s
If you make code changes, that usually means you need to adjust your data structures, too. That means you need to manage multiple on disk versions, or maybe migrate the old data to the new version.

I mean, you can do all of this stuff another way. But PostgreSQL represents a lot of lessons learned over decades with all kinds of applications.

Sure, there may be some level at which it's just easier to serialize the in-memory data. But that level is lower than most people realize and postgres is pretty darn easy to use given all the kinds of problems it helps you avoid.

Even an MVP of a trivial web app is probably fastest to deliver with postgres, and less risky.

And there are tons of things that are really convenient even for the tiniest app. For instance, being able to go in and browse your data to find out what's causing a minor bug.
If holding the iphone 4 correctly could cure cancer then that metaphor would be correct. I'll take the current downvotes and back it up later when I release my project.
> Built by Toshiba

Well there's your problem!
I think most password managers can handle modals, but it really depends on the site. I use 1Password and I'd say most of them work, but sometimes it doesn't.

The point remains -- the WordPress login page is simple and it just works. Why does everyone need to get so fancy with a login prompt?
I wrote this as a reminder for myself, more than anything.

This is a collection of doable things I've picked up along the way — things that have truly helped me whenever the going got rough.

One caveat here is that, it's best to practice these habits when we're doing great. Even though they work when we're feeling down, it's best not to get there in the first place.

Hope you enjoy it.

Let me know if I missed something.

Here's the tweet if you want to RT https://twitter.com/claritask_app/status/1096500529281290241
> Despite jokes about "better compilers", compilers are getting better

The compiler has to make static decisions. The hardware knows what is actually happening. There is an inherent information asymmetry at work that a "sufficiently smart" compiler seems unlikely to overcome.

My intuition says software can't beat the speed of a superscalar OOO CPU anymore than a GP CPU can beat a roughly equivalent DSP for algorithms suitable to run on the DSP, but I have no proof for that.

I'll also note that we've been promised "smarter compilers" for decades. Intel has tried that route several times. No one has ever made it work.
Can someone add (2016) as the publish date?

Edit: I don't know why but the first time I clicked the link, it went to a 2016 published piece. Please ignore!
> one-time-use combinations of three English words

I really don't think that this is secure.

> nacl/box and nacl/secretbox

Both of which use XSalsa20 - which while not broken there should be no reason to use it rather than (X)Chacha20.
Ask HN: What are some underrated fields/topics in computer science?
I know stuff like ML, Cloud, and Blockchain have a lot of hype right now but what are some lesser known but interesting topics or fields (old or new) in CS?
Cities and urban areas tend to lean democratic and also tend to have the least amount of 'cultural homogeneity' due to population Dynamics and how immigrants tend to move towards city areas.

That phrase is a slightly nicer way of explaining the racism and xenophobia that grips the rural areas, to the point of fearing that immigrants are taking away a culture that never really existed in the first place.
> They can't easily go anywhere else

Clearly they can, if they this quickly pulled out of NY after the reception they received.
I want a peer to peer communication not beholden to a particular provider where I can optionally host myself where I can communicate to most people in the US. It would be optimal if I could communicate with people privately but being able to communicate with them at all is the primary point.

What should I use instead of email.
I actually totally agree with you. It's insanity. I never made the "jump" to LastPass/BitWarden/etc. because it always left a bad taste in my mouth to have one password that would crack my entire online presence.
threaded messaging, man. threaded messaging. ffs.
> how is what you're doing any different technically than the DNS hijacking the Comcast et. al. have been caught doing?

Because he's doing it on his network with his devices that he paid for.

He's not meddling with the traffic of paying customers.
> Today, Americans have grown more cautious; when it comes to old buildings, we now have laws at our disposal that allow us to designate and preserve what we value. Yet the enactment of such laws, at such a late stage, illustrates how the Singer’s fate coincided with another milestone: an end to the idea that American industry might be trusted to build permanent things

Ironically if preservation laws were there in 1908 then the Singer building would likely never have been built because it would mean demolishing some old two-story building in the "historic downtown financial district".
There are probably weight limits to directly bearing arms, I doubt most people could bear more than 60lbs for an extended period of time. Fortunately, we can work around that limit by making the armed autonomous robot also an exoskeleton that lets people bear the weight of the arm.
Nah. We weren't using that many servers. Today, that absolutely would make a difference. Back in the day we could run a top ten web site on well under 500 servers, and it's not like we were paying list price for Alphas anyhow.
Holy shit, that was intense. Only read this if you feel emotionally stable and resilient. But it was worth the read.
My fault!

Filecoin is great!

We are also building a blockchain that is based around Verifiable Delay Functions and has been open source from day one.

VDFs can be used to track time in a permissionless network in a way that works before consensus. Which opens up a wealth of distributed systems optimizations that involve a synchronized clock. If that sound interesting, check out https://github.com/solana-labs/solana
If I have a $1 off a big mac coupon, I need to pay McDonalds $5 for what would normally be a $6 big mac.

If McDonalds gives me $1, I don't need to buy a big mac and can go spend it at some other store.
I just want to point out that it's really annoying that the "Available language tracks" on the front page are completely random and change on reloads. It's already hard enough to figure out where the language I'm curious about is, even worse when it changes after I click a new page.

Also, clicking "explore languages" at the bottom of the blog does nothing.
I can see how that could be a problem with modal logins, but it doesn't have to be a show-stopper: when the modal opens, the site could history.pushState() to a URL that would, when navigated to directly later, serve the page with the modal already open.

Not that I know off-hand of any sites that actually do that, but the possibility exists.
Darpa wants to solve science's reproducibility crisis with AI
Ask HN: How do you test and structure research code?
Hey,

are there any books/websites which focus on testing and structuring of research code? I feel code that is written for research purposes has to be approached differently, than let's say a web application.

In company where I work, research code at some point actually becomes our production code and I'm kind of scared that there is no Q/A process established. I mean multiple people check it along the way, but given nobody knows exactly what the output looks like, I'd say chances are that there is a lot of bugs hidden in our codebase.

How would you generally test such code?
In the same way as other web/desktop applications?
I feel like approaches which normally work in dev (i.e. TDD) fall short when we're talking about research, where you do not know what the end state is. But at the same time, having no tests is also foolish and short-sighted.
Although it's very much anecdotical, I, too, distinctly remember that Google defaulted to AND (unlike today, a very hard AND at the time), and that this made a noticeable difference in searching habits.

My theory on why this might matter even for people who knew how to use the operators is this: With OR as default, you would first try your query without operators, get page upon page of irrelevant results, and then start to narrow your query down. With AND as the default, you would type in the query, and if you only got a few irrelevant results, or often no results at all, you would try alternative terms instead.

It seems that progressing from no result to desired results by choosing alternative terms just makes more sense than having to wade through irrelevant stuff, and the default encourages one methodology over the other.

Today, it's very hard to make Google return no results at all. Not just because the amount of content grew to an unimaginable scale in the meantime, but also because Google has become way, way fuzzier in the way it interprets search terms, likely to better suit a larger and different audience. A lot of times today, I have to switch to "verbatim" mode first, at least for technical stuff.
But lots of buildings find new owners, new uses. Was the building that specialised for sewing-machines? It seems a crying shame to have lost so many of the highlights of an era.
I assume you mean sending a query over the network, as most webapps do; sending it to a local sqlite file should be far less impactful.
if you ruin your only competitor, the antitrust folks will come after you
True, but after the period I'm thinking of. By 2001 when the layoffs started hitting hard, Google already had a massive advantage.