skysight-inc/HackerNews huggingface dataset:
I'm not sure I agree here. There's not too much value in testing these two or three lines of code in the get-article handler. And the passing around of compositions of higher order functions can get confusing. There are cases where an approach like this is warranted but I would say that there needs to be a significant level of complexity before this makes sense.

Having a protocol for your data layer and an in memory implementation of that for testing can make sense, especially when your real data store is expensive to bring up, but I would try to minimize the number of seams like this in my system. Each one introduces cognitive overhead due to indirection, so you should use them judiciously.
we get it, you have a lot of karma. well done. you have an equal score on the pompous-o-meter.
PHP doesn't do such structural typing, but Psalm[1] can do it statically. It calls them object-like arrays.[2]

[1]: https://psalm.dev/
[2]: https://psalm.dev/docs/annotating_code/type_syntax/array_typ...
A possible corollary to 2: Don't forget to document incidents as you go. You'll learn a lot in these situations and you may find resources that are handy / work for you along the way.

Keep a text file, or OneNote or whatever, open while working an incident. Don't overthink it, don't over-complicate it.
The invisible keyboard of the market... guided by millions of dollars from Microsoft, I assume.

> rather than an absolute fact that every type system must not have any holes and those that do are worthless.

Also, don't straw man me, please.
Well that's a load of bull that you just wrote.

Qualcomm uses the exact same process that Apple uses for the 888 and TSMC produces it, yet it's inferior in every way to the A14
First of all, you probably know a lot more than me about the company, so take this with a pinch of salt.

You said that you are not sure what we are discussing. We may be discussing different things. I'll try to be specific about what I am trying to say.

The assertions that I read into your post which I was replying to were:

1. Walmart is making a 3% profit and

2. Amazon has not taken investor money since 1996, so everything since then must have come from the consumer

In response:

1. I showed that Walmart has bought back half of its shares during that time, so it must have been making a much larger profit than was return in dividends.

2. I showed that Amazon has taken billions in investor money since 1996, and given that it has not been returning significant dividends or accumulating cash, it is true to say that Amazons business since 1996 has been dependent on constant investment.

A post up thread by Roixi questioned whether, in the long term, a business model that depended on continuing incoming investor capital could be flipped to a conventional profit making company - they claimed uber had failed to flip. I was noting that Amazon could not be cited as evidence of a flip that work yet, because the baby milk of [ a huge and constant supply of investor money] was still flowing. It may be that this business model will work, but amazon doesn't prove it... yet
You can force a type check that it's a specific type of object or interface rather than an array. But, no, you can't do what you're asking for directly.
Good. More supply for Apple at TSMC and more customers for Samsung to drive down per unit costs and make bigger investments to compete in the chip space. This move really only helps the semiconductor manufacturing market and makes it more likely that Apple will be able to make all the hardware their fans like me buy up so ravenously.
This exactly sums up my position on housing. I bought 3 years ago in a major metro at exactly the cost of my rent. Somehow prices and rents have continued rising at 8% per year, if the market crashed 50% I’d be under water - otherwise I’m still up. Regardless I’ll have a house 27 years from now.

Now the real crux of it is that I do not have unlimited cash flow to pay peak rent. The previous rental I moved out of has somehow gone up by 85%, a number which would push me into savings or have me calling my boss for a raise.

Shorting housing by renting risks you burning savings or moving to stay out of the bubble. Buying when the market is high is a hedge against the market going higher.
domain squatting and profiteering... utterly disgusting https://jacquesmattheij.com/domains-for-sale/
This borders on a sociopathic lack of empathy.
Even worse, I've seen a lot of people that where convinced the derivative of f(x)=e^7 is e^7
My wife and I have three children and we don’t allow any cameras in the house. We believe some level of privacy is needed for normal human development and a healthy overall sense of well being.
A Gov.uk Site Dedicated to Porn? Absolutely. Best of British Porn? Not Quite
Having Apple as it's unique or main customer was a disaster for Imagination Technologies.
"Bored" is the absolute last thing on anyone's minds during an exam!

