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•7mo 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/

Beyond the Bus Factor: Managing Tribal Knowledge

https://brihatijain.com/blog/beyond_the_bus_factor
1•brihati•54s ago•1 comments

China launches satellite 'super factory' in bid to rival Elon Musk's Starlink

https://www.scmp.com/economy/china-economy/article/3335926/china-launches-satellite-super-factory...
1•gscott•1m ago•0 comments

Computer Use 2025 Wrapped

https://www.onkernel.com/blog/computer-use-2025
1•masnwilliams•2m ago•0 comments

Chord: Open-Source Prototype for PBR Material Estimation Debuting at Siggraph

https://www.ubisoft.com/en-us/studio/laforge/news/1i3YOvQX2iArLlScBPqBZs/generative-base-material...
1•klaussilveira•4m ago•0 comments

Military's new AI: 'Hypothetical' boat strike scenario 'unambiguously illegal'

https://san.com/cc/the-militarys-new-ai-says-hypothetical-boat-strike-scenario-unambiguously-ille...
1•doener•4m ago•0 comments

LZ dark matter experiment spots neutrinos from the sun's core

https://www.llnl.gov/article/53711/lz-dark-matter-experiment-sets-worlds-best-spots-neutrinos-sun...
1•gmays•4m ago•0 comments

Meta's Pivot from Open Source to Money-Making AI Model

https://www.bloomberg.com/news/articles/2025-12-10/inside-meta-s-pivot-from-open-source-to-money-...
2•peterbonney•6m ago•0 comments

EU-US Data Transfers: Time to prepare for more trouble to come

https://noyb.eu/en/eu-us-data-transfers-time-prepare-more-trouble-come
4•tomwas54•6m ago•0 comments

Heuristics vs. RAG: Shrinkflation as a Policy Driver

https://www.unite.ai/heuristics-vs-rag-shrinkflation-as-a-policy-driver/
1•50kIters•6m ago•0 comments

Ask HN: Is there a "good" (non-privacy horror) aftermarket HUD for your car?

1•xrd•7m ago•0 comments

German unions call for French Dassault's expulsion from EU fighter jet program

https://www.reuters.com/business/aerospace-defense/powerful-german-union-calls-dassaults-expulsio...
2•alephnerd•7m ago•0 comments

Show HN: Wirebrowser – A JavaScript Debugger with Breakpoint-Driven Heap Search

https://github.com/fcavallarin/wirebrowser
2•fcavallarin•7m ago•0 comments

Explaining weird stuff via Python's compilation pipeline – UMich guest lecture [video]

https://www.youtube.com/watch?v=G2yPbg2fgQY
1•vismit2000•9m ago•0 comments

Why Tagged PDF Matters for AI

https://opendataloader.org/docs/tagged-pdf
1•Julia_Katash•9m ago•1 comments

Decide What's Human

https://kupajo.com/decide-whats-human/
1•kolyder•11m ago•0 comments

Preventing Resource Leaks in Go: How GoLand Helps You Write Safer Code

https://blog.jetbrains.com/go/2025/12/09/preventing-resource-leaks-in-go-how-goland-helps-you-wri...
1•Annprots•11m ago•1 comments

Pedantle

https://pedantle.certitudes.org/
1•knuckleheads•11m ago•0 comments

Storing OAuth Tokens

https://fusionauth.io/articles/oauth/oauth-token-storage
1•mooreds•12m ago•0 comments

Pompeii Time Capsule Reveals Secrets to Durable Ancient Roman Cement

https://www.scientificamerican.com/article/pompeii-house-frozen-mid-renovation-reveals-secrets-of...
2•Brajeshwar•13m ago•0 comments

Starlink Became the Internet Alternative

https://restofworld.org/2025/starlink-musk-internet-expansion/
2•Brajeshwar•13m ago•0 comments

James Webb Telescope detects 13B-year-old supernova with gamma-ray burst

https://www.space.com/astronomy/james-webb-space-telescope/the-james-webb-space-telescope-just-fo...
1•Brajeshwar•13m ago•0 comments

Calif. tech saddest invention has been bleeding cash

https://www.sfgate.com/food/article/california-tech-world-soylent-scrambling-adapt-21219237.php
1•deegles•14m ago•1 comments

201 Stories by Anton Chekhov

https://web.archive.org/web/20070630223838/http://chekhov2.tripod.com/
1•bookofjoe•14m ago•0 comments

Legacy Code, Live Risk: Empirical Evidence of Malware Detection Gaps

https://www.mdpi.com/2076-3417/15/22/11862
1•PaulHoule•14m ago•0 comments

39C3 Fahrplan 2025

https://fahrplan.events.ccc.de/congress/2025/fahrplan/
2•birdculture•14m ago•0 comments

Show HN: Stridewars – A team step competition with Mario Kart-style power-ups

https://www.stridewars.com
1•nugzbunny•14m ago•0 comments

Relational AI vs. Constitutional AI: Are we focusing on the right question?

1•buttersmoothAI•16m ago•0 comments

Former GitLab CEO raises money for Kilo to compete in crowded AI coding market

https://www.cnbc.com/2025/12/10/former-gitlab-ceo-raises-8-million-for-kilo-to-compete-in-vibe-co...
1•lngzl•18m ago•0 comments

How to Write Your LinkedIn

https://taylordesseyn.substack.com/p/how-to-write-your-linkedin
1•mooreds•18m ago•0 comments

Retraction of key roundup study from 2000 in Regul. Toxicol. Pharm

https://www.sciencedirect.com/science/article/pii/S0273230025002387
1•kla-s•19m ago•0 comments