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

Comments

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

Ask HN: Is anybody making a decentralized GIF search engine?

1•julienreszka•9s ago•0 comments

I tested Chrome's soon-to-be-released vertical tab feature

https://www.zdnet.com/home-and-office/work-life/i-tested-chromes-soon-to-be-released-vertical-tab...
1•tosh•47s ago•0 comments

Show HN: Python system programming with manual memory and linear types

https://github.com/1flei/PythoC/
1•1flei•2m ago•0 comments

Show HN: Glad-AI-Tor – A public arena where startups get roasted or crowned

https://glad-ia-tor.com/
1•Enjoyooor•2m ago•0 comments

Nagle's Algorithm

https://en.wikipedia.org/wiki/Nagle%27s_algorithm
2•tosh•2m ago•0 comments

Rogue AI agents published passwords and overrode anti-virus software

https://www.theguardian.com/technology/ng-interactive/2026/mar/12/lab-test-mounting-concern-over-...
1•hackernj•3m ago•0 comments

Show HN: Friendware – Tab-to-complete everywhere on macOS

https://www.friendware.ai/
1•jaredstivala•5m ago•0 comments

What Makes Israel So Good at Hacking? (2022) [video]

https://www.youtube.com/watch?v=IluKcbamqfk
2•rzk•5m ago•0 comments

LLMs Are Finally Good Enough to Analyse Their Own Traces

https://futuresearch.ai/blog/llm-trace-analysis/
2•rgambee•6m ago•0 comments

Optical Scale-Up Consortium Established to Create an Open Spec for AI Infra

https://oci-msa.org/news/
2•Cyphase•6m ago•1 comments

For the first time, astronomers witnessed the birth of a 'magnetar'

https://www.popsci.com/science/first-magnetar-birth/
1•Brajeshwar•7m ago•0 comments

Amid Crowded Skies, FAA Kills Rule Aimed at Regulating Space Junk

https://www.propublica.org/article/faa-trump-space-junk-safety-spacex-rockets
3•hn_acker•7m ago•0 comments

Iranian Hacktivists Strike Medical Device Maker Stryker and Wiped Systems

https://www.zetter-zeroday.com/iranian-hacktivists-strike-medical-device-maker-stryker-in-severe-...
5•strict9•8m ago•0 comments

MacBook Neo Teardown: Modular Ports, Glue-Less Battery, Zero Tape

https://www.macrumors.com/2026/03/12/macbook-neo-six-minute-teardown-zero-tape/
1•tosh•8m ago•0 comments

The Rise of AI 'Brain Fry'

https://nymag.com/intelligencer/article/microsoft-copilot-cowork-ai-brain-fry.html
3•vytis•9m ago•0 comments

Permission to Suck

https://parkergates.substack.com/p/permission-to-suck
2•herbertl•9m ago•0 comments

Fastsleep.app

https://fastsleep.app/
2•mathnorth_com•9m ago•0 comments

Replicating Superhuman's Split Inbox in Gmail for Free

https://www.nklswbr.com/blog/gmail-superhuman
1•nklswbr•10m ago•0 comments

The Elusive Cost Savings of the Prefabricated Home

https://www.construction-physics.com/p/the-elusive-cost-savings-of-the-prefabricated
1•chmaynard•10m ago•0 comments

Show HN: Axe A 12MB binary that replaces your AI framework

https://github.com/jrswab/axe
2•jrswab•14m ago•1 comments

Show HN: A graph of story fragments shaped by reader votes

https://slopism.art
3•apresmoi•14m ago•0 comments

AI Security for Apps is now generally available

https://blog.cloudflare.com/ai-security-for-apps-ga/
1•emot•14m ago•0 comments

Can you beat the corporate AI bot? It denied your flight refund

https://fixai.dev
1•dragonmann•15m ago•0 comments

Show HN: I built proxy that keeps RAG working while hiding PII

1•rohansx•16m ago•0 comments

Lloyds Banking Group apps play mix-and-match with customer transactions

https://www.theregister.com/2026/03/12/lloyds_banking_group_glitch/
2•DarkCow•18m ago•0 comments

USDA is closing buildings, relocating staff, and downsizing-a lot

https://www.foodpolitics.com/2026/03/usda-is-closing-buildings-relocating-staff-and-downsizing-a-...
8•speckx•18m ago•1 comments

Show HN: We wrote a custom microkernel for XR because Android felt too bloated

https://explorexenevaos.vercel.app/
2•ayush_xeneva•18m ago•1 comments

Unlike Past U.S. Conflicts, Iran Attack Is Opposed by Most Americans

https://www.nytimes.com/2026/03/10/us/politics/polls-wars-us-support.html
7•duxup•19m ago•2 comments

Debian Time Capsule – a retro Unix desktop running in the browser

https://github.com/Victxrlarixs/debian-time-capsule
1•victxrlarixs•19m ago•1 comments

EDM: An Ultra-Low Latency Ethernet Fabric for Memory Disaggregation

https://dl.acm.org/doi/10.1145/3669940.3707221
1•blakepelton•20m ago•1 comments