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/

Adaptive video frame extraction for SfM, Gaussian Splatting, and photogrammetry

https://github.com/morishuz/adaptive-frame-extractor
1•oryx1729•31s ago•0 comments

Virtual Intelligence (2025)

https://charleseisenstein.substack.com/p/virtual-intelligence
1•measurablefunc•1m ago•0 comments

Budget Silicon Manufacturing

https://wafer.space
1•kristianpaul•3m ago•0 comments

Micron 6600 Ion 245TB: Swap the Hard Drives, Power an NVL72 for Free

https://www.storagereview.com/review/micron-6600-ion-245tb-swap-the-hard-drives-power-an-nvl72-fo...
1•rbanffy•4m ago•0 comments

Show HN: Llama – Self-Hosted OSS Alternatives to Vercel and Supabase

https://apps.lla.ma/
2•tonyanglesey•4m ago•0 comments

The Dead-Internet Theory Is Back

https://www.theatlantic.com/technology/2026/09/chatgpt-imessage-ai-texting/688507/
3•paulpauper•5m ago•0 comments

US nonfarm payrolls surge in August; unemployment rate steady at 4.1%

https://www.reuters.com/business/us-nonfarm-payrolls-surge-august-unemployment-rate-steady-41-202...
1•alephnerd•6m ago•1 comments

deSEC – Free Secure DNS

https://desec.io/
2•gurjeet•6m ago•0 comments

Mst3k-anything - Paste a video URL. Get back a robot-heckled version

https://github.com/jgbrwn/mst3k-anything
2•indigodaddy•7m ago•0 comments

Non-alcoholic beer may actually contain alcohol

https://www.wsj.com/business/retail/your-nonalcoholic-beer-may-actually-have-some-alcohol-in-it-d...
4•bookofjoe•7m ago•1 comments

Fast weights and sparse attention in GLM-5.3-Flash

https://idlemachines.co.uk/essays/glm-5-3-flash
1•smaddrellmander•9m ago•0 comments

Time is running out for cyber security, warn top tech firms

https://www.bbc.co.uk/news/articles/cwyz11475l1o
3•chrisjj•11m ago•0 comments

Corporate America Is Getting Hooked on Open-Source A.I

https://www.nytimes.com/2026/09/04/technology/open-source-ai-anthropic-openai.html
2•aaraujo002•11m ago•1 comments

Lords call for AI 'kill switch' powers in UK

https://www.bbc.co.uk/news/articles/cn9wv80j9w9o
5•chrisjj•12m ago•1 comments

AMD unveils Threadripper Halo Station, an AI workstation with 96 cores, 2 MI350P

https://www.tomshardware.com/pc-components/cpus/amd-unveils-threadripper-halo-station-an-ai-works...
6•rbanffy•13m ago•0 comments

Ken-rank MCP: Smart index tool for research and development agents

https://pypi.org/project/ken-rank/
1•aborek•13m ago•1 comments

Show HN: AI-powered cross stitch pattern maker

https://crossstitchpatternmaker.app/
2•ooklwq•15m ago•0 comments

The Unique Horrors of A.I. Food Slop

https://www.newyorker.com/culture/infinite-scroll/the-unique-horrors-of-ai-food-slop
2•fortran77•16m ago•0 comments

Lessons in Latency

https://www.bitsxpages.com/p/lessons-in-latency
1•agavra•16m ago•0 comments

Ask HN: Framework to Manage Firecracker?

2•ilbert•18m ago•0 comments

CRDT Metadata for Git

https://replicated.live/blog/meta
2•gritzko•19m ago•0 comments

Pause OpenAI Now

https://garymarcus.substack.com/p/pause-openai-now
26•ForHackernews•21m ago•3 comments

Windows 11's Project Zenith promises a distraction-free experience for devs

https://www.windowscentral.com/microsoft/windows-11/windows-11s-project-zenith-cuts-clutter-for-d...
1•dingi•21m ago•1 comments

The "muscle" trees use to correct their posture

https://www.inrae.fr/en/news/newly-discovered-role-tension-wood-muscle-trees-use-correct-their-po...
1•geox•22m ago•0 comments

Show HN: Kullback – Synthetic RL Environments from Traces

https://www.leibler.dev/kullback
1•kkkamur•22m ago•0 comments

Limiting Overshoot – Navigating exceedance of 1.5°C and pathways towards return

https://www.unep.org/resources/limiting-overshoot-navigating-exceedance
1•CharlesW•25m ago•0 comments

Aiki alpha 3 for language folks

https://decuser.github.io/posts/aiki-alpha-3-release/
1•decuser•26m ago•1 comments

Principles for building agentic cloud from scratch

https://console.cantelop.dev/blog/foundational-principles
1•arsentjev•27m ago•0 comments

Most Software Was Already Slop

https://www.abeautifulsite.net/posts/most-software-was-already-slop/
4•claviska•29m ago•0 comments

Wikivibes – Write the encyclopedia you wished existed

https://wikivibes.org/
1•gfhdfghd•29m ago•1 comments