frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

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

Show HN: Sarala – An open-source WYSIWYG Markdown editor

https://sarala.solancer.com/
2•solancer•33s ago•0 comments

AI needs $6T in annual revenue to justify data centre boom

https://www.thenationalnews.com/future/technology/2026/09/29/ai-industry-needs-to-earn-6-trillion...
1•Betelbuddy•52s ago•0 comments

Show HN: TurboGPT: train 22KiB transformer in 13s

https://github.com/lostmsu/TurboGPT
2•lostmsu•2m ago•0 comments

Show HN: Agentcap – eBPF exporter for AI-agent activity to Grafana

https://github.com/yeet-src/agentcap
2•r3tr0•3m ago•0 comments

I built a self-improving voice AI agent that runs offline on a RPi5

https://github.com/mobium-app/ai_astro_public
2•mobium-app•4m ago•0 comments

TIRx Harness: An Open Compiler Harness for Agentic GPU Programming

https://blog.mlc.ai/2026/09/29/tirx-harness-an-open-compiler-harness-for-agentic-gpu-programming
1•jinhongyii•4m ago•0 comments

Forge: The open source pipeline for generating SDKs, CLIs, docs, and more

https://blog.cloudflare.com/forge-open-source-generation-pipeline/
1•antimora•6m ago•0 comments

Nicholas Polson has authored 258 academic papers in 2026 (so far)

https://statmodeling.stat.columbia.edu/2026/08/27/258/
2•zaik•6m ago•0 comments

New contender for the fastest PHP-FPM feature-rich framework

https://towardsdev.com/the-fastest-php-fpm-feature-rich-framework-available-is-b35c999d0599
1•marius-ciclistu•7m ago•0 comments

Our Partnership with OpenAI

https://twitter.com/baseten/status/2104995956441682313
1•tosh•8m ago•0 comments

LibreOffice Conference 2026: Building a free AI assistant extension for Writer [video]

https://www.youtube.com/watch?v=QkzRPeZxmtE
1•mmarian•8m ago•0 comments

AI-Powered Financial Modeling Works Now

https://www.modeloptic.com/blog/ai-financial-modeling-works-now
1•lhh•8m ago•0 comments

Show HN: Occulta – cryptographic contacts exchanged in person via UWB

https://github.com/aibo-cora/occulta
1•ghafla•9m ago•0 comments

How We Made Object Storage Faster Than ClickHouse for Log Search

https://cardinalhq.io/blog/object-storage-faster-than-clickhouse-for-log-search
1•chipfixer•10m ago•0 comments

PS1 Game on ESP32-S3

https://www.reddit.com/r/embedded/s/vkgFuZviRD
2•dmonterocrespo•11m ago•0 comments

Show HN: Giving voice agents a voice that adapts to context

https://gradium.ai/demos/voice-design-demo/
1•segu•13m ago•0 comments

Show HN: The whole Solar System and every tracked satellite, live in the browser

https://space.bl2.net/
2•wanick•14m ago•1 comments

How Long Will the AI Boom Last? Memory Stocks Offer Clues

https://www.wsj.com/tech/ai/how-long-will-the-ai-boom-last-memory-stocks-offer-clues-622be948
2•fortran77•15m ago•1 comments

Designing a Programming Language for the AI Era

https://zena-lang.dev/blog/2026/09/languages-for-the-ai-era/
1•jakelazaroff•16m ago•0 comments

The Graveyard of Good Ideas [video]

https://www.youtube.com/watch?v=ovlQ81rBc-4
1•ibobev•16m ago•0 comments

Dot.com Is Grokbot

https://twitter.com/elie2222/status/2104984753472516595
1•china•16m ago•0 comments

The Greatest Pun: JavaScript's ${{ }} tagged template literal

https://shukla.io/blog/2026-09/pun.html
1•ibobev•17m ago•0 comments

Yet Another AI Security OSS Externality

http://blog.holdenkarau.com/2026/09/yet-another-ai-security-oss-externality.html
3•holdenk•17m ago•0 comments

Can we have reachability properties in TLA⁺?

https://ahelwer.ca/post/2026-09-26-reachability/
1•ibobev•17m ago•0 comments

The Case for Drug Abundance

https://www.averincapital.com/insights/the-case-for-drug-abundance
1•brandonb•18m ago•0 comments

Qualcomm's System Level Architecture in the Snapdragon X2 Elite

https://chipsandcheese.com/p/qualcomms-system-level-architecture
1•pella•19m ago•0 comments

Reference Design Downloads

https://www.kkdatasvc.com/lab/downloads/
1•cowlove•20m ago•0 comments

Diffusion Controller unifies and simplifies AI image generation

https://research.google/blog/how-diffusion-controller-unifies-and-simplifies-ai-image-generation/
1•Hussain04•20m ago•0 comments

As a freelancer, what happens when the door won't open any more?

https://lajosmoczar.substack.com/p/as-a-freelancer-what-happens-when
1•DevOpsMaster•20m ago•0 comments

OpenJev: An open-source, Jev-compatible System One decision engine

https://github.com/GPT-AGI/OpenJev
2•rdudekul•23m ago•0 comments