frontpage.
newsnewestaskshowjobs

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/

Algorithm for NP-Complete Sudoku

https://zenodo.org/records/21420871
2•LeonardoYMG•8m ago•0 comments

PerceptionBench – Evaluating Atomic Visual Perception in Multimodal LLMs

https://www.kimi.com/blog/perception-bench
2•wolttam•12m ago•0 comments

We Are Changing Our Developer Productivity Experiment Design

https://metr.org/blog/2026-02-24-uplift-update/#other-means-of-measuring-productivity
2•Helithumper•14m ago•0 comments

Anthropic in early talks with Meta to acquire compute power

https://www.cnbc.com/2026/07/17/anthropic-meta-ai-compute.html
4•gslin•20m ago•1 comments

AI hasn't shifted the bottleneck from coding to code review

https://thenewstack.io/ai-code-bottleneck-myth/
3•Brajeshwar•24m ago•0 comments

LoRa radio communication devices for Raspberry Pi

https://www.raspberrypi.com/news/lora-radio-communication-devices-for-raspberry-pi/
5•Brajeshwar•24m ago•0 comments

Moonstone: Modern, cross-platform Lua runtime and package manager written in Zig

https://moonstone.sh/
2•ksymph•26m ago•0 comments

Face Value: How AI is reshaping trust, identity, and scams

https://www.malwarebytes.com/ai-scams
2•CHB0403085482•27m ago•0 comments

LLMs are like handwritten notes

https://dunkirk.sh/blog/llms/
2•clacker-o-matic•30m ago•0 comments

I Started a "Dirt Notebook"

https://pinewind.bearblog.dev/i-started-a-dirt-notebook/
4•herbertl•32m ago•0 comments

Towach: Tell it your mood, swipe through trailers, pick something to watch

https://www.towach.com
2•barkins•36m ago•0 comments

Newly retired couples may lose $16,900/year in Social Security in 2033

https://www.usatoday.com/story/money/personalfinance/2026/07/16/social-security-cut-2033/90941392...
7•ilreb•37m ago•1 comments

Alien world chemistry found inside meteorite that struck New Jersey home

https://phys.org/news/2026-07-alien-world-chemistry-meteorite-struck.html
4•bookmtn•40m ago•0 comments

The How and Why of Entity Shorthand

https://www.bramadams.dev/the-how-and-why-of-entity-shorthand/
2•_bramses•41m ago•0 comments

Overtraining as the path to human-like AI

https://www.seangoedecke.com/overtraining-as-the-path-to-human-like-ai/
2•turadg•41m ago•0 comments

Show HN: Blockbeam – A block puzzle game built with React Native

https://play.google.com/store/apps/details?id=com.magstudios.blockpuzzle&hl=en_US
1•makbar890•48m ago•0 comments

Show HN: Fitbod Meets Duolingo

https://cooltivo.io/
1•tenhsor•50m ago•0 comments

Open Source Parametric DIY Air Purifier Builder

https://www.filterboxbuilder.com/
2•Nukit•51m ago•1 comments

A Proposal for The Dartmouth Summer Research Project on AI (1955) [pdf]

http://jmc.stanford.edu/articles/dartmouth/dartmouth.pdf
2•teleforce•51m ago•0 comments

Conversation Stenography: Hide secret messages in normal looking conversations

https://github.com/nethical6/conversation-steganography
2•CGMthrowaway•52m ago•0 comments

Sylvia Plath, Aristotle, and Jean-Paul Sartre Walk into a Bar

https://techandsundry.medium.com/sylvia-plath-aristotle-and-sean-paul-sartre-walk-into-a-bar-dcc2...
2•sgkey28•53m ago•0 comments

Stenchill: 3D Printable Solder Paste Stencil Generator

https://www.stenchill.com/en/
2•radeeyate•56m ago•0 comments

Public data and an AI evidence engine for Swedish politics

https://oversikt.se/
2•andreascw•1h ago•0 comments

The company behind explosive diarrhea

https://www.theguardian.com/us-news/2014/nov/23/billion-dollar-california-salad-company-exploits-...
6•cramer4next•1h ago•0 comments

A grumpy screed about AI in software engineering

https://sam.sutch.net/posts/a-grumpy-ai-screed
4•ssutch3•1h ago•0 comments

Idea would turn the Earth into a giant space telescope

https://www.snexplores.org/article/idea-would-turn-earth-giant-space-telescope
2•somedude89897•1h ago•1 comments

Open Source is not immune to monopoly

https://humancode.us/2026/07/17/open-source-monopoly
4•ilreb•1h ago•0 comments

Nadella Blasts AI Industry's Double Standard

https://finance.biggo.com/news/438f299b-ca23-468d-b37d-0ffe09a4ca55
10•nittanymount•1h ago•2 comments

The Netdna-Ssl.com Takeover

https://scotthelme.co.uk/a-dead-cdn-a-wildcard-and-an-attack-waiting-to-happen-the-netdna-ssl-com...
3•mercurybee•1h ago•0 comments

Native C# CEL Implementation

https://www.nuget.org/packages/Celly
5•jackedEngineer•1h ago•0 comments