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/

A world model that turns a few photos of a room into a simulation called Mundo

https://huggingface.co/blog/Luo-Yihang/mundo-world-model
1•sgiannopoulos•1m ago•0 comments

Switching Password Managers in 2026

https://rmondello.com/2026/09/07/switching-password-managers-2026/
1•birdculture•2m ago•0 comments

A public tourist webcam captured the fire at Hitler's Eagle's Nest

https://claude.ai/artifact/KQRxeaEpmtmwT8HwzhHRUt
1•mtford•5m ago•0 comments

A Love Letter to the Super Dimension Fortress

https://brennan.day/a-love-letter-to-the-super-dimension-fortress/
1•jruohonen•7m ago•0 comments

CppC – memory-safe C++ compiler (catches UAF, double-free at build time)

https://github.com/0x7m7/cppC
1•0x7m7•19m ago•1 comments

iPhone Duo Durability: Destroyed [video]

https://www.youtube.com/watch?v=5laDGy4INB0
2•phoronixrly•25m ago•1 comments

ThinkRail from JetBrains

https://thinkrail.ai/
1•wilsonjholmes•29m ago•0 comments

ERC Starting Grant success rate likely to fall to 4.8%

https://sciencebusiness.net/news/r-d-funding/european-research-council/erc-starting-grant-success...
1•theanonymousone•30m ago•0 comments

Node2Shell evolves to HTTP2Shell, blast radius affects many HTTP libs and apps

https://www.aikido.dev/blog/python-packages-vulnerable-node2shell-brotli-cve-2026-111497
3•theanonymousone•31m ago•0 comments

Show HN: Local AI for dictation, meetings, background tasks and more

https://sideos.ai
1•askintml•33m ago•0 comments

Same open model, two harnesses: 24/25 vs. 19/25 on 25 real merged pull requests

https://octomind.run/blog/coding-agent-benchmark-real-prs
1•donk8r•34m ago•0 comments

Ruby Regexp compilation fixes related to GitLab

https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/
2•ksec•35m ago•0 comments

USB AI

https://usb-ai-hazel.vercel.app/
1•fipra1969•38m ago•0 comments

Cube – Run FreeBSD ARM64 VMs Natively on Apple Silicon Macs

https://cube.neuralengine.net
1•darcyliu•38m ago•0 comments

Worca – Deterministic Multi-Agent Pipeline

https://worca.dev/
1•Tomte•40m ago•0 comments

A high-performance gRPC server library in C

https://github.com/ThirdLetterC/grpc
1•yehors•44m ago•0 comments

Self-Contained String and Unicode (v17) Library for ISO C11/C17/C23

https://github.com/ThirdLetterC/cstr
2•yehors•45m ago•0 comments

Kimi K3.1 Pro will be leading open-weights model once its weights are published

https://artificialanalysis.ai/articles/kimi-k3-1-pro-launch-benchmarks
1•theanonymousone•47m ago•0 comments

Show HN: Inspect AI recommendation evidence and turn findings into website tasks

https://aicitewho.com/
1•chuanbuilds•50m ago•0 comments

Wish: Make SSH apps, just like that

https://github.com/charmbracelet/wish
2•ssernikk•50m ago•0 comments

A Self-Defining Operator for Distributed Applications

https://arxiv.org/abs/2610.14547
1•matt_d•52m ago•0 comments

Show HN: Calsee – a calculator whose themes are generated from a single seed

https://calsee.tech/
1•mishrabhilash•52m ago•0 comments

ZK-irp-firewall – Rust/Python ZK security framework for AI agents

https://github.com/trenttrinder1111-byte/zk-irp-firewall
1•trenttrinder111•54m ago•0 comments

New York's fracking ban leaves community to crumble while Pa. neighbors boom

https://nypost.com/2026/10/22/us-news/new-yorks-fracking-ban-leaves-community-to-crumble-while-pe...
1•ArizonaGal•55m ago•0 comments

Show HN: How religions evolved? Charts, Maps, Citations

https://howitevolved.com/chart/
1•silly073•1h ago•0 comments

Nonfiction Is Struggling. Publishers Are Making It Worse

https://thewalrus.ca/nonfiction-is-struggling-publishers-are-making-it-worse/
2•Michelangelo11•1h ago•1 comments

In the biotech world, you can't see everything

https://www.technologyreview.com/2026/10/23/1147610/biotech-you-can-see-everything-theranos-holmes/
1•joozio•1h ago•0 comments

Show HN: Encarta 95 Web

https://benwinding.github.io/encarta_95_web/#/article/Art
3•gitgud•1h ago•0 comments

A supercomputer is about to launch to the moon aboard a rover named FLIP

https://www.space.com/space-exploration/a-supercomputer-is-about-to-launch-to-the-moon-for-the-1s...
4•pseudolus•1h ago•0 comments

Why moving sprites are slow

https://debuff.jp/blog/why-moving-sprites-are-slow
1•gregjw•1h ago•0 comments