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/

Brain Regeneration Observatory – a real, long term use of ML and AI that matters

https://brain-regeneration.com/
1•rcarmo•44s ago•0 comments

ArXivLean: How Well Can LLMs Formally Prove Research Math?

https://matharena.ai/arxivlean/
1•OxfordCommand•1m ago•0 comments

Intel's soars 15% as results top estimates

https://www.cnbc.com/2026/04/23/intel-intc-q1-2026-earnings-report.html
2•nodesocket•2m ago•0 comments

LaGuardia firefighter heard 'stop' before crash but didn't know who it was for

https://apnews.com/article/laguardia-air-canada-ntsb-crash-fire-truck-8f59cffd6f8230ec0c0c0c4d6ef...
1•geox•3m ago•0 comments

The Living Lattice – Explorables of the intelligence theorem

https://lattice.project89.org/
1•sebg•3m ago•0 comments

Show HN: Tron Hilbert Curve Macro

https://github.com/EricNelson12/retrocycles-hilbert
2•i_am_a_squirrel•6m ago•0 comments

ChatGPT for Healthcare

https://help.openai.com/en/articles/20001046-chatgpt-for-healthcare
1•thimabi•7m ago•0 comments

AI Is Destroying the Junior Developer Pipeline. Fix: Preceptorships

https://newclawtimes.com/articles/microsoft-russinovich-hanselman-junior-developer-pipeline-crisi...
1•andrewstetsenko•10m ago•0 comments

FreeRDP 3.25 Adds Experimental AV1 Support

https://www.phoronix.com/news/FreeRDP-3.25-Released
1•breve•11m ago•0 comments

X.1095 – Entity authentication service for pet animals using telebiometrics

https://www.itu.int/itu-t/recommendations/rec.aspx?rec=15708
1•fulafel•14m ago•0 comments

Using the internet like it's 1999

https://joshblais.com/blog/using-the-internet-like-its-1999/
10•joshuablais•16m ago•0 comments

Show HN: PayClaw – a gasless USDC wallet for AI agents (12 frameworks)

https://github.com/ONSARI/payclaw-skill
1•onsari•21m ago•0 comments

Ask HN: Is there still an opportunity for an affordable CPanel alternative?

1•panelica•23m ago•0 comments

Show HN: Twitter for Voice Notes

https://earful.world/?q=&tab=all
1•quinto_quarto•23m ago•0 comments

Explore H-1B labor condition application filings

https://layoffhedge.com/h1b
2•qwertyuiop_•25m ago•0 comments

Pausing new self-serve signups for GitHub Copilot Business

https://github.blog/changelog/2026-04-22-pausing-new-self-serve-signups-for-github-copilot-business/
1•tech234a•25m ago•0 comments

Lirantal/PyPI-security-best-practices

https://github.com/lirantal/pypi-security-best-practices
1•rbanffy•26m ago•0 comments

Python Type Checker Comparison: Speed and Memory Usage – Pyrefly

https://pyrefly.org/blog/speed-and-memory-comparison/
2•rbanffy•26m ago•0 comments

Machine Learning Visualized – Machine Learning Visualized

https://ml-visualized.com/
1•rbanffy•26m ago•0 comments

Old Computers in My University

https://mrunix.me/posts/old-computers-usto/
5•mrunix•27m ago•0 comments

Spark: Bitcoin's Payment Layer for Stablecoins and Instant BTC

https://www.spark.money
1•janandonly•30m ago•0 comments

From Jammy to Resolute: how Ubuntu's toolchains have evolved

https://ubuntu.com/blog/from-jammy-to-resolute-how-ubuntus-toolchains-have-evolved
1•vyrotek•33m ago•0 comments

The company building America's first mail-order servant robot

https://www.dezeen.com/2026/04/23/1x-neo-servant-robot-factory/
1•mikeaskew4•33m ago•0 comments

Outrage over Oracles thousands of H-1B requests amid layoffs

https://nypost.com/2026/04/02/us-news/outrage-over-oracles-thousands-of-h-1b-requests-amid-layoffs/
8•reconnecting•34m ago•1 comments

1-Click Linux alpha is out now

https://blog.arusekk.pl/posts/1-click-linux-alpha/
2•speckx•35m ago•0 comments

GitHub banned me for no understandable reason

https://blog.hellbeast.eu.org/Github%20banned%20me%20for%20no%20understandable%20reason
3•regalialong•36m ago•0 comments

Show HN: Env Validator (NextJS and SvelteKit)

https://github.com/Chrilleweb/dotenv-diff
2•chrillemn•38m ago•0 comments

Picklecast – Eliminate your Chromecast dependence

https://evan.widloski.com/picklecast/display.html
1•Evidlo•39m ago•1 comments

Meta says it will cut 8k jobs as AI spending grows

https://www.bbc.com/news/articles/crm1y89vek8o
4•billybuckwheat•40m ago•0 comments

From 800ms to ~25ms: harness-driven optimization of a CUDA matmul kernel

https://github.com/YupengHan/matmul_optimizer
2•icyace•40m ago•0 comments