Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
karl_p
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
Show HN: Photo Reviewer 4Net (C#, JavaScript, remote web UI, cross platform)
(github.com)
1 points
by
karl_p
10mo ago
|
0 comments
2.
▲
by
karl_p
1y ago
As the mythical man month says: never ship the prototype. Plan to write one and then throw it away.
3.
▲
by
karl_p
1y ago
Location: Chicago, IL Remote: Yes Willing to relocate: No Technologies: C#, AWS, CDK, Postgres, DynamoDB, Snowflake Résumé/CV: https://karl-pickett.dev/resume Email: On resume 25 years of uncompressible experience. I
4.
▲
by
karl_p
1y ago
The JVM can relocate memory to avoid fragmentation. Rust can't, at least natively. Are they not worried about this regression?
5.
▲
Grumpy Old Man: Error Handling and Hubris
(karl-pickett.medium.com)
2 points
by
karl_p
1y ago
|
0 comments
6.
▲
by
karl_p
6y ago
https://aws.amazon.com/blogs/compute/using-amazon-rds-proxy-... > Your function code is cleaner, simpler, and easier to maintain. I don't think your post covers the nuances. "Not a correct implementa
7.
▲
AWS Lambda Is Not a Magic Reliability Wand
(medium.com)
3 points
by
karl_p
6y ago
|
3 comments
8.
▲
How to make a parallelized cron job in AWS, for the laziest programmers
(medium.com)
1 points
by
karl_p
6y ago
|
0 comments
9.
▲
by
karl_p
8y ago
Hmm, I spent >10 years with Python and on large/important apps it's hard to refactor and slow. (PS they're still using Python 2 as well). I want to pivot to C# on Linux / .Net Core.
10.
▲
by
karl_p
8y ago
Hi, author here. Thanks for the kind words! I ported the static site generator for patternedpom.com (sells handmade cards) from Python to C# without changing any layout or styling (PS I don't claim to be a frontend person). It was a
11.
▲
Benchmarking 1M C# tasks vs. Go goroutines
(medium.com)
15 points
by
karl_p
8y ago
|
5 comments
12.
▲
by
karl_p
8y ago
My wife looked into instacart and we canceled after learning they don't provide business car insurance for their drivers. What a scam.
13.
▲
by
karl_p
8y ago
Yeah, I should clarify what I was saying. I wasn't calling Task.Run(), but I was doing: for (var i = 0; i < 1000000; i++) { var unused_task_var = RunTaskAsync(); } await RunMainMonitoringTaskAsync(); And I
14.
▲
by
karl_p
8y ago
That is a good post and a valid criticism. I'd say the more important concern with c# is to be careful you're not accidentally calling a "really blocking" function from an async method, or you will lose scalability. The
15.
▲
by
karl_p
8y ago
That is what I thought until I wrote the benchmark(s) in the post. I was surprised that even though I never called Task.Run, things were being run on 4-10 background threads. It does use a threadpool scheduler by default for a console app.
16.
▲
by
karl_p
8y ago
They have specified the lambda runtime. https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.ht... Basically: your instance POSTS to an endpoint to get/reply to requests, one at a time. I can'
17.
▲
by
karl_p
8y ago
Correct, hard to use TCP for 500K connections for a quick test when there are only 64K source ports which suffer from TIME_WAIT issues as bonus. It uses Unix Stream sockets.
18.
▲
by
karl_p
8y ago
It still will be amortized by your application's data. For example, reading and buffering actual messages. The benchmark literally just has a one byte "buffer" per connection. I threw this benchmark together in a couple of
19.
▲
by
karl_p
8y ago
Ugh, I later realized I'm off by a factor of 4 because statm shows values in 4K pages, not 1K units.
20.
▲
I measured the overhead of a single C# async task (coroutine): ~250 bytes
(github.com)
1 points
by
karl_p
8y ago
|
1 comments