frontpage.
newsnewestaskshowjobs

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/

Nazi Germany had no hope of making an atomic bomb, uranium cubes reveal

https://www.science.org/content/article/nazi-germany-had-no-hope-making-atomic-bomb-uranium-cubes...
1•xqcgrek2•3m ago•0 comments

Ask HN: Programming Codex/Claude to code for a duration

1•senor_digimon•4m ago•0 comments

Toronto hospital to expand permanent housing program that reduces ER visits

https://www.cbc.ca/news/canada/toronto/ont-dunn-house-9.7365728
1•BiraIgnacio•5m ago•0 comments

AI decompiling and combining Games: The Skate 3 in MW2 Mod is Unbelievable [video]

https://www.youtube.com/watch?v=I6BkcPdKQ8U
1•reimertz•6m ago•0 comments

Forget 'superintelligence': error-prone AI nearly sparked world war three

https://www.theguardian.com/commentisfree/2026/oct/01/forget-superintelligence-error-prone-ai-nea...
1•pseudolus•6m ago•0 comments

Praxis-1

https://runway.com/research/introducing-praxis-1
2•gmays•8m ago•0 comments

Bevy - a refreshingly simple data-driven game engine built in Rust

https://bevy.org/
1•reimertz•10m ago•0 comments

Our AI Midwife

https://www.astralcodexten.com/p/our-ai-midwife
1•semiquaver•12m ago•0 comments

Show HN: Sovereign-NB: Sub-microsecond bare-metal neural engine in Rust (UEFI)

https://github.com/msndsn123a/Sovereign-NB
1•msndsn123a•16m ago•0 comments

KernelBench: Can LLMs Write GPU Kernels? – Benchmark and Toolkit, Torch –> CUDA

https://github.com/ScalingIntelligence/KernelBench
1•peter_d_sherman•19m ago•0 comments

Martian Chaos Terrain

https://en.wikipedia.org/wiki/Martian_chaos_terrain
2•tiagod•21m ago•0 comments

Show HN: I made a bullet heaven game no one seems showing intresting

https://store.steampowered.com/app/5170580/Blend_Hunter_Smoothie_Bullet_Heaven/
1•sacravenger•21m ago•1 comments

Rate limits for private vulnerability reports

https://github.blog/changelog/2026-10-01-rate-limits-for-private-vulnerability-reports/
1•tech234a•23m ago•1 comments

Show HN: Agent team runtime with concrete lifecycle management

https://github.com/ringlochid/oh-my-subagents
1•ringlochid•24m ago•0 comments

Agentic coding's effect on Hacker News hiring threads

https://bsky.app/profile/largbae.bsky.social/post/3mwtqukfbcs23
1•largbae•27m ago•1 comments

HarnessTax: How Much Does the Harness Matter for Coding Agents?

https://arena.ai/blog/coding-agents-harness-tax
1•luispa•28m ago•0 comments

Show HN: QLCodePreview, syntax highlighting in Finder's Quick Look

https://konstruukt.com/projects/qlcodepreview/
1•realityloop•28m ago•1 comments

AI Benchmark Scores: Why 82% is actually 57%

https://lessuncertain.substack.com/p/how-to-read-and-haircut-ai-benchmark
1•luhe1900•30m ago•0 comments

Vaping for Crypto

https://www.nejm.org/doi/full/10.1056/NEJMp2606580?query=featured_home
1•maxall4•30m ago•0 comments

Reddit is ending RSS support on November 13

https://www.reddit.com/r/modnews/comments/1wubgvt/continuing_our_infrastructure_updates_whats/
7•soheilpro•30m ago•1 comments

100% free coding agent funded by ads

https://freebuff.com
1•darweenist•36m ago•0 comments

Merchants, Slaves, Peculium: The History of LLCs

https://www.kjmlaw.com/merchants-slaves-peculium-history-llcs/
1•gradus_ad•37m ago•0 comments

Intercommunalism

https://en.wikipedia.org/wiki/Intercommunalism
1•mooreds•38m ago•0 comments

Open-source, community-driven infrastructure for decentralized social media

https://github.com/blacksky-algorithms
2•mooreds•38m ago•0 comments

OVOS and Mycroft: A Fork That Wasn't Meant to Be

https://blog.openvoiceos.org
1•giancarlostoro•38m ago•0 comments

All Protection, All Month

https://mailchi.mp/vennfactory/oct-a-productivity
1•mooreds•39m ago•0 comments

Senate holds a hearing on AI [video]

https://www.youtube.com/watch?v=QYsfNRCj8H8
1•smalltorch•40m ago•0 comments

The Siren Call of Silicon Leviathan: Reflections on Blowup and Aufklärungsdämmer

https://arxiv.org/abs/2609.28591
1•hkhn•40m ago•0 comments

The essay on the Navier-Stokes story that everyone should read

https://siliconreckoner.substack.com/p/the-essay-on-the-navier-stokes-story
1•hkhn•43m ago•0 comments

Codex stopped working after latest update on macOS

https://twitter.com/theadriannoel/status/2105821027108343926
2•absqueued•44m ago•1 comments