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

Comments

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

You should be able to SEE what your agents are doing. I created the solution

https://www.tarsy.dev/
1•leddo•58s ago•0 comments

Kids Are Discovering the Joys–and Pains–Of the Landline

https://www.wsj.com/lifestyle/kids-are-discovering-the-joysand-painsof-the-landline-f703d505
1•impish9208•1m ago•1 comments

Show HN: When Clocks Drift Apart

https://animeshchouhan.com/time/
1•animeshchouhan•1m ago•0 comments

We reverse-engineered Claude Code's billing system to fix overage charges

https://github.com/askalf/dario
1•askalf•2m ago•0 comments

Advanced Mac Substitute is an API-level reimplementation of 1980s-era Mac OS

https://www.v68k.org/advanced-mac-substitute/
1•zdw•5m ago•0 comments

What Is Hypernormalization?

https://adbusters.org/articles-coded/what-is-hypernormalization
1•burnt-resistor•5m ago•0 comments

Raising Carthaginian Armies, Part I: Finding Carthaginians

https://acoup.blog/2026/04/10/collections-raising-carthaginian-armies-part-i-finding-carthaginians/
1•gostsamo•6m ago•0 comments

Don't Be Evil

https://pluralistic.net/2026/04/11/obvious-terrible-ideas/
2•hn_acker•6m ago•0 comments

Preparing for My Own Funeral

https://chrisaustem.substack.com/p/preparing-for-my-own-funeral
1•putzdown•10m ago•0 comments

What tools do you use to visualize algorithms?

1•rjn32s•11m ago•0 comments

EU should regulate Big Tech, not banning kids from social media, Estonia says

https://www.politico.eu/article/europe-should-stand-up-to-big-tech-instead-of-imposing-social-med...
2•donohoe•14m ago•0 comments

The Structure of the Puma Computer System [pdf]

https://softwarepreservation.computerhistory.org/SETL/setl/doc/Grishman-Structure_of_Puma-1978.pdf
3•rbanffy•17m ago•0 comments

We replaced user accounts with Lightning payments for identity

https://blog.satsrail.com/payment-as-identity/
2•keymaker_p•18m ago•0 comments

Native Raspberry Pi 3B version of the Oberon System 3

https://github.com/rochus-keller/OberonSystem3Native/releases/tag/2026-04-10
3•HotGarbage•19m ago•0 comments

The Romance of the Gas Station Sign

https://www.theatlantic.com/ideas/2026/04/gas-prices-sign-driving/686759/
2•fortran77•19m ago•0 comments

False Memory Syndrome Foundation

https://en.wikipedia.org/wiki/False_Memory_Syndrome_Foundation
3•irthomasthomas•19m ago•0 comments

Online "Phreak Box" (Enhanced Blue Box)

https://phreaknet.org/bluebox/
3•bookofjoe•20m ago•0 comments

Hart Research March 8, 2024 opinion poll for NBC News: people hate AI

https://web.archive.org/web/20260310175721if_/https://s3.documentcloud.org/documents/27777984/nbc...
3•1vuio0pswjnm7•20m ago•1 comments

Show HN: Audit the browser for malicious extensions removed from Chrome Store

https://chromewebstore.google.com/detail/malext-sentry/bpohikihiogjgmebpnbgnloipjaddibe
2•toborrm9•20m ago•0 comments

Bulldog: A compiler for VLIW architectures [pdf]

https://www.cs.yale.edu/publications/techreports/tr364.pdf
5•rbanffy•22m ago•1 comments

Eagle Press alt software pyPowered to WordPress

https://github.com/CaptainFantasticVibeCoder/EaglePress
2•eagle10ne•23m ago•0 comments

The Lean Programming Language and Theorem Prover

https://leodemoura.github.io/static/etaps2026/
2•azhenley•24m ago•0 comments

Breathing life into my 13 year old Nexus 7 with Codex

https://opuslabs.substack.com/p/breathing-life-into-my-13-year-old
3•opuslabs•25m ago•0 comments

Tor Browser on Android leaks IP in desktop mode

4•shchess•25m ago•1 comments

Show HN: Animated ASCII art in pure SVG

https://github.com/syi0808/asciianimesvg
1•syi0808•27m ago•2 comments

Iran's Other Front: The War over the Internet

https://warontherocks.com/2026/04/irans-other-front-the-war-over-the-internet/
2•thinkingemote•27m ago•1 comments

The Obscure Relation of Appropriateness

https://vincentcarchidi.substack.com/p/the-obscure-relation-of-appropriateness
1•darccio•27m ago•0 comments

Quantization, LoRA, and the 8% Problem Benchmarking Local LLMs for Production AI

https://walsenburgtech.com/blog/quantization-lora-benchmarking-local-llms
3•cowartc•29m ago•0 comments

The System Turning Chinese Tech Companies into Military Suppliers

https://warontherocks.com/2026/04/the-hidden-system-turning-chinese-tech-companies-into-military-...
1•thinkingemote•29m ago•0 comments

The end of Star Trek is now official

https://screenrant.com/star-trek-strange-new-worlds-starfleet-academy-sets-destroyed/
2•emptybits•30m ago•2 comments