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/

Microsoft blocks trick to unlock native NVMe driver, but workarounds still exist

https://www.tomshardware.com/software/windows/microsoft-blocks-the-registry-hack-trick-that-unloc...
2•josephcsible•9m ago•0 comments

Ask HN: AI companies' bots are making my server slow, what do you do?

1•aabbcc1241•12m ago•1 comments

Alibaba Unveils New Chip Design to Meet Surging Demand for AI

https://www.bloomberg.com/news/articles/2026-03-24/alibaba-unveils-new-chip-design-to-meet-surgin...
1•voxadam•15m ago•1 comments

Show HN: ArXiv metadata as Parquet files (2.99M papers, 1.44GB, 417 files)

https://huggingface.co/datasets/open-index/open-arxiv
1•tamnd•16m ago•0 comments

FCC Clearing the Air on Wi-Fi Software Updates (2015)

https://www.fcc.gov/news-events/blog/2015/11/12/clearing-air-wi-fi-software-updates
1•walterbell•21m ago•0 comments

Sovereign AI OS and SAMN Introduction

1•twocats7701•23m ago•0 comments

How Do US Men and Women Spend Their Time?

https://www.pewresearch.org/social-trends/feature/how-do-u-s-men-and-women-spend-their-time/
1•gmays•24m ago•0 comments

Firefox ext: Bkmker · Your bookmarks, encrypted and private

https://addons.mozilla.org/en-US/firefox/addon/bkmker/
2•fullstacking•30m ago•0 comments

OpenTarget Core: Laser Shooting Platform for Raspberry Pi Using OpenCV

https://github.com/JSK-Project/OpenTarget-Core
1•laurieg•32m ago•0 comments

Aspect Ratios with Sinners Director Ryan Coogler (2025)

https://www.youtube.com/watch?v=78Ru62uFM0s
1•hbcondo714•35m ago•0 comments

Halo-Gravity Traction

https://www.childrenshospital.org/conditions-treatments/halo-gravity-traction
1•walterbell•37m ago•0 comments

California bill aims to help vibe coders

https://www.semafor.com/article/03/20/2026/california-bill-aims-to-help-vibe-coders
2•gnabgib•38m ago•1 comments

A city that wasted nothing [video]

https://aeon.co/videos/the-extraordinary-efficiency-of-japans-edo-economy
4•billybuckwheat•39m ago•1 comments

Show HN: Locro – Fast and accurate local OCR through Chrome's screen_ai

https://github.com/sergiocorreia/clv-locro
1•zzleeper•40m ago•0 comments

'Microshifting' puts a new spin on 9-to-5 schedules

https://apnews.com/article/microshifting-work-time-flexible-schedule-balance-97a98519916b447cd60c...
1•donutshop•41m ago•0 comments

California bill to stop 'dominant platforms' from blocking competition

https://yro.slashdot.org/story/26/03/22/2025249/tech-leaders-support-california-bill-to-stop-domi...
4•MilnerRoute•41m ago•0 comments

Mars to Wars: New Space pivots to weaponize space

https://www.defensenews.com/space/2026/02/19/spacex-and-blue-origin-abruptly-shift-priorities-ami...
3•infinitewars•42m ago•1 comments

The Un-Slop Fiction Prize

https://www.hyperstitionai.com/unslop
1•Curiositry•45m ago•0 comments

Blackburn AI Bill Repeals Section 230, Expands AI Liability, Age Verification

https://reclaimthenet.org/trump-america-ai-act-section-230-repeal-ai-liability-age-verification
4•walterbell•47m ago•0 comments

Nashville library launches Memory Lab for digitizing home movies

https://www.axios.com/local/nashville/2026/03/16/nashville-library-digitize-home-movies
3•toomuchtodo•47m ago•0 comments

Show HN: Generate, preview, and export 3D models without complex software

https://www.ai3dgen.com
2•stewardyunn•54m ago•0 comments

My Prodigal Brainchild

https://nealstephenson.substack.com/p/my-prodigal-brainchild
2•martinlaz•54m ago•0 comments

Show HN: A form builder that feels like chatting

https://www.typerson.com
1•briandev•57m ago•0 comments

Box of Secrets: Discreetly modding an apartment intercom with Matter

https://www.jackhogan.me/blog/box-of-secrets/
16•swq115•58m ago•1 comments

PwC will say goodbye to staff who aren't convinced about AI

https://www.theregister.com/2026/03/19/pwc_ai/
4•gnabgib•1h ago•1 comments

StackOverflow's questions per day have fallen 99%

https://meta.stackoverflow.com/questions/433864/do-you-agree-with-gergely-that-stack-overflow-is-...
13•stevage•1h ago•3 comments

Music manuscripts from Cologne now linked to digitized copies

https://rism.info/library_collections/2026/03/19/Music-manuscripts-from-Cologne.html
1•gnabgib•1h ago•0 comments

Where did 400 MiB go?

https://frn.sh/pmem/
3•thunderbong•1h ago•0 comments

Naomi Klein and Karen Hao: The Empire of AI and the Fight for Our Future [video]

https://www.youtube.com/watch?v=Z1B__Efqacc
1•ares623•1h ago•0 comments

The Equal Vote Coalition

https://www.equal.vote/
3•pabs3•1h ago•1 comments