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/

Qwen3.8-Flash-Next 177B running at 11–15 tok/s on 1 RTX 5070 12GB and 32GB RAM

https://github.com/MohammadHaishemKhawaja/hashyy
1•maziianobeatz58•1m ago•0 comments

Accountability mechanisms can be joyful

https://liquidbrain.net/blog/accountability-and-joy/
1•luu•8m ago•0 comments

UK Government Body Kept Files on People Criticizing Prevent Program

https://reclaimthenet.org/uk-prevent-unit-tracked-online-critics
1•latein•12m ago•0 comments

An LLM Beat NetHack

https://kenforthewin.github.io/blog/posts/llm-nethack-ascension/
1•bigmadshoe•12m ago•0 comments

Taco Moses Fold

https://twitter.com/rystrave/status/2106446623736004682
1•sergiotapia•13m ago•0 comments

Physicists identify 'octupolar' magnetism, with implications for quantum tech

https://phys.org/news/2026-09-physicists-octupolar-magnetism-implications-quantum.html
1•smurda•14m ago•0 comments

Let AI agents use your site with 3 HTML attributes

https://markodenic.tech/let-ai-agents-use-your-site-with-3-html-attributes/
1•nreece•16m ago•0 comments

Someone got Doom running in an SQL database

https://arstechnica.com/gaming/2026/10/can-it-run-doom-sql-database-edition/
1•sbulaev•16m ago•0 comments

Show HN: Random Word Generator

https://arandomword.com/
1•artiomartiom•18m ago•0 comments

Nvidia Introduces 64GB DGX Spark

https://www.tomshardware.com/pc-components/gpus/nvidia-introduces-64gb-dgx-spark-to-throw-local-a...
1•kristianp•21m ago•0 comments

I stopped reviewing my agents' code. Here's what I do instead

https://alexeyindeev.substack.com/p/i-stopped-reviewing-my-agents-code
6•alexeyindeev•27m ago•0 comments

Thewired.link – a lain-inspired, text-focused social network

https://thewired.link/
1•alvesandreiolvr•28m ago•0 comments

Military Reusable Rocketry

https://surtr.substack.com/p/military-reusable-rocketry
1•MrBuddyCasino•29m ago•0 comments

MBTI for AI coding agents, complete with a self-awareness score

https://github.com/joonfjp/16agents
2•trndgtr•31m ago•0 comments

Games Hospitals Play – Decoding Your Private Healthcare Experience

https://www.bloomsbury.com/in/games-hospitals-play-9789361313394
1•vismit2000•31m ago•0 comments

AI Just Changed Mathematics Forever – Brian Greene & Tristan Buckmaster

https://www.youtube.com/watch?v=PQYFRuZ5phs
1•o4c•42m ago•0 comments

Matternet wants to rain hot chicken from the sky

https://www.fastcompany.com/91613416/matternet-wants-to-rain-hot-chicken-from-the-sky
1•vismit2000•45m ago•1 comments

Decision Models vs. ML Classification

1•jeena•47m ago•2 comments

Forward-Deployed Engineers

https://www.theregister.com/channel/2026/10/03/palantirs-fondness-for-french-food-cooked-up-techs...
1•saikatsg•51m ago•0 comments

Language Model "Shape" – Alex L. Zhang

https://alexzhang13.github.io/blog/2026/shape/
1•sks_15•52m ago•0 comments

Our Solar System Is Terminally Unstable

https://www.404media.co/our-solar-system-is-terminally-unstable-and-will-be-completely-destroyed-...
3•saikatsg•53m ago•0 comments

Ciliate Is About to Die (2020) [video]

https://www.youtube.com/watch?v=ibpdNqrtar0
1•polygot•59m ago•0 comments

The Dot and the Swarm

https://www.oneusefulthing.org/p/the-dot-and-the-swarm
2•saikatsg•1h ago•0 comments

The cost of lies: A Mineserver story

https://www.jeremyreimer.com/rockets-item.lsp?f=true&p=272
1•luu•1h ago•1 comments

Dyson CameraJet

https://geohot.github.io//blog/jekyll/update/2026/10/03/dyson-camerajet.html
1•smilelamp•1h ago•0 comments

wizard-engine: Research WebAssembly Engine

https://github.com/titzer/wizard-engine/
1•luu•1h ago•0 comments

Amazon responds to data center backlash, says it no longer uses NDAs

https://techcrunch.com/2026/10/03/amazon-responds-to-data-center-backlash-says-it-no-longer-uses-...
2•noisysoc•1h ago•0 comments

Archiving the Oldest Webcam Feed

https://hackaday.com/2026/10/01/archiving-the-worlds-oldest-webcam-feed/
2•rdmuser•1h ago•0 comments

Forbidden Stories and UC Berkeley Journalism launch cross-border lab

https://journalism.berkeley.edu/announce-forbidden-stories-lab-uc-berkeley-journalism/
2•rdmuser•1h ago•2 comments

Weirdstuff Warehouse Reopens

https://weirdstuff.com/
2•bananaboy•1h ago•0 comments