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•1y ago

Comments

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

Simpson Chalkboard Generator: A Tool for Creating Bart Chalkboard Stills

https://enufstyle.com/generators/bart/
2•stefankuehnel•1m ago•0 comments

Extraterrestrial intelligent beings do not exist

https://articles.adsabs.harvard.edu/pdf/1980QJRAS..21..267T
2•Topfi•1m ago•0 comments

Show HN: Mlx-code – I built a "backyard shed" AI coding agent for Mac

https://github.com/JosefAlbers/mlx-code
1•JosefAlbers•2m ago•0 comments

Claude Code Sandboxing

https://code.claude.com/docs/en/sandboxing
2•Destiner•2m ago•0 comments

Merle Tuve and the development of the proximity fuze

https://www.youtube.com/watch?v=yjQtzk_4czg
1•bane•2m ago•1 comments

Drivers of success – the gap between actual drivers and what we read about

https://alearningaday.blog/2018/12/26/drivers-of-success-the-gap-between-actual-drivers-and-what-...
1•Olshansky•4m ago•0 comments

New financed PostmarketOS project: q6voice(d)

https://postmarketos.org/blog/2026/05/08/q6voice-project/
1•wicket•7m ago•0 comments

Musk, Altman Management Styles Under Fire at OpenAI Trial

https://www.bloomberg.com/news/articles/2026-05-08/musk-altman-management-styles-come-under-fire-...
1•1vuio0pswjnm7•10m ago•1 comments

Musk has never built a wafer fab, but he wants to burn $119B on one anyway

https://www.theregister.com/systems/2026/05/06/spacex-plots-119b-wafer-fab-to-make-elons-orbital-...
2•Bender•11m ago•0 comments

NYC Mesh

https://en.wikipedia.org/wiki/NYC_Mesh
1•thunderbong•12m ago•0 comments

Laptops all have built-in security tokens these days

https://ahelwer.ca/post/2026-05-08-builtin-u2f/
2•psxuaw•14m ago•0 comments

The Secret Diary That Has Spilled into the Musk vs. OpenAI Feud

https://www.wsj.com/tech/musk-openai-trial-greg-brockman-diary-journal-6950270e
2•1vuio0pswjnm7•15m ago•0 comments

Apple promised smarter Siri, it didn't deliver, you can get up to $95 back

https://fortune.com/2026/05/08/apple-smarter-siri-95-class-action-refund/
1•1vuio0pswjnm7•16m ago•0 comments

Surfel-based global illumination on the web

https://juretriglav.si/surfel-based-global-illumination-on-the-web/
2•vmg12•20m ago•0 comments

The AI Revolution in Cancer

https://color.com/blog/ai-revolution-in-cancer-care-delivery/
1•rafaelc•21m ago•0 comments

Informal Greedy Algorithms

https://www.natemeyvis.com/informal-greedy-algorithms/
1•Brajeshwar•21m ago•0 comments

America's A.I. Is Futuristic. China Is Just Making It Work

https://www.nytimes.com/2026/05/09/opinion/ai-china-america-race.html
3•ironyman•27m ago•1 comments

Show HN: Shoehorn – Backstage without the maintenance overhead

https://shoehorn.dev
1•shoehorn-dev•28m ago•0 comments

Death of a Software Developer

https://isthisanart.substack.com/p/death-of-a-software-developer
1•tao_oat•30m ago•0 comments

"Dirty Frag" (CVE-2026-43284): The Second Linux Root Exploit in Eight Days

https://www.copahost.com/blog/dirty-frag-cve-2026-43284/
2•ggallas•30m ago•0 comments

Lanzaboote – NixOS Secure Boot

https://x86.lol/generic/2022/11/26/lanzaboote.html
1•evilmonkey19•34m ago•1 comments

IceStream on Object Store

https://github.com/jordepic/icestream
1•jordepic•38m ago•1 comments

Bun ported to Rust in 6 days

https://xunroll.com/thread/2053047748191232310
68•qprofyeh•42m ago•33 comments

Optimize for change not application performance

https://www.echooff.dev/blog/developer-experience-is-a-performance-feature
3•lo1tuma•45m ago•1 comments

Why age assurance laws matter for developers

https://github.blog/news-insights/policy-news-and-insights/why-age-assurance-laws-matter-for-deve...
2•pavel_lishin•46m ago•0 comments

Redstone – a faster PortfoliosLab with a one-click portfolio optimizer

https://redstonemarkets.com/
1•mihaitrincav•48m ago•1 comments

Turkey unveils new missile, AI touts as able to hit US mainland

https://www.ft.com/content/d2136091-9fd2-4923-b168-50539e5b27ab
2•JumpCrisscross•49m ago•1 comments

Money is renewable, time isn't

https://get168.app/blog/money-is-renewable-time-isnt
1•dudcks97•49m ago•0 comments

Heuristic Learning

https://trinkle23897.github.io/learning-beyond-gradients/
1•xiaoniu•56m ago•0 comments

Meta's Embrace of A.I. Is Making Its Employees Miserable

https://www.nytimes.com/2026/05/08/technology/meta-ai-employees-miserable.html
9•JumpCrisscross•56m ago•1 comments