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•1y ago

Comments

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

A Cheat Sheet for Attracting Private Sector Talent to Government

https://www.factorysettings.org/p/a-cheat-sheet-for-attracting-private
1•surprisetalk•1m ago•0 comments

Show HN: 178K Parameter Neural Net That Wins Poke(rogue)like

https://blog.thiagolira.com.br/i-got-so-mad-at-poke-rogue-like-that-i-trained-a-rl-agent-to-beat-...
1•farcaster•2m ago•0 comments

Keep Yourself Drain Ready

https://gr.ht/2023/08/08/keep-yourself-drain-ready.html
1•emerongi•3m ago•0 comments

MEPs urge European Commission to take action over Europol's shadow IT

https://www.computerweekly.com/news/366643585/MEPs-urge-European-Commission-to-take-action-over-E...
1•miohtama•6m ago•0 comments

Headroom

1•tashadir•7m ago•0 comments

Tech 'got spanked' in this week's primaries. It could preview more to come

https://www.politico.com/news/2026/06/04/tech-got-spanked-in-this-weeks-primaries-it-could-be-a-p...
2•JumpCrisscross•7m ago•0 comments

Show HN: My Rust SIMD code was silently running as scalar

https://coloneltoad.substack.com/p/why-my-simd-code-was-silently-running
1•tolugenius•7m ago•0 comments

What I've done with all the extra time gained from learning the Ian Knot

https://blog.klungo.no/2025/12/31/two-years-of-the-ian-knot/
1•danielskogly•7m ago•0 comments

Wiki Race Against AI

https://www.wikiraceai.com
1•yarv•8m ago•1 comments

Delusion as a Service

https://pluralistic.net/2026/06/03/mission-space/
3•hn_acker•8m ago•0 comments

A DNA-Based Archival Storage System [pdf]

https://homes.cs.washington.edu/~luisceze/publications/dnastorage-asplos16.pdf
1•cats_and_dogs•9m ago•1 comments

Agent-to-Agent Communication via Git

https://github.com/h5i-dev/h5i
1•zatkin•9m ago•0 comments

User Interfaces and "Blandification"

https://jordanm.co.uk/2026/05/21/blandification.html
1•speckx•10m ago•0 comments

When building is free, what do we build?

https://productnow.ai/blogs/a-dose-of-hope-for-the-future
2•kadhirvelm•12m ago•1 comments

Direct Preference Optimization Beyond Chatbots

https://huggingface.co/blog/Dharma-AI/direct-preference-optimization-beyond-chatbots
1•ibobev•13m ago•0 comments

Naively Summing an Alternating Series

https://www.johndcook.com/blog/2026/06/03/naive-sum/
1•ibobev•14m ago•0 comments

How to Read More

https://borretti.me/article/how-to-read-more
2•ibobev•14m ago•0 comments

Ideogram 4.0 Technical Details: Open model at the forefront of design

https://ideogram.ai/blog/ideogram-4.0/
1•GaggiX•14m ago•0 comments

Mr

1•patrickmwenya•15m ago•0 comments

I built Modeloop, a browser-based modeling tool for Control Systems

https://www.modeloop.app/
1•lucamark•16m ago•1 comments

Affine Space Types (2018)

http://videocortex.io/2018/Affine-Space-Types/
1•tosh•17m ago•0 comments

Canada Keeps Sabotaging Its Own Digital Sovereignty

https://ethanplant.ca/writing/canada-digital-sovereignty/
1•ethanplant•18m ago•0 comments

Show HN: Black-box API bug detection across 7 AI systems

https://resources.kusho.ai/ai-agent-benchmark-api-bug-detection
8•riyajoshi•19m ago•4 comments

Join 30 internet strangers in a group chat, locked forever

https://isle31.com/
2•vincentlenoach•19m ago•0 comments

Floating-point error handling in C++: what works?

https://johnnysswlab.com/floating-point-error-handling-in-c-what-actually-works/
1•fanf2•19m ago•0 comments

Notepad++ v8.9.6.4 Tiananmen Massacre Commemoration

https://notepad-plus-plus.org/news/v8964-released/
4•chao-•20m ago•2 comments

Solving the Worlds Hardest Problems with AI

https://worldproblemssolved.com
2•benzingtech•21m ago•1 comments

Why Are Men So Bad at Making–and Keeping–Friends?

https://www.derekthompson.org/p/americas-real-social-crisis-is-the
4•alcazar•21m ago•0 comments

OLM to PST Converter PDS OLM to PST Converter

https://apps.microsoft.com/detail/9n7jk7z3546j?hl=en-US&gl=US
1•tieanderson•21m ago•0 comments

Show HN: Boxes.dev: ditch localhost; run Claude Code and Codex in the cloud

https://boxes.dev
3•nab•23m ago•0 comments