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/

New fibre optic data transmission speed record of 450Tbps

https://www.ucl.ac.uk/news/2026/apr/new-fibre-optic-data-transmission-speed-record
2•giuliomagnifico•3m ago•0 comments

Private Files on a Static, Open-Source Website

https://hnlyman.github.io/pages/private_files.html
1•hnlyman•4m ago•0 comments

Gas Town from Clown Show to v1.0

https://steve-yegge.medium.com/gas-town-from-clown-show-to-v1-0-c239d9a407ec
1•yodon•5m ago•0 comments

Microbial upcycling of plastic waste to levodopa

https://www.nature.com/articles/s41893-026-01785-z
1•PaulHoule•5m ago•0 comments

Show HN: Lumina – a statically typed web-native language for JavaScript and WASM

https://github.com/nyigoro/lumina-lang
1•light_ideas•5m ago•0 comments

Disclosing bluehammer exploit, vulnerability is still unpatched

https://deadeclipse666.blogspot.com/2026/04/public-disclosure.html
2•Alifatisk•7m ago•0 comments

I Tried Vibing an RSS Reader and My Dreams Did Not Come True

https://blog.jim-nielsen.com/2026/vibe-dreams-didnt-come-true/
2•herbertl•7m ago•0 comments

What Being Ripped Off Taught Me

https://belief.horse/notes/what-being-ripped-off-taught-me/
7•doctorhandshake•10m ago•0 comments

Token-Aware LLM Load Balancer route by inflight tokens,not connections

https://github.com/SivagurunathanV/token-aware-balancer
2•sivagurunathanv•10m ago•0 comments

A real-world case of property-based verification

https://ochagavia.nl/blog/a-real-world-case-of-property-based-verification/
1•wofo•10m ago•0 comments

Panther Lake is the real deal

https://world.hey.com/dhh/panther-lake-is-the-real-deal-4bd731f1
2•0xedb•11m ago•0 comments

Show HN: I built a 2-min quiz that shows you how bad you are at estimating

https://www.convexly.app/
2•convexly•13m ago•0 comments

Baidu Silent About Failure of 100 Robotaxis in Wuhan

https://www.forbes.com/sites/bradtempleton/2026/04/05/baidu-silent-about-failure-of-100-robotaxis...
1•mhb•14m ago•0 comments

When the Push Button Was New, People Were Freaked (2021)

https://daily.jstor.org/when-the-push-button-was-new-people-were-freaked/
1•thunderbong•15m ago•0 comments

Nanonets OCR-3: A multimodal OCR model with bounding boxes & confidence scores

https://nanonets.com/research/nanonets-ocr-3
1•vitaelabitur•16m ago•0 comments

Muon and MuonClip Optimizers

https://chizkidd.github.io//2026/04/04/muon-muonclip/
1•ibobev•16m ago•0 comments

Rational Matrix Iterations for Polar Decomposition

https://jiha-kim.github.io/posts/rational-polar-decomposition/
2•ibobev•17m ago•0 comments

» the Mystery of Rennes-Le-Château, Part 3: A Secret History

https://www.filfre.net/2026/04/the-mystery-of-rennes-le-chateau-part-3-a-secret-history/
1•ibobev•17m ago•0 comments

NameWheel – Free wheel spinner with no ads, no signup, no tracking

https://namewheel.org/
1•alshanty•20m ago•0 comments

Structural color can now be printed with an inkjet printer

https://www.kobe-u.ac.jp/en/news/article/20260406-67657/
3•geox•21m ago•0 comments

Show HN: Ec – terminal native 3-way Git mergetool

https://github.com/chojs23/ec
6•neozz•22m ago•0 comments

Uber: Why Our Sense of Convenience Comes Always at the Expense of Others

https://medium.com/@Katja_Diehl/uber-bolt-co-4f64b2812ed8
4•doener•23m ago•0 comments

Real-time poker engine with emotion-driven AI bots

https://oxyklon.net/portal
4•naydref•23m ago•0 comments

New Chrome Extension lets you see what LLMs you can run on your hardware

https://chromewebstore.google.com/detail/run-this-llm/dginneocahmfpflnpcigakjggipmfhhg
2•eeko_systems•25m ago•1 comments

Show HN: I turned ARC-AGI-3 into a daily browser game

https://arcaptcha.io/
2•preyneyv•26m ago•0 comments

Software Engineering Is Becoming Civil Engineering

https://christophermeiklejohn.com/ai/engineering/2026/04/01/software-engineering-is-becoming-civi...
3•mooreds•27m ago•0 comments

NASA Elements of Engineering Excellence

https://vickiboykis.com/2026/04/05/nasa-elements-of-engineering-excellence/
1•mooreds•27m ago•0 comments

OpenSim – Open-Source Flight Simulation Engine

https://ghtomcat.github.io/opensim/
1•carlos-menezes•27m ago•0 comments

Was Trump oblivious to the realities of Netanyahu's promised 'easy' war on Iran?

https://www.theguardian.com/world/2026/apr/06/trump-iran-war-netanyahu-israel
6•hebelehubele•28m ago•3 comments

Show HN: I made a crossword app for language learners

https://cranki.app/
5•petargyurov•32m ago•0 comments