165 karma · joined Jan 15, 2009 (17y ago) · 168 submissions
comment 3w ago · link · parent
Removing a requirement might just leave someone else paying a much higher price, potentially with their property, their clean water, or even their life.
comment 4mo ago · link · parent
What the code actually does is reproduce the exact same problems existing solutions have and claim it solves them.
There is so much wrong with this I don't even know where to start.
Maybe here, with a restated version of the premise:
Async cooperative execution is dangerous because programmers may perform too much work between yields. Therefore, replace compiler-generated resumable tasks with manually written synchronous callbacks that have no yield points, permanently pin them to cores, prohibit dynamic load balancing, and recover from monopolization or memory faults using signals and longjmp.
ugh.
comment 5mo ago · link · parent
- I didn't like that I can't use my newsreader on my laptop and my phone as easily so I built https://github.com/mjc/nntp-proxy. that turned out to be really hard to benchmark once it got fast enough so I am working on an nntp benchmark tool https://github.com/mjc/nntpbench. both can do request queuing because the nntp RFC says servers have to accept as many requests as they can, and then process them in order. so if your client doesn't do that, you can use more connections to the proxy and it will queue for you. it also routes stateless commands to whatever server is least-loaded, and will switch to stateful mode if your client needs it.
- I didn't like how expensive AWS Transfer Family is, so I built this https://github.com/elixir-ssh/sftpd and then rewrote it in rust (alpha) https://github.com/mjc/sftp-s3-rs. this shook out a bunch of bugs in russh, which was fun. - didn't like that there's no par2 implementation in rust so I built this https://github.com/mjc/par2rs (I'm too lazy to move to tape backup so it works pretty ok for dvd/bluray parity), unfinished but good enough for my use. - same deal for 7zip in rust. https://github.com/mjc/r7z - a medication tracker thing that uses claude/codex/copilot to scan the bottles and parse them as well as identify pills etc. works better than you'd think but I'm not planning on releasing it for a while.
fixed or fixing bugs in: - exqlite (it should not crash anymore and should return busy a lot less often.) - russh - swift-nio-ssh (this might be why codex's remote can't connect to your ssh box) https://github.com/apple/swift-nio-ssh/pull/236 - NanoKVM (working on making the streaming for this a lot more fluid)
comment 6mo ago · link · parent
I'm the author. It's supposed to wire into a phoenix app easily and give you lots of flexibility for how to handle what the client is doing - doesn't have to land on s3, you could pipe your files into an LLM or a broadway pipeline or anything really.
comment 4y ago · link · parent
> While the sheriff's department said protesters at one point blocked entrances and exits at the hospital, no videos or photos confirmed that was the case.
[snip, most of the article about the shooting itself]
> Rather, video footage showed a handful of deputies standing in a driveway (apparently an entrance to the hospital’s emergency room), while the small group of protesters paced up and down a sidewalk feet away from them.
> At one point, deputies detained a journalist with LA’s NPR station, KPCC, who was reporting on the small protest, as well as a male protester who “refused to comply” with deputies’ demands to leave the area.
> The sheriff’s department said the reporter, Josie Huang, ignored deputies’ repeated commands and did not present “proper” press credentials. But she said and videos of her arrest show she didn’t have time or space to react to deputies orders before they shoved her and forcefully took her into custody. In one video, she can be heard shouting “I’m a reporter… I’m with KPCC” as officers push her to the ground. They cited her with obstructing justice, though KPCC is urging authorities to drop the charge.
comment 4y ago · link · parent
It was absolutely prohibitive for the average person with a shared line, and the direct comparison to shared line today is a metered connection. Even in the US it can be as much as $30 per gigabyte which would make that 60MB download cost $1.80.
comment 4y ago · link · parent
High effort for high reward like this is not surprising but it could all start with incompetence.
comment 4y ago · link · parent
XP SP2 had the firewall enabled by default in 2001, which blocked incoming SMB protocol requests and other related ports by default ("file and printer sharing" exception checkbox.)
Additionally, a security patch for Blaster was released July 16 2003. Blaster itself showed up August 11 2003, so you had almost an entire month to evaluate the security patch.
So in order to be affected by Blaster they had to 1. enable sharing of folders on client machines (connecting to servers does not require this firewall exception.) and 2. fail to apply a security patch for a wormable exploit in a timely fashion.
That's not wide-open, that's (if they have control of client machines) IT department failure to act responsibly.
comment 4y ago · link · parent
https://en.wikipedia.org/wiki/Sony_BMG_copy_protection_rootk...
comment 4y ago · link · parent
That said, it is also quite slow when you actually do need requests per second or rows per second, but the usual thing is to throw more machines at it,reduce the amount of magic in the hot path (like activerecord-import for bulk data if that's still maintained,) or use something else for the hot path.
comment 5y ago · link · parent
You can turn on percentage in the menu bar, and there's several different usage graphs in multiple places.
If you want the actual milliamp-hours, load cycles, battery temperature, age, or even battery serial number, there's an api for that. You can use for example coconutBattery and get whatever data you want.
comment 5y ago · link · parent
I expect either qemu to get better or for apple to add some things to improve running x86-64 VMs. Rosetta 2's JIT portion (some of R2 is AOT) is worlds ahead of qemu's in terms of performance. So, the battery life and performance difference won't be forever.
Thankfully, building arm64 images for most containers I've used is pretty straightforward.
comment 5y ago · link · parent
https://www.snopes.com/fact-check/elizabeth-knoxville-onion-...
24.
Memory-Safety Challenge Considered Solved? An In-Depth Study with All Rust CVEs(arxiv.org ↗)
3 points · by projct · 5y ago · discuss
comment 5y ago · link · parent
For ECC, there's no reason to really expect that adding ECC to everything would really make things too expensive or slow long term. For a long time the reason why desktops did not have ECC was pretty much because intel wanted people who really need ECC to buy Xeons.
comment 5y ago · link · parent
If the code is supposed to be maintainable, you could also make something like a FromRegex trait for Input. It would be a good idea to try exercism's mentoring thing to get better at writing it the easier way the first time. The mentoring thing really is what helped me to think in ways that made this mess easier to avoid.
comment 5y ago · link · parent
You can't unfortunately tell it that different disks have different speeds.
It also works just fine w/ a small (1GB or so) ARC if you want, just at an obvious performance penalty compared to having a larger cache.