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/

RealGen: Photorealistic Text-to-Image Generation via Detector-Guided Rewards

https://yejy53.github.io/RealGen/
1•doener•58s ago•0 comments

Did Hitler Have a 'Micro'?

https://www.theguardian.com/tv-and-radio/2025/nov/13/did-hitler-really-have-a-micropenis-hitlers-...
1•wjSgoWPm5bWAhXB•1m ago•0 comments

Show HN: Iceberg-JS, a TypeScript Client for the Apache Iceberg REST Catalog

https://github.com/supabase/iceberg-js
1•kiwicopple•3m ago•0 comments

Learning a new programming language with an LLM

https://feeding.cloud.geek.nz/posts/learning-new-programming-language-with-ai/
1•speckx•3m ago•0 comments

SSE sucks for transporting LLM tokens

https://zknill.io/posts/sse-sucks-for-transporting-llm-tokens/
1•zknill•4m ago•0 comments

Hyper-Scalers Are Using CXL to Lower the Impact of DDR5 Supply Constraints

https://www.servethehome.com/hyper-scalers-are-using-cxl-to-lower-the-impact-of-ddr5-supply-const...
1•giuliomagnifico•5m ago•0 comments

Creativity and Mental Health

https://en.wikipedia.org/wiki/Creativity_and_mental_health
1•wseqyrku•5m ago•0 comments

The Rise of the 0.1x Engineer

https://www.jerpint.io/blog/2025-12-08-01x-engineer/
2•jerpint•6m ago•0 comments

A new way to trigger responses in the body by simulating psychological pressure

https://medicalxpress.com/news/2025-11-streak-trigger-responses-body-simulating.html
1•PaulHoule•6m ago•0 comments

Evidence That Humans Now Speak in a Chatbot-Influenced Dialect Getting Stronger

https://gizmodo.com/chatbot-dialect-2000696509
1•pseudolus•6m ago•0 comments

Show HN: Avatune – SSR-friendly avatars with browser ML for attribute prediction

https://www.avatune.dev/
2•teimurjan•8m ago•0 comments

DeepMath: A lightweight math reasoning Agent with smolagents

https://huggingface.co/blog/intel-deepmath
3•ibobev•8m ago•0 comments

Advent of Code in Dialog

https://entropicthoughts.com/advent-of-code-in-dialog
2•ibobev•9m ago•0 comments

Multibase CLI

http://www.chriswarbo.net/blog/2025-12-07-multibase_cli.html
1•ibobev•9m ago•0 comments

Offline cybersecurity AI using RAG and local LLM (Python, FAISS, Llama 3.1)

https://gitlab.com/sydsec1/Syd
1•todsacerdoti•10m ago•0 comments

AWS re:Invent re:Watch tool

https://myrewatch.link/
2•cebert•12m ago•0 comments

All the Places

https://alltheplaces.xyz/
2•djoldman•13m ago•0 comments

Atomic time source failure at NIST Gaithersburg campus

https://groups.google.com/a/list.nist.gov/g/internet-time-service/c/Zd7VaR-vqV4
2•ahlCVA•14m ago•0 comments

Which Roadmap Path Are You On?

https://holenventures.substack.com/p/which-roadmap-path-are-you-on
1•hholen•15m ago•0 comments

My App Will Harm You Physically, Using Math

https://prolost.com/blog/drinkingbuddy
1•ingve•15m ago•0 comments

Show HN: I built a dual-engine diagram app to fix my own workflow

https://diagram-generator.com/
1•dongjiewu•17m ago•0 comments

Spending too much time on one AoC problem

https://richclubb.github.io/blog/spending_way_too_much_time/
1•jamesbelchamber•18m ago•0 comments

60 Years of Artificial Intelligence at Stanford (2023) [video]

https://www.youtube.com/watch?v=Cn6nmWlu1EA
1•swatson741•23m ago•0 comments

Torture Techniques from CIA Black Sites Were Used at Alligator Alcatraz

https://www.forever-wars.com/torture-techniques-from-cia-black-sites-were-used-at-alligator-alcat...
7•perihelions•25m ago•0 comments

The AI bust scenario that no one is talking about

https://www.noahpinion.blog/p/the-ai-bust-scenario-that-no-one
2•maelito•26m ago•0 comments

Show HN: I Built an Plug and Play UI Library with Motion Animations

https://ogblocks.dev/
2•Karanzk•27m ago•0 comments

Join the on-call roster, it'll change your life

https://serce.me/posts/2025-12-09-join-oncall-it-will-change-your-life
2•todsacerdoti•31m ago•0 comments

Pydantic-AI Deepagents

https://github.com/vstorm-co/pydantic-deep
3•kacper-vstorm•32m ago•1 comments

Trump ban on wind power projects overturned by federal judge

https://www.cnbc.com/2025/12/08/trump-ban-on-wind-power-projects-overturned-by-federal-judge.html
5•pseudolus•32m ago•1 comments

Rsyslog Goes AI First – A New Chapter Begins

https://www.rsyslog.com/rsyslog-goes-ai-first-a-new-chapter-begins/
1•baobun•32m ago•0 comments