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•8mo ago

Comments

bastawhiz•8mo ago
Is this a problem that people actually have?
xeromal•8mo ago
Fun side project man!
primitivesuave•8mo 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•8mo 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•8mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•8mo 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•8mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Hands-On: Exploit RISC-V CPU Using Return-Oriented Programming

https://www.bogdandeac.com/hands-on-exploit-risc-v-cpu-using-return-oriented-programming/
1•bg2d•22s ago•0 comments

Promoting AI Agents

https://world.hey.com/dhh/promoting-ai-agents-3ee04945
1•kiyanwang•42s ago•0 comments

On Being a Human Being in the Time of Collapse (2022) [pdf]

https://web.cs.ucdavis.edu/~rogaway/papers/crisis/crisis.pdf
1•barishnamazov•48s ago•0 comments

The Magic of the Better Software Conference

https://www.rfleury.com/p/the-magic-of-the-better-software
1•kruuuder•1m ago•0 comments

Chrome 145 Adds Experimental Support for Vertical Tabs

https://www.bram.us/2026/01/16/chrome-145-adds-experimental-support-for-vertical-tabs/
1•tobr•1m ago•0 comments

I vibed a CMS with live-preview/users/click-through-edit in an afternoon

https://github.com/mj1618/yolo-cms
1•mj2718•4m ago•1 comments

John von Neumann's MANIAC I (1952)

https://en.wikipedia.org/wiki/MANIAC_I
1•widenrun•4m ago•0 comments

Operation Big Buzz

https://en.wikipedia.org/wiki/Operation_Big_Buzz
1•downboots•5m ago•0 comments

Ask HN: Those making $500/month on side projects in 2025 – Show and tell

2•ssunboyy•13m ago•0 comments

The Thrill Is Gone: Airbnb and the Crisis of Imagination in Short-Term Rentals

https://skift.com/2026/01/15/the-thrill-is-gone-airbnb-and-the-crisis-of-imagination-in-short-ter...
1•jclampet•18m ago•0 comments

Show HN: Wikitool – CLI for fetching Wikipedia content

2•moeffju•19m ago•0 comments

Pi: There are many coding agents, but this one is mine

https://buildwithpi.ai/
1•tosh•27m ago•0 comments

Show HN: Using Strudel to control dance animations

https://github.com/bntre/threejs-osc-dance
2•bntr•31m ago•0 comments

AI Destroys Institutions

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5870623
2•sean_the_geek•32m ago•2 comments

The integrated explicit analytic number theory network

https://terrytao.wordpress.com/2026/01/15/the-integrated-explicit-analytic-number-theory-network/
1•jjgreen•32m ago•0 comments

Control Flow Integrity for Computer Use Agents

https://arxiv.org/abs/2601.09923
1•iliaishacked•34m ago•1 comments

Kamal: Deploy Web Apps Anywhere

https://kamal-deploy.org/
2•ndr•35m ago•0 comments

Show HN: Codex Plus – Turbocharged OpenAI Codex for Headless Workflows

https://github.com/aperoc/codex-plus
1•SafeDusk•37m ago•0 comments

The Discoveries of Continuations [pdf]

https://homepages.inf.ed.ac.uk/wadler/papers/papers-we-love/reynolds-discoveries.pdf
2•fanf2•38m ago•0 comments

I built a tool to help me stop refreshing this site

https://hn-buddy.com/
1•gaborme•39m ago•1 comments

If a Tree Falls – The Trial of the Sycamore Gap Killers

https://harpers.org/archive/2026/01/if-a-tree-falls-rosa-lyster-sycamore-gap/
1•bcraven•40m ago•0 comments

Browser Built with Cursor Agents in Just One Week

https://quasa.io/media/cursor-s-ai-revolution-building-a-browser-from-scratch-with-gpt-5-2-agents...
2•roboboffin•42m ago•0 comments

Artificial StupidIntelligence and Airport Sinks

https://www.deobald.ca/essays/2026-01-13-artificial-stupidintelligence-and-airport-sinks/
1•vishnukvmd•46m ago•0 comments

Product Documentations for AI SEO

1•udit_50•49m ago•0 comments

The spectrum of isolation: From bare metal to WebAssembly

https://buildsoftwaresystems.com/post/guide-to-execution-environments/
10•ThierryBuilds•53m ago•3 comments

I Made Adobe CC Installers Work on Linux

https://old.reddit.com/r/linux_gaming/comments/1qdgd73/i_made_adobe_cc_installers_work_on_linux_p...
4•XzetaU8•56m ago•0 comments

Opening the AWS European Sovereign Cloud

https://aws.amazon.com/blogs/aws/opening-the-aws-european-sovereign-cloud/
4•notmine1337•57m ago•7 comments

How WhatsApp Took over the Global Conversation

https://www.newyorker.com/magazine/2026/01/19/how-whatsapp-took-over-the-global-conversation
2•petethomas•1h ago•0 comments

PostgreSQL in Gleam with pog, squirrel, and cigogne

https://nulltree.xyz/articles/basic-postgres-setup-in-gleam/
2•todsacerdoti•1h ago•0 comments

Some 20-sided dice from Ptolemaic Egypt (ca.140BC)

https://mathstodon.xyz/@dpiponi/115770670004578550
1•aebtebeten•1h ago•0 comments