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/

A genius built the backbone of video–then vanished – Part 2

https://roughcut.heyeddie.ai/p/a-genius-built-the-backbone-of-videothen
1•shamirallibhai•2m ago•0 comments

2003 Angola Boeing 727 disappearance

https://en.wikipedia.org/wiki/2003_Angola_Boeing_727_disappearance
1•chistev•4m ago•0 comments

UK intelligence censored report on global warming and homeland security

https://theoryofchange1.substack.com/p/from-global-warming-to-homeland-security
2•ewidar•4m ago•0 comments

Teens Sick of Their iPhones Are 'Mallmaxxing'

https://www.bloomberg.com/news/features/2026-03-29/how-tiktok-got-teens-to-fall-in-love-with-the-...
1•mindcrime•4m ago•0 comments

That Vanished (2010)

https://www.smithsonianmag.com/air-space-magazine/the-727-that-vanished-2371187/
1•downbad_•6m ago•1 comments

What do you guys currently use for recording demos?

1•SoldierSacha•6m ago•0 comments

OCR tool in C using SDL2 and LLMs (rectangle select –> text)

https://github.com/haschka/ocr_tool
1•haschka•6m ago•1 comments

AI Native book – 135 pages, samples, free

https://stagent.io/book/
1•navam_io•7m ago•0 comments

Doing: Git for Scatterbrains

https://github.com/ttscoff/doing
1•tolerance•14m ago•0 comments

We made significant improvements to the Kokoro TTS trainer

https://github.com/BovineOverlord/kvoicewalk-with-GPU-CUDA-and-GUI-queue-system
1•SainzA•14m ago•1 comments

LLM Router – MCP server that routes Claude Code tasks to cheaper models

https://github.com/ypollak2/llm-router
2•ypollak2•16m ago•0 comments

Sow HN: LLMeter – Track per-customer LLM costs across OpenAI, Anthropic,and more

https://www.llmeter.org/
2•johalmed•16m ago•0 comments

Bazel is not scary anymore

https://stanislav.blog/bazel-is-not-scary-anymore/
1•spanferov•18m ago•0 comments

Soulrealms.ai an AI roleplay platform with persistent memory across sessions

https://soulrealms.ai
2•lapalapa•20m ago•0 comments

Don't Yell at Your LLM

https://marvin.beckers.dev/blog/dont-yell-at-your-llm/
3•embik•22m ago•0 comments

Binary obfuscation used in AAA Games

https://blog.farzon.org/2026/04/binary-obfuscation-that-doesnt-kill-lto.html
1•noztol•26m ago•0 comments

Reducing Federal R&D Reduces GDP Growth

https://itif.org/publications/2025/09/15/how-reducing-federal-rd-reduces-gdp-growth/
2•JumpCrisscross•26m ago•0 comments

Trump Slashed Science Funding. Now the U.S. Could Face a Costly Brain Drain

https://www.nytimes.com/2026/04/04/business/dealbook/trump-brain-drain-academia.html
4•JumpCrisscross•27m ago•0 comments

The back story behind Medvi, the first "$1.8B" dollar "AI Company"

https://garymarcus.substack.com/p/the-back-story-behind-the-first-18
1•stephenpontes•30m ago•1 comments

Rig: Build modular LLM apps in Rust – 20 providers, one unified interface

https://github.com/0xPlaygrounds/rig
2•michidk•31m ago•0 comments

Ask HN: Will AI be the end of new programming languages?

1•otherayden•31m ago•0 comments

Women were never meant to give birth on their backs

https://www.bbc.com/future/article/20260401-women-were-never-meant-to-give-birth-on-their-backs
2•ilt•31m ago•0 comments

Show HN: Orcastrate – Sync GitHub Actions workflows across repos via templates

https://github.com/michidk/orcastrate
1•michidk•32m ago•0 comments

Mourning for dinosaurs, 65M years too late

https://www.cnn.com/2026/04/05/science/dinosaurs-tiktok-documentary-cec
2•mooreds•33m ago•0 comments

The AI Compute Race: Microsoft's Miss and Oracle's Opportunity (2025)

https://isolveproblems.substack.com/p/the-ai-compute-race-microsofts-miss
1•mooreds•34m ago•0 comments

Zipf's Law

https://en.wikipedia.org/wiki/Zipf%27s_law
2•mooreds•35m ago•0 comments

Loqi, a memory system that preserves context after LLM compaction

https://github.com/wf802222/loqi
3•nobris•37m ago•0 comments

The Forgotten Ones: Actron AM1608 16-Bit CPU. – The CPU Shack Museum

https://www.cpushack.com/2026/04/01/the-forgotten-ones-actron-am1608-16-bit-cpu/
2•rbanffy•39m ago•0 comments

Apple at 50: My journey to the Mac – anderegg.ca

https://anderegg.ca/2026/04/01/apple-at-50-my-journey-to-the-mac
2•rbanffy•42m ago•0 comments

Show HN: Genetic algorithm engine that evolves trading strategies

https://github.com/NeuZhou/finclaw
1•neuzhou•43m ago•0 comments