Better HN
topnewbestaskshowjobs
Log inSign up

radus

846 karma · joined Sep 4, 2016 (10y ago) · 313 submissions

Submissions

comment 8mo ago · link · parent

It's simple, just tell it not to hallucinate.

comment 11mo ago · link · parent

Okay, but why?

comment 11mo ago · link · parent

I'm working on adding features to the snakemake aws batch executor plugin. The existing plugin supports execution on AWS Batch by dynamically creating job definitions based on rule resource configuration, but was missing support for features like using different containers for different rules, consumable resources, secrets, etc. Two approaches:

1) https://github.com/radusuciu/snakemake-executor-plugin-aws-b... (my fork). Just add the features to the batch job building code 2) https://github.com/radusuciu/snakemake-executor-plugin-aws-b.... This is more experimental and not yet fully working. I wanted to try a few things. a) can we rely on existing job definitions (managed through IaC instead). b) can we implement a fire-and-forget model where the main snakemake process runs on Batch as well? c) Can we slim down the snakemake container by stripping off unnecessary features.

comment 11mo ago · link · parent

Polars has a much more consistent API, give it a shot.

Regarding your plotting question: use seaborn when you can, but you’ll still need to know matplotlib.

5.

Yet another redundant workflow engine(github.com ↗)

2 points · by radus · 1y ago · discuss

6.

The FAIR Guiding Principles for scientific data management and stewardship(nature.com ↗)

1 points · by radus · 1y ago · discuss

7.

Great Tables: The Polars DataFrame Styler of Your Dreams(posit-dev.github.io ↗)

9 points · by radus · 1y ago · discuss

8.

Why, in 2025, do we still need a 3rd party app to write a REST API with Django?(emma.has-a.blog ↗)

2 points · by radus · 1y ago · discuss

comment 1y ago · link · parent

> But are you really going to repair it?

Yes

10.

Using the Python Match Statement(tonybaloney.github.io ↗)

3 points · by radus · 1y ago · discuss

comment 1y ago · link · parent

Polars and duckdb interoperate nicely and can enable this flexibility

comment 2y ago · link · parent

I like using EFK (ElasticSearch-Fluent-Kibana) for this

comment 2y ago · link · parent

I guess then you've got to abstract one level further and formulate your advice as an allegory.

comment 2y ago · link · parent

Example: you want to set your local docker context to the production environment, so that when you type `docker system prune --volumes` you delete your production data.

15.

In PostgreSQL, as in life, don't wait too long to commit(lerner.co.il ↗)

1 points · by radus · 2y ago · discuss

16.

New Dockerfile Capabilities in v1.7.0(medium.com ↗)

1 points · by radus · 2y ago · discuss

comment 2y ago · link · parent

The answer is “it depends”

comment 2y ago · link · parent

Quick critique: module contains functions with many parameters, many branches, deep nesting, and multiple return points.

comment 2y ago · link · parent

docker swarm is also a decent solution if you do need to distribute some workloads, while still using a docker compose file with a few extra tweaks. I use this to distribute compute intensive jobs across a few servers and it pretty much just works at this scale. The sharp edges I've come across are related to differences between the compose file versions supported by compose and swarm. Swarm continues to use Compose file version 3 which was used by Compose V1 [1].

1: https://docs.docker.com/engine/swarm/stack-deploy/

comment 2y ago · link · parent

They were defending rocks. They had not uncovered evidence of native martian life.

See more discussion here: https://scifi.stackexchange.com/questions/160959/is-or-was-t...

21.

Mise-en-place: The front-end to your dev env(mise.jdx.dev ↗)

2 points · by radus · 2y ago · discuss

comment 2y ago · link · parent

You've explained your value proposition vs. celery, but I'm curious if you also see Hatchet as an alternative to Nextflow/Snakemake which are commonly used in bioinformatics.

comment 2y ago · link · parent

Example: you use a large plotting library, but it's only needed on some pages. Chunking allows you to selectively load that code only where it's needed.

24.

Funcy: Fancy and practical functional tools [Python](github.com ↗)

1 points · by radus · 2y ago · discuss

comment 2y ago · link · parent

My approach for this is to use multi-stage dockerfiles. Build tools live and operate in a build stage, and you copy the /venv into your runtime stage. I think this same approach should work with uv so long as it doesn't bundle itself into the venv.

comment 2y ago · link · parent

This is great! I’ve been waiting a long time for this and it seems like more debug features are in the pipeline too: https://github.com/docker/buildx/issues/1104

Docs: https://docs.docker.com/engine/reference/commandline/buildx_...

comment 2y ago · link · parent

This is my experience as well :/
12345
11