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

Comments

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

"Let Us Calculate ": Leibniz, Llull, and the Computational Imagination (2016)

https://publicdomainreview.org/essay/let-us-calculate-leibniz-llull-and-the-computational-imagina...
1•aarghh•1m ago•0 comments

Show HN: Homebutler – I manage my homelab from chat. AI never gets raw shell

https://homebutler.dev
1•swq115•1m ago•0 comments

UK.gov's top tech jobs pay more than prime minister earns

https://www.theregister.com/2026/04/09/dsit_tech_jobs/
1•giuliomagnifico•3m ago•0 comments

Why the Dark Forest Hypothesis Probably Isn't True

https://www.jehanazad.com/p/why-the-dark-forest-hypothesis-probably
1•surprisetalk•4m ago•0 comments

Two Flags for Our Species

https://pharker.substack.com/p/two-flags-for-our-species
1•surprisetalk•4m ago•0 comments

Is Salt Salty?

https://news.vilf.org/p/is-salt-salty
1•surprisetalk•4m ago•0 comments

Parsing IP addresses quickly (portably, without SIMD magic)

https://lemire.me/blog/2025/12/27/parsing-ip-addresses-quickly-portably-without-simd-magic/
1•surprisetalk•4m ago•0 comments

Show HN: I built Dirac, Hash Anchored AST native coding agent, costs -64.8 pct

https://github.com/dirac-run/dirac
1•GodelNumbering•4m ago•1 comments

Old School Runescape launches servers in Brazil

https://secure.runescape.com/m=news/brazilian-game-worlds-are-live?oldschool=1
1•matx•5m ago•0 comments

Optimism and Risk of Dementia

https://agsjournals.onlinelibrary.wiley.com/doi/10.1111/jgs.70392
1•wjb3•5m ago•1 comments

Leaflet: An open-source JavaScript library for mobile-friendly interactive maps

https://leafletjs.com/
1•doener•6m ago•0 comments

A WebGPU Implementation of Augmented Vertex Block Descent

https://github.com/jure/webphysics
1•juretriglav•9m ago•0 comments

Claude-Switch – Swap between Claude Code accounts easily

https://github.com/Mamdouh66/claude-switch
1•mamdouh_ai•10m ago•0 comments

UK Defence secretary reveals month-long Russian submarine operation over cables

https://www.bbc.co.uk/news/live/cg54mdlqppjt
2•spzb•13m ago•0 comments

Show HN: Maki – The efficient terminal coding agent

https://maki.sh/
1•deronEx•13m ago•0 comments

Tech firms enter legal limbo over child abuse scanning

https://www.politico.eu/article/tech-firms-enter-legal-limbo-over-child-abuse-scanning/
1•speckx•13m ago•0 comments

Lichess and Take Take Take Sign Cooperation Agreement

https://lichess.org/@/Lichess/blog/lichess-and-take-take-take-sign-cooperation-agreement/DZS0S0Dy
1•stevage•14m ago•0 comments

Cultural Flags – Wikimedia Commons

https://commons.wikimedia.org/wiki/Cultural_flags
2•reaperducer•14m ago•0 comments

Show HN: Webcellar – JavaScript (and TypeScript) in Excel Made Simple

https://github.com/Acmeon/Webcellar
1•Acmeon•17m ago•0 comments

AI for Small and Medium Businesses. Tadviser Conference Report

1•anong1•17m ago•1 comments

A visual guide to Gemma4

https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-gemma-4
1•saikatsg•17m ago•0 comments

Support Betterbird

https://www.betterbird.eu/end-of-year/
1•ekianjo•23m ago•0 comments

Gomoku (5 in a Row) in Zig (Minimax with Alpha-Beta Pruning) Zig/WASM

https://github.com/begoon/gomoku-zig/
1•begoon•24m ago•0 comments

Giving LLMs a Formal Reasoning Engine for Code Analysis

https://yogthos.net/posts/2026-04-08-neurosymbolic-mcp.html
3•boriskourt•26m ago•1 comments

When Representation Replaces Reality in Modern Systems

https://dx.doi.org/10.2139/ssrn.6150706
2•realitydrift•28m ago•0 comments

Sokoban Solver in Zig

https://github.com/begoon/zig-sokoban-solver/
1•begoon•28m ago•0 comments

The Intl API: The best browser API you're not using

https://polypane.app/blog/the-intl-api-the-best-browser-api-youre-not-using/
2•Terretta•33m ago•0 comments

This "rotten egg" brain gas could be the key to fighting Alzheimer's disease

https://www.sciencedaily.com/releases/2026/04/260408225933.htm
1•Noaidi•35m ago•1 comments

The State of Startups 2026

https://supabase.com/state-of-startups
1•fmerian•36m ago•0 comments

A Three- and a Four- Body Problem

https://www.johndcook.com/blog/2026/04/08/artemis-1-apollo-12/
1•ibobev•37m ago•0 comments