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/

134229 Hack Oto

2•winko•54s ago•0 comments

Best iPhone Alternative for Samsung DeX: External Display Browser

https://apps.apple.com/us/app/external-display-browser/id6758286241
2•marianf•1m ago•0 comments

Gridpaper (scientific plotting tool) reaches 1.0

https://gridpaper.org/examples/
2•hnarayanan•2m ago•0 comments

Does A.I. Need a Constitution?

https://www.newyorker.com/magazine/2026/03/30/does-ai-need-a-constitution
3•doe88•5m ago•1 comments

Show HN: Opnsense-filterlog, a TUI for analysing OPNsense firewall logs

https://gitlab.com/allddd/opnsense-filterlog
2•allddd•6m ago•0 comments

Qwen3 512k context via TurboQuant on Mac mini

https://twitter.com/powtac/status/2037813823571194078
3•pow-tac•12m ago•0 comments

Post-Productivity

https://www.generalistcareer.com/p/post-productivity
2•millytamati•18m ago•1 comments

The Adolescence of Technology

https://www.darioamodei.com/essay/the-adolescence-of-technology#fnref:1
2•dgellow•24m ago•0 comments

Claude Mythos: A Cyber Threat

https://www.youtube.com/watch?v=JGubyPD_EU0
4•danebalia•25m ago•0 comments

Prince of Arabia for the Flipper (Cf Prince of Persia)

https://lab.flipper.net/apps/princeofarabia
2•matthewsinclair•29m ago•0 comments

Reverse-Engineering the Apollo 11 Code with AI

https://www.airealist.ai/p/reverse-engineering-the-apollo-11
4•julsimon•29m ago•0 comments

ClickWar Game

https://clickwar.ultimateteam.hu/
2•agerivagyok•30m ago•0 comments

The Comforting Lie of SHA Pinning

https://www.vaines.org/posts/2026-03-24-the-comforting-lie-of-sha-pinning/
2•chillax•31m ago•0 comments

Show HN: Immutable – Audit logs with SHA-256

https://getimmutable.dev/
3•umarey•34m ago•0 comments

I need flash USDT(trc20/erc20/bep20)

2•timiti•36m ago•0 comments

Cat Itecture: Better Cat Window Boxes

https://gwern.net/catitecture
2•gggscript•38m ago•0 comments

One endpoint. Best model. Any task

https://www.codesota.com/api-landing
2•Brosper•39m ago•1 comments

AV1's open, royalty-free promise in question as Dolby sues Snapchat over codec

https://arstechnica.com/gadgets/2026/03/av1s-open-royalty-free-promise-in-question-as-dolby-sues-...
4•pjmlp•41m ago•0 comments

Adults Lose Skills to AI. Children Never Build Them

https://www.psychologytoday.com/us/blog/the-algorithmic-mind/202603/adults-lose-skills-to-ai-chil...
4•ndr42•44m ago•1 comments

My heuristics are wrong. What now?

https://brooker.co.za/blog/2026/03/20/ic-leadership.html
2•r4um•45m ago•0 comments

Office Chair Is $50 Cheaper Than We've Seen Before

https://www.wired.com/story/branch-ergonomic-chair-pro-amazon-spring-sale-2026/
2•joozio•54m ago•0 comments

CERN uses tiny AI models burned into silicon for real-time LHC data filtering

https://theopenreader.org/Journalism:CERN_Uses_Tiny_AI_Models_Burned_into_Silicon_for_Real-Time_L...
18•TORcicada•55m ago•17 comments

Open Source Gave Me Everything Until I Had Nothing Left to Give

https://kennethreitz.org/essays/2026-03-18-open_source_gave_me_everything_until_i_had_nothing_lef...
5•ta988•57m ago•0 comments

Mysterious Trading Patterns Follow Trump into War

https://www.axios.com/2026/03/25/trump-iran-oil-insider-trading
2•karakoram•59m ago•1 comments

AI Research Is Getting Harder to Separate from Geopolitics

https://www.wired.com/story/made-in-china-ai-research-is-starting-to-split-along-geopolitical-lines/
3•joozio•1h ago•0 comments

Why This Jump in Gas Prices Feels Different

https://www.nytimes.com/2026/03/18/upshot/gas-prices-lookup.html
1•karakoram•1h ago•1 comments

Google to finance data center project leased to Anthropic

https://seekingalpha.com/news/4569914-google-to-finance-data-center-project-leased-to-anthropic
2•maneprajakta•1h ago•0 comments

Show HN: Spectator a cross platform DSL for cybersecurity

1•CzaxTanmay•1h ago•0 comments

I Caught a 3.4M Daily Download Supply Chain Attack

https://miles0sage.github.io/codeguard-mcp/blog.html
2•Miles0•1h ago•1 comments

The Superorganism Explained in 7 Minutes

https://natehagens.substack.com/p/why-the-world-feels-like-its-falling
2•shrubby•1h ago•1 comments