I always hated when my instructors put "important" results that we have never seen before on an exam. It was like adding insult to injury if I didn't know how to solve it.

It was different on homework assignments, because usually that you had time to work through the problem in detail and have the "aha" moment, without stress and time pressure.
> It's an economic model that is certainly not for everybody,

Not calling you out directly OP (in fact, I quite like your project), but the subscription model is pretty badly thought out most of the time IMO. Especially in a commercial setting. You really should not have to pay a company a monthly fee to operate cameras you bought, on your property. These trojan horse subscriptions are then normally paired with other anti-people abuses, e.g. not allowing the user to use basic functionalities without the subscription.

> My site will still be online.

Just curious: what would happen if your website went offline? If your application is phoning home to verify a license, and the website comes back with an unexpected / no response (maybe you let the hosting run out), would the software still be usable? I think there should be more provisions against this sort of thing in subscription-payed applications.
It is a bit of a philosophical question: If the problem is our need for new toys, and stone-age style "bare necessities" living would perpetuate mankind indefinitely (or at least not cause extinction based on actions caused by mankind), would you want to live that kind of lifestyle and doom all future generations to that?
I don't like services that send you a login link to your email, because if you can't access your email (for whatever reason), you can't login.

I should be able to use a diceware passphrase instead of a login requiring I use a combination of uppercase, special symbols, etc. Passphrases are harder to crack if the database got breached (providing the passwords are hashed and not stored in plaintext).

Also: TOTP is nice, but provide an option for U2F/Hardware 2FA and always provide a recovery code incase your user loses their Yubikey/Hardware token.
Incredible.

In fact, thinking about it - we have a signing toy for our kid, it has several songs in English, Polish and Chinese. The songs in Chinese definitely sound nice, they have a good rhythm to them, but they could be about literally anything. The Polish songs are good though(I speak Polish).
I mean, are you intending to carry a ton of stuff on the bus? If cargo is that big a deal you can also look for a cargo bike. And buses aren't exactly known for being super duper speedy, when I ride my normal bike around Tokyo I'm generally faster from point A to B than actual personal cars (to be fair its super dense and slow here for cars). Agreed that it does suck in the rain though, and maybe people drive faster out where you live (I personally prefer biking on the road here in Tokyo, way more hazardous weaving through people on the sidewalks).
The lack of polarization makes it safer to use Schuko with a NEMA 6-15 plug, which has hot-hot-ground instead of hot-neutral-ground.

If the receptacle had a well defined neutral, then devices might expect it to be neutral.
How to Generate Questions from Text Automatically with Transformers and Haystack
As opposed to random posters on the Internet?
I have found over the years it is just simply easier to put down vegan's and vegetarians quickly. Just now I finished my breakfast, it had zero carbs, zero vegetables, zero plants, and consisted of meat from 2 animals.

I am not interested in the ecological benefits of "whole food plant based diet" nor are most people, the idea that people will simply adopt that diet if they learn of the "ecological benefits" is frankly absurd IMO.
Oh man I used to drool this stuff when I was young. Just looked at ebay, seems like they're still going for a lot of money (400+)
Show HN: SaaS for Better Job Interviews
I haven't read much about Cloud Firestore before. My experience with NoSQL is limited to older (Lotus Notes/Domino). How does this compare to something like MongoDB.
> there is one true noation (or rather, a separate one for each language) that is unambiguous and clearly defined.

This is such a disingenuous take. How many of the source code files you write are 100% self contained and well defined? I'd bet not a single one of them are. You reference libraries, you depend on specific compiler/runtime/OS versions, you reference other files etc. If you take a look at any of these scientific papers you call "badly defined", did you really go through all of the referenced papers and look if they defined the things you didn't get? If not then you can't be sure that the paper uses undefined notation. If you argue that it is too much work to go through that many references, well that is what you would have to do to understand one of your program files.
Or neutral and boring looking, or you would just attract another sub-set of kids playing with the angry plugs.
A new way to make quadratic equations easy (2019)
??

