frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory

https://github.com/localgpt-app/localgpt
47•yi_wang•2h ago•18 comments

Haskell for all: Beyond agentic coding

https://haskellforall.com/2026/02/beyond-agentic-coding
12•RebelPotato•1h ago•2 comments

SectorC: A C Compiler in 512 bytes (2023)

https://xorvoid.com/sectorc.html
227•valyala•9h ago•43 comments

Speed up responses with fast mode

https://code.claude.com/docs/en/fast-mode
136•surprisetalk•9h ago•142 comments

Software factories and the agentic moment

https://factory.strongdm.ai/
172•mellosouls•12h ago•326 comments

Brookhaven Lab's RHIC concludes 25-year run with final collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
56•gnufx•8h ago•54 comments

Vouch

https://twitter.com/mitchellh/status/2020252149117313349
22•chwtutha•29m ago•2 comments

Do you have a mathematically attractive face?

https://www.doimog.com
5•a_n•1h ago•8 comments

Stories from 25 Years of Software Development

https://susam.net/twenty-five-years-of-computing.html
151•vinhnx•12h ago•16 comments

Hoot: Scheme on WebAssembly

https://www.spritely.institute/hoot/
172•AlexeyBrin•15h ago•31 comments

IBM Beam Spring: The Ultimate Retro Keyboard

https://www.rs-online.com/designspark/ibm-beam-spring-the-ultimate-retro-keyboard
13•rbanffy•4d ago•4 comments

First Proof

https://arxiv.org/abs/2602.05192
118•samasblack•12h ago•74 comments

FDA intends to take action against non-FDA-approved GLP-1 drugs

https://www.fda.gov/news-events/press-announcements/fda-intends-take-action-against-non-fda-appro...
91•randycupertino•5h ago•194 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
292•jesperordrup•20h ago•94 comments

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

https://github.com/Momciloo/fun-with-clip-path
66•momciloo•9h ago•13 comments

Al Lowe on model trains, funny deaths and working with Disney

https://spillhistorie.no/2026/02/06/interview-with-sierra-veteran-al-lowe/
96•thelok•11h ago•21 comments

Show HN: Axiomeer – An open marketplace for AI agents

https://github.com/ujjwalredd/Axiomeer
7•ujjwalreddyks•5d ago•2 comments

LLMs as the new high level language

https://federicopereiro.com/llm-high/
33•swah•4d ago•76 comments

Show HN: A luma dependent chroma compression algorithm (image compression)

https://www.bitsnbites.eu/a-spatial-domain-variable-block-size-luma-dependent-chroma-compression-...
33•mbitsnbites•3d ago•2 comments

Start all of your commands with a comma (2009)

https://rhodesmill.org/brandon/2009/commands-with-comma/
563•theblazehen•3d ago•206 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
278•1vuio0pswjnm7•16h ago•457 comments

Microsoft account bugs locked me out of Notepad – Are thin clients ruining PCs?

https://www.windowscentral.com/microsoft/windows-11/windows-locked-me-out-of-notepad-is-the-thin-...
118•josephcsible•7h ago•141 comments

The F Word

http://muratbuffalo.blogspot.com/2026/02/friction.html
105•zdw•3d ago•54 comments

I write games in C (yes, C) (2016)

https://jonathanwhiting.com/writing/blog/games_in_c/
178•valyala•9h ago•165 comments

Selection rather than prediction

https://voratiq.com/blog/selection-rather-than-prediction/
28•languid-photic•4d ago•9 comments

Eigen: Building a Workspace

https://reindernijhoff.net/2025/10/eigen-building-a-workspace/
10•todsacerdoti•4d ago•3 comments

The silent death of good code

https://amit.prasad.me/blog/rip-good-code
74•amitprasad•4h ago•75 comments

Reinforcement Learning from Human Feedback

https://rlhfbook.com/
115•onurkanbkrc•14h ago•5 comments

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
897•klaussilveira•1d ago•274 comments

Learning from context is harder than we thought

https://hy.tencent.com/research/100025?langVersion=en
224•limoce•4d ago•124 comments
Open in hackernews

How to run cron jobs in Postgres without extra infrastructure

https://wasp.sh/blog/2025/05/28/how-to-run-cron-jobs-in-postgress-without-extra-infrastructure
90•Liriel•8mo ago

Comments

xnx•8mo ago
No mention of pg_cron?
etchalon•8mo ago
It's what I expected to be talked about exclusively in the article based on the title.
eddythompson80•8mo ago
apples and oranges?

pg_cron is for pg specific cron tasks. You use pg_cron to truncate a table, compute pg views, values, aggregates, etc. Basically just running PG queries on a CRON schedule.

pg_cron itself won't run an external script for you. Like you can't do

    SELECT cron.schedule('0/30 * * * *', $$ ./sendEmails.sh $$);

you can use pg_cron to insert a job-row in a jobs table that you have some consumer that runs a `select * from jobs where status = 'pending' limit 1;`. Then you're on the hook to handle the pg updates for dispatching and handling updates, job status, etc. You could even call that implementation pg-boss if it's not taken.
hoppp•8mo ago
There is an HTTP extension for postgres, so it can trigger external serverless functions via http request
cpursley•8mo ago
What’s the name of that?
hoppp•8mo ago
https://github.com/pramsey/pgsql-http

It works well with Supabase, I tried it, its decent but you should only use it for endpoints you trust because waiting for the request is blocking.

If you want the requests to be async you need to use pg_background extension with it

hyperman1•8mo ago
The postgres COPY FROM PROGRAM will run external scripts, as the postgres user. Not necessarily a good architecture, of course. I did one day manage to fix a broken sshd with it by passing it su commands (rate that experience as 0 stars, would not recommend)
SoftTalker•8mo ago
Cron isn't an acronym; it's not normally written in all caps.

Cron's name originates from Chronos, at least according to Wikipedia.

tbrownaw•8mo ago
I can't check at the moment, but IIRC the output of `ps` on $employer's AIX boxes disagrees about it not being all-caps.
NeutralForest•8mo ago
Tangential since it's not PG related but I'm more and more moving away from cron and I prefer using systemd timers (I'm on RHEL at work). I just find the interface to list and manager timers better and I can just handle everything like a systemd service anyways.
jimis•8mo ago
What is the systemd equivalent for `service crond stop` and later `service crond start`?

In other words, I want to disable all jobs for some time (for benchmarking) and then bring them back up.

sherburt3•8mo ago
Maybe you could make a target unit file like “jobs.target” and in your timer unit files do “WantedBy=jobs.target”. Then you could do “systemctl start/stop jobs.target”
r2_pilot•8mo ago
First, list and save the currently active timers: ```bash systemctl list-timers --state=active --no-legend | awk '{print $NF}' > /tmp/active_timers.txt ```

Stop all active timers: ```bash sudo systemctl stop $(cat /tmp/active_timers.txt) ```

Later, restart the previously active timers: ```bash sudo systemctl start $(cat /tmp/active_timers.txt) ```

samtheprogram•8mo ago
I would try *.timer. If you’re in zsh, quote it.
NeutralForest•8mo ago
Like the others said, you have to list them and save it somewhere, it could be better in that regard.
zie•8mo ago
I have nothing against pg_boss[0] from the articel (I don't know anything about it), but there are plenty of queues and crons and schedulers for PG

Some others:

* https://github.com/LaunchPlatform/bq

* https://github.com/cybertec-postgresql/pg_timetable

* https://github.com/pgmq/pgmq

* https://github.com/riverqueue/river

* https://github.com/oban-bg/oban

* https://github.com/pgadmin-org/pgagent

* https://github.com/citusdata/pg_cron

etc. There are plenty of options to choose from.

0: https://github.com/timgit/pg-boss

TkTech•8mo ago
Gonna toss my own hat in the ring there for the python+postgres ecosystem :)

https://github.com/tktech/chancy

> As a rule of thumb, if you're processing less than 1000 jobs per day or your jobs are mostly lightweight operations (like sending emails or updating records), you can stick with this solution.

This seems... excessively low? Chancy is on the heavier side and happily does many millions of jobs per day. Postgres has no issue with such low throughput, even on resource constrained systems (think a $5 vps). Maybe they meant 1000 per second?

zie•8mo ago
I missed that. That does seem very small, 1k jobs/day is nothing.

Chancy also looks pretty neat. Thanks for sharing!

cpursley•8mo ago
Also worth mentioning: https://www.pgflow.dev/
wewewedxfgdf•8mo ago
There's many ways to skin this cat. Personally I invested all my knowledge and focus into systemd timers. No doubt you have your own ways that make sense for you.
verdverm•8mo ago
There's no systemd running in containers, so not an option in a lot of common scenarios
sampullman•8mo ago
I haven't done it myself, but it seems possible with Podman or LXC containers. There's systemd-nspawn, too.
hiAndrewQuinn•8mo ago
I like systemd when I have it; on the other end is the BusyBox cron implementation https://wiki.alpinelinux.org/wiki/Cron
verdverm•8mo ago
I recently used PG-Boss to setup jobs to refresh auth tokens in the background. Very easy to use, would recommend taking a look. Docs are a bit minimal, but there's not that much to it either. (https://timgit.github.io/pg-boss/#/)

You don't need WASP for any of this, certainly not worth learning their custom DSL for it. Two of their points about how it makes it better are moot, setting queue names (one line of code) and type safety (you should be using TS already). I've not seen the value in their abstractions and indirection.

lukasb•8mo ago
I can't be the only Next.js / neon user looking at this
mitjam•8mo ago
Kubernetes CronJobs are nice and if you are on K8s, already, it’s also without extra infrastructure.
mati365•8mo ago
This article seems to be written entirely by AI :/
jbverschoor•8mo ago
Cron/systemd/launchd is nice for machine-level tasks.

If you want application or platform level tasks, you’re better off scheduling a task on which ever job queue you run. That could also be pg.

That way you can have platform-wide unique tasks, probably better monitoring / tracing, etc.

jackb4040•8mo ago
I have a node app that has one-off scheduled tasks. Between node-cron and real Linux cron, I went with real cron because node-cron just polls every second, which is extremely inefficient and I'm on a free tier.

How does your library work in this regard? If my node server is down, will my scheduled tasks still execute? I notice you have a .start() method, what does that do? Is it polling periodically?

xqzv•8mo ago
It's polling using javascript timers: https://github.com/timgit/pg-boss/blob/master/src/attorney.j...
OJFord•8mo ago
Or the aptly named pg_cron which is in RDS for example. TFA is just a marketing piece for Wasp, presumably to improve its SEO since 'postgres cron' more obviously gets you to pg_cron otherwise.