skysight-inc/HackerNews huggingface dataset:
Show HN: Hstream – quick Python web apps – Streamlit alternative using htmx
I love Streamlit but have run into many situation where taking it from PoC to MVP state is insurmountable.

With all the recent HN hype around htmx and sematic html / classless css I decided to build a Streamlit alternative using these on top of FastAPI.

This has a couple advantages:
1) easier to extend when you move past PoC since the FastAPI app is exposed (allowing adding more routes) and hstream acts more like a typical web stack
2) with htmx and html (plus MVP.css) doing the heavy lifting the package is alot less complex and easier to reason about - and hopefully more performant eventually
3) html is simple, so using this we can give the user much more control around the look and feel, while falling back onto MVP.css (classless css) sane defaults.

Would love to hear people's thoughts.
According to the article, it's the cultural expectation that the bride's family pays for the wedding etc.
They're not romantic choices, the polygamy follows power distribution. The actual problem isn't that it's legal to have multiple wives, it's that resources are distributed so badly, that you end up with lots of poor men not having a stake in society. They're expected to work so that the rich and their wives can live leisurely, but it's all stick and no carrot. If the stick every breaks, you get lots of violence.
That's really not what happens. Most nurses doing clinical work aren't experts on the CPT and ICD-10 codes used in billing. Medical coders attend specialized courses to learn the detailed coding rules, and then pass a certification test. They get paid much less than an RN.

Some nurses do go to work for payers, mainly doing case reviews and utilization management. This is absolutely necessary to prevent waste, fraud, and abuse. Even in socialized medical systems they have people doing similar oversight work.
> if a reader screenshots my words -- name attached -- and brings that elsewhere

The author wasn't just objecting to screenshotting though, but to linking ("some people had cross-posted my Mastodon post into Twitter"). Which seems basically the same as boosting, which is (I think?) normal no-consent-needed Mastodon behavior?

(I wrote more as a post: https://www.jefftk.com/p/mastodon-linking-norms)
That honestly all sounds like mumbo jumbo.
The people being convinced in this scenario are VCs, not customers, and the point is that VCs want to hear how your tech stack is going to morph into the second coming of crypto so they can get a huge exit. It has nothing to do with actually getting customers.
Things might be better now, but the previous false advertisement makes it really hard to tell. For example, vlang.io claims no undefined behaviour¹, but with

struct Foo {
bar int
}
println(&Foo(voidptr(some_address_here)))

it seems to read whatever memory is at that address (which is UB in C, and V compiles to C, so...).

¹it says some overflowing can still result in UB, but that's not what's happening here; also this warning was only added in July.
New pterosaur species identified in sub-Saharan Africa
Smartphones fit in less invasively to physical life though. And actually have an intuitive tactile element.
In the first place this is an error of RTFM kind. The "problem" behaviour is literally documented in the docs. However, in the second place, this is the wrong solution for the original problem. (The author links to https://andrewlock.net/why-is-string-gethashcode-different-e... )

The original problem is using linked lists to handle hash collisions. Assuming this is what you want (to keep all values rather than discarding old values, like e.g. Python's dict objects do) obviously you should use a data structure that can handle the case of lots of collisions well, or check your user input.

At the very least the function should have a name that reflects its behaviour, eh? "GetUnguessableHashCode()" or something?

This reminds me of the recent fiasco over in Python land where somebody noticed that int() called on large strings can block the interpreter. The obvious solution is to add an optional timeout parameter (the problem is in the time domain after all.) Instead they added a limit to the size of strings you can pass to int()!
Also, depending on your country and culture, filing for bankruptcy is an act that requires a lot of effort and (and that's maybe worse) may lead to stigmatization.
On transcontinental flights 5-6x sounds about right. My last flights between Europe and North America or Asia were typically like

- Economy $500

- Premium eco $1500

- Business $3000

- First $6000

And the gap can be wider on high-end airlines (15-20k for a first class ticket).
It's true - I'm used to having to pay more for the same and for putting up with a certain level of expected discomfort. I just find with flying there's not a good alternative option. I can shop around for a car that fits me in the right price range, I straight up just don't have a choice with flying.
In Facebooks case their owner is worth so much, he could give every layed of worker a million USD and it would only cost him a fraction of what he’s net worth. I don’t know your scenario but the recession was for sure a special time. Now companies are seeing record profits and are blundering it in stupid endeavors like the Metaverse, so I don’t think your case applies at all. But in any case, other countries—outside of a global recession—have laws against mass layoffs, companies usually declare bankruptcy if they are at this point, and their respective governments starts a salary insurance program where they pay the workers that lost their jobs for a set amount of time. If the bankruptcy is bad, and the leaders manage to take some money from it, they will go to court for the damages the bankruptcy causes.
If you're early in the program, I assure you it will get better.
> “Even today, marriages in India are largely arranged by families, even though young men and women do increasingly have veto power, and follow rigid customs about marrying within one’s own language, group, religion and caste,” Basu said.

> Marriage is also nearly universal in India, Basu said; in NFHS data from 2015-16, only 1% of women aged 35-39 and 2% of men aged 40-44 had never been married. Furthermore, women are expected to marry men of higher socioeconomic status – or in a pinch, equal.

Look at the rest of the world. This is an aberration.

It's painfully obvious that there are men in India who do not want to get married who are getting married anyway.

How could it possibly be a surprise to see fewer men getting married? That's the most obvious prediction I can think to make!
If you buy from Whole Foods and have Amazon Prime, your receipts are in your order history forever. It's actually been informative, because amidst all of the breathlessness from the past two years, every time I have bothered to check, most of the prices I'm paying haven't gone up at all or have gone up a tiny bit. I buy almost all raw ingredients and cook from scratch, which maybe just works differently than processed goods sold by Coca Cola and what not, or Whole Foods was just so overpriced to begin with that they didn't bother raising.

My grocery bills overall have definitely gone up, but that's because I stopped eating out and buy a lot more groceries.
Every other Indian was stunted as a child due to lack of a healthy childhood diet. This results in permanent physical and mental underdevelopment and hence it might appear Indians are weak. Indians who do get enough nutrition are doing good the world over though.
I think you’re right. The younger you are, the more open minded you are to new things and concepts; instead of hanging onto the safety of the familiar and comfortable. The older generations tend to play it safer and boring in nearly every aspect of their lives
You are correct the anti-inflation act is hot garbage, and accelerated inflation immediately.

You are incorrect about the exact specifics about the Direct Student Loan program refunds - anyone who had made payments during the pandemic can be refunded.

You are still generally correct though - inflation is caused by several things, M1 and M2 money supply, employment, demand, supply, and sentiment.

Everyone not paying their loans decreased demand for jobs, as that was the primary motivator for many to work. Additionally, the money printed and disbursed to colleges not being paid back leads to another increase in money supply, since the money never gets repaid, and a few select loan companies are now holding very large U-O-ME's, which the department of education seemingly is going to average between all of us, by forgiving it, further adding to the printed money pile.
I imagine happiness in the open space
The first order reason for inflation is, of course, a willingness to spend more. Prices flat out can't rise if buyers balk at a seller's higher expectations. Plain and simple.

But it is well understood that said willingness changes on what buyers believe[1]. If they believe that lockdown stimulus is causing inflation, it will cause inflation. The mere existence of lockdown stimulus won't cause inflation, but the emotional response to it very well could.

And given that this appears to be a widely held belief, something even some government officials trumpet as the cause of inflation, it seems unlikely that it isn't a significant contributing factor. How is this dispelled?

[1] https://www.brookings.edu/blog/up-front/2020/11/30/what-are-...
Being in an SUV won't save you from that either.
The curious but unsurprising[1] bit is that the typography, too, was replaced with a mundane and unrecognizable typeface.

[1] https://velvetshark.com/articles/why-do-brands-change-their-...

Discussion: https://news.ycombinator.com/item?id=32040506
I agree, these aren't anything special and we should treat them like other big companies. The challenge is that the product can be a bit novel, and when the laws try to catch up to that novelty, it's perceived as being "against" tech. When in actuality it's just trying to adapt the rules we have to a changing world.

(I'd disagree that companies should maximize profit, but that's just a bit of an unrelated ideological difference.)
"the rate of increase of inflation is decreasing"
They aren't hard to find: https://en.wikipedia.org/wiki/Height_discrimination
Doesn't work on any recent macOS version, which is part of the problem.
Thanks for taking the time to answer, it means a lot to me.
Yeah, big picture design trends aside, the new Met logo is substantially more beautiful than the previous one. The old one is frankly clipart-y.
Which is partly what we’re seeing. CPI rose 0.4% MoM in October, or 4.8% seasonally adjusted. That’s above target, but better than YoY.
The slope of price v time would be going down if they'd posted 6.9% yoy.

The discussion is around how the numbers should be interpreted. There isn't confusion around what they have literally reported.
There's probably an economic opportunity for a tech company which only hires true 10x-ers, and pays them $500k-$1m.
Should be doable for parameters but at that point, you don't need compression rather just LLM.Int8 tricks would be sufficient. For activations, I wrote about it a while back: https://liuliu.me/eyes/reduce-another-70-memory-usage-for-de...

It is not as useful for this case (inference) because the activations holds long (UNet holds downsampling passes' activations and use that for upsampling) is not that much of a memory (in the range of a few megabytes). If it is for training, it is probably more useful.
HPTS Comes Full Circle
When the person in front of me wants to recline, I have to take my shoes off to make room for my knees. Perfectly fine on a long haul flight, but a 2 hour flight in the middle of the day?

Fortunately Frontier airlines seats don’t recline. I hope more US airlines go this way.
It's funny you're talking about the spread of American/Western ideas specifically when talking about Japan; from my perspective Japan (along with South Korea & Taiwan) has been very successful at actually spreading its own culture through the West. 20 years ago the concept of sushi and boba tea shops on every street corner would have been foreign, but now we live in a period where even mainstream Netflix has a dedicated anime section.
I don't think many phone OEMs will actually take the effort to muck around in the lock screen mechanisms.
Don't be surprised when politicians use this to their advantage next year.
If you are a dev, than you probably miss the extend of in which branding can have an effect. Sure, from some practical viewpoint nothing changes. But consider a logo part of a language, a culture, a visual statement. In design, it’s what we do

In this case Oxford Press changed an iconic statement with a stupid generic say-nothing that could be a tire or a bagel company.

Think of it like a banner of an army. You don’t want stand behind a banner that says “I am with stupid”

It’s hard to convey to non design folk, but design does have an impact, even if it doesn’t bring world peace, it’s culturally significant.
Asian here. Camera off most of the time. 1-on-1s we usually have it on, as well as presentations and dark (non-negotiable) news.

We've been mostly remote so I think at this point, it's normal to not see each other. Some might be ugly, obese, or cats, and at this point it's discrimination to force it on.
We just use whatsapp / dropbox / adobe bridge / icloud. Pretty transient, but in a way that's fine. My father is a photographer and makes a lot books, so we have tangible artefacts.
The amount of blind faith in this industry is insane. Normal Finance already has dubious grey areas like dark pool trading, but the amount of blind faith put into crypto, especially with companies led by people like Sam, is misplaced. Nobody has yet to explain what makes crypto a viable alternative to other forms of contract. Certainly, use cases do exist, but none of them seem better than what we already have in place. Nobody has turned this technology into something profitable outside of speculating on coins themselves.
I would really want to make sure people who openly lie about the capabilities of this technology end up in prison, these exchanges only exist to launder extremely large amounts of money. The fact that they presented themselves as a regulation-free alternative to other markets should be a signal to the SEC or FTC that these companies are trying to present themselves as legitimate exchanges, when they are far from that.
If you're into this stuff, you might enjoy my "Twitter as a CDN tool", here's pong in a single Tweet: https://twitter.com/rafalpast/status/1316836397903474688

> Easy for the client, easy for the server, easy to share, only downside that I see is that it makes things a bit obtuse for users

There are more downsides:

- processing and creating payload can be harder are you're passing plaintext w. ca. 30% size increase on average

- base64-encoded assets (e.g. SVGs) would cause a huge performance drop in WebKit (this probably has improved since the last time I ran benchmarks).

- since you're encoding content and not its location, you can't easily update the underlying resource (hence to update my version of Pong, I'd need to create a new unique URL). IIRC IPFS suffers (used to?) from a similar issue

- not an issue now, but still was 1-2 years ago: some browsers would allow only for 2 or 4kb of text in URL
just `title`, `text` and `url` (which will open the specified `url` on notification click)
https://www.reuters.com/markets/us/goldman-ceo-says-reasonab...
https://www.worldbank.org/en/news/press-release/2022/09/15/r...
https://abc11.com/recession-prediction-2023-imf-world-econom...
https://www.cnbc.com/2022/11/03/bank-of-england-uk-faces-lon...
> This is the problem with python's conflation of iterable and iterator

It really is not. It’s just a natural outcome of imperative langages. If operations can have side-effects, then combinator behaviour will affect those side-effects.

You could do the same with iterables with side-effecting iterations.

It’s also perfectly logical to be able to iterate an iterator.
If their latest attestation is to be believed, they have $52B in cash+equivs including $28B in treasury bills

So it will need a big big run until they start hitting their dodgy reserves in metals and loans

That's of course unless the attestation is BS or defrauded which is entirely possible
FTX tapped into customer accounts to fund risky bets, setting up its downfall
Yes. The first one is more like a user complaint than an actual reproducible bug report.
I'm also 6'6" and that's a realization I came to years ago. Pre-pandemic it was 'pay for first class', post-pandemic it's been 'never fly'. (And if I'm lucky I'll never have to get on an airplane ever again)
Still lacking hue but, change, I'll take it.
If it is suspicion/cynicism with senior public sector managers and private vendors, I fully understand :)
The whole "expected" thing is sketchy for me. I probably know nothing but why is 7.9% expected, not say 7.5% expected? I think a lot of manipulation of those expectations can be done for "friends in IB".
> some random person decided to start indexing every post on the mastodon network. The backlash to this was incredible. A lot of servers blocked this instance, and the guy got banned within hours of announcing his indexer

The next person will do this without announcing it, in a way that just looks like a server full of lurkers. When you have a protocol that's all about broadcasting things to anyone who asks to be notified, it's very hard to enforce "no indexing".

I also see Mastodon posts showing up in search results, so it looks to me like indexing is already happening: https://www.google.com/search?q=%22How+I+write+chord+charts%...
Tether doesn't honor redemptions and never has so your theory is wrong.
You're correct, that's why.
I think there's good reason to be optimistic about diversity at that scale. The environment shapes the direction your easiest path takes. Available material as well as the policies of an alien culture may be enough to send the local minima for optimizations way sideways. Who can say how it plays out on a multi-planet civilization scale, but I think we'd have enough reasons to be happy if we got there :)
Nestbox hands-on: Run real Linux virtual machines on your Google Pixel phone
I've taken many trips and budgeted for all of them. I plan in advance or if I feel like doing something spontaneous, I reallocate money from another budget item or from my discretionary bucket.
Let's say that you're right, and that 90% of Mastodon instances would want to block the Harry Potter lady. This isn't really true, they're pressured into doing this by ruthless activists, but let's pretend that the blockage is genuine and voluntary.

If that is true, it means Mastodon misaligns with probably some 90% of the political spectrum that would absolutely not want to take away her speech, regardless of whether people agree with her.

Which means...Mastodon is a far-left echo chamber. Which doesn't have to be bad, everybody deserves to have their place. I'm just saying it's not suitable for mainstream usage.
> No, we're just in an equilibrium where everyone reclines

Never had to sit in the very last row of an airplane?
Some men of the nation do stand proud! They say No, I will not be cuckold in cuckolded marriage. They say No, I will not marry if it means the wife will have relations with foreign men because I am of insufficient size and stamina and I will know of these relations. Those men who say No will be single men but they will also be men of dignity.
Is this negligible in performance until the GIL radically changes? I find parallel processing has muc larger increases in speed.
I can reach into the cupboard above the refrigerator without a step stool. Oh, yea, I can see over most people in a crowd.

I jest, but I'm just a bit taller than average. Occasionally, my wife will point out something that's far easier for me because it's in my reach and not in her reach. Except in cramped circumstances, being taller gives you more flexibility.
Ok. This is what has been a huge hangup for me.

It really seems that if you're doing asyncio, you must do EVERYTHING async, it's like asyncio takes over (infects?) the entire program.
I don't use extensions
Ah, so not mismatched prices/goods, but mismatched temporally.
If you had bothered to read my entire comment instead of jumping on one sentence in isolation, you would have gotten to the part where I addressed that in terms of statutorily limiting emergency prices.

When your car is towed involuntarily, the cost can certainly be described as predatory. And yet it's still probably within a factor of two of what you could negotiate on the open market for a planned tow. That's much better than the blowups on medical prices. And the "huge bill" thing is fixed by wider access to insurance, both private and public plans, as well as making it so that insurance companies can't easily cancel or deny coverage. Furthermore, there can be a public payment plan as a backstop for everyone, such that if you do fall through the cracks and get stuck with a huge bill, you're still only expected to pay a certain percentage of your income per year.

For the issue described in the article, single payer would only change the billing bureaucracy from that of health "insurance" companies to the government. The same incentive for hospitals to play the minimum staffing blame game will be there. Only the market dynamic of patients choosing to go elsewhere can raise the standard of care to favor places that employ more than the legally minimum staff. That requires removing barriers to patient choice.

If you're hangry, you can walk into any random grocery store or restaurant and still expect sane prices, because the sheer majority of their business is done less urgently.
> the US government doesn't have the same access to cloudflare data within the states?

Yes. There is almost certainly access. But it’s partial and adversarial, not automatic as in India.
Sure, and flight sim hydraulic rigs, etc. Not sure they're the next ubiquitous consumer platform.
The famous people I'm fans of who are known to be happy seemed to keep themselves busy with what you could call important nonsense. I'm thinking Feynman and Buffett, respectively trying to understand the world and teach, or buying/running business, teaching, giving it all away. They still end up dead but seem to have fun along the way, and get more respect than if they were doing dumb stuff.

I think they were both happy with their stuff before getting rich/famous.
Wow you put a lot of work into this. What motivated you? It's interesting that the submitter based model wasn't more successful. You'd think people would center more around niches.
That would fall under not having equal rights or opportunities.
As someone who thought the same way and tried it, you are missing absolutely nothing.

Not nothing useful, but actual nothing, as the algorithm gatekeep us from seeing what’s on it.
which isn't something you see every day.

Undoubtedly influenced by Oxford and Cambridge but it's a design style adopted by so many universities it's practically generic for 'some sort of university thing logo'. I don't have strong feelings about the new logo either way but the idea the old one is some distinctive masterpiece seems misplaced.
Thanks, never heard of this project before.

I agree with your sentiment of the USA needing to stop leaving their borders unless asked for help.

Overall I do find one this projects greatest successes was breaking a strike kind of not so great. Perhaps things could have been different if said machine were constructed today.

The thing with capitalism... it isn't a system with which was constructed. It derived organically over recorded history as a consequence of how humans operate. It's going to be impractical to replace capitalism.
I feel like if I need to do any design work, then I must be too careless of a coder to begin with.
And the wrong kind of carpet, yikes. Loved the area, but never got used to the enormous static shocks I got in my office.