I feel quite the opposite. Game theory helps understand why people act, & it let's you reverse engineer what they really value, as opposed to what they claim to value

It's like saying physics has been conquered because airplanes should fall out of the sky. No, your existing notion was flawed, but reality didn't change

People don't act towards incentives because of game theory, it's that game theory models their incentives. If you're acting differently, it means you've built a different incentive system

This is important because it means game theory can be used to construct incentives to guide corporate behavior (ie we can avoid tragedy of the commons by forcing externalities to be accounted for, rather than left for the people), but pleas that corporations will act for the incentive of moral goodness is only a method to fool public debate into letting the tragedy go on. Because it's in the corporate interest to not pay for their externalities

Maybe we're getting at the same thing, & I'm just picking up too much of a "shed thy mathematical yolk" vibe
Ahh. One that does: https://www.ksat.com/news/national/2020/08/07/trolls-doll-pu...

And it's definitely curious placement for a button that makes the doll giggle and gasp.
https://www.youtube.com/watch?v=QaI3tGLStVQ

Here's the reverse video where the iPhone beats the S21 ...
As a whole, subscription-based models are pretty bad for society. Companies have figured out subscriptions are so much better because A) they're not paid all at once, making the device attractive, and B) you can constantly drip dry money out of the customer's bank account. It's a great business model for businesses, though.
> This is my 3rd post on HN just trying the waters.

Don't.
I agree, it'd be nice if the built in was more standardized and had more features.

However you do have options to choose from with php these days. Really well maintained libraries exist for basically everything you could want, often they are fast, well tested and modular. And it's nice because you can even choose the style you prefer with this.

Grab the symphony string lib for instance: https://symfony.com/doc/current/components/string.html
I wonder about exactly this though. What if some counterfeit device/toy is so toxic/dangerous as to kill someone?

Who’s liable? I’m sure the store’s lawyers have pretty strong opinions but how would a jury view that if the brand of the store is plastered all over the checkout page?

(Has this ever happened/been tested in court?)
Organizations that will be shut down the next time the opposing political party comes into power? Don't make me laugh.
> Not true. I've made i8n features like that in the past for companies where they thought it would be nice and did not put any research, before or after launch, into whether there was any benefit whatsoever.

That makes sense in a way. Managers tend to implement features nonsensically, as Hacker News constantly reminds me :-)

What would be the best compromise in your opinion, then: doing this magic automatically and giving the user an option, asking them up-front, etc. ...?
70-Page Paper from Yoshua Bengio Team: GFlowNet Foundations
The story is complex. There aren't really no "gimme evidence" answers to these kinds of issues. A lot of people over centuries in many countries give you a lot if stories.

One major factor was population growth. This was due to the coming of American crops (corn, potatoes, etc) and the green revolution (fertilizers, machinery, etc.).

