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/

Opus 5.5 Built Seven Adobe Clones in Rust

https://www.orcarouter.ai/blog/artcraft-opus-5-5-seven-adobe-clones-in-rust
1•pelagicAustral•1m ago•0 comments

Show HN: Daisy – Local-first meeting recorder for Mac with an MCP server

https://github.com/ca33u/daisy-app
1•ca33u•2m ago•0 comments

Ask HN: Anyone did workshops for students on using agents/Claude Code?

1•kolinko•4m ago•0 comments

Open Source Project:Run many coding agents at once, with a gate in front of prod

https://github.com/NicholasFlemmer/styx-app
1•nicflemmer•5m ago•0 comments

Fervo Energy: Big Tech's Clean Energy Bet Is Unraveling

https://www.morpheus-research.com/fervo/
1•mempirate•6m ago•0 comments

AlphaSteel ReviEwS (2026): We Tried It My Honest Review

https://script.google.com/macros/s/AKfycbzeHJ41bEHs5o2zIQHi8wt4hi9K2Itk6VrzOGrUGlFQaqPrNVgs_e6YyC...
1•ralugatk•11m ago•0 comments

Latent space bias directions in LLMs capture confidence, not fairness

https://arxiv.org/abs/2610.08559
1•sbulaev•13m ago•0 comments

Silicon Valley thinks AI will kill jobs. Economists are not convinced

https://www.ft.com/content/8f783c04-5fc5-43d4-bab2-495ac31806c6
1•1vuio0pswjnm7•15m ago•0 comments

Forever Junior: The Skills AI Can't Develop for You

https://tech.criteo.com/blog/human-skills-ai-cant-develop-junior-engineers/
1•brugidou•20m ago•0 comments

Books of the Times; Hackers as Heroes (1999)

https://archive.nytimes.com/www.nytimes.com/books/99/01/03/specials/levy-hackers.html
2•so-cal-schemer•31m ago•1 comments

Are CAPTCHAs Still Bot-Hard?

https://halligan.pages.dev/
4•vednig•31m ago•0 comments

pg_plan_filter 1.0.0 Released

https://www.postgresql.org/about/news/pg_plan_filter-100-released-3352/
1•ear7h•36m ago•0 comments

High Interest Rates Aren't Slowing AI Boom

https://www.nytimes.com/2026/10/05/business/ai-boom-interest-rates-fed.html
2•Ambolia•37m ago•1 comments

Show HN: GitHub Action to check AI-written code changes no files, without review

https://github.com/yuyuyuyuyu-dev/assert-no-unexpected-changes
1•yuyuyuyuyu-dev•38m ago•0 comments

Twenty-two pending curl vulnerabilities

https://daniel.haxx.se/blog/2026/10/07/twenty-two-pending-curl-vulnerabilities/
3•mfrw•42m ago•1 comments

HN has lost the joy for me

4•trencedamp•47m ago•0 comments

Show HN: Neptune, a free and open-source terminal built in Rust

https://github.com/zevem/neptune
2•gabo2006•49m ago•1 comments

Longest traffic jam (number of vehicles): Berlin 1990

https://www.guinnessworldrecords.com/world-records/461618-longest-traffic-jam-number-of-vehicles
3•rguiscard•49m ago•0 comments

Stack Overflow Developer Survey – Number of HN Comments by Year (Last 8 Years)

https://i.imgur.com/wN2XVEE.png
2•nomilk•59m ago•0 comments

The Fever Has Broken – Why "Chinamaxxing" Matters

https://www.sinicapodcast.com/p/the-fever-broken-for-now
1•verdverm•1h ago•0 comments

Licensing costs driving 90 percent of VMware users to explore options: Survey

https://arstechnica.com/information-technology/2026/10/operational-complexity-a-top-barrier-for-v...
2•joozio•1h ago•0 comments

Vanishing Crossword

https://wordmaze.dev/
2•sidPhoenix17•1h ago•0 comments

Software developers are not okay

https://www.baldurbjarnason.com/2026/05-software-developers-are-not-okay/
3•equalsione•1h ago•0 comments

What's missing from the lethal injection conversation

https://www.npr.org/2026/10/07/nx-s1-5991797/christa-pike-execution-injection-alive-dead
2•theanonymousone•1h ago•0 comments

I'm starting a company that uses no AI, A letter from San Francisco, October '26

https://no-ai-tau.vercel.app/
2•normanvalentine•1h ago•0 comments

CVE-2026-63277 – LibreOffice Remote Code Execution

https://github.com/advisories/GHSA-5JX8-5G92-5W59
1•mritzmann•1h ago•0 comments

DBX: Database Manager

https://dbxio.com/en
1•thunderbong•1h ago•0 comments

LGTM: A parody of modern AI adoption in the tech industry [video]

https://www.youtube.com/watch?v=3TNpOD6bov8
4•alexeyza•1h ago•1 comments

The one ring problem: abstraction and our quest for power (2018)

https://www.tedinski.com/2018/01/30/the-one-ring-problem-abstraction-and-power.html
2•signa11•1h ago•0 comments

Python none coalescing? and?= pep 824

https://peps.python.org/pep-0824/
3•gigatexal•1h ago•0 comments