HNHacker News
TopNewBestAskShowJobs

xani_

1,252 karma · joined January 28, 2020

submissionscomments
xani_··on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits
You're asking for net zero benefits at cost of adding hundreds of thousands of lines of code to your deployment path.

That really smells of desperate developer that need to feel relevant just because they use the latest thing

Like, how the fuck it would be "simpler" if the deploy is literally just running a single script ?

xani_··on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits
Well, our Jenkins jobs still work decade after. Jenkins itself requires some care and feeding tho, mostly upgrades, especially if you use some plugins.

Then again jenkins job can be as simple as "download a repo and run some code in it" without anything fancy so even if SHTF you can migrate away relatively painlessly

xani_··on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits
Well, for one, you don't need docker in the first place
xani_··on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits
Eh, it's pretty trivial to do. The reason for 2 servers is high availability, not that it is easier in meaningful way.

I run something similar on personal site and it's literally just 2 identical configs but with different port/directory and some haproxy config.

xani_··on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits
"smarter" means more code and that's rarely more maintainable.

It's what you have to do if you want less downtime. Normally it shouldn't span much more than 2-3 versions of application and it's rare that the annoying kind (say writing same data to "old" and "new" column) happens.

xani_··on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits
You can still do that in this kind of setup, just put loadbalancer like HAProxy on both that sends traffic to both nodes but prefers "the one that's local" in default config. Then you can use the LB to move traffic as fast or as smoothly as possible, and it also masks failures like "app on current node dies", as the traffic near-instantly switches to the other, at some small latency cost.

This also gives you a bit more resilience, if the app on node dies (out of memory/disk/bug/whatever), the proxy will just send the traffic to the other node without having to wait for DNS to switch

xani_··on Deployment and infrastructure for a bootstrapped webapp with 150k monthly visits
For few of the small API-mostly apps I am particular to just embedding the statics into binary and have one blob to run and deploy, go:embed making it particularly easy.

Container with it is just a few files in etc and binary blob itself. Same with container-less deployment.

xani_··on GitHub Actions Pitfalls
Applies to pretty much every resource. Monitor, monitor, monitor, then alert at the very least on thresholds, preferably on anomalies.
xani_··on Why we moved from AWS RDS to Postgres in Kubernetes
It's essentially just a process running in a cgroup so performance shouldn't be all that different than bare metal/VM postgresql.

Main difference would be storage speed and how it exactly is attached to a container.

xani_··on Open Source Bait and Switch
> IMO a permissive license is better and easier for the developer and the GPL is better for the end user.

users don't care, they aint taking the code for changing.

Arguably it also doesn't matter till you are corporation closing the code for profit. If all you do is OSS and are used by people that also release OSS, extra protection GPL gives are not useful. But of course real world is not that idealistic.

And for that of course BSD/MIT is better. No facility for anyone to get anything out of you so you can take and take without ever giving back aside from occasional bug report and outrage over someone having a bug they didn't fix in project they are not paid to develop in the first place

GPL gives one guarantee - that the code you give will not be closed down for money and used to save some corporation some dev-hours. Some devs don't like it because it is making their life difficult (and I'd also argue anything higher than LGPL for stuff like libraries is kinda pointless), but that's kinda the point.

xani_··on Open Source Bait and Switch
That's not bait and switch, that's just not the license terms.

> even though they were only distributing the viewer internally.

That is explicitly allowed. You just have to live with consequences of it being legal for any of the users to take and "bring back to the light".

It is either that this company didn't wanted their inside people to do that, or that Linden lied to them about what GPL implies

xani_··on Open Source Bait and Switch
There is also problem of funding model.

Like, how is even say a single developer of mildly popular lib doing one thing gonna setup financing ? Or get people to pay ? Anything from patreon to tips was tried to mild results at best

xani_··on Open Source Bait and Switch
> First of all, it's been sustainable for a long time -- what changed?

Big failures like OpenSSL fiasco happened - where sure, company was sustainable but due to skewed priorities coz of funding (companies that founded it founded features that from perspective of any other company were bloat, and not enough work went into modernizing the code) the code was shit and full of traps.

And it's still a fact that vast majority of developers of stuff used everywhere wouldn't be able to do it as full or even part time job for financial reasons.