Another major factor (say in Ireland, where I'm from) was a change in the social-political system. There was a shift from old the old lordship order to a more modern landlord order. Relationships (rights, obligations) between lords/landlords and the landed an unlanded peasantry... Today we might call it rural unemployment and/or a small farm debt crisis. The latter half of this change is known in Ireland as "the land wars."

There were also "pull" factors. These are more complicated, because they do involve choice. Cities offered a lot of hope. You might do very well in a city. Many did poorly though, and food/sanitation was often worse. A lot of the migration was (for example) adolescents sent to work as domestic servants... so thinking in terms of "homo economicus" is best tempered with some visualisations... say Oliver Twist.

Similar things happen today in developing economies. Rural unemployment and stagnation. Cities that offer shiny opportunities in a game with few winners and many losers. Hence urban slums, 80 hr workweeks, etc.

Working conditions in factories was also a 200+ year process. Unions played a big role. Politics played a big role. Revolutions and fear of revolutions played a big role. In Ireland, Soviet and pre-soviet revolutions were the threat that catalyzed land and labour reforma immediately before independence from the UK and after it. The Irish independence war was contemporary to the Russian Revolution, so the politics were naturally intertwined.

For the most part, material conditions for the poor were a lot worse in the cities for most of the industrial era(s). Education was better and people became more worldly in cities. Rural peasantry tends to be culturally stagnant by default. Marx, in his day, saw this migration as the preceding factor to revolution. He was snobbishly dismissive of peasants' ability to evolve culturally, so revolution had to wait until a generation or two was seasoned by city life.
Interesting - very good to know about the Tezos scene.

As for fxhash, I don’t see that being much more than a ‘because we can’. Nothing on there strikes me as worth money, since there is an infinite supply of art like that and there is no distinguishing character to it. The point of a Non-Fungible token goes away if the art itself is fungible.
Sonobus is incredible, it also ships with VST plugins for routing audio tracks from a DAW into a room.
> That's no different than not taxing land value

Well, no, its very different than having no LVT, and in a way which encourages, rather than discourages, wealth concentration; given the context in which it was suggested (specifically, in response to options for reducing wealth concentration being sought), that's a pretty salient difference.

> The government is still free to ban or tax certain uses they don't like.

A tax that makes certain uses generally economically impractical, as a heavy LVT would be, is effectively identical to a ban on those uses.
Batteries included with Emacs (2020)
Also amazing
I'm writing PHP8 with the Symfony 5.3 framework at present too, and I'm also liking it. Provides what I need to build with and otherwise stays out the way.

The improvements over the lifespan of PHP7, and the new things in PHP8 make PHP such a nicer language to work with.
But seems to want us to replace the old reliable shell with it (Or this is what I understand). I see a lot of people reinventing the wheel in Linux and trying to appeal the new users. What you have in the end is normally worse than the standard ones. Is just dissecting Linux in a lot of smaller particles and smaller rooms.

So thanks, but not thanks. Not to me.

Wouldn't be much more practical to use all of those talent and ideas to help to improve the extant bash shell instead?
Understanding Python QT5 Signals and Slots In-Depth
Show HN: Diary.by – minimalist, ad and tracking-free blogging platform
Maybe not the right thread for this, but it seems there are downsides.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6363527/

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7014832/
I'd like to think I wouldn't, were I in that lucky position. Genuinely-made art, perhaps I might have some time and cash for, but expensive wrist baubles that exist solely for the purpose of extracting money from rich people to salve their ego? No.

I'd hope I'd consider it for barely a half second then elect instead to give that money to charity instead.

I'm regularly in this mind, walking as I do around London and seeing the sheer array of useless crap that monied people spend money on to advertise the fact they have money. Instead, I wonder at how many people's lives could have been eased if instead of that expensive car, they'd bought a car actually suited to this city.

.

As an aside to this, I spent a week working at the house of a Rothschild a few years back. His admittedly fancy pad was utterly laden with artworks. His car, on the other hand, was a crappy small Japanese thing and he dressed about as scrappily as I do. I had a lot of respect for that chap.
Study suggests human brains navigate by taking the pointiest path
Cities are great for preserving nature because the alternative is suburban sprawl. However, we definitely need greener cities and better car-free access to nature. Good train links with local buses are a proven solution.
This is HN, the audience should know that VC's have a very strong preference for a large number of small customers over a small number of large customers, and why.

Obviously TSMC doesn't care about VC's, but the same reason why VC's prefer a large number of small customers still applies.
It is! I'm about halfway through it. $4 is a bargain. Just get it.

A link for anyone who cares: https://hlabrande.itch.io/tristam-island
> The App Store is a de-facto monopoly, it may not fit the legal definition of a monopoly but it practice it is (or what other App Stores can end-users install on iOS?). I'm not making a legal argument.

Ford has a monopoly on Ford-branded floor mats! I mean you could choose other floor mats, but if you want Ford-branded ones they got a monopoly. A large audience is not a monopoly. I may not like Android phones, but they are sufficiently good, have almost all the same apps, and plenty of people have them.
I'm thankful for existence itself. Sure, it's not always pleasant, but the mere fact that we perceive reality as we do is a fascinating rabbit hole, one that I wish I had discovered decades ago. The subjective experience of existence is one of the big unknowns left in this world, one that I don't think we'll ever truly understand. That's good though, because human curiosity is one of the wonderful, amazing things we have the capability to do (if other Earth-native, non-human sentient beings have similar curiosities, they don't have nearly the ability to explore them, that we know).

