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/

More common mistakes to avoid when creating system architecture diagrams

https://www.ilograph.com/blog/posts/more-common-diagram-mistakes/
1•billyp-rva•1m ago•0 comments

The Chagos islanders who made it home

https://www.telegraph.co.uk/news/2026/02/28/my-72-hour-ocean-odyssey-to-meet-the-chagos-islanders/
1•OJFord•1m ago•0 comments

No fences, no guards at ASML HQ. The EUV monopoly sits on a bike path

https://lightcapai.medium.com/i-walked-up-to-the-most-powerful-chokepoint-in-tech-there-were-no-g...
1•gurbuzoyuncu•2m ago•0 comments

"Energy fishes" – floating turbines for ecological hydropower

https://energyminer.eu/en/
1•xg15•4m ago•1 comments

Ask GitHub Repo – Chat with any public codebase (free tool)

https://99helpers.com/tools/ask-github-repo
1•nickk81•7m ago•0 comments

Total fertility rate doesn't tell the number of births women eventually have

https://ourworldindata.org/total-fertility-rate-births-per-woman
1•shubhamjain•8m ago•0 comments

Can Programming Be Liberated from the von Neumann Style? (1977) [pdf]

https://worrydream.com/refs/Backus_1978_-_Can_Programming_Be_Liberated_from_the_von_Neumann_Style...
2•tosh•9m ago•0 comments

Show HN: PianoFun – Browser piano learning game with MIDI (vanilla JavaScript)

2•victorbuilds•10m ago•1 comments

PersonaWars

https://personawars.com
1•colapsis•13m ago•0 comments

Memory crisis latest: What we learned from the top producers this week

https://www.cnbc.com/2026/03/20/memory-crisis-latest-dram-chips-micron-samsung-sk-hynix.html
1•1vuio0pswjnm7•13m ago•1 comments

Bernie vs. Claude [video]

https://www.youtube.com/watch?v=h3AtWdeu_G0
1•krtab•15m ago•0 comments

StitchSentry – preflight checks for embroidery files

https://stitchsentry.com
1•naifmhd•22m ago•0 comments

Flash-Moe: Running a 397B Parameter Model on a Mac with 48GB RAM

https://github.com/danveloper/flash-moe
2•mft_•23m ago•0 comments

EVs can make power grids more reliable (and earn owners money)

https://techxplore.com/news/2026-03-electric-cars-power-grids-reliable.html
1•geox•24m ago•0 comments

Open source infrastructure (built in Rust) for internal software and AI agents

https://github.com/RootCX/RootCX
1•seyz•32m ago•0 comments

Calendrical Calculations

https://en.wikipedia.org/wiki/Calendrical_Calculations
3•tosh•38m ago•1 comments

When machines pay machines, who bills the machine?

https://www.billingbird.io/p/when-machines-pay-machines-who-bills
3•the_reconciler•39m ago•1 comments

No existing dev tool fits perfectly, so I built my own

https://devleo.ch/blog/build-your-own-workflow
2•leonardcser•41m ago•1 comments

One Word Silenced the West [video]

https://www.youtube.com/watch?v=l6lbSU189AQ
2•joe_mamba•42m ago•0 comments

Reports of code's death are greatly exaggerated

https://stevekrouse.com/precision
5•stevekrouse•43m ago•2 comments

Only 9% of MSPs have strong email spoofing protection across lookalike domains

https://shieldmarc.com/blog/research/uk-msp-dmarc-audit-2026
2•AMuffinman•44m ago•1 comments

A little gap that will ensure the future of AI Agents being autonomous

3•utsav-develops•46m ago•0 comments

Non-trivial error in physics paper found via Lean

https://arxiv.org/abs/2603.08139
3•leanexplorer•49m ago•1 comments

Careless Whisper – personal local speech to text

https://github.com/YarivGilad/careless-whisper
2•harel•51m ago•0 comments

Amanda Peet on Getting Breast Cancer While Losing Her Parents

https://www.newyorker.com/culture/the-weekend-essay/my-season-of-ativan
2•Anon84•1h ago•0 comments

Decorative Patterns of the Ancient World (1930)

https://archive.org/details/in.gov.ignca.39205
1•bookofjoe•1h ago•0 comments

CryptoSlate is charging AI agents $0.09 per article via x402

https://proofivy.com/blog/cryptoslate_x402_pay_per_article_is_live
1•maarten3•1h ago•0 comments

Contrarian AI Investment Theses

https://investinginai.substack.com/p/the-great-ai-contraction-5-contrarian
2•robmay•1h ago•1 comments

Anthropic sent lawyers – no more Claude Max in OpenCode

https://twitter.com/thdxr/status/2034730036759339100
4•BaudouinVH•1h ago•2 comments

Ext-Markdown-mirror – now supports Pages Router and better image handling

https://github.com/JakubKontra/next-markdown-mirror
1•JakubKontra•1h ago•0 comments