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/

DARPA looking for battery that could power a laptop for months

https://www.theregister.com/2026/04/08/darpa_fusion_firm_radioactive_battery/
1•Bender•23s ago•0 comments

Anthropic Detects Third-Party Clients via System Prompt, Not Headers

https://gist.github.com/mrcattusdev/53b046e56b5a0149bdb3c0f34b5f217a
1•mr_cattus•27s ago•0 comments

Pretty Fish: A better mermaid diagram editor

https://pretty.fish/
2•pastelsky•46s ago•1 comments

Never Enough–A Billionaire Text Adventure

https://games-by-will.com/never-enough/
1•wjuseck•1m ago•1 comments

Show HN: Hormuzopen.com – The Strait of Hormuz before the headlines

https://hormuzopen.com/
1•mustafabagdatli•1m ago•0 comments

Replacing zero with a tenth digit (X): a working calculator+implications

https://10calculator.com
1•PhonkAlphabet•1m ago•0 comments

Cryptographers place $5k bet whether quantum will matter

https://www.theregister.com/2026/04/09/cryptograhpers_quantum_bet/
1•Bender•2m ago•0 comments

Making AI Adoption Stick

https://50ybuild.substack.com/p/ai-adoption-is-no-longer-optional
1•sethbannon•2m ago•0 comments

OpenAI puts Stargate UK on ice, blames energy costs and red tape

https://www.theregister.com/2026/04/09/openai_puts_stargate_uk_on/
1•Bender•3m ago•0 comments

OpenJDK Interim Policy on Generative AI

https://mail.openjdk.org/archives/list/announce@openjdk.org/thread/NPTV4NGSIN2IOMVESWUVN7Y3ERMUBKH2/
2•rileymichael•3m ago•0 comments

Female mice grow testes after this single DNA tweak

https://www.nature.com/articles/d41586-026-01120-8
1•frasermarlow•3m ago•0 comments

Let your AI agent talk to someone else's – open-source MCP rooms

https://www.kodama.run/
1•ynzhang•4m ago•1 comments

How to design credit pricing that buyers trust

https://www.solvimon.com/blog/how-to-design-credit-pricing-that-buyers-trust
1•arnon•5m ago•0 comments

From Java to Wayland: A Pixel's Journey

https://blog.jetbrains.com/platform/2026/04/from-java-to-wayland-a-pixel-s-journey/
1•uticus•5m ago•0 comments

AWS Service Availability Updates (Updated March 2026)

https://aws.amazon.com/about-aws/whats-new/2026/03/aws-service-availability/
1•cc-f31535adfaf•5m ago•0 comments

Show HN: An image based home safety assessment tool for older adults

https://ishomesafe.com/
1•EchoHuai•6m ago•0 comments

How Much Linear Memory Access Is Enough? (probably less than 128 kB)

https://solidean.com/blog/2026/how-much-linear-memory-access-is-enough/
1•birdculture•10m ago•0 comments

Best-selling The Housemaid author Freida McFadden reveals true identity

https://www.bbc.com/news/articles/ckgelr2pk0lo
1•tigerlily•12m ago•0 comments

Rust Threads on the GPU

https://www.vectorware.com/blog/threads-on-gpu/
1•PaulHoule•12m ago•0 comments

One-Child Policy

https://en.wikipedia.org/wiki/One-child_policy
1•chistev•14m ago•0 comments

My Theory of Everything: How concentrated energy pockets are moving non-stop.

3•dawfwfda•14m ago•1 comments

Bitmap fonts make computers feel like computers again

https://korigamik.dev/blog/bitmap_fonts/
2•speckx•16m ago•0 comments

For Artemis II, Returning to Earth May Be the Most Dangerous Part of the Mission

https://www.nytimes.com/2026/04/09/science/nasa-artemis-ii-earth-return-heat-shield.html
1•thm•16m ago•0 comments

Mellivora OS

https://github.com/James-HoneyBadger/Mellivora_OS
1•honeybadger1965•17m ago•1 comments

Why America is short 4M homes

https://www.nytimes.com/2026/04/08/opinion/housing-loans-banks-congress.html
1•harambae•18m ago•1 comments

Show HN: Global Memory for AI Agents

https://github.com/uziiuzair/continuity
2•uziiuzair•18m ago•0 comments

Michael Nielsen – How science progresses

https://www.dwarkesh.com/p/michael-nielsen
2•kerim-ca•19m ago•0 comments

HN: Doom on Spotify Car Thing

https://github.com/epatel/carthing-doom
1•epatel99•19m ago•0 comments

Continuity

https://bloodsweatfailures.substack.com/p/continuity
1•uziiuzair•19m ago•0 comments

Amazon upsets eBook lovers by ending support for old Kindle devices

https://www.theguardian.com/technology/2026/apr/09/amazon-upsets-book-lovers-by-ending-support-fo...
3•devonnull•19m ago•0 comments