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

Comments

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

RLM Explained

https://twitter.com/zby/status/2020802687659348196
1•zby•58s ago•0 comments

The pitch deck is dead. Write a pitch.md instead

https://www.joanwestenberg.com/the-pitch-deck-is-dead-write-a-pitch-md-instead/
1•flobosg•3m ago•0 comments

Show HN: GW – manage Git worktrees when you're babysitting multiple AI agents

https://github.com/nikhilshinday/gw
1•chaos_emergent•3m ago•0 comments

A handy method for hazards detection in an IS of a pipelined processor [pdf]

https://arxiv.org/abs/1203.0787
1•liungrin•7m ago•0 comments

Show HN: Algorithmically Finding the Longest Line of Sight on Earth

https://alltheviews.world
2•tombh•7m ago•1 comments

Ask HN: Why do you use AI for coding?

1•MrSandingMan•8m ago•0 comments

Show HN: Blink – Build custom AI agents in TypeScript for your team

https://github.com/coder/blink
1•hugodutka•9m ago•0 comments

The original vi is a product of its time (and its time has passed)

https://utcc.utoronto.ca/~cks/space/blog/unix/ViIsAProductOfItsTime
2•adunk•10m ago•1 comments

Xbox cancel French localizations as voice actors refuse AI training clauses

https://www.jeuxonline.info/actualite/65797/doublage-francais-absent-plusieurs-jeux-microsoft-ea-...
3•WhereIsTheTruth•10m ago•0 comments

Half of CO2 emissions come from just 32 fossil fuel firms, study shows

https://www.theguardian.com/environment/2026/jan/21/carbon-dioxide-co2-emissions-fossil-fuel-firm...
2•JeanKage•11m ago•0 comments

Show HN: Turn DeFi whitepapers into executable flows for quick validation

https://eigenarc.com
1•sridhar87•13m ago•0 comments

Screenshots from developers and Unix people (2002) (2015)

https://anders.unix.se/2015/10/28/screenshots-from-developers--unix-people-2002/
1•SerCe•13m ago•0 comments

GitHub Status – Degraded Performance in Webhooks API and UI, Pull Requests

https://www.githubstatus.com/incidents/ffz2k716tlhx
1•jackwilsdon•14m ago•0 comments

Seedance 2.0

https://seedance2.studio
1•sarkory•15m ago•1 comments

I went through the OpenClaw Source code. And here are my observations

https://pai.dev/i-went-through-every-line-of-code-of-openclaw-so-you-dont-have-to-bec04bfe3be0
1•dheerajmp•16m ago•0 comments

Newer Faster Amiga Internet Access from Your BlueSCSI

https://www.youtube.com/watch?v=awwRFWpfL-4
2•doener•17m ago•0 comments

Stack Overflow for AI Coding Agents

https://shareful.ai
12•schappim•18m ago•0 comments

Show HN: Fifu – Ultra-Fast Terminal YouTube Downloader

https://fifu-docs.vercel.app
1•dawitworku•19m ago•0 comments

GitHub Is Down in EU

https://statusgator.com/services/github
1•bilekas•22m ago•1 comments

Is India about to make Ozempic-like weight-loss drugs a whole lot cheaper?

https://www.cnn.com/2026/02/07/india/india-semaglutide-patent-expiry-intl-hnk-dst
2•sandGorgon•23m ago•0 comments

The Steamdeck is my guitar rig (video)

https://www.youtube.com/watch?v=yL1DM0QWGSE
1•viraptor•23m ago•0 comments

Mutmut: A Python mutation testing system (2016)

https://kodare.net/2016/12/01/mutmut-a-python-mutation-testing-system.html
2•shirian•26m ago•1 comments

From churches to chatbots: How AI is fusing with religion

https://www.reuters.com/technology/ai-and-us/pulpits-chatbots-how-ai-is-fusing-with-religion-2026...
1•u1hcw9nx•30m ago•0 comments

We Give AI Agents Long-Term Memory Without Blowing the Budget

https://metaduck.com/how-we-give-ai-agents-long-term-memory-without-blowing-the-budget/
2•pgte•30m ago•0 comments

Science parks can transform Australian universities into innovation hubs

https://360info.org/how-science-parks-can-transform-australian-universities-into-innovation-hubs/
1•JeanKage•30m ago•0 comments

Show HN: Go AST parsing + LLM to generate live architecture docs and diagrams

https://demo.maimap.dev/
1•ev_dev3•31m ago•0 comments

Arcan-A12: Weaving a different web

https://www.divergent-desktop.org/
1•fanf2•31m ago•0 comments

I'm not afraid of AI taking my job

https://twitter.com/ChShersh/status/2020484568860484055
3•nreece•33m ago•0 comments

That's AI [video]

https://www.youtube.com/watch?v=mEVl0NS0vu8
2•willm•34m ago•0 comments

Show HN: Ran an AI agent 100x – pass rate 70%, not 100%

https://github.com/alepot55/agentrial
1•alepot55•37m ago•0 comments