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

Running Cloud LLMs Inside LM Studio

https://blog.gdmka.me/running-cloud-llms-inside-lm-studio/
1•gdmka•51s ago•0 comments

Homeowner threatens to sue over bear that won't leave

https://ktla.com/news/local-news/altadena-homeowner-threatens-to-sue-over-bear-that-wont-leave/
1•Bender•1m ago•0 comments

My frivolous CW superproject (and how it nearly broke me)

http://ei3lh.eu/?p=186
1•austinallegro•2m ago•0 comments

List of domains censored by German ISPs

https://cuiiliste.de/domains
1•elcapitan•3m ago•0 comments

Tech Predictions for 2026

https://www.thepourquoipas.com/post/13-tech-predictions-for-2026
1•KainBoorde•3m ago•0 comments

Repurposing Crustaceans' Abdomen Exoskeleton for Bio-Hybrid Robots

https://advanced.onlinelibrary.wiley.com/doi/10.1002/advs.202517712
1•PaulHoule•5m ago•0 comments

The production bug that made me care about undefined behavior

https://gaultier.github.io/blog/the_production_bug_that_made_me_care_about_undefined_behavior.html
2•birdculture•7m ago•0 comments

Ask HN: Best resources to learn Low level Design?

1•Kiran_p•7m ago•0 comments

Shippy (help ship work and earn royalties)

https://shippy.sh
2•iwasrobbed•9m ago•1 comments

Ask HN: How do you backup your Google account?

1•leros•10m ago•0 comments

I built a TL;DR for markets so I don't doomscroll all day

https://tldr.market/?timeframe=1D
4•firedexplorer•14m ago•2 comments

How Writes Work in Apache Cassandra

https://arpitbhayani.me/blogs/cassandra-writes/
1•kishorlearnings•16m ago•0 comments

Notes on Agentic Programming

https://blog.valentin.sh/llm-coding/
1•foobuzzHN•22m ago•0 comments

NextPath Mag: How did the industry get into this mess?

https://robbygrodin.substack.com/p/how-did-the-industry-get-into-this
1•code_pig•25m ago•0 comments

FBI Response to Minnesota Fraud Allegations

https://www.axios.com/2025/12/29/nick-shirley-minnesota-fraud-vance-fbi-somali
13•Geonode•26m ago•1 comments

Tesla's 4680 battery supply chain collapses as partner writes down deal by 99%

https://electrek.co/2025/12/29/tesla-4680-battery-supply-chain-collapses-partner-writes-down-dea/
80•coloneltcb•27m ago•31 comments

China wants to ban making yourself into an AI to keep aged relatives company

https://www.theregister.com/2025/12/29/asia_tech_news_roundup/
2•Bender•28m ago•0 comments

Bad Wi-Fi at home? Try my 10 go-to ways to fix your internet this weekend

https://www.zdnet.com/home-and-office/networking/bad-wifi-10-fixes-for-better-internet/
1•CrankyBear•30m ago•0 comments

'NCIS' Actress Katrina Law Accuses Her Ex of Using AI to Impersonate Her

https://www.sanluisobispo.com/entertainment/us-weekly/article314033495.html
1•Bender•30m ago•0 comments

Oliver Byrne's "The Elements of Euclid", First Six Books [pdf]

https://proyectodescartes.org/revista/Numeros/Revista_3_2022/docs/byrne_context.pdf
4•ogogmad•32m ago•4 comments

Bloom Filters

https://arpitbhayani.me/blogs/bloom-filters/
1•bisgautam•32m ago•0 comments

Show HN: MCP-Reddit – Reddit scraper for Claude, no API keys needed

https://pypi.org/project/mcp-reddit/
2•namanajmera•33m ago•1 comments

China drafts strictest rules to end AI-encouraged suicide, violence

https://arstechnica.com/tech-policy/2025/12/china-drafts-worlds-strictest-rules-to-end-ai-encoura...
2•Bender•35m ago•0 comments

Ask HN: In the real world we pay for everything so why not software?

1•asim•38m ago•3 comments

The Enshittifinancial Crisis

https://www.wheresyoured.at/the-enshittifinancial-crisis/
7•spking•39m ago•1 comments

Show HN: Neko.js, a recreation of the first virtual pet

https://louisabraham.github.io/nekojs/
1•Labo333•40m ago•0 comments

About Architecting and running modern IT Infrastructure in Trains [video]

https://media.ccc.de/v/denog17-78243-you-can-t-just-model-a-train-in-netbox-about-architecting-an...
1•doener•40m ago•0 comments

The Lure of a Rising Asian Metropolis? No Traffic

https://www.nytimes.com/2025/12/28/world/asia/indonesia-nusantara-future-capital.html
2•paulpauper•41m ago•1 comments

EVPN Flex Cross Connect – L2 P2P VPNs can be agile as well [video]

https://media.ccc.de/v/denog17-75209-evpn-flex-cross-connect-l2-p2p-vpns-can-be-agile-as-well
1•doener•41m ago•0 comments

Medical Breakthroughs from 2025

https://www.scientificdiscovery.dev/p/medical-breakthroughs-in-2025
2•paulpauper•41m ago•0 comments