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/

We've raised $17M to build what comes after Git

https://blog.gitbutler.com/series-a
1•ellieh•1m ago•0 comments

White House Warns Staff Not to Place Bets on Prediction Markets Amid Iran War

https://www.wsj.com/politics/policy/white-house-warns-staff-not-to-place-bets-on-prediction-marke...
1•bookofjoe•3m ago•1 comments

A brief history of C/C++ programming languages

https://lemire.me/blog/2026/04/09/a-brief-history-of-c-c-programming-languages/
1•signa11•6m ago•0 comments

Office Bathroom terminology and survival guide (199x)

http://losrulz-plethora.blogspot.com/2006/10/office-restroom-terminology.html
1•b3ing•8m ago•2 comments

CPU-Z and HWMonitor official site compromised

https://old.reddit.com/r/pcmasterrace/comments/1sh4e5l/warning_hwmonitor_163_download_on_the_offi...
2•eightysixfour•8m ago•1 comments

Black Forest Labs – The 70-Person AI Image Startup Taking on Silicon Valley

https://www.wired.com/story/black-forest-labs-ai-image-generation/
1•aanet•14m ago•0 comments

Anthropic weighs building it own AI chips, sources say

https://www.reuters.com/business/anthropic-weighs-building-it-own-ai-chips-sources-say-2026-04-09/
2•aanet•15m ago•0 comments

How are you governing token spend and data exposure in prod AI agent loops?

https://news.ycombinator.com/submit
1•VectorVault•17m ago•0 comments

AltoForge – visualize AWS incidents in real time

https://altoforge.io/
1•ckardaras•18m ago•1 comments

FeatureIQ – A knowledge graph that knows which transforms help which ML models

https://github.com/khedekarpratik0337/featureiq
1•pratikkhedekar•20m ago•0 comments

American Model Airplane Engines(2005) [pdf]

https://www.gruppofalchi.com/files/1911-2005-Anderson-s-Blue-Book-.pdf
1•pillars•24m ago•0 comments

Commercial Persuasion in AI-Mediated Conversations

https://arxiv.org/abs/2604.04263
2•gnabgib•25m ago•0 comments

Agentic Code Optimization via Compiler-LLM Cooperation

https://arxiv.org/abs/2604.04238
1•matt_d•28m ago•0 comments

Tend: Lightweight attention infrastructure for humans and AI agents

https://www.tend.cx/
3•possumously•30m ago•2 comments

Microsoft's PhotoDNA technology keeps flagging my face picture

https://www.elevenforum.com/t/microsoft-photodna-scanning-problem-it-is-comical-now.45961/
25•darkzek•45m ago•3 comments

Ask HN: Looking for AI Video Upscaler

1•120bits•47m ago•0 comments

Yuku – A fast, spec-compliant JavaScript parser written in Zig

1•arshadyaseen•48m ago•0 comments

Should academic misconduct be catalogued? Proposed US database sparks debate

https://www.nature.com/articles/d41586-026-01147-x
1•gnabgib•57m ago•0 comments

One Method Was Using 71% of CPU. Here's the Flame Graph

https://jvogel.me/posts/2026/one-method-using-71-percent-of-cpu/
2•siegers•1h ago•1 comments

Apple's New iPhone Update Is Restricting Internet Freedom in the UK

https://bigbrotherwatch.org.uk/blog/apples-new-iphone-update-is-restricting-internet-freedom-in-t...
4•josephcsible•1h ago•0 comments

Volcanic rock formula cuts cement emissions by two-thirds

https://techxplore.com/news/2026-04-volcanic-formula-cement-emissions-thirds.html
2•geox•1h ago•0 comments

The Mystery of Water on the Moon

https://nautil.us/the-mystery-of-water-on-the-moon-1279617
1•Bender•1h ago•0 comments

YouTube Premium just went up to $15.99 / mo (US)

https://www.youtube.com/premium
9•tehwebguy•1h ago•1 comments

Chatbots are great at manipulating people to buy stuff, Princeton boffins find

https://www.theregister.com/2026/04/09/chatbots_excel_at_manipulating_people/
3•Bender•1h ago•0 comments

Make2c - Revolutionary Discovery of the Music Math Formula

https://github.com/sfeltenberg/Analytic-lobe-hypothesis/blob/main/README.md
2•sfeltenberg•1h ago•1 comments

EdgeSense – replacing neural nets on microcontrollers with symbolic physics

https://github.com/Kretski/EdgeSense
4•DREDREG•1h ago•0 comments

Mexican surveillance company Grupo Seguritech watches the U.S. border

https://restofworld.org/2026/mexico-seguritech-government-surveillance-profile/
1•classichasclass•1h ago•0 comments

Ludwig Straub, Winner of the John Bates Clark Medal

https://nicholasdecker.substack.com/p/ludwig-straub-winner-of-the-john
2•paulpauper•1h ago•0 comments

AI #163: Mythos Quest

https://thezvi.substack.com/p/ai-163-mythos-quest
2•paulpauper•1h ago•0 comments

The Anti-Democratization of Software

https://bitcicle.com/post/2026/anti-democratizing_software/
2•abelleisle•1h ago•0 comments