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•7mo 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/

A Code Centric Journey into the Gleam Language [video]

https://www.youtube.com/watch?v=LMrKEaAi4RI
1•giacomocava•30s ago•0 comments

Here we go again: Microsoft in UK court over cloud licensing

https://www.theregister.com/2025/12/12/microsoft_cat_cloud_licensing/
1•Bender•44s ago•0 comments

VOxReVoLuTiOn

1•MMConsulting•47s ago•0 comments

Framework Raises DDR5 Memory Prices by 50% for DIY Laptops

https://www.phoronix.com/news/Framework-50p-DDR5-Memory
1•mikece•1m ago•0 comments

Historic Shift Underway in China's Economy as Investment Slump Deepens

https://www.nytimes.com/2025/12/12/business/china-investment-economy.html
1•belter•1m ago•1 comments

Glibc Now Enabling 2MB THP on AArch64 by Default for Better Performance

https://www.phoronix.com/news/Glibc-malloc-2MB-THP-AArch64
1•Bender•1m ago•0 comments

What does a lean proof prove?

https://supaiku.com/what-does-a-lean-proof-prove
1•EvgeniyZh•2m ago•0 comments

Cut off by their banks and from Alexa, sanctioned ICC staffers remain resolute

https://apnews.com/article/international-court-sanctions-trump-icc-hague-4cdefe4de067432f6cdb9b13...
2•ledoge•2m ago•0 comments

Cache Aware Scheduling Raises Performance for Intel Xeon 6 Granite Rapids

https://www.phoronix.com/review/intel-xeon-6-cache-sched
1•Bender•2m ago•0 comments

Encryption Scheme Based on the Vector Computational Diffie-Hellman Problem

https://arxiv.org/abs/2512.04237
2•PaulHoule•7m ago•0 comments

Something from Nothing

https://tante.cc/2025/12/12/something-from-nothing/
2•speckx•7m ago•0 comments

Federal Reserve cuts interest rates by 0.25%

https://finance.yahoo.com/news/live/live-coverage-federal-reserve-cuts-interest-rates-by-025-powe...
1•mgh2•7m ago•0 comments

Too Complex to Fix

https://green.spacedino.net/too-complex-to-fix/
1•surprisetalk•8m ago•0 comments

We are not here to make code

https://www.todepond.com/go/we-are-not-here-to-make-code/
1•surprisetalk•8m ago•0 comments

Stagnant Construction Productivity Is a Worldwide Problem

https://www.construction-physics.com/p/stagnant-construction-productivity
1•surprisetalk•8m ago•0 comments

Peak TIME POTY Drama

https://news.manifold.markets/p/peak-time-poty-drama
1•surprisetalk•8m ago•0 comments

Britain Asked a Power Plant to Build a 'Fish Disco.' It's Not Going Well

https://www.wsj.com/world/uk/the-big-fight-over-a-fish-disco-at-a-british-power-plant-1aa9dcc7
1•impish9208•8m ago•1 comments

Google's Willow quantum processor will power UK research through the NQCC

https://blog.google/around-the-globe/google-europe/united-kingdom/national-quantum-computing-cent...
1•donutloop•9m ago•0 comments

Washington AV Bill Jumps on 'Health Warning' Bandwagon

https://www.xbiz.com/news/294260/washington-av-bill-jumps-on-health-warning-bandwagon
1•SilverElfin•9m ago•0 comments

Journalists win a key battle over AI in the newsroom

https://www.bloodinthemachine.com/p/journalists-win-a-key-battle-over
2•hn_acker•10m ago•0 comments

How to think about durable execution

https://hatchet.run/blog/durable-execution
1•abelanger•10m ago•0 comments

Show HN: Flowova – Describe a process, get a flowchart (with Mermaid export)

https://flowova.ai
1•jmcraft•11m ago•0 comments

I couldn't find a logging library that worked for my library, so I made one

https://hackers.pub/@hongminhee/2025/logtape-fedify-case-study
2•todsacerdoti•12m ago•0 comments

Microsoft Deepens Its Commitment to Canada with Landmark $19B AI Investment

https://blogs.microsoft.com/on-the-issues/2025/12/09/microsoft-deepens-its-commitment-to-canada-w...
2•whoknowsidont•13m ago•0 comments

Ink and Switch – An independent research lab exploring tools for thought

https://www.inkandswitch.com
1•Topfi•13m ago•0 comments

Show HN: How to fix AI Agents at the component level

https://ubiai.tools/building-observable-and-reliable-ai-agents-using-langgraph-langsmith-and-ubiai/
1•Mesterniz•15m ago•1 comments

Fault tolerance is key in compositional learning infrastructure: NATS and C#

https://github.com/nats-io/nats.net
3•northlondoner•15m ago•1 comments

Pop _OS 24.04 LTS Review: Is This the Linux Distro of the Year 2025?

https://itsfoss.com/news/pop-os-24-04-review/
1•mikece•15m ago•0 comments

New Windows RasMan zero-day flaw gets free, unofficial patches

https://www.bleepingcomputer.com/news/microsoft/new-windows-rasman-zero-day-flaw-gets-free-unoffi...
1•akyuu•17m ago•0 comments

The No BS Phone

1•morpheos137•17m ago•1 comments