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•11mo ago

Comments

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

Objection: An AI judge for investigating media claims

https://www.objection.ai/press-release
1•hhs•55s ago•0 comments

Review: Machines of Loving Grace

https://jacobbrazeal.wordpress.com/2026/04/18/review-machines-of-loving-grace/
1•tibbar•2m ago•0 comments

See and hear galaxies evolving in new simulations

https://earthsky.org/space/see-and-hear-galaxies-evolving-new-simulations/
1•ganitam•3m ago•0 comments

What I Learned from Setting Up an Online Bookstore with WordPress Plugins

https://www.dilmandila.com/cheap-and-easy-online-bookstore-with-wordpress-plugins/
1•severine•6m ago•0 comments

Monthly Overview for Developer Tools – April 2026

https://semanticed.online/monthly-developer-tools-2026-04
1•alihassaanmug•6m ago•0 comments

Fundamentals of CuTe Layout Algebra and Category-Theoretic Interpretation [video]

https://www.youtube.com/watch?v=MVh_guNbWMA
1•matt_d•7m ago•0 comments

Show HN: Sostactic – polynomial inequalities using sums-of-squares in Lean

https://github.com/mmaaz-git/sostactic
1•mmaaz•9m ago•0 comments

We beat Google's zero-knowledge proof of quantum cryptanalysis

https://blog.trailofbits.com/2026/04/17/we-beat-googles-zero-knowledge-proof-of-quantum-cryptanal...
1•da-bacon•10m ago•0 comments

Homeland Security's New Task Force Website Sanitizes Trump's Deportation Agenda

https://www.motherjones.com/politics/2026/04/homeland-security-task-force-new-website-sanitizes-t...
1•cdrnsf•10m ago•0 comments

What Centuries of Mistakes Can Teach Us About Saving for Retirement

https://archive.is/Eyc7s
2•akyuu•10m ago•0 comments

Inferena: Local benchmark of PyTorch vs. Llama.cpp vs. Rust frameworks

http://inferena.tech/
1•kvark•12m ago•0 comments

HIPPO Turns One Master Password into Many Without Storing Any

https://spectrum.ieee.org/storeless-password-manager
1•u1hcw9nx•12m ago•1 comments

Our Longing for Inconvenience

https://www.newyorker.com/culture/essay/our-longing-for-inconvenience
1•cdrnsf•13m ago•0 comments

David Sklansky, the 'First Nerd to Enter Poker,' Dies at 78

https://www.nytimes.com/2026/04/11/us/david-sklansky-dead.html
1•indigodaddy•14m ago•0 comments

Launching Ising, open models to accelerate the path to useful quantum computers

https://nvidianews.nvidia.com/news/nvidia-launches-ising-the-worlds-first-open-ai-models-to-accel...
3•hhs•15m ago•0 comments

What Is Llms.txt and Does Your Business Need One?

https://semarkglobal.com/blog/what-is-llms-txt-does-your-business-need-one
2•alihassaan•16m ago•1 comments

Dad brains: How fatherhood rewires the male mind

https://www.bbc.com/future/article/20260417-fatherhood-how-the-male-brain-and-body-prepare-for-ch...
2•tchalla•21m ago•0 comments

Show HN: AWS's Kiro just got an Open source Codex

https://github.com/thabti/kirodex
2•sovietism•24m ago•0 comments

Pupil dilation suggests people start solving before all numbers are in

https://phys.org/news/2026-04-mental-math-shortcut-pupil-dilation.html
2•y1n0•26m ago•0 comments

Classic Papers: Articles That Have Stood the Test of Time

https://scholar.googleblog.com/2017/06/classic-papers-articles-that-have-stood.html
2•gregsadetsky•27m ago•0 comments

Why Zip drives dominated the 90s, then vanished almost overnight

https://www.xda-developers.com/zip-drives-dominated-90s-vanished-almost-overnight/
2•y1n0•31m ago•1 comments

The man who saw the future: the legacy of cultural theorist Mark Fisher

https://www.theguardian.com/film/2026/apr/17/we-are-making-a-film-about-mark-fisher-capitalist-re...
2•mellosouls•33m ago•0 comments

Robots learn: A brief, contemporary history

https://www.technologyreview.com/2026/04/17/1135416/how-robots-learn-brief-contemporary-history/
3•billybuckwheat•34m ago•0 comments

20000 Gates and 20 MIPS [pdf]

https://bitsavers.org/pdf/amdahl/history/20000_Gates_and_20_MIPS_199011.pdf
2•ingve•37m ago•1 comments

Tiny Go and Rust programs appear to start equally fast (on some machines)

https://utcc.utoronto.ca/~cks/space/blog/programming/GoVsRustStartupDelays
2•ingve•45m ago•1 comments

AI writes code 100x faster – why hasn't productivity?

https://deeptils.github.io/blog/ai-writes-code-100x-faster-productivity-hasnt/
2•deeplstm•47m ago•1 comments

British Empire: How a Small Island Took over the World

https://sheets.works/data-viz/british-empire
2•akashwadhwani35•51m ago•0 comments

Meshcore: Architecture for a Decentralized P2P LLM Inference Network

1•elyawhoo•52m ago•1 comments

My first impressions on ROCm and Strix Halo

https://blog.marcoinacio.com/posts/my-first-impressions-rocm-strix-halo/
3•random_•55m ago•0 comments

Let Sleeping CPUs Lie – S0ix

https://freebsdfoundation.org/our-work/journal/browser-based-edition/laptop-desktop/let-sleeping-...
1•birdculture•55m ago•0 comments