Readit News logoReadit News
xmaayy commented on Deep Learning with Jax   manning.com/books/deep-le... · Posted by u/teleforce
xmaayy · a year ago
More of a meta-question; I'd love to know if people do self-directed learning more frequently, or if they follow through full (or partial) textbooks to learn concepts they're interested in. I have a hard time going through full books, but I have no doubt this leads to gaps in knowledge that someone following a textbook would not have.
xmaayy commented on What's up, Python? The GIL removed, a new compiler, optparse deprecated   bitecode.dev/p/whats-up-p... · Posted by u/BiteCode_dev
iknownothow · 2 years ago
I would consider the following optimizations first before attempting to rewrite an HTTP API since you already did the hard part:

1. For multiples processes use `gunicorn` [1]. Runs your app across multiple processes without you having to touch your code much. It's the same as having the n instances of the same backend app where n being the number of CPU cores you're willing to throw at it. One backend process per core, full isolation.

2. For multiple threads use `gunicorn` + `gevent` workers [2]. Provides multiprocessing + multithreaded functionality out of the box if you have IO intensive. It's not perfect but works very well in some situations.

3. Lastly, if CPU is where you have a bottleneck, that means you have some memory to spare (even if it's not much). Throw some LRU cache or cachetools [3] over functions that return the same result or functions that do expensive I/O.

[1]: https://www.joelsleppy.com/blog/gunicorn-sync-workers/

[2]: https://www.joelsleppy.com/blog/gunicorn-async-workers-with-...

[3]: https://pypi.org/project/cachetools/

xmaayy · 2 years ago
> 1. For multiples processes use `gunicorn`

This will load up multiple processes like you say. OP loads a large dataset and gUnicorn would copy that dataset in each process. I have never figured out shared memory with gUnicorn.

xmaayy commented on Shortening the Let's Encrypt chain of trust   letsencrypt.org/2023/07/1... · Posted by u/healsdata
lofaszvanitt · 2 years ago
So this was one of the trap aspects of the free cert. lol. This is how you shape the landscape, by offering something for free, then when you have a big user base, just start making your own rules. No wonder LE was supported by so many waterheaded IT companies.

"If you see a sudden drop in visits from Android, it is likely because you have a significant population of users on Android 7.0 or earlier. We encourage you to provide the same advice to them as we provided above."

Good luck doing that.

xmaayy · 2 years ago
"I want the free service to work for my edge case"

If you want to continue serving your clients, you can still pay for a certificate from an authority trusted by your outdated clients. If you want to continue serving the old clients for free, ask them to use another free browser that will allow them to do so.

xmaayy commented on Ask HN: Those making $0/month or less on side projects – Show and tell    · Posted by u/code_Whisperer
PStamatiou · 3 years ago
Not currently public aside from maybe a thousand testflight users, but I built a stock and crypto portfolio tracker app focused on design. I'm a designer and developer and this was my first time diving into Swift/SwiftUI. Started as a covid project to learn SwiftUI and became a 3 year side project, complete with full node backend to do some auth, caching, cleaning up data and various things.

It's called Stocketa. Here's the site: https://stocketa.com/

and I opened up a few hundred Testflight spots if you want to play with it:

https://testflight.apple.com/join/3dZwTVhS

Unfortunately despite the insane amount of time I've spend on it (many, many weeks with 20 hours on it) I've lost interest. It's just so hard to find quality stock/financial data that allows commercial use which I'd need to put this in the app store and charge for it. I pay a few hundred a month now for data that always has issues, APIs that don't work consistently, staff that's unresponsive/rude when I tell them their API doesn't work or is wrong. I've dealt with 3 stock data providers already and I still had to build a scraping engine to get certain bits of data. The real providers charge thousands per month for this data for good APIs, which I can't afford. All that and only for US data. International data was another headache I gave up on.

So yea, it's not a fun space to be in. If there was just a single API that was solid, worked and was not insanely expensive this would be a joy to work on. Polygon.io is the best API for this data but they don't understand indie developers and were telling me they had an amazing new plan for developers that was still close to $1k/mo.

Now I'm wondering if I should try to sell it to someone with more resources to build out.

xmaayy · 3 years ago
Unrelated to the app your building, I've been reading your blog for a few years. Thanks for the content stammy :)
xmaayy commented on Ask HN: Do you hate software engineering but love programming?    · Posted by u/throwwwwaway
rco8786 · 3 years ago
Seriously. It’s hard to imagine a group of 40 people that would need a sufficient velocity of changes/new features to warrant 5 full time engineers.
xmaayy · 3 years ago
Massive corporate HR Dept with custom rolled software. Bank team with software for compliance. Endless possibilities...
xmaayy commented on Ask HN: What are your predictions for 2023?    · Posted by u/csomar
Balgair · 3 years ago
Enrollments for all History classes combined rises at least in the double digit percentage as a US national average. At least 50% of those that increased the enrollments will be double majors.

I think ChatGPT is going to allow a lot of STEM majors to try out a double major/minor in the Humanities. This is assuming that ChatGPT remains cheaper to use than the cost of a textbook.

xmaayy · 3 years ago
What a joy it would be to be a kid in highschool writing book reports with ChatGPT
xmaayy commented on Ask HN: How do you deal with rude interviewers?    · Posted by u/pmoriarty
FabHK · 3 years ago
Yes, or just ignore it. Experience with non-neurotypical people, or other cultures, can help you learn how to just shrug things off that you could otherwise perceive as rude. And then you can shrug it off even if it was intended to be rude.
xmaayy · 3 years ago
I think the intention though is to confront it rather than just ignore it to either help the interviewer realize its not acceptable, or just make them less likely to do it again.
xmaayy commented on We need a middle class for startups   neilthanedar.com/we-need-... · Posted by u/thanedar
chadash · 3 years ago
There's somewhere between a "lifestyle business" and a unicorn though. You can be a contractor with a focus on re-doing roofs and pull in $1m/year without too much work once you have things running. You will be wealthy, but you won't ever pull in $20m/year. I think it's fair to call that a "lifestyle business".

I know of a company near me that has $300M/year revenue (gross, not net) that sells cables and other equipment to ISPs in the region. It's owned by one person. I don't know their margins, but that person might be making $20M/year. They might be able to grow that business and sell it for $500M dollars if they play their cards right. I wouldn't call that a "lifestyle" or "small" business. It's somewhere in the middle.

I think it's the latter type that the article is referring to.

xmaayy · 3 years ago
I think what you just described is called "A Business"
xmaayy commented on My upgrade to 25 Gbit/s Fiber To The Home   michael.stapelberg.ch/pos... · Posted by u/secure
101008 · 3 years ago
Stupid question, but if your hard drive cannot write 25Gbit/s, how is it handled?

I don't knwo anything about SSD so maybe 25Gbit/s is easily achievable, just talking from my experience of copying from a USB Drive to my local disk.
xmaayy · 3 years ago
You'd need raid SSD's or a sizeable RAM disk to make sustained use of it. Very few SSD's support full 25GB/s
xmaayy commented on Hetzner Cloud – Data loss incident    · Posted by u/bratao
jacquesm · 3 years ago
> All snapshots you create are stored on our highly available storage systems.

Highly available right until they are not. Nice to see that your data is worth 20 bucks to Hetzner. I always liked them but this is a bit rude to put it mildly.

xmaayy · 3 years ago
The storage system is highly available, but the data is not guaranteed to be :)

u/xmaayy

KarmaCake day135December 12, 2019View Original