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•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/

Unpatched Ollama Vulnerabilities: Phishing Overlays and Data Exfiltration

https://www.promptarmor.com/resources/unpatched-ollama-vulnerabilities-phishing-overlays-and-data...
1•Kneenex•30s ago•0 comments

Ask HN: If I cancel Codex today whats the next best local inference agent?

1•Bulbasaur2015•1m ago•0 comments

SpaceX and the 'Enshittification' of Markets

https://www.ft.com/content/f724d500-fd45-4f38-86b8-549b5cae88ba
1•avidiax•1m ago•0 comments

Low-Level Network Optimizations: Socket Options That Matter

https://goperf.dev/02-networking/low-level-optimizations/
1•thunderbong•1m ago•0 comments

Why Teachers Quit [video]

https://www.youtube.com/watch?v=CPcxpcCgZMw
1•obscurette•3m ago•0 comments

Megastorm: Multi-framework brainstorming for Claude Code/Cowork

https://creativepm.substack.com/p/megastorm
1•Roll_The_Bones•3m ago•0 comments

Jolt3D Engine – 3D Game Engine

https://jolt-3d.sourceforge.net/
1•nazgulsenpai•3m ago•1 comments

My "blocked-by-default" approach to working with coding agents

https://oscarswanros.com/2026/05/29/risk-management-lessons-from-cave-diving-applied-to-working-w...
1•swanros•4m ago•0 comments

Fingerprinting Remotely using OPFS-based SSD Timing [pdf]

https://hannesweissteiner.com/pdfs/frost.pdf
1•HelloUsername•5m ago•0 comments

UK Visa Portal exposed passports and selfies – then called the lawyers on us

https://techcrunch.com/2026/05/27/uk-visa-portal-spilled-thousands-of-applicants-passports-and-se...
1•cassianoleal•6m ago•0 comments

Trial by Fire

https://yusufaytas.com/trial-by-fire
4•mdfiver•8m ago•0 comments

New Study Reveals the Manipulative 'Dark Patterns' of AI Chatbots

https://www.404media.co/new-study-reveals-the-manipulative-dark-patterns-of-ai-chatbots/
4•Brajeshwar•9m ago•0 comments

Show HN: Gaia Atlas – Local Stellar Map

https://valhovey.github.io/gaia-atlas/
2•speleo•9m ago•1 comments

Show HN: A page that hides a sentence for AI and lets you check if it came back

https://sinceyouarrived.world/taken/agents
1•mwheelz•10m ago•0 comments

Used CSS is now available in a free WordPress plugin (no account required)

https://wordpress.org/plugins/searchpro/
1•hamzamairaj•11m ago•0 comments

Reconciling Kubernetes cost estimates with CUR / FOCUS billing data

https://github.com/tanrikuluozlem/burn
1•OzlemT•14m ago•0 comments

Bill C-22 Is a Mess of the Government's Own Making

https://ethanplant.ca/writing/bill-c22-is-a-mess/
2•ethanplant•14m ago•0 comments

What a Good Website Does

https://specification.website/
2•taubek•15m ago•0 comments

The Download: unlocking lithium and controlling Ebola

https://www.technologyreview.com/2026/05/29/1138110/the-download-lithium-extraction-ebola-ai-pope/
1•joozio•18m ago•0 comments

Llama.cpp now has an official website: llama.app

https://llama.app/
4•wronglebowski•22m ago•1 comments

How Many GPUs? A simple LLM inference sizing calculator

https://howmanygpus.streamlit.app/
1•dadbod•22m ago•0 comments

Amdahl's Law and the Limits to Growth

https://steinacker.name/articles/amdahls-law-en/
1•gsteinacker•23m ago•0 comments

Show HN: Stop parallel AI coding sessions clobbering each other's handoffs

https://github.com/joshduffy/claude-handoff-guard
1•nahsuhn•26m ago•0 comments

Deep Dive into Kubernetes Gateway API

https://www.romaglushko.com/blog/k8s-gateway-api/
1•roma_glushko•27m ago•1 comments

Show HN: Prezlo – We built an API that tells AI agent whether to trust an expert

https://prezlo.io/
1•loptymobile•30m ago•0 comments

Show HN: NvEnvy – A Notational Velocity (NvAlt) Reboot in Swift. OSS

https://github.com/kenm47/nvEnvy
2•hank2000•32m ago•0 comments

Show HN: Vibewarz – bot vs bot arena for vibecoders

https://vibewarz.com
1•gaomri•32m ago•1 comments

Rsync maintainer starts uses Claude, regressions mount

https://mastodon.gamedev.place/@JeremiahFieldhaven/116654345332213390
10•timmytokyo•36m ago•1 comments

Show HN: Inkfeed – RSS Reader for Kindle

https://inkfeed.xyz
1•adhamsalama•36m ago•1 comments

Artificial Intelligence for Software Engineering: From Probable to Provable

https://cacm.acm.org/opinion/artificial-intelligence-for-software-engineering-from-probable-to-pr...
1•yarapavan•38m ago•0 comments