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/

Show HN: I computed a 109M-digit prime candidate for the EFF prize using Python

https://github.com/Ruqing1963/q59-prime-candidate
1•PrimeHunter_R•1m ago•0 comments

How Will Mamdani Handle His Tough New Job?

https://slate.com/news-and-politics/2026/01/zohran-mamdani-new-york-mayor-first-big-speech.html
1•rdudekul•3m ago•0 comments

Show HN: CoinFountains – Validate demand before you build

https://coinfountains.com/
1•julienreszka•5m ago•0 comments

The Fence About a Spending Decision? Try the 0.01% Rule

https://www.wsj.com/personal-finance/small-spending-money-rule-wealth-ladder-c41a96f2
1•doctaj•5m ago•1 comments

The Android date picker doesn't let you pick dates

https://www.mildlyangry.com/2026/the-android-date-picker-doesnt-let-you-pick-dates/
1•reddalo•9m ago•1 comments

I was scammed but found hope

1•Gerald_Malloy•9m ago•0 comments

Busy Is the New Stupid

https://www.cisotradecraft.com/bitns
2•escargot•10m ago•0 comments

Artists – Send Us Your Sound

https://billboard-bangladesh.odoo.com/blog/edm-news-4/artists-send-us-your-sound-2
1•billboardbd•12m ago•0 comments

TreeTracker Join: Simple, Optimal, Fast

https://dl.acm.org/doi/10.1145/3774325
1•remywang•13m ago•0 comments

Eraser: A Dynamic Data Race Detector for Multithreaded Programs (1997) [pdf]

https://web.stanford.edu/class/archive/cs/cs240/cs240.1054/readings/Tocs97.pdf
2•PaulHoule•13m ago•0 comments

Exploring the French January tradition of 'galette des rois' [video]

https://www.youtube.com/watch?v=-Az-iellcVw
2•bill38•13m ago•0 comments

Show HN: Vibe Coding a static site on a $25 Walmart Phone

https://stetsonblake.com/%2425+Walmart+Phone+for+Hackers
1•stets•13m ago•0 comments

2025 took AI from party tricks to production tools

https://quesma.com/blog/year-of-ai-2025/
1•stared•14m ago•0 comments

Anti-cheat evolution in Windows 11

https://www.andrea-allievi.com/blog/new-year-post-anti-cheat-evolution-in-windows-11/
1•davikr•14m ago•0 comments

Coding agent is a slot machine

https://blog.kvit.app/posts/variance-claude-vibe/
1•skolos•14m ago•0 comments

Tutorial on multiple currency accounting (2021)

https://www.mathstat.dal.ca/~selinger/accounting/tutorial.html
2•tosh•14m ago•0 comments

Groq and Nvidia Enter Non-Exclusive Inference Technology Licensing Agreement

https://groq.com/newsroom/groq-and-nvidia-enter-non-exclusive-inference-technology-licensing-agre...
1•jaynate•16m ago•0 comments

Gemini 3.0 Pro helps solve longstanding mystery in the Nuremberg Chronicle

https://siliconangle.com/2026/01/01/googles-gemini-3-0-pro-helps-solve-long-standing-mystery-nure...
1•jhalstead•16m ago•0 comments

Maybe Russia and China Should Sit This One Out

https://www.theatlantic.com/international/2026/01/maybe-russia-and-china-should-sit-one-out/685490/
2•JumpCrisscross•17m ago•0 comments

Xsight Labs E1 DPU a 64-Core Arm Neoverse N2 800G DPU

https://www.servethehome.com/this-is-the-xsight-labs-e1-dpu-a-64-core-arm-neoverse-n2-800g-dpu/
1•ksec•18m ago•1 comments

Show HN: A calm baby-name decision tool (not a generator)

https://loveatfirstname.com
2•arunprasath_s•20m ago•1 comments

Show HN: ZELF – A modular ELF64 packer with 22 vintage and modern codecs

https://github.com/seb3773/zelf
1•seb3773•23m ago•0 comments

Toward a Theory of Control Architecture [video]

https://www.youtube.com/watch?v=Equ3sChCuqI
2•surprisetalk•27m ago•0 comments

The Unreasonable Effectiveness of the Behavioral Sciences [video]

https://www.youtube.com/watch?v=fQEBYQB8_og
2•surprisetalk•27m ago•0 comments

What to Do If There's a Rat in Your Toilet

https://secretseattle.co/rat-toilet-western-washington-flooding/
1•surprisetalk•27m ago•0 comments

Doesnt: An Esoteric Programming Language

https://lists.sr.ht/~rabbits/horadric/%3C5d708fd1-1c01-4fb6-a8e5-61213a1e88f8@sheeeeeeeep.art%3E
2•surprisetalk•27m ago•0 comments

Show HN: No human should read logs anymore

https://ailogger.dev
1•relatedcode•30m ago•1 comments

Making an automated comment-moderation system for this blog

https://liquidbrain.net/blog/blog-comment-moderation/
1•sirodoht•31m ago•0 comments

Getting Metrics by Logging

https://www.natemeyvis.com/getting-metrics-by-logging/
1•Theaetetus•32m ago•0 comments

Show HN: A New Year gift for Python devs–My self-healing project's DNA analyzer

https://github.com/misa76868-lang/ultra-meta-seed
3•ultra-meta•32m ago•1 comments