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/

Pg_stat_ch: Observe Postgres from ClickHouse

https://clickhouse.com/blog/pg_stat_ch-postgres-extension-stats-to-clickhouse
1•saisrirampur•56s ago•0 comments

Cancer's safety net: A hidden mechanism lets dangerous mutations thrive

https://medicalxpress.com/news/2026-01-cancer-secret-safety-net-hidden.html
1•PaulHoule•3m ago•0 comments

Io: A Unique World in Our Solar System [pdf]

https://lpl.arizona.edu/sites/default/files/publications/Unique_World_122022.pdf
1•thunderbong•3m ago•0 comments

Roast my language‑learning site (constructively lol)?

https://truefluency.org
1•TrueFluency123•5m ago•1 comments

Can we just build, build, build over history? A short film.

https://www.youtube.com/watch?v=L3_1dxGGRDw
1•didacusc•6m ago•0 comments

Show HN: NadirClaw, LLM router that cuts costs by routing prompts right

https://github.com/doramirdor/NadirClaw
1•amirdor•7m ago•1 comments

Show HN: Bashtorio – Factorio-Like in the Browser Backed by a Linux VM

https://bashtorio.xyz/
1•elijahcham•9m ago•0 comments

The Newest Old Tech in Warfare: Balloons

https://www.wsj.com/politics/national-security/the-newest-old-tech-in-warfare-balloons-0966e9af
1•jbegley•9m ago•0 comments

In Russia, the humble cucumber becomes latest symbol of rising wartime prices

https://www.reuters.com/world/europe/russia-humble-cucumber-becomes-latest-symbol-rising-wartime-...
1•petethomas•9m ago•0 comments

New Basho Translations from Romaji Japanese

https://github.com/ojhaugen15/romaji_translations
2•programmexxx•10m ago•0 comments

A lightweight system to reduce default in informal obligations

https://iou-wallet.com/
1•xklondon•10m ago•1 comments

The Heritage Foundation: Only 99 Cases of Noncitizen Voting Since 1982

https://thiswillhold.substack.com/p/only-99-cases-of-noncitizen-voting
3•geox•10m ago•2 comments

We cut Node.js' memory in half (so you don't have to)

https://blog.platformatic.dev/we-cut-nodejs-memory-in-half
1•cmsparks•11m ago•0 comments

Sarvam Edge

https://www.sarvam.ai/blogs/sarvam-edge/
1•stareatgoats•12m ago•0 comments

AMA (Ask Machines Anything)

https://www.astralcodexten.com/p/ama-ask-machines-anything
1•paulpauper•14m ago•0 comments

Run LLMs locally in Flutter with <200ms latency

https://github.com/ramanujammv1988/edge-veda
11•rish2497•17m ago•1 comments

Create bootable ISO image files which are compatible with the Amiga CD32

https://github.com/fuseoppl/isocd-win
2•doener•19m ago•0 comments

The Republicans Made Peace with Science

https://www.theatlantic.com/ideas/2026/02/republicans-democrats-science-funding-trump/685996/
1•littlexsparkee•19m ago•1 comments

The Books That Blew These Scientists' Minds

https://nautil.us/the-books-that-blew-these-scientists-minds-1267452/
1•anarbadalov•21m ago•1 comments

Show HN: SCIM filters to parameterized Postgres SQL for modern Java

https://github.com/singlr-ai/scim-sql
1•uday_singlr•23m ago•0 comments

Epist – a terminal email client built on a custom TypeScript TUI engine

https://github.com/semos-labs/epist
1•nicholasrq•25m ago•0 comments

Fragcoord: Real-time GLSL fragment shader editor

https://fragcoord.xyz/
1•alexanderameye•27m ago•0 comments

Police arresting 1k paedophile suspects a month across UK

https://www.theguardian.com/uk-news/2026/feb/17/police-arresting-1000-paedophile-suspects-a-month...
2•frereubu•28m ago•0 comments

Show HN: VisibleInAI – Check if ChatGPT recommends your brand

https://visibleinai.ai
1•pljkv•28m ago•1 comments

'My Words Are Like an Uncontrollable Dog': On Life with Nonfluent Aphasia

https://thereader.mitpress.mit.edu/my-words-are-like-an-uncontrollable-dog-on-life-with-nonfluent...
1•anarbadalov•32m ago•0 comments

Google's Kent Walker Takes Aim at EU Open Source Ambitions

https://piefed.zip/c/technology/p/1086069/google-criticizes-europe-s-plan-to-adopt-free-software
2•atzpawn•32m ago•0 comments

The Jevons Paradox for Intelligence

https://arachnemag.substack.com/p/the-jevons-paradox-for-intelligence
1•zygmunt417•33m ago•0 comments

Vibecoding with ClaudeCode Under the Hood

1•freysa•34m ago•0 comments

U.S. Sent a Rescue Plane for Boat Strike Survivors. It Took 45 Hours to Arrive

https://theintercept.com/2026/02/17/boat-strike-trump-southcom-survivors-rescue-plane-hours/
3•Qem•34m ago•0 comments

Let's Practice (Bsd.rd)

https://openbsdjumpstart.org/bsd.rd/
1•birdculture•35m ago•0 comments