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/

Study links America's favorite cooking oil to obesity

https://medicalxpress.com/news/2025-11-links-america-favorite-cooking-oil.html
1•PaulHoule•35s ago•0 comments

Show HN: Weekly newsletter with tactical frameworks from 50 $1M+ founders

https://www.doanything.com/preview/uXalImXcFZk
1•AlexMorganFndr•59s ago•0 comments

How musicals use motifs to tell stories

https://pudding.cool/2025/12/motifs/
1•gmays•7m ago•0 comments

Ask HN: What to do when Claude Code is writing code?

1•brihati•8m ago•1 comments

Show HN: Schengen Calculator – Avoid €5K Fines for Overstaying EU"

https://owlfacts.com
1•sunrays•8m ago•1 comments

A personal recap of 2025: on running, LLMs, family, coffee, work

https://dimitarmisev.com/blog/2025-recap
1•misev•13m ago•0 comments

I Built a Module System for a Language That Doesn't Have One

https://www.claudianadalin.com/blog/building-pinecone
1•xbmcuser•14m ago•0 comments

Show HN: Magic CSV – Transform CSVs with plain English, no formulas

https://magiccsv.app/
1•bored-developer•16m ago•0 comments

The Lore of the World: Field Notes for a Child's Codex

https://www.theintrinsicperspective.com/p/the-lore-of-the-world
3•Jun8•22m ago•0 comments

Show HN: Agape – human-centered CLI task manager

https://github.com/josequiceno2000/agape
2•josequiceno2000•22m ago•0 comments

Show HN: PDU – Open-source PostgreSQL data rescue tool

https://github.com/wublabdubdub/PDU-PostgreSQLDataUnloader
2•zhangchenPDU•22m ago•1 comments

Build Your Own ML Framework

https://mlsysbook.ai/tinytorch/intro.html
2•auraham•22m ago•0 comments

Observations on safety friction and misclassification in conversational AI

2•ayumi-observer•23m ago•0 comments

A Woman on a NY Subway Just Set the Tone for Next Year

https://www.honest-broker.com/p/a-woman-on-a-ny-subway-just-set-the
4•thomassmith65•23m ago•0 comments

A Woman on a NY Subway Just Set the Tone for Next Year

https://honest-broker.com/p/a-woman-on-a-ny-subway-just-set-the
1•thomassmith65•25m ago•1 comments

Advice for generalists who want to join startups

https://twitter.com/benln/status/2006057848430604705
2•gmays•32m ago•0 comments

Languish – Programming Language Trends

https://tjpalmer.github.io/languish/
2•nickswalker•32m ago•0 comments

What to Expect from the AI Engineering World in 2026

https://sarthakai.substack.com/p/what-to-expect-from-the-ai-engineering
2•sarthakrastogi•39m ago•0 comments

Show HN: LLMRouter – first LLM routing library with 300 stars in 24h

https://github.com/ulab-uiuc/LLMRouter
3•tao2024•43m ago•1 comments

Show HN: real-time usage monitor for Claude – see cost without leaving workflow

https://github.com/SrivathsanSivakumar/simple-usage-monitor
3•supersonic339•50m ago•1 comments

Meta is sued by US Virgin Islands over ads for scams, dangers to children

https://www.reuters.com/legal/litigation/meta-is-sued-by-us-virgin-islands-over-ads-scams-dangers...
7•1vuio0pswjnm7•51m ago•0 comments

Poland urges Brussels to probe TikTok over AI-generated content

https://www.reuters.com/world/china/poland-urges-brussels-probe-tiktok-over-ai-generated-content-...
4•1vuio0pswjnm7•53m ago•1 comments

MongoBleed: Unauthenticated memory-read vulnerability in MongoDB

https://www.bitsight.com/blog/critical-vulnerability-alert-cve-2025-14847-mongodb-mongobleed
1•epicprogrammer•56m ago•1 comments

Nvelox: Lightweight, event-driven load balancer built for high-concurrency

https://github.com/nvelox/nvelox
2•thunderbong•59m ago•0 comments

Creating my own blog from scratch using zola

https://vjay15.github.io/blog/zola-tutorial/
2•vjay15•1h ago•1 comments

How can I detect that the system is running low on memory?

https://devblogs.microsoft.com/oldnewthing/20251229-00/?p=111927
4•ibobev•1h ago•0 comments

Restoring My Childhood Family Computer Part 4: Emulation

https://www.gridbugs.org/restoring-my-childhood-family-computer-part-4/
2•ibobev•1h ago•0 comments

Ten things we forgot to be true

https://kgrep.com/about
6•0xlogk•1h ago•2 comments

Selective Applicative Functors

https://blog.veritates.love/selective_applicatives_theoretical_basis.html
1•ibobev•1h ago•0 comments

OpenAI Is Paying Employees More Than Any Major Tech Startup in History

https://www.wsj.com/tech/ai/openai-is-paying-employees-more-than-any-major-tech-startup-in-histor...
4•JumpCrisscross•1h ago•1 comments