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/

Reconstructing UI behavior from video instead of screenshots

https://www.replay.build/learn/behavior-driven-ui-reconstruction
1•ma1or•1m ago•1 comments

I Scraped, Researched and Analyzed 305 Links for 12.70 dollars

https://vibegui.com/article/shipping-vibegui-bookmarks-v1-architecture-costs-and-lessons
1•gadr90•5m ago•1 comments

Coase's Penguin, Or, Linux and the Nature of the Firm [pdf]

https://www.benkler.org/CoasesPenguin.PDF
1•loughnane•6m ago•0 comments

Gallery of Bad Shell Code

https://github.com/koalaman/shellcheck
1•behnamoh•8m ago•0 comments

The FDA and FMT regulation (2024)

https://www.humanmicrobes.org/blog/fda-fmt-regulation
1•user234683•8m ago•0 comments

Brain immune cells may drive more damage in females than males with Alzheimer's

https://medicalxpress.com/news/2025-12-brain-immune-cells-females-males.html
1•bikenaga•9m ago•0 comments

Deep Filament Extraction for 3D Concrete Printing

https://arxiv.org/abs/2512.00091
1•PaulHoule•10m ago•0 comments

Show HN: Mafia Arena – LLMs play social deduction games against each other

https://mafia-arena.com
1•mohsen1•11m ago•0 comments

Mamdani Will Be Sworn in at Abandoned Subway Station Beneath City Hall

https://www.nytimes.com/2025/12/29/nyregion/mamdani-subway-sworn-in-mayor.html
2•Anon84•12m ago•0 comments

Psilocybin triggers activity-dependent rewiring of large-scale cortical networks

https://www.cell.com/cell/fulltext/S0092-8674(25)01305-4
3•QueensGambit•13m ago•0 comments

The Honey Files Expose Major Fraud [video]

https://www.youtube.com/watch?v=qCGT_CKGgFE
2•Akronymus•14m ago•0 comments

Show HN: I quit 5 projects from burnout, so I built an app that forces breaks

https://www.kensho.zone/
1•kenshozone•17m ago•0 comments

Feuding physicists and the bitter battle over the swirls in 'The Starry Night'

https://www.washingtonpost.com/science/2025/12/27/starry-night-turbulence-debate/
1•pseudolus•17m ago•1 comments

Hubble Reveals Chaos in the Largest Planet Nursery Ever Seen

https://www.universetoday.com/articles/hubble-reveals-chaos-in-the-largest-planet-nursery-ever-seen
1•rbanffy•17m ago•0 comments

Open Source Chrome Extension to Remove Nano Banana Watermarks

https://github.com/dinoBOLT/Gemini-Watermark-Remover
1•brunorsini•18m ago•0 comments

Chasing the Mirage of "Ethical" AI

https://thereader.mitpress.mit.edu/chasing-the-mirage-of-ethical-ai/
1•pseudolus•18m ago•0 comments

Honey's Dieselgate: Detecting and Tricking Testers

https://vptdigital.com/blog/honey-detecting-testers/
3•AkshatJ27•19m ago•0 comments

Elon Musk's top Tesla predictions for 2025 that didn't happen

https://electrek.co/2025/12/30/elon-musk-top-5-tesla-predictions-2025-didnt-happen/
2•breve•21m ago•0 comments

Important stuff most people get wrong

https://upgrader.gapminder.org/
1•arunc•21m ago•0 comments

XFCE-Winxp-Tc

https://github.com/rozniak/xfce-winxp-tc
2•OsrsNeedsf2P•22m ago•0 comments

A Hand for Daenerys: Why Tyrion Is Missing from Your Vibe-Coding Council

https://scienceisneato.substack.com/p/a-hand-for-daenerys-why-tyrion-is
1•ji_reilly•22m ago•0 comments

Cybersecurity Employees Plead Guilty to Ransomware Attacks Using ALPHV BlackCat

https://www.justice.gov/opa/pr/two-americans-plead-guilty-targeting-multiple-us-victims-using-alp...
1•busymom0•23m ago•0 comments

Former IBM CEO Lou Gerstner passes, aged 83

https://www.theregister.com/2025/12/29/lou_gerstner/
3•rbanffy•28m ago•0 comments

Eric Barone makes $125,000 donation to the C# framework

https://xcancel.com/MonoGameTeam/status/2006010313112490446
3•HelloUsername•34m ago•0 comments

OpenAI's cash burn will be one of the big bubble questions of 2026

https://www.economist.com/leaders/2025/12/30/openais-cash-burn-will-be-one-of-the-big-bubble-ques...
2•1vuio0pswjnm7•35m ago•0 comments

Leveraging insights from neuroscience to build adaptive artificial intelligence

https://www.nature.com/articles/s41593-025-02169-w.epdf?sharing_token=sKV6GrdLVdSQW1UR9ICREtRgN0j...
2•artninja1988•35m ago•0 comments

The Honey Files Expose Major Fraud

https://docs.google.com/document/d/1Rj2AEI_Gr5WJbkor_sqVu4t9VhQtYcTazVwxJx9QYzU/edit
7•mirzap•36m ago•1 comments

Show HN: Virtual Try-On Chrome extension to see how products look on you

https://www.tryaing.com
1•rokontech•37m ago•0 comments

The GDB JIT Interface

https://bernsteinbear.com/blog/gdb-jit/
1•tekknolagi•42m ago•0 comments

Review: Commodore 64 Ultimate

https://www.wired.com/review/commodore-64-ultimate/
1•amichail•45m ago•0 comments