Better HN
topnewbestaskshowjobs
Log inSign up

scj13

17 karma · joined Sep 1, 2023 (3y ago) · 16 submissions

Submissions

comment 3mo ago · link · parent

I'm sure many of you will have seen the latest keyv / cachable compromise and worm-spread, now affecting over 350 packages. This isn't the first, and it won't be the last. The affected packages will steal and exfiltrate any secrets/credentials they can find, which is probably not what you want to happen.

There are several commercial solutions to help protect against this, but if you just add (as standard) to .npmrc in your repo root:

min-release-age=7d (or some value you feel comfortable with)

It will block a lot of malware, which is usually discovered within a few hours.

2.

Please add min-release-age to your .npmrc(endorlabs.com ↗)

3 points · by scj13 · 3mo ago · 1 comment

comment 1y ago · link · parent

Embarrassingly parallel problems are conceptually simple but can be operationally annoying. You want to run the same computation across many inputs, but end up spending more time on infrastructure than the actual problem.

Here's a demo reprojecting 3,000 satellite images with GDAL across 100 EC2 instances in 5 minutes. The interesting part isn't the satellite imagery—it's that there's no Kubernetes YAML or Terraform. Just `--map-over-file` and Coiled handles the distribution without the scheduler overhead (no Dask).

This works for any embarrassingly parallel job: running bash scripts N times, multi-node GPU training, stress-testing APIs, etc. The pattern is always the same: you have a function that works on one input, and you want to apply it to many inputs in parallel.

Compare this to setting up AWS Batch or similar, where you'd typically need to handle job queues, compute environments, IAM roles, and container orchestration just to run a simple parallel workload.

Demo video: https://youtu.be/m3d2I6-EkEQ

4.

Embarrassingly parallel workloads on AWS without the infrastructure overhead(docs.coiled.io ↗)

4 points · by scj13 · 1y ago · 1 comment

comment 1y ago · link · parent

There's been a lot of excitement around uv, the Python package manager by Astral. But uv is more than just a faster pip. Because uv can interpret PEP 723 metadata, it behaves kind of like npm, where you have self-contained, runnable scripts. This combines nicely with Coiled, a UX-focused cloud compute platform. You can declare script-specific dependencies with `uv add --script` and specify runtime config with inline `# COILED` comments.

Compare that to something like AWS Lambda or AWS Batch, where you’d typically need to package your script and dependencies into a ZIP file or build a Docker image; configure IAM roles, triggers, and permissions; handle versioning, logging, or hardware constraints.

Here's a video walkthrough: https://www.youtube.com/watch?v=0qeH132K4Go

6.

Self-contained Python scripts with uv and Coiled for easy cloud execution(docs.coiled.io ↗)

3 points · by scj13 · 1y ago · 1 comment

comment 1y ago · link · parent

NVIDIA published this blog post showing how to run GPU-accelerated pandas in the cloud using Coiled. In the example they do some typical data wrangling (read in parquet files from S3, do some filtering, aggregation, return a result) and saw ~9x speedup.

They used Coiled to manage the cloud infrastructure, a UX-friendly tool for Python devs who want to use the cloud, without needing to directly manage EC2 instances.

Whether you _should_ be running pandas on cloud GPUs is a whole other question (and probably pretty specific to the use case).

8.

Run Pandas on cloud GPUs (without Docker or K8s)(developer.nvidia.com ↗)

1 points · by scj13 · 1y ago · 1 comment

comment 1y ago · link · parent

Modal is great, they even released a deep dive into their LP solver for how they're able to get GPUs so quickly (and cheaply).

Coiled is another option worth looking at if you're a Python developer. Not nearly as fast on cold start as Modal, but similarly easy to use and great for spinning up GPU-backed VMs for bursty workloads. Everything runs in your cloud account. The built-in package sync is also pretty nice, it auto-installs CUDA drivers and Python dependencies from your local dev context.

(Disclaimer: I work with Coiled, but genuinely think it's a good option for GPU serverless-ish workflows. )

10.

Python deserves better than EMR(docs.coiled.io ↗)

2 points · by scj13 · 1y ago · discuss

11.

One billion row challenge in Python for Dask vs. Spark(github.com ↗)

4 points · by scj13 · 2y ago · discuss

12.

We built a fancy task scheduler and all NASA wanted was this parallel for loop(blog.coiled.io ↗)

7 points · by scj13 · 3y ago · 1 comment

13.

Show HN: Running Jupyter Notebooks on a GPU on AWS or Google Cloud(blog.coiled.io ↗)

5 points · by scj13 · 3y ago · discuss

14.

Show HN: Dask-expr – query optimization for faster Dask DataFrames(github.com ↗)

27 points · by scj13 · 3y ago · discuss