frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•8mo ago

Comments

bastawhiz•8mo ago
Is this a problem that people actually have?
xeromal•8mo ago
Fun side project man!
primitivesuave•8mo ago
I took a peek at the implementation - I think this only works for a case where the typing explicitly contains the string "Promise". For example, I don't think it would work if I use `SomeInterface["some_promise_key"]` or might incorrectly add an async if I use `Awaited<Promise<...>>`.

I think what you're trying to build might be best served by Typescript's VFS - https://www.npmjs.com/package/@typescript/vfs. You can load the local files into an in-memory type system, and quickly extract async/await hints that might be more useful for a typical TS developer. I think there's a lot of really interesting static analysis you could do to improve async/await safety, as it certainly leads to issues from time to time.

joshstrange•8mo ago
I do not want to be mean but I think you'd be much better served with ESLint rules to yell at you when you don't await when you should or do when you shouldn't.

This should _not_ be an automatic operation since it can change behavior in ways that will be unclear to the developer (completely undoing any gain from them being added automatically).

theThree•8mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•8mo ago
I created a ticket, using comments is not necessary because there is already the `void` syntax for when you don't want to wait:

https://github.com/stanNthe5/typescript-autoawait/issues/1

nextweek2•8mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Good Taste

https://emsh.cat/good-taste/
1•embedding-shape•54s ago•0 comments

AMD Releases MLIR-AIE 1.2 Compiler Toolchain for Targeting Ryzen AI NPUs

https://www.phoronix.com/news/AMD-MLIR-AIE-1.2
1•pella•1m ago•0 comments

Show HN: MCP Security Documentation with Code Examples

https://github.com/FinkTech/mcp-security
1•finktech•2m ago•0 comments

Interview: Kim Stanley Robinson, Science Fiction Maestro and Utopian, in 2026

https://sammatey.substack.com/p/interview-kim-stanley-robinson-science-111
1•mitchbob•3m ago•0 comments

Agent-Browser by Vercel Labs

https://github.com/vercel-labs/agent-browser
1•franze•3m ago•0 comments

An Open-Source Alternative to Vercel

https://www.shorlabs.com/
1•shorlabss•4m ago•0 comments

What posting Rails UI to Hacker News taught me

https://railsui.com/blog/what-finally-posting-rails-ui-to-hacker-news-taught-me
1•dorianmariecom•6m ago•0 comments

Turns out I was wrong about TDD

https://martinalderson.com/posts/turns-out-i-was-wrong-about-tdd/
1•martinald•7m ago•0 comments

I Tried to Give AI "Imagination" to Solve Physics Problems

https://github.com/a1j9o94/foresight
1•a1j9o94•7m ago•1 comments

Immanuel 'the Königsberg clock' Kant (2015)

https://www.versobooks.com/en-gb/blogs/news/1963-immanuel-kant-the-errrr-walker
1•rishabhd•10m ago•0 comments

The Home Computer Hybrids

https://technicshistory.com/2026/01/25/the-home-computer-hybrids/
1•cfmcdonald•11m ago•0 comments

DCCast: Efficient Point to Multipoint Transfers Across Datacenters (2017)

https://arxiv.org/abs/1707.02096
1•tanelpoder•12m ago•0 comments

Apex-Agents – Benchmark Productivity of Agents

https://arxiv.org/abs/2601.14242
1•hereme888•14m ago•0 comments

Claude Code TUI is "a small game engine"

https://twitter.com/trq212/status/2014051501786931427
1•eudamoniac•16m ago•1 comments

Show HN: Sis v1.0.0 – Static security scanner for rule engines and policy layers

https://github.com/gopinath2866/sis-rules-engine
1•gopi0nath2929•17m ago•0 comments

Break Me If You Can – Attacks Against 3DES/AES NFC Technologies

https://eprint.iacr.org/2026/100
1•netsec_burn•17m ago•0 comments

Brazil Wind and Solar Power Surpass One-Third of National Electricity

https://happyeconews.com/brazils-renewable-energy-milestone/
2•belter•20m ago•0 comments

Show HN: Bucket – Encrypted file sharing for people who live in the terminal

https://bucketlabs.org
1•bucket_•20m ago•0 comments

The Browser Is the Sandbox

https://aifoc.us/the-browser-is-the-sandbox/
1•indigodaddy•21m ago•0 comments

Paul Krugman: Talking with Gabriel Zucman

https://www.youtube.com/watch?v=l-XUosO_ckg
2•pron•22m ago•0 comments

Interactive Box2D demo inside a Medium-style blog

https://notebook.link/@DerThorsten/jupyter-games-blogpost
1•trungld•23m ago•1 comments

iceout.tech

https://iceout.tech/
2•m-hodges•25m ago•0 comments

Clawdbot Bought Me a Car

https://aaronstuyvenberg.com/posts/clawd-bought-a-car
3•theapache64•25m ago•0 comments

VibeVoice-ASR: STT with diarization and no chunking

https://huggingface.co/microsoft/VibeVoice-ASR
1•rahimnathwani•25m ago•0 comments

Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems

https://www.diljitpr.net/blog-post-postgresql-dlq
2•tanelpoder•26m ago•0 comments

Clawdbot Explained: open-source AI Assistant Guide 2026

1•voidxd04•27m ago•0 comments

Show HN: Fission – Offline Voice Notes with Local Llama Android (React Native)

https://github.com/venkada321-collab/voice-notes
1•venkada•27m ago•1 comments

The Shed at Dulwich

https://en.wikipedia.org/wiki/The_Shed_at_Dulwich
2•belter•28m ago•0 comments

Ercot System Status (Dashboard)

https://txryan.com/ercot
2•nomaxx117•29m ago•1 comments

Tailwind Components

https://daisyui.com/components/
2•eustoria•33m ago•1 comments