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

Comments

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

Conductor: Context-driven development for Gemini CLI

https://developers.googleblog.com/conductor-introducing-context-driven-development-for-gemini-cli/
1•geoffbp•1m ago•0 comments

Just the Browser

https://justthebrowser.com/
1•vinhnx•2m ago•0 comments

Claude Code Tool Search Tool

https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool
1•tin7in•3m ago•0 comments

Show HN: Headroom – Reversible context compression for LLMs(~60% cost reduction)

https://github.com/chopratejas/headroom
1•chopratejas•6m ago•1 comments

Show HN: Tool that automates ML model deployment on mobile/edge devices

https://twitter.com/AbdoulayeSeydi_/status/2011648286885888216
1•AbdoulayeSeydi•18m ago•0 comments

Tech investors assess minerals mining as U.S. takeover talk on Greenland grows

https://www.cnbc.com/2026/01/12/tech-investors-probe-mining-viability-if-us-acquires-greenland-ce...
3•1vuio0pswjnm7•22m ago•1 comments

Raising Kids After Knowledge Became a Commodity

https://liorz.github.io/blog/posts/fallacy-education-for-academic-excellence/
1•freediver•22m ago•0 comments

Here comes the advertising in AI chatbots

https://www.washingtonpost.com/technology/2026/01/13/advertising-google-ai-mode-chatgpt/
4•1vuio0pswjnm7•23m ago•0 comments

Ask HN: Why Gemini CLI startup is so slow?

1•attentive•30m ago•0 comments

Show HN: Flour Hour – I built a bread baking app with Claude Code in 3 hours

https://yaninatrekhleb.github.io/flour-hour/
2•yanina_trekhleb•31m ago•0 comments

On FLOSS and training LLMs

https://chronicles.mad-scientist.club/tales/on-floss-and-training-llms/
1•pabs3•41m ago•0 comments

Show HN: Open Contribution Graph: A GitHub heatmap for anything you can POST

https://github.com/Tomer-Barak/contribution-graph
2•minimal_action•49m ago•1 comments

Microsoft's spending on Anthropic AI on track to reach $500M

https://www.msn.com/en-us/money/other/microsoft-s-spending-on-anthropic-ai-on-track-to-reach-500m...
2•nl•50m ago•0 comments

Nw_wrld is an event-driven sequencer for triggering visuals [video]

https://www.youtube.com/watch?v=6vM_b54pWtg
1•_josh_meyer_•54m ago•1 comments

Agent Skills That Work

https://agentskills.work/sellers-net-sheet-florida
2•zlonmask•55m ago•1 comments

AI Blog

https://ai-blog-peach.vercel.app
1•dagmawibabi•57m ago•1 comments

Tell HN: AI could bring back GraphQL from the brink

3•sergiotapia•58m ago•0 comments

Tjs: Fastest and most accurate JSON-schema validator

https://github.com/sberan/tjs
2•handfuloflight•58m ago•0 comments

Chinese military says it is developing over 10 quantum warfare weapons

https://www.scmp.com/news/china/science/article/3339907/chinese-military-says-it-developing-over-...
4•KnuthIsGod•58m ago•1 comments

Show HN: Flashlight: Android app that lets you control torch brightness

https://github.com/rtvkiz/Flashlight
2•ritvikarya98•1h ago•0 comments

Appliances, Factories and the Grid

https://mercurialsolo.substack.com/p/appliances-factories-grids
1•mercurialsolo•1h ago•1 comments

Microsoft-Activision deal was meant to help The Embracer Grou

https://www.gamefile.news/p/bobby-kotick-activision-microsoft-ap7-lawsuit-embracer-group
2•firesteelrain•1h ago•0 comments

Tract: Self-contained, TensorFlow and ONNX inference

https://github.com/sonos/tract
2•vishnukvmd•1h ago•0 comments

Rampsliding Is a Quake Engine Quirk in the Same Way That Bunnyhopping Is

https://www.ryanliptak.com/blog/rampsliding-quake-engine-quirk/
1•luu•1h ago•0 comments

Scientists Discover Form of Water That's Both Solid and Liquid

https://studyfinds.org/scientists-discover-bizarre-water-both-solid-liquid/
1•adwmayer•1h ago•0 comments

Oracle to PostgreSQL DDL: Data Types, Partitions and More

https://www.datacloudgaze.com/post/oracle-postgresql-ddl-migration-guide
2•mahtodeepak•1h ago•0 comments

Airbnb Taps Meta AI Executive as New Chief Technology Officer

https://www.bloomberg.com/news/articles/2026-01-14/airbnb-taps-meta-ai-executive-as-new-chief-tec...
2•doppp•1h ago•0 comments

Free AI-Powered Tools

https://figtalia.com/
1•sifuncion•1h ago•0 comments

The Mythology of Conscious AI

https://www.noemamag.com/the-mythology-of-conscious-ai/
2•hardmaru•1h ago•1 comments

The Sword Blade Bank

https://tontinecoffeehouse.com/2020/09/28/the-sword-blade-bank/
3•dmonay•1h ago•0 comments