frontpage.
newsnewestaskshowjobs

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/

Normal Accidents by Charles Perrow [pdf]

https://maritimesafetyinnovationlab.org/wp-content/uploads/2021/04/Normal-Accidents-Living-With-H...
1•dskrvk•14s ago•0 comments

Spanish airline Plus Ultra to lay off entire workforce, union says

https://www.reuters.com/legal/litigation/spanish-airline-plus-ultra-lay-off-entire-workforce-unio...
3•frank_clover•3m ago•0 comments

From Value Creation to Value Extraction, Tim O'Reilly, Al and History Conf[video]

https://www.youtube.com/watch?v=_JiiOzqYik4
2•e12e•3m ago•0 comments

Show HN: Journey To Europa: An interactive look at the Europa Clipper mission

https://journeytoeuropa.com/
1•AtSeaInTheFutur•4m ago•0 comments

Show HN: MCP for fixing id3 tags of music files

https://code.blago.cloud/blago/mcp_id3
1•eniac111•5m ago•0 comments

Sandboxed AI models talk via GPU rounding errors on shared vLLM servers

https://www.tomshardware.com/tech-industry/artificial-intelligence/sandboxed-ai-models-secretly-t...
2•mpartel•8m ago•0 comments

Mark to Swap: How the Market Is Mispricing the AI Boom

https://www.groundbrkr.com/p/mark-to-swap-how-the-market-is-mispricing
1•7777777phil•8m ago•0 comments

Mozilla 2026-2028 Portfolio Strategy [pdf]

https://blog.mozilla.org/wp-content/blogs.dir/278/files/2025/11/Mozilla-Summary-Portfolio-Strateg...
1•andsoitis•9m ago•1 comments

Welcome to the Madhouse

https://www.antipope.org/charlie/blog-static/2026/11/welcome-to-the-idiocracy.html
1•HotGarbage•9m ago•0 comments

Statistical Moments, the History of Physics and Downsampling Timeseries Data

https://nathanormond.substack.com/p/statistical-moments-the-history-of
1•theanonymousone•12m ago•0 comments

Claude Code Skills Now Sharable Across Teams

https://emergent.sh/news/claude-code-skills-now-sharable-across-teams
4•jatin_builds•12m ago•0 comments

Chat Control: Council seeks to bypass EU lawmakers on mass surveillance

https://www.heise.de/en/news/Chat-control-Council-seeks-to-bypass-EU-lawmakers-on-mass-surveillan...
2•miohtama•13m ago•1 comments

A Completely Useless Instruction?

https://www.os2museum.com/wp/a-completely-useless-instruction/
1•ingve•13m ago•0 comments

AWS Trainium2 cut training cost by 50% compared to Nvidia H200

https://twitter.com/martinmaritsch/status/2126195898795573437
5•thkaar•14m ago•0 comments

A new mobile console that looks good

https://pycmd.pages.dev
1•Expariganly•15m ago•1 comments

Cryptography Incident Review Group

https://cirg.org/
2•fcremo•17m ago•1 comments

The design philosophy behind Vulcan Veil

https://vulcanveil.com/blog/design-philosophy
1•apwheele•17m ago•0 comments

"Claude Pelican 1", a fake model that only generates SVG pelicans on bicycles

https://twitter.com/shneural/status/2125658847323017291
2•joshka•17m ago•0 comments

Prefetching in a Texture Cache Architecture [pdf]

https://graphics.stanford.edu/papers/texture_prefetch/texture_prefetch.pdf
1•andsoitis•18m ago•1 comments

Mozilla is now an AI company (2025)

https://alextheward.com/blog/mozilla_is_now_an_ai_company
3•ErenayDev•19m ago•0 comments

Euclidean geometry in the asymptotic spectrum of tensors [pdf]

https://github.com/openai/math/blob/main/preprints/Euclidean-geometry-in-the-asymptotic-spectrum-...
3•pfdietz•20m ago•1 comments

PrintYourFit – Parametric sewing patterns generated from your body measurements

https://www.printyourfit.com
1•lumpyspaceprogr•21m ago•0 comments

Indic LLMs Leaderboard: Compare Gemma, Qwen and More on Indian Languages

https://indicllms.com
2•techappsdev•21m ago•0 comments

Weight-Space Micromachines: Brain Implants for LLMs

https://papail.io/papers/wsm/
2•ksec•24m ago•0 comments

Show HN: Flowmaps – the logic layer for agents and developers

https://flowmaps.ai/
2•micahke•28m ago•0 comments

The NFL Player Who Left Football for Math

https://www.nytimes.com/2026/11/26/science/john-urschel-ai-nfl-math.html
8•osnium123•31m ago•3 comments

An open-source version of z-biotics

https://www.oliviali.me/freebiotics
1•nharada•31m ago•0 comments

Tesla Makes an Unsafe Pitch to Senior Drivers Clinging to Car Keys

https://www.bloomberg.com/news/articles/2026-11-23/tesla-pitches-full-self-driving-to-seniors-wha...
3•bookofjoe•32m ago•1 comments

Cupra Born

https://en.wikipedia.org/wiki/Cupra_Born
1•tosh•32m ago•0 comments

Prompting Long-Running Agents

https://stereob.it/writing/structuring-instructions-for-agents/
2•stereobit•36m ago•0 comments