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

Comments

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

Ask HN: Why are streaming apps so bad (insiders only)?

1•tonymet•45s ago•0 comments

Static Certificate Transparency

https://www.merklemap.com/documentation/static-ct
1•Eikon•1m ago•0 comments

Cool – AI file compression and sharing – Beams

https://beams.cc
1•posteezy•3m ago•0 comments

Show HN: I made a SaaS to crush technical interviews

https://sharpskill.fr/en
1•Enjoyooor•6m ago•0 comments

Lucid aims for ‘the heart of the market’ with three new EVs priced at $50,000

https://electrek.co/2025/12/04/lucid-lcid-aims-50000-evs-at-heart-of-the-market/
1•breve•7m ago•0 comments

Radiance Meshes for Volumetric Reconstruction

https://half-potato.gitlab.io/rm/
1•xnx•8m ago•0 comments

Who Owns Alignment?

https://backnotprop.substack.com/p/who-owns-alignment
2•ramoz•10m ago•0 comments

Libre Computer: Platforms for Software-Defined Hardware

https://libre.computer/
1•doener•10m ago•0 comments

AI chatbots used inaccurate information to change people's political opinions

https://www.nbcnews.com/tech/tech-news/ai-chatbots-used-inaccurate-information-change-political-o...
5•ceejayoz•11m ago•0 comments

Beyond the Front Page of the Internet

https://old.reddit.com/user/spez/comments/1pdb5dc/beyond_the_front_page_of_the_internet/
1•doener•13m ago•0 comments

Debatable Lands

https://en.wikipedia.org/wiki/Debatable_Lands
1•thunderbong•15m ago•0 comments

Let's Not Bring Back the Gatekeepers

https://www.conspicuouscognition.com/p/lets-not-bring-back-the-gatekeepers
2•paulpauper•15m ago•0 comments

The Status Game (With Will Storr)

https://www.econtalk.org/the-status-game-with-will-storr/
1•paulpauper•16m ago•0 comments

Google Cloud: Disclosure of Information to the European Commission

1•scblzn•16m ago•0 comments

Show HN: Marvin, your own AI-powered game studio

https://marvin.hyve.gg/?r=hn
5•marvinai•17m ago•3 comments

Wolfenstein 3D's map renderer [video]

https://www.youtube.com/watch?v=eOCQfxRQ2pY
3•ibobev•18m ago•0 comments

The Third Day of Agents How Agents Work – Tools, Memory, and Plans

https://buttondown.com/johncoghlan/archive/on-the-third-day-of-agents-how-agents-actually/
1•mooreds•19m ago•0 comments

Target-text: An easy way to style text fragments

https://webkit.org/blog/17628/target-text-an-easy-way-to-style-text-fragments/
1•feross•20m ago•0 comments

Show HN: A SOTA chart-extraction system combining traditional CV and LVMs

https://reducto.ai/blog/reducto-chart-extraction
1•raunakchowdhuri•20m ago•0 comments

Kimina-Prover: Applying Test-Time RL Search on Large Formal Reasoning Models

https://huggingface.co/blog/AI-MO/kimina-prover
1•ibobev•22m ago•0 comments

We Got Claude to Fine-Tune an Open Source LLM

https://huggingface.co/blog/hf-skills-training
1•ibobev•22m ago•0 comments

Why Does the Salish Sea Glow in the Dark?

https://www.atlasobscura.com/articles/untold-earth-105-salish-sea-bioluminescence
2•prismatic•24m ago•0 comments

Microsoft denies report of lowering targets for AI software sales growth

https://www.reuters.com/technology/microsoft-lowers-ai-software-sales-quota-customers-resist-new-...
1•speckx•25m ago•0 comments

A smarter way for large language models to think about hard problems

https://news.mit.edu/2025/smarter-way-large-language-models-think-about-hard-problems-1204
2•pedriquepacheco•25m ago•0 comments

Dependency Groups to the Rescue

https://metaist.com/blog/2025/12/dependency-groups.html
1•metaist•26m ago•0 comments

Gaussian Splat Reconstruction from Anything via OpenAI Chat Completions

https://colab.research.google.com/drive/17ZAyzkJNUHm_xVZX9aowCs7rXUSfsQxU?usp=sharing#scrollTo=28...
2•visioninmyblood•26m ago•0 comments

Relativistic Covariance and Nonlinear Quantum Mechanics

https://twitter.com/hsu_steve/status/1996034522308026435
1•measurablefunc•28m ago•0 comments

Ask HN: Would you use an AI that translates your body's signals? (3-min survey)

1•app-neosoma•30m ago•0 comments

Ask HN: Dealing with Almost a Decade of Harassment

2•advice-for-me•31m ago•2 comments

The Animate and The Inanimate, a cosmological tome written by a child prodigy [pdf]

https://www.sidis.net/animate.pdf
3•tesserato•32m ago•0 comments