I hope everyone who reads this is having a good day today. May you all have fortune and blessing in your lives.
Not Op, but had a similar realization (i.e. there are days where I'm awkward & don't connect ever though I spend conscious effort; and days where I'm a social butterfly without trying at all; therefore, conscious effort is at best uncorrelated). I do is what I'd describe as "taking care of myself", which means in part adapting good habits such as doing sports, sleeping enough, eating good, but also to be kind to myself: let me be lazy sometimes, do what I set out to do, and treat myself with positive experiences that have no deeper meaning (paradoxically, they do make a difference long term). You become more relaxed and happy with yourself, and you're more content, allowing you to "give" more in relationships without the other person having to do anything, which is greatly appreciated generally, and readily returned. The most important factor of all though is mindfulness meditation, everything else follows from it in my experience.
I think they bought what they needed, but that was enough to block others from getting produced.
ICANN On Blockchain and Handshake
Diary.by is a place for humans to share things with their friends, colleagues or even the world. Be it your blog, a journal, a diary or even your recipe book - anything is welcome, and it is up to you whether you want to share what you wrote with anyone.
Diary.by does not have any kind of social features, ads or tracking or otherwise useless features. It's purely a place for you to write, in peace, without any kind of noise.

Diary.by constantly evolves based on your feedback, and since it's Thanksgiving I want to gift the first 5 people a PLUS account that includes CSS and image upload :)

Roadmap: https://trello.com/b/MjVPant1/roadmap

Twitter: https://twitter.com/diaryby_
Perhaps, though the underscore syntax works in Perl, Ruby, Java, etc.

And the context here is how to explain it, not whether it should exist and/or be used.
> However, we definitely need greener cities and better car-free access to nature.

Access to nature and preserving nature are opposed goals. Access to nature is destruction facilitating further destruction.
New German government calls for European ban on biometric mass surveillance
Yup, you all on the whole teach me a ton and keep me honest. You call me out on my shit and also submit really cool things. Here's to more.
Had one, was great! For me, it wasn't quite as amazing since I had SMP at work (university research lab).

Is the hacker ethos (in the "repurposing" sense) pretty much dormant?
So Reliance is providing a valuable service or product? I am failing to see the problem. If the concern is Reliance is the only one, then they might need to be broken up into multiple logistics operations.

But overall, increased in efficiency and communications should result in fewer and fewer middlemen.
“Those who cannot remember the past are condemned to repeat it.”

I find it funny to talk to much younger developers, they get excited about some "new" technology and are surprised I do not feel the same. Probably they think I am old and grumpy and can't see the value in it.

The truth is that a lot of it is just same verbatim or rehashed concepts that have already been known under a lot of guises for a long time. Sometimes discarded by new generation only to be re-discovered after couple of years when their software starts to suck for no obvious reason.

I suggest that any person trying to do hardcore performance optimization today should invest some time learning tricks of developers that wrote software in 80s. There is wealth of useful knowledge hiding in plain sight.
are there HN comments with emoji from before the filter? or was it applied retroactively?