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

Modern evidence for God from cosmology, astrochemistry, etc. (by a YC alum)

https://www.saintbeluga.org/follow-the-evidence-wherever-it-leads
1•michelangelodev•29s ago•1 comments

Bernie Sanders, Ron DeSantis speak out against data center boom. Bad sign for AI

https://www.cnbc.com/2026/01/01/ai-data-centers-bernie-sanders-ron-desantis-electricity-prices.html
1•1vuio0pswjnm7•1m ago•0 comments

Can AI really help us find love?

https://www.ft.com/content/fd044ddf-9a98-4282-ac0a-f7a9de060f58
1•thm•1m ago•0 comments

Introducing Radial: A Macro-Based Pie Menu for macOS

https://radial.appverge.net
1•Glubker•2m ago•1 comments

2025 Year in Review

https://joelgrus.com/2025/12/22/2025-year-in-review/
1•MurizS•3m ago•0 comments

Finland detains ship and its crew after critical undersea cable damaged

https://www.cnn.com/2025/12/31/europe/finland-estonia-undersea-cable-ship-detained-intl
1•wslh•4m ago•0 comments

Monads in C# (Part 2): Result

https://alexyorke.github.io/2025/09/13/monads-in-c-sharp-part-2-result/
1•polygot•5m ago•0 comments

My Favorite Self-Hosted Apps Launched in 2025

https://selfh.st/post/2025-favorite-new-apps/
1•yboulkaid•7m ago•0 comments

Show HN: Anchor – Raft Consensus in Go with gRPC and a TUI Dashboard

https://github.com/salahayoub/anchor
1•drshaballah•7m ago•0 comments

Inline PGP signatures considered harmful. (2014)

https://dkg.fifthhorseman.net/notes/inline-pgp-harmful/
1•fanf2•8m ago•0 comments

Pennsylvania Supreme Court allows search history access without a warrant

https://www.windowscentral.com/software-apps/pennsylvania-supreme-court-google-searches-are-not-p...
1•iamnothere•11m ago•0 comments

Show HN: 2025 Failure Wrapped AI-Generated Year in Review for Tech Failures

https://unwrappedyear.forwardmanager.com/
1•ukituki•11m ago•0 comments

Show HN: Vect AI – An execution-first AI system for marketing workflows

1•afrafgf•12m ago•0 comments

Star Wars and the Hero's Journey

http://www.moongadget.com/origins/myth.html
1•indigodaddy•13m ago•0 comments

Ball Bearing

https://en.wikipedia.org/wiki/Ball_bearing
1•tosh•13m ago•0 comments

Nature Documentaries as Soulcraft

https://barkata.com/nature-documentaries-as-soulcraft/
2•weliveagain•14m ago•0 comments

Building an internal agent: Code-driven vs. LLM-driven workflows

https://lethain.com/agents-coordinators/
2•pavel_lishin•15m ago•0 comments

Sysdle – Daily Wordle for System Design

https://sysdle.com/
2•jwmke•18m ago•0 comments

Reverse engineered Claude Codes's web tools

https://medium.com/@liranyoffe/reverse-engineering-claude-code-web-tools-1409249316c3
2•liran_yo•18m ago•0 comments

Public IP Logger

https://github.com/sasa-buklijas/public_ip_logger
2•sasa_buklijas•20m ago•1 comments

Solid State Volumetric Display

https://mastodon.social/@ancientjames/115648797968721973
2•PaulHoule•23m ago•0 comments

Ask HN: Which AI model made you most productive in 2025?

2•isb•26m ago•0 comments

Show HN: I built a tool to save and version-control my thinking from ChatGPT

https://kwegg.com
4•paragarora•28m ago•0 comments

Street-Fighting Mathematics (2008)

https://ocw.mit.edu/courses/18-098-street-fighting-mathematics-january-iap-2008/pages/readings/
2•mpweiher•29m ago•0 comments

The 26 Most Important Ideas for 2026

https://www.derekthompson.org/p/the-26-most-important-ideas-for-2026
3•maxutility•29m ago•0 comments

Snow Leopard Permutation Math

https://arxiv.org/abs/1508.05310
2•marysminefnuf•29m ago•0 comments

The State of Agentic iOS Engineering in 2026

https://dimillian.medium.com/the-state-of-agentic-ios-engineering-in-2026-c5f0cbaa7b34
2•mpweiher•32m ago•0 comments

Restaurants are changing their menus for the age of Ozempic

https://www.economist.com/culture/2025/12/29/restaurants-are-changing-their-menus-for-the-age-of-...
4•Anon84•34m ago•0 comments

Pentagon Reduces F-35 Orders By 45 Percent For 2026

https://militarywatchmagazine.com/article/pentagon-reduces-f35-orders-45pct
2•belter•35m ago•0 comments

Grail, an extensible Internet browser written entirely in Python (1999)

https://grail.sourceforge.net/
2•GaryBluto•35m ago•1 comments