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

You don't need all the LLM benchmarks

https://alex.smola.org/posts/34-benchmark-selection/
1•matt_d•4m ago•0 comments

How to Make xt850 Match xt 850

https://manticoresearch.com/blog/how-to-make-searches-like-xt850-match-xt-850/
1•snikolaev•5m ago•0 comments

Tech CEOs summoned to Congress for another hearing on social media's risks

https://apnews.com/article/tech-ceos-senate-hearing-zuckerberg-8c2c46758fd669e688170f96fa12a882
1•1vuio0pswjnm7•7m ago•0 comments

Pope Leo calls for being 'profoundly human' in the age of AI

https://www.theverge.com/news/936945/pope-leo-letter-encyclical-ai-anthropic-labor-warfare
1•1vuio0pswjnm7•10m ago•0 comments

Noioaapps – our tools keep you informed (a dream)

https://medium.com/luminasticity/noioaapps-our-tools-keep-you-informed-43db36175f5d
1•bryanrasmussen•12m ago•0 comments

GPT Image 2 left me amazed but exhausted – so I built a little tool

https://imagesv2.ai
1•taoji•16m ago•0 comments

The terrifying rise of schoolboys making AI girlfriends

https://www.telegraph.co.uk/news/2026/05/25/schoolboys-ai-girlfriends/
1•Markoff•17m ago•1 comments

Self-Driving bus in Sweden crashes with tram on first day of passenger service

https://www.firstpost.com/auto/self-driving-bus-in-sweden-crashes-with-tram-on-first-day-of-passe...
2•Markoff•19m ago•0 comments

Notes on Pope Leo XIV's Encyclical on AI

https://simonwillison.net/2026/May/25/encyclical-on-ai/
2•pretext•19m ago•0 comments

The Little Go Book

https://github.com/karlseguin/the-little-go-book
1•saikatsg•20m ago•0 comments

Enhance or Eliminate? How AI Will Likely Change These Jobs

https://www.library.hbs.edu/working-knowledge/enhance-or-eliminate-how-ai-will-likely-change-thes...
1•_____k•23m ago•0 comments

NanoClaw creator turns down $20M buyout offer, raises $12M seed instead

https://techcrunch.com/2026/05/20/nanoclaw-creator-turns-down-20m-buyout-offer-raises-12m-seed-in...
2•doppp•24m ago•0 comments

The User Is Visibly Frustrated

https://pscanf.com/s/354/
2•croes•26m ago•0 comments

Real wages start to shrink in developed countries

https://www.ft.com/content/e126f744-3db9-4305-8871-31f83ebc4ed7
2•mikhael•27m ago•0 comments

The working definition of an Agent Endpoint

https://ianpilon.github.io/agent-endpoint/
1•ianpilon•28m ago•0 comments

New Google sheet favicon – but why?

2•jinen83•29m ago•2 comments

Ask HN: When and why did you start believing in God?

3•dvrp•30m ago•11 comments

Ask HN: Pregunta para los devs hispanohablantes

2•alonsovm44•35m ago•0 comments

AgentBrew – Portable toolbelt for your AI agents

https://github.com/patchen0518/AgentBrew
1•patchen0518•38m ago•0 comments

Ollama v0.30.0-rc23: "directly support llama.cpp" & "compatibility with GGUF"

https://github.com/ollama/ollama/releases/tag/v0.30.0-rc23
2•theanonymousone•38m ago•0 comments

My minimal, memory-safe Go rsync steers clear of vulnerabilities

https://michael.stapelberg.ch/posts/2026-05-24-minimal-memory-safe-go-rsync-vulns/
1•gsky•41m ago•0 comments

Interest Rate May Explain Consumer Sentiment Anomaly

https://www.nber.org/papers/w32163
3•efavdb•41m ago•0 comments

Show HN: Auto GPU Kernel – Autonomous GPU-kernel discovery and optimizer

https://github.com/Dogacel/auto-gpu-kernel
1•dogacel•42m ago•0 comments

Polymorphic Associations in Postgres

https://danolivo.substack.com/p/on-polymorphic-associations-in-postgres
2•gsky•42m ago•0 comments

Elusive order of async GPU kernels: scheduling, abstractions, DSL implications

https://ianbarber.blog/2026/05/25/the-elusive-order-of-things/
1•matt_d•46m ago•0 comments

NewAgentsHub

https://www.newagentshub.dev/
1•IlijaD123•47m ago•0 comments

Continual Speaker Identity Unlearning with Minimal Interference

https://arxiv.org/abs/2605.25962
2•berlianta•54m ago•0 comments

Motorola phones have started hijacking the Amazon app to insert affiliate codes

https://9to5google.com/2026/05/25/motorola-amazon-app-hijacking-behavior/
20•Cider9986•1h ago•5 comments

Show HN: Self-hosted collaborative SQL editor for teams

https://github.com/p-raj/collab-sqlc/
1•joddystreet•1h ago•0 comments

Show HN: Lily Design System: Components for React, Vue, Svelte, HTML, More

https://lilydesignsystem.github.io/
2•jph•1h ago•0 comments