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•8mo ago

Comments

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

In 2026, ICE detainees are dying at an alarming rate

https://popular.info/p/in-2026-ice-detainees-are-dying-at
3•throwaway5752•2m ago•0 comments

Protect the Dolls

https://naomicunningham.substack.com/p/protect-the-dolls
1•yes_you•5m ago•0 comments

Unpleasant Design and Hostile Urban Architecture (2016)

https://99percentinvisible.org/episode/unpleasant-design-hostile-urban-architecture/
2•jacobedawson•6m ago•0 comments

Against Generative AI: Is Art the Last Refuge of Our Humanity?

https://lithub.com/against-generative-ai-is-art-the-last-refuge-of-our-humanity/
1•FigurativeVoid•8m ago•0 comments

African trade has been vastly underestimated

https://www.economist.com/middle-east-and-africa/2026/01/18/african-trade-has-been-vastly-underes...
2•petethomas•10m ago•0 comments

Results from the 2025 Go Developer Survey

https://go.dev/blog/survey2025
1•prattmic•12m ago•0 comments

A zero-overhead bridge between C++23 std:mdspan and CUTLASS cute layouts

https://github.com/weyl-ai/mdspan-cute
1•benreesman•16m ago•1 comments

SUPERMAN Written by James Gunn [pdf]

https://www.superman.com/script/supermanscript.pdf
1•hbcondo714•17m ago•0 comments

Sine – The ultimate theme manager for Firefox-based browsers

https://github.com/CosmoCreeper/Sine
1•modinfo•17m ago•0 comments

Show HN: Roo Code Slack: end to end agentic workflow in Slack

https://www.youtube.com/watch?v=dJM_8HHGe1E
1•hrudolph•23m ago•0 comments

Ask HN: CVAT users, how do you QA labels?

1•Abderrahman54•23m ago•1 comments

2025 AI Wrapped: What I've Shipped with 100% AI-generated code

https://www.jsrowe.com/ai-wrapped-evolution-of-using-ai-every-day/
3•jsr6720•25m ago•0 comments

Best Practices for Claude Code

https://code.claude.com/docs/en/best-practices
2•mfiguiere•25m ago•0 comments

Show HN: Markdown TOC generator for JavaScript builds.Works recursively for repo

1•datalackey•25m ago•0 comments

Delta single handle ball faucets (1963)

https://archive.org/details/DeltaSingleHandleBallFaucets
1•userbinator•26m ago•0 comments

Meta Pays $3B for Manus: Its Fastest Path to AI Agent Dominance

https://gilpignol.substack.com/p/meta-pays-3-billion-for-manus-its
1•light_triad•26m ago•0 comments

Show HN: Wisp: Stateful Claude Code Management

https://github.com/canaanmckenzie/Wisp
3•prince_nez•29m ago•0 comments

ClearFlow Keyboard

https://clearflowkeyboard.github.io/
2•_thisdot•31m ago•0 comments

SlimEdge: Lightweight Distributed DNN Deployment on Constrained Hardware

https://arxiv.org/abs/2512.22136
1•PaulHoule•35m ago•0 comments

High speed graphics rendering research with tinygrad/tinyJIT

https://github.com/quantbagel/gtinygrad
3•quantbagel•37m ago•0 comments

Show HN: Laptop Stickers – cheap individual short run stickers

https://laptopstickers.store/
1•decryption•37m ago•0 comments

Libcurl Memory Use Some Years Later

https://daniel.haxx.se/blog/2026/01/21/libcurl-memory-use-some-years-later/
3•firesteelrain•39m ago•0 comments

Waymo founder John Krafcik: Tesla's Full Self-Driving has 'bad case of myopia'

https://electrek.co/2026/01/20/waymo-founder-john-krafcik-teslas-full-self-driving-myopia/
1•senti_sentient•42m ago•0 comments

Infinite Jest

https://infinijest.com
3•hn_throway•43m ago•1 comments

Show HN: I built an AI that calls you and practices spoken English with you

https://englishcall.online/
2•rahma_tm•45m ago•0 comments

Why Big Tech Performance Reviews Aren't Meritocratic

https://medium.com/data-science-collective/big-tech-performance-review-01fff2c5924d
3•dikobraz•54m ago•1 comments

Time Until Someone Points Out This Is Not a Real Study

https://journal-preliminary-results.fly.dev/38472951
1•ipnon•58m ago•0 comments

Agree or Disagree

https://a-or-d.lovable.app
2•Conceiver•58m ago•0 comments

Dev Logs Without the Noise (2024)

https://peterlyons.com/problog/2024/08/dev-logs-without-the-noise/
1•mooreds•58m ago•0 comments

Ruby_LLM-agents: A Rails agent framework for RubyLLM

https://github.com/adham90/ruby_llm-agents
1•thunderbong•1h ago•0 comments