All while the corporate is pushing same "BSD/MIT good, GPL bad" agenda, coz they don't need to contribute anything back to stuff they take

xani_··on Zen4's AVX512 Teardown
Genuinely good luck, it's never good when there is no competition
xani_··on Zen4's AVX512 Teardown
Sounds like a hell of a lab! What you're doing on it, machine learning ?
xani_··on Zen4's AVX512 Teardown
https://whatcookie.github.io/posts/why-is-avx-512-useful-for...
xani_··on Zen4's AVX512 Teardown
Probably used same registers as previous.

Would be simple to confirm with some scope probing CPU power.

xani_··on 3x new books added to the Pirate Library Mirror
Well, post digital era we still buy/rent games, video and music.

I don't see why something similar couldn't be done, pay monthly and you can read whatever your want, and what you read depends on where the money from your subscription goes. And as distribution costs are lower, higher % of it should go to the writers. Hell, amazon could just do that, except of course they wouldn't give a fair cut...

At zero cost to try new authors it could possibly be a good way for more niche stuff, you can just page thru any book that you want with no cost but time

> What do you expect them to do? Force users to sign up for a weekly subscription and email out individually DRMed copies of the chapters each week?

There is actually one guy doing it on patreon but he already have YT audience for music gear reviews (book is about electronic music ideas and tips). So it is possible, just kinda hard as you already need to have publicity.

xani_··on 3x new books added to the Pirate Library Mirror
Sure but nobody would suffer if say a new fantasy novel was not available there.
xani_··on Someday aliens will land and all will be fine until we explain our calendar
> Then there's Swahili: Saturday = 1 and Friday = 7. Though personally, I believe Sunday is the 0th day of the week.

The cron way, where both 0 and 7 means sunday

xani_··on What does $0=$2 in awk do?
Well, Perl kinda started where SED and AWK finished, and it does incorporate a lot of syntax from them, for better or worse.

It makes it easy for quick & powerful one-liners but sadly people then put the one-liners into actual programs instead of writing it in nicer way...

xani_··on Target Venus not Mars for first crewed mission to another planet, experts say
It's not to avoid the difficulty, it's to make iteration safer and easier. Good luck seeing what failed if the craft that failed is flying somewhere between earth and mars
xani_··on 3x new books added to the Pirate Library Mirror
> Just to give one possible example that could open new secondary income streams for publishing houses: why don't publishing houses sell rights for remixing or generating derived works of their published works, for example so that fanfiction becomes legal if the fanfiction author paid his fee instead of - as of today - fanfiction being in a legal grayzone?

Coz they'd prefer to control the supply and get all the profits while giving actual writers a pittance and having in their contracts that anything they write belongs to corporation that paid them. Similar deal with code really...

xani_··on 3x new books added to the Pirate Library Mirror
That's just weird way of saying that writing pays shit for vast majority of writers.
xani_··on 3x new books added to the Pirate Library Mirror
> The reason why the fear is irrational is that the digital mode of distribution is actually constrained by the inherent ability of people to consume new information. You can read only so fast, so it makes no difference if you have 1 million different books "stolen" on your computer. Most of them would have never been read or even opened.

It's not. They want you to pay them for the book instead of just getting it for free.

xani_··on 3x new books added to the Pirate Library Mirror
Sure but I think we went too far. Current copyright protections are aimed squarely at keeping corporate profits, with insanely long protection periods that in most cases end up profiting the company insanely more than the author.

Similarly with patents stifling innovation, especially in industries moving way faster than patent protection and patenting trivial things just so they can "gotcha" the competition (or just patent troll).

xani_··on How to survive a lightning strike (2014)
Would tree be bad conductor tho ? It's more conductive than air, much taller than average human, and probably similar in conductivity when wet
xani_··on What does $0=$2 in awk do?
I just write Perl instead
xani_··on Analysis of Apple Watch running data
Why it would need such common updates tho ?

And why it couldn't load that data for say month ahead ?

xani_··on Analysis of Apple Watch running data
Ah yes, the issue only Apple had somehow couldn't be avoided, and yet fanboys like you defend

> What exactly would you expect in this case?

Not pretending it's the user's fault they built the phone wrong. That's just extreme arrogance on their side.

← PreviousPage 8 of 19Next →