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/

Show HN: Seal – Letters and passwords that open for your family after you die

https://github.com/jasonepage/Seal
2•jpage2•9m ago•0 comments

A Black-Box Audit of Provider-Side Token Inflation in LLM Services

https://arxiv.org/abs/2609.20370
1•donk8r•10m ago•0 comments

San Francisco Onion Futures Company

https://onionfutures.com/
2•z-mach9•14m ago•0 comments

OpenLoco Version 26.09 Released

https://openloco.io/news/2026/09/openloco-v26.09.html
1•jandeboevrie•15m ago•0 comments

Show HN: A static reference for 5,142 supplement interactions

https://synstax.uppervoid.app/interactions/
1•reloading2008•15m ago•0 comments

Brownie Mary

https://en.wikipedia.org/wiki/Brownie_Mary
1•arittr•24m ago•0 comments

Prompts are not deleted – they are just hidden

https://medium.com/@istokovicsgyorgy79/your-prompts-are-not-deleted-they-are-just-hidden-e0016bd4...
1•CanusLupus79•26m ago•0 comments

Harm Laundering in GPT Models: Gender Discrimination Transformed Rather Than

https://arxiv.org/abs/2609.20779
2•sbulaev•31m ago•0 comments

Vibe coding did not kill making money out of engineering, open source and SaaS

https://i18n-keyless.com/
2•arnaudambro•33m ago•2 comments

Virtual Memory: Page Tables, TLBs, and Linux Internals

https://blog.codingconfessions.com/p/virtual-memory
1•fagnerbrack•37m ago•0 comments

Isomorphic Collapse of Primorial Modulus- Bypassing Arithmetic in Cryptanalysis

https://zenodo.org/records/22840364
1•GeometryKernel•42m ago•0 comments

Dashes suggest which model you're copy-pasting from

https://will-keleher.com/posts/your-dashes-suggest-which-model-youre-copy-pasting-from/
1•vismit2000•43m ago•1 comments

USB 3 Speeds Come to a Non-Pro iPhone

https://pxlnv.com/blog/usb-3-speeds-finally-come-to-a-non-pro-iphone/
1•robbiet480•45m ago•0 comments

Reality Is the Final Verifier: On Two Key Gaps in Agentic Software Engineering

https://arxiv.org/abs/2609.12039
1•matt_d•46m ago•0 comments

The Destruction of the Scottish Canon

https://asteriskmag.com/issues/15/the-destruction-of-the-scottish-canon
1•barry-cotter•48m ago•1 comments

OpenAI expects to burn $280B by 2030

https://www.ft.com/content/6011d061-eee3-4193-b3b7-8ee4155f538c
2•JumpCrisscross•49m ago•0 comments

Left Brain, Right Brain: Facts and Fantasies

https://pmc.ncbi.nlm.nih.gov/articles/PMC3897366/
1•diwank•53m ago•0 comments

Static site generator for Ghost CMS

https://github.com/SimonMo88/ghost-static-site-generator
1•Curiositry•58m ago•0 comments

Teaching Fractions According to the Common Core Standards(2011) [pdf]

https://math.berkeley.edu/~wu/CCSS-Fractions_1.pdf
1•o4c•1h ago•0 comments

Why You Can't Overcook Mushrooms and the Science Behind Them [video]

https://www.youtube.com/watch?v=XLPLCmwBLBY
3•thunderbong•1h ago•0 comments

Bringing Back Caesar IV Online

https://xetera.dev/article/bringing-back-caesar-iv-online
1•xetera•1h ago•0 comments

Inventor of ChatGPT and RLHF Launches Typesafe.ai

https://techcrunch.com/2026/09/18/a-new-kind-of-ai-model-from-a-chatgpt-inventor-is-thrilling-dev...
3•ryan_j_naughton•1h ago•0 comments

NASA's Moon Orbiter Spots New, 'Once-in-Century' Moon Crater

https://science.nasa.gov/solar-system/moon/nasas-moon-orbiter-spots-new-once-in-century-moon-crater/
2•wglb•1h ago•0 comments

Executive order on H-1B nonimmigrant visa administration

https://www.whitehouse.gov/presidential-actions/2026/09/enhancing-program-integrity-and-integrity...
8•anigbrowl•1h ago•8 comments

A more sober look at the HuggingFace incident

https://www.wsj.com/opinion/the-hugging-face-hack-wasnt-what-it-was-cracked-up-to-be-e00cf3fa
2•paulpauper•1h ago•0 comments

AI Regulation and the China Question

https://casssunstein.substack.com/p/ai-regulation-and-the-china-question
3•paulpauper•1h ago•1 comments

ASI risk debate with Nate Soares [video]

https://www.youtube.com/watch?v=OhOmLqR5nN4
2•paulpauper•1h ago•0 comments

Show HN: GGG – A local-first, zero-telemetry sovereign proxy daemon for AI tools

https://github.com/JOxKxER/garza-global-graviton
2•joxkxer•1h ago•0 comments

Curves on Potatoes

https://mathoverflow.net/questions/363950/curves-on-potatoes
1•maxall4•1h ago•0 comments

Is Dan Ariely Telling the Truth?

https://chronicleofhighereducation.substack.com/p/is-dan-ariely-telling-the-truth
1•mhb•1h ago•0 comments