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/

Musk vs. OpenAI Verdict: Musk Lost

https://twitter.com/ns123abc/status/2056436278682669112
1•hmate9•2m ago•0 comments

Show HN: Marlin-2B: a tiny VLM to extract structured information from videos

https://huggingface.co/NemoStation/Marlin-2B
1•HappyPablo•3m ago•0 comments

Protocols for transactional usage of object storage

https://www.bitsxpages.com/p/protocols-for-transactional-usage
1•agavra•3m ago•0 comments

Delivering with No End in Sight

https://personalis.io/blog/sustainable-development
1•sylvanjsmit•3m ago•0 comments

SmallCode – A coding agent that gets 87% on benchmarks with a 4B parameter model

https://old.reddit.com/r/LocalLLaMA/comments/1tgecrq/i_built_a_coding_agent_that_gets_87_on_bench...
1•aagha•4m ago•0 comments

Your Most Improbable Life

https://kevinkelly.substack.com/p/your-most-improbable-life
2•jger15•5m ago•0 comments

Wayland Compositor in Minecraft [video]

https://www.youtube.com/watch?v=cTkEM7b0IQw
1•SoKamil•5m ago•0 comments

Applied Discrete Structure

https://discretemath.org/
1•ibobev•6m ago•0 comments

DSV Limiting Factor

https://en.wikipedia.org/wiki/DSV_Limiting_Factor
1•dtj1123•6m ago•0 comments

What Do Gödel's Incompleteness Theorems Mean?

https://www.quantamagazine.org/what-do-godels-incompleteness-theorems-truly-mean-20260518/
1•baruchel•9m ago•0 comments

Decart AI's $300M Round Is a Positive Signal for Israeli AI

https://www.vccafe.com/decart-ais-300m-round-is-a-positive-signal-for-israeli-ai/↗
1•vccafe•10m ago•0 comments

Zero – the new programming language for AI – is basically Rust

https://thetechvillain.substack.com/p/zero-the-new-programming-language
1•interrupt86•11m ago•1 comments

&Mario – Digital Union for the People

https://andmario.com
1•pear01•11m ago•0 comments

Real-Time Order Flow and Whale Tracking

https://cryptoflowdata.com/
1•santys•11m ago•0 comments

Establishing a weekly user interview routine

https://destroytoday.com/blog/establishing-a-weekly-user-interview-routine
1•speckx•11m ago•0 comments

Elon Musk lost his case against Sam Altman

https://www.theverge.com/ai-artificial-intelligence/932383/jury-verdict-musk-v-altman-openai-trial
3•theahura•12m ago•0 comments

At least 100 deaths reported in Ebola outbreak in DR Congo

https://www.bbc.com/news/articles/cq6pz60p996o
2•saikatsg•12m ago•0 comments

McMansion Hell: The Devil Is in the Details

https://99percentinvisible.org/episode/mcmansion-hell-devil-details/
1•cwwc•12m ago•0 comments

Joule Index – AI benchmark for cost and Energy

https://joule.blankline.org
1•DarenWatson•12m ago•0 comments

Spec-Driven Development Workflow for Claude Code

https://github.com/sermakarevich/sddw
2•sermakarevich•13m ago•0 comments

Cutting inference cold starts by 40x with LP, FUSE, C/R, and CUDA-checkpoint

https://modal.com/blog/truly-serverless-gpus
7•charles_irl•13m ago•0 comments

Vanilla FP: The no-framework framework for building component-based UIs

https://github.com/abuseofnotation/vanilla-fp
1•boris_m•13m ago•0 comments

Iran will impose fees on subsea internet cables in Strait of Hormuz

https://www.cnn.com/2026/05/17/middleeast/iran-hormuz-undersea-cables-intl
3•ck2•13m ago•0 comments

Tag – Local-first trust and governance layer for AI agents|no cloud, no account

https://github.com/AIObuilt/TaG
1•Tag_AI•14m ago•0 comments

Ask HN: Has anyone here ever rebuilt themselves in their late 30s?

1•buildresiliency•17m ago•0 comments

Mythos for Offensive Security: XBOW's Evaluation

https://xbow.com/blog/mythos-offensive-security-xbow-evaluation
1•ianbutler•17m ago•0 comments

The Picture of Dorian Gray was censored before anyone read it

https://storica.club/blog/dorian-gray-was-censored/
3•verybad•17m ago•0 comments

Evaluation of Various MLX Quantizations

https://github.com/deepsweet/mlx-eval/blob/main/results/README.md
1•d-_-b•18m ago•1 comments

Russia Claims Ukraine Is Using AI Drones That Lock onto Faces and Heat Signature

https://united24media.com/war-in-ukraine/russia-claims-ukraine-is-using-ai-drones-that-lock-onto-...
2•jawiggins•19m ago•2 comments

Goodbye Fragmented Local AI Pipelines. Hello Foundry Local 1.1

https://medium.com/open-ai/goodbye-fragmented-local-ai-pipelines-hello-foundry-local-1-1-9c425b3d...
1•sukhpinder0804•21m ago•0 comments