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•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: A Claude Code skill that tells Claude when not to use Claude

https://github.com/metravod/llm-buster-skill
1•metravod•2m ago•0 comments

Coding on Paper

https://wickstrom.tech/2026-05-16-coding-on-paper.html
1•owickstrom•3m ago•0 comments

Is it worth to study HPC and GPU programming?

1•michioD•3m ago•0 comments

The shooting stopped. Then came everything else

https://www.cnn.com/interactive/2026/05/us/minneapolis-annunciation-school-shooting-recovery/
1•martey•4m ago•0 comments

Snowflake with Iceberg: Lakekeeper, Dbt, and Some Sparks Flying

https://medium.com/fresha-data-engineering/snowflake-with-iceberg-lakekeeper-dbt-and-some-sparks-...
1•eigenBasis•6m ago•0 comments

Pace Layers and AI Integration

https://aicoding.leaflet.pub/3maob46kbz22v
1•jt2190•8m ago•0 comments

Reddit's Original Sin (YouTube)

https://www.youtube.com/watch?v=zOyyy-XAwfE
1•barelythinking•8m ago•0 comments

The Lockout: A path error in a deployment script reclassifies its operators

https://aihumanlove.com/fiction/the-lockout.html
1•zwanzea•9m ago•0 comments

WHO Declares Ebola Outbreak a Global Health Emergency

https://www.nytimes.com/2026/05/17/world/africa/ebola-congo-uganda-who-public-health-emergency.html
1•zzzeek•10m ago•0 comments

High-Powered Mutant Makefiles: Standard Library, Docker Support, and More

https://robot-wranglers.github.io/compose.mk/
1•ian_j_butler•11m ago•0 comments

I turned a $80 RK3562 Android tablet into a Debian Linux workstation

https://github.com/tech4bot/rk3562deb
1•tech4bot•15m ago•0 comments

A breakthrough in C/C++ dependency management

https://lcamtuf.substack.com/p/a-breakthrough-in-cc-dependency-management
1•birdculture•17m ago•0 comments

Hand plane competition (Kezuroukai USA)

https://daizen.com/hand-plane-competition-kezuroukai-usa/
1•thunderbong•19m ago•0 comments

AI is a technology not a product

https://daringfireball.net/2026/05/ai_is_technology_not_a_product
2•ch_sm•21m ago•0 comments

PG&E to cut power in parts of Bay Area in anticipation of high winds

https://www.sfgate.com/weather/article/pge-power-shutoff-bay-area-22263223.php
1•turtlegrids•21m ago•0 comments

Nim-Presto – REST API Framework for Nim Language

https://github.com/status-im/nim-presto
1•TheWiggles•23m ago•0 comments

Intel Core i9-14900KF reaches 9.2Ghz setting a new CPU frequency world record

https://www.notebookcheck.net/Intel-Core-i9-14900KF-reaches-9-2Ghz-setting-a-new-CPU-frequency-wo...
2•theanonymousone•30m ago•0 comments

LogTape 2.1.0: Throttling, logfmt, and smarter redaction

https://github.com/dahlia/logtape/discussions/165
2•dahlia•35m ago•0 comments

(VBS-NN) ML – 512k context length pre-training on a 12GB GPU

https://github.com/ega4l/VBS-NN/tree/main/code
2•gromio•35m ago•0 comments

Stochastic Flocks and the Critical Problem of 'Useful' AI

https://www.techpolicy.press/stochastic-flocks-and-the-critical-problem-of-useful-ai/
1•bryanrasmussen•36m ago•0 comments

Construction on Meta's largest data center brings chaos to rural Louisiana

https://lailluminator.com/2025/11/22/meta-data-center-crashes/
2•bwoah•37m ago•0 comments

Coal Makes a Comeback, Fueled by War in the Middle East

https://www.wsj.com/business/energy-oil/coal-makes-a-comeback-fueled-by-war-in-the-middle-east-fb...
1•melling•37m ago•0 comments

AsymFlow: Turning Latent Diffusion Models into Pixel-Space Generators

https://firethering.com/asymflow-pixel-diffusion-image-model/
1•steveharing1•38m ago•0 comments

CUDA Books

https://github.com/alternbits/awesome-cuda-books
2•dariubs•40m ago•0 comments

Astronomers produce most detailed map of the cosmic web, across 13.7B years

https://news.ucr.edu/articles/2026/05/11/astronomers-produce-most-detailed-map-cosmic-web
2•giuliomagnifico•40m ago•0 comments

MatterSim-MT: A multi-task foundation model for materials characterization

https://arxiv.org/abs/2605.07927
1•ttths•42m ago•0 comments

Signals vs. Noise: How to spot architectural shifts

2•moniazamla•44m ago•0 comments

Reducing "show less like this" by 11% with NSFW filtering

https://blog.foryou.club/3mm2fbh4vp22r?auth_completed=true
1•lonk11•45m ago•0 comments

Yes, you can be allergic to water

https://www.popsci.com/health/water-allergy/
1•saikatsg•46m ago•0 comments

Learning-focused CTFs are Facing a Restructure

https://exploiting.systems/posts/2026-05-17-learning-focused-ctfs-are-facing-a-restructure
2•ropbear•46m ago•1 comments