Better HN
topnewbestaskshowjobs
Log inSign up

jbotdev

387 karma · joined Jan 31, 2021 (5y ago) · 73 submissions

Submissions

comment 4y ago · link · parent

I’ve found it interesting to see several different concurrency frameworks for Ruby over the years with mixed success (e.g. EventMachine), along with the multiple built-in primitive (fibers, threads, forks). The patterns I’ve seen most used in the real world essentially involve distributing the work elsewhere, rather than getting concurrency right locally, for example:

* Run a bunch of background workers (Sidekiq/Resque), and queue up a job for each item you want processed in parallel.

* Provide relatively granular HTTP APIs, and have your JS frontend call them in parallel with AJAX, instead of having the server handle concurrency.

I think this is just the nature of Ruby being widely used for web apps where performance isn’t a big concern. That said, I’d love to see Ractor catch on, since it’s a pattern built into the language everyone could standardize on.

comment 4y ago · link · parent

What is it about free services that brings out the worst complaints from people? I understand the paid plans aren’t cheap for small projects, but then maybe don’t rely on a free service for archiving important information.

comment 4y ago · link · parent

Cast iron is also very heavy, and hard to clean if you get anything stuck to it. You can’t really soak or wash it with soap/water without re-seasoning it or it’ll rust.

It has its upsides if you put in the work. I’ve given up and opted for mid-range non-stick (coated steel and/or copper, not anodized aluminum) or high end stainless.

comment 4y ago · link · parent

I have a car with Here maps, but it never occurred to me that a side effect of it having a data connection is data collection. I’ve been used to car navigation systems being offline, but it seems newer models like to search online for results, which of course exposes a lot of data to their servers.

I wonder if you turned off the “online” search results and routing if it would shut off data collection, or if you’d have to physically cut off the cell connection.

comment 4y ago · link · parent

What do you think people use to build systems like these?

A lot of medium/large shops build their own deployment and BaaS platforms on top of Kubernetes/Terraform/AWS. You just don’t hear about them as much because they often aren’t provided as a service externally, and aren’t open sourced. (I work with and on such platforms)

The mistake I see people often make is assuming it’s worth using such complex tools directly with a small project. People like the flexibility but don’t understand cost to build/maintain it.

comment 4y ago · link · parent

You would definitely have trouble on an 8-bit micro, but I wouldn’t expect to browse a “personal website” with one of those, which is what the article seems to focus on. Maybe a “personal HTTP API” at best.

comment 4y ago · link · parent

Not sure I understand the concern about access from “modern embedded devices”. Something like a Raspberry Pi, or really anything with a decent ARM processor, can easily handle TLS.

comment 4y ago · link · parent

Why is this such a problem in San Francisco, but not so much in other major cities like New York? It’s not like homelessness is exclusive to SF.

comment 4y ago · link · parent

In the US it’s White for Neutral, Green for Ground, Black for Hot, Red also Hot (usually for the other hot/phase on 240v or three way lighting).

comment 4y ago · link · parent

One consequence of this I haven’t seen mentioned yet: price matching at competing retailers may no longer work.

I often end up purchasing items at local stores, which tend to have higher prices, but happily price match to items “Shipped and Sold by Amazon”. I can see how it can be hard to abide by pricing from any random third-party seller, but evidently even the “Sold by Amazon” items were third-party anyway.

comment 5y ago · link · parent

It seems like the main value-add of this project is building/packaging pretty much standard Ruby in a consistent way across many Linux distributions, which is something that’s been hard to come by. I would lean into that more than anything else.

comment 5y ago · link · parent

Maybe I’m missing something, but it seems the only changes here over upstream are jamlloc and/or malloc_trim. I’m not as familiar with malloc_trim, but jemalloc is fairly trivial to setup without recompiling Ruby (using LD_PRELOAD), and there are even buildpacks for environments like Heroku. It seems like more time was spent on the marketing page than on the actual optimizations.
123