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/

Senate Age Requirement Bill Introduced

https://www.kim.senate.gov/press_release/senators-kim-schiff-lummis-barrasso-introduce-bill-to-pr...
1•Rooster61•1m ago•0 comments

Fnalysis

https://zntrphy.fnalysis.com/en/
1•cadawallet•2m ago•0 comments

Show HN: BoundaryBench – benchmarking coding agents under real sandbox policy

https://github.com/boundary-bench/boundary-bench
1•_orcaman_•5m ago•0 comments

Sandboxing

https://zed.dev/blog/sandboxing
1•minimaxir•6m ago•1 comments

Did medieval people love their children?

https://worksinprogress.co/issue/did-medieval-people-love-their-children/
1•paulpauper•7m ago•0 comments

Data center foes win big in Tuesday's primaries

https://www.politico.com/news/2026/08/05/data-center-foes-win-big-in-tuesdays-primaries-01025481
2•mapping365•8m ago•1 comments

Show HN: Voca – Most AI tutors wander. I built one that follows a curriculum

https://vocalessons.com/
1•amreldessoukiad•8m ago•0 comments

The Three AI Pills

https://thezvi.substack.com/p/the-three-ai-pills
1•paulpauper•9m ago•0 comments

Atlassian Rovo Exfiltrates Data, Bypassing Controls

https://www.promptarmor.com/resources/atlassian-rovo-exfiltrates-data
1•hackerBanana•9m ago•0 comments

GDP Haters Aren't Making Serious Arguments

https://www.richardhanania.com/p/gdp-haters-arent-making-serious-arguments
1•paulpauper•9m ago•0 comments

Airtable Acquisition Is Kick in the Gut for Software Unicorns and Their Backers

https://www.wsj.com/pro/venture-capital/airtable-acquisition-is-kick-in-the-gut-for-software-unic...
1•petilon•10m ago•1 comments

2026 Python Type System and Tooling Survey

https://discuss.python.org/t/2026-python-type-system-and-tooling-survey-is-out/108426
1•ocamoss•10m ago•0 comments

Linux as a library: a coding agent with no VM and no sandbox

https://www.rapidnative.com/blogs/we-kept-the-shell-and-left-the-vm-anyway
1•sanketsahu•10m ago•0 comments

Cloudflare bought exmaple.com to prevent typos (2023)

https://blog.cloudflare.com/typo-traps-analyzing-traffic-to-exmaple-com-or-is-it-example-com/
1•somebudyelse•11m ago•0 comments

Lessons learned from using GitHub Actions

https://joshghent.com/github-actions-lessons/
1•speckx•11m ago•0 comments

Phishers are hijacking legitimate cloud infrastructure

https://securelist.com/cloud-platforms-in-phishing/120832/
2•lschueller•12m ago•0 comments

Ask HN: What would make you list your AI product on a new marketplace?

1•Achrima•12m ago•1 comments

Show HN: Cool Concepts

https://mkornreich.me/projects/coolconcepts/
1•enjoyyourlife•15m ago•0 comments

AI is a bubble, just like dot-com

https://www.constraintlab.com/blog/ai-is-a-bubble-just-like-dot-com.html
2•potetm•15m ago•0 comments

Show HN: LingoForge – AI-powered IELTS writing with instant feedback

https://lingoforge.net/en/start
1•chenillen•16m ago•0 comments

SpaceX spooks investors with debut earnings report

https://arstechnica.com/ai/2026/08/spacex-spooks-investors-with-debut-earnings-report/
4•cdrnsf•20m ago•0 comments

Interlock: A runtime firewall for AI agents that assumes injection won

https://yashwanthreddymali.com/blog/interlock-exfiltration-at-runtime/
2•yxshwanthreddy•21m ago•1 comments

Antibiotic resistance in kids is rising around the world

https://www.livescience.com/health/medicine-drugs/its-real-and-its-happening-antibiotic-resistanc...
3•speckx•21m ago•0 comments

Show HN: PON-BEAM re-architecture of the Erlang VM

https://github.com/matheuscamarques/pon_beam
1•matheusosan•22m ago•0 comments

Jensen Says No AI Bubble 'Incredibly Profitable' 'Happy to Pay'

https://www.barchart.com/story/news/3665107/nvidias-jensen-huang-says-theres-no-ai-bubble-because...
2•mapping365•23m ago•0 comments

New 16T parameter model with a 4B token context window released

https://huggingface.co/tsfrm/vacuum-16t
3•jedberg•24m ago•1 comments

New platform to predict human medical outcomes [pdf]

https://oliolabs.com/RoseberryKrauszWilliamsTingley_2026.pdf
1•appliedbio•24m ago•0 comments

Coinage – every dollar invested until the second you spend it

https://www.coinage.app
3•nandhd•25m ago•0 comments

AI Security Leaderboard: Methodology, Results and Minimal Standard

https://arxiv.org/abs/2608.03070
2•sbulaev•25m ago•0 comments

Long Range Career Advice

https://twitter.com/spakhm/status/2085040887474667865
1•tosh•25m ago•0 comments