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

Comments

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

Vibe Coding: Best Practices for Prompting

https://supabase.com/blog/vibe-coding-best-practices-for-prompting
1•Bakalemwa•2m ago•0 comments

Lemonade by AMD: a fast and open source local LLM server using GPU and NPU

https://lemonade-server.ai
1•AbuAssar•3m ago•0 comments

Fuel prices are soaring. Plastic could be next

https://www.technologyreview.com/2026/04/02/1135045/plastic-economic-effects/
1•joozio•5m ago•0 comments

Why I'm Building Another AI Meeting Notes Tool Instead of Using Granola.ai

https://www.indiehackers.com/post/why-i-m-building-another-ai-meeting-notes-tool-C3yZAdu9r4DKF2B0...
1•zlat1997•9m ago•1 comments

Spanner Columnar Engine in Preview

https://cloud.google.com/blog/products/databases/spanner-columnar-engine-in-preview
1•fastest963•10m ago•0 comments

Skill Ratings and Matchmaking

https://kalifi.org/2026/02/skill-ratings.html
2•ZacnyLos•11m ago•0 comments

Zstandard Across the Stack

https://oddur.me/posts/zstandard-across-the-stack/
1•oddurmagnusson•15m ago•0 comments

Beyond the Network View: DNS-Driven Application Visibility

https://labs.ripe.net/author/danny-lachos/beyond-the-network-view-dns-driven-application-visibility/
1•jruohonen•18m ago•0 comments

Sweden goes back to basics, swapping screens for books in the classroom

https://undark.org/2026/04/01/sweden-schools-books/
9•novaRom•18m ago•0 comments

Enabling Codex to Analyze Two Decades of Hacker News Data

https://modolap.com/publication/hn-analysis-1
2•ronfriedhaber•26m ago•0 comments

Mix-and-match synthesis of 3D small molecules

https://www.nature.com/articles/d41586-026-00809-0
1•salkahfi•26m ago•0 comments

$200 oil isn't as crazy as it sounds

https://www.cnn.com/2026/04/02/business/price-200-oil-gas-iran
1•dabinat•29m ago•0 comments

Pro-XSLT.js – fast and lightweight JavaScript library implementing XSLT 1.0

https://github.com/hbi99/pro-xslt
1•hbi99•31m ago•0 comments

Half of social-science studies fail replication test in years-long project

https://www.nature.com/articles/d41586-026-00955-5
3•MrBuddyCasino•34m ago•1 comments

Eli Lilly's obesity pill approved by FDA, setting up Novo Nordisk competition

https://www.statnews.com/2026/04/01/eli-lilly-obesity-pill-approved-orforglipron-foundayo/
2•andsoitis•36m ago•0 comments

Ask HN: Has anyone became successful on their own?

5•Nair0•43m ago•3 comments

100 Prisoners Problem

https://en.wikipedia.org/wiki/100_prisoners_problem
2•djoldman•44m ago•1 comments

UK SATS Exam Papers

https://www.satspapers.org.uk/Page.aspx?TId=5
1•alt227•44m ago•0 comments

Block – From Hierarchy to Intelligence

https://block.xyz/inside/from-hierarchy-to-intelligence
3•abdelhousni•44m ago•1 comments

Data Science Weekly – Issue 645

https://datascienceweekly.substack.com/p/data-science-weekly-issue-645
1•sebg•46m ago•0 comments

Army approves M111, first new lethal hand grenade since 1968

https://www.army.mil/article/290962/army_approves_m111_first_new_lethal_hand_grenade_since_1968
1•campuscodi•46m ago•0 comments

Coruna: The Mysterious Journey of a Powerful iOS Exploit Kit

https://cloud.google.com/blog/topics/threat-intelligence/coruna-powerful-ios-exploit-kit
1•abhisek•48m ago•0 comments

DMCA-resistant Claude Code source code

https://codeberg.org/tornikeo/claude-code
3•tornikeo•48m ago•1 comments

Chinese chipmakers claim nearly half of local market as Nvidia's lead shrinks

https://www.reuters.com/world/china/chinese-chipmakers-claim-nearly-half-of-local-market-nvidias-...
3•qwikhost•54m ago•0 comments

Baby's Second Garbage Collector

https://www.matheusmoreira.com/articles/babys-second-garbage-collector
2•matheusmoreira•57m ago•0 comments

Show HN: I built a DNS resolver from scratch in Rust – no DNS libraries

https://github.com/razvandimescu/numa
6•rdme•1h ago•5 comments

High‑Performance JavaScript Data Grid for Data Apps

https://blog.webix.com/javascript-data-grid-webix-review/
2•jswebdev•1h ago•0 comments

Please stop flagging everything going against Israel

9•throwaw12•1h ago•4 comments

Almighty Lisp: Lisp and Emacs Essentials Book

https://almightylisp.com/
1•nemoniac•1h ago•0 comments

We built Postgres compatibility for our database and made it reusable libraries

https://greptime.com/blogs/2026-04-01-greptimedb-postgresql-compatibility
2•sunng•1h ago•0 comments