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•10mo ago

Comments

bastawhiz•10mo ago
Is this a problem that people actually have?
xeromal•10mo ago
Fun side project man!
primitivesuave•10mo 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•10mo 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•10mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•10mo 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•10mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Userland text measurement algorithm in pure TypeScript

https://twitter.com/_chenglou/status/2037713766205608234
1•MrBuddyCasino•1m ago•0 comments

The rise and fall of IBM's 4 Pi aerospace computers: an illustrated history

https://www.righto.com/2026/03/ibm-4-pi-computer-history.html
1•zdw•1m ago•0 comments

Set Your Watches: Elizabeth Holmes Is Leaving Prison in December 2028

https://sanfranciscodownload.com/news/2026/03/set-your-watches-elizabeth-holmes-is-leaving-prison...
1•randycupertino•4m ago•1 comments

Finland to audit whether US is delivering NATO-bought weapons to Ukraine

https://euromaidanpress.com/2026/03/28/finland-to-audit-whether-us-is-actually-delivering-nato-bo...
2•Betelbuddy•5m ago•0 comments

Chromebook Remorse: Tech Backlash at Schools Extends Beyond Phones

https://www.nytimes.com/2026/03/29/technology/chromebook-remorse-kansas-school-laptops.html
2•tysone•6m ago•0 comments

How Amazon Dies: A Possible, Maybe Likely Future

https://markatwood.substack.com/p/how-amazon-dies-a-possible-maybe
1•danorama•6m ago•0 comments

Agent Application Protocol – Connect any application to any agent

https://agentapplicationprotocol.com/overview
1•DiscreteTom•8m ago•0 comments

Stop microphones from recording your voice

https://www.deveillance.com
1•structuredPizza•9m ago•0 comments

The bot situation on the internet is worse than you could imagine

https://gladeart.com/blog/the-bot-situation-on-the-internet-is-actually-worse-than-you-could-imag...
3•ohjeez•11m ago•0 comments

What temperature are you coding at?

https://chrisloy.dev/post/2026/03/29/what-temperature-are-you-coding-at
1•chrisloy•11m ago•0 comments

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands

https://github.com/rtk-ai/rtk
2•dsr12•13m ago•0 comments

Show HN: IndieEvent – Automated meetup creation in 40k cities worldwide

https://indieevent.net/
1•Alex_LK•13m ago•0 comments

MarCognity-AI – Epistemic failure rates in LLMs across 8 domains

https://github.com/elly99-AI/MarCognity-AI
1•elly-99•16m ago•0 comments

Voyager 1 runs on 69 KB of memory and an 8-track tape recorder

https://techfixated.com/a-1977-time-capsule-voyager-1-runs-on-69-kb-of-memory-and-an-8-track-tape...
5•speckx•16m ago•0 comments

Dap Detector

https://www.appstar.world/app/dap-detector-mmimvdz7
1•structuredPizza•16m ago•0 comments

Using Rust and Postgres for everything: patterns learned over the years

https://kerkour.com/rust-postgres-everything
3•randomint64•16m ago•0 comments

Show HN: A Python library for simple and fast SQL UPSERT (Insert/Update/Delete)

https://github.com/pavel-v-sobolev/dbmerge
1•pavel9sobolev•19m ago•0 comments

Show HN: agent logs and what others can actually verify

https://whatdidmyagentdo.com
2•jithinraj•22m ago•0 comments

Comparison shows audiophiles waste a lot of money

https://www.tomshardware.com/pc-components/sound-cards/comparison-of-usd4-000-boutique-audio-cabl...
6•nick__m•22m ago•5 comments

The open context engine for AI agents

https://github.com/Canner/wren-engine
1•chilijung•24m ago•0 comments

Ask HN: Did anyone else get logged out from HN today?

1•GranPC•27m ago•4 comments

Debugging Event-Sourced Systems: A Detective's Guide

https://docs.eventsourcingdb.io/blog/2026/03/30/debugging-event-sourced-systems-a-detectives-guide/
1•goloroden•29m ago•0 comments

Building a guitar trainer with embedded Rust

https://blog.orhun.dev/introducing-tuitar/
2•birdculture•30m ago•0 comments

AI-Native Community Platform Designed for Fire Island Pines

https://fireislandpines.app
1•jasonfb00•30m ago•1 comments

Stop Publishing Garbage Data, It's Embarrassing

https://successfulsoftware.net/2026/03/29/stop-publishing-garbage-data-its-embarrassing/
14•hermitcrab•34m ago•5 comments

Full network of clitoral nerves mapped out for first time

https://www.theguardian.com/society/2026/mar/29/full-network-clitoral-nerves-mapped-out-first-tim...
10•onei•34m ago•1 comments

The Cutting Room Floor

https://tcrf.net/The_Cutting_Room_Floor
2•petercooper•34m ago•0 comments

Show HN: Tinyvision:-Building Ultra-Lightweight Models for Image Tasks

https://github.com/SaptakBhoumik/TinyVision
2•saptakbhoumik3•36m ago•0 comments

Anthropic struggling with Chinese competition, its own safety obsession

https://www.theregister.com/2026/03/28/miss_anthropic_not_those_who/
2•Brajeshwar•36m ago•0 comments

AI CLI Tools Compared: Claude Code, Codex, Gemini CLI, Vibe CLI

https://yaw.sh/blog/ai-cli-tools-claude-code-codex-gemini/
1•jeffyaw•37m ago•1 comments