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

Comments

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

Show HN: AlphaEvolve inspired evolution harness for Pokemon

https://github.com/papercomputeco/pokemon
1•brianllamar•32s ago•0 comments

Ex-Google PM Builds God's Eye to Monitor Iran in 4D

https://www.youtube.com/watch?v=0p8o7AeHDzg
1•doener•1m ago•0 comments

The Only Code That Defies Entropy

https://ta.fo/the-only-code-that-defies-entropy/
1•freediver•1m ago•0 comments

Python: The Optimization Ladder

https://cemrehancavdar.com/2026/03/10/optimization-ladder/
1•Twirrim•2m ago•0 comments

The Public Suffix List

https://publicsuffix.org/list/public_suffix_list.dat
1•barishnamazov•3m ago•0 comments

V32 (Number Station)

https://priyom.org/number-stations/other/v32
1•NoboruWataya•4m ago•0 comments

I Built an AI Agent That Writes Its Own Rules from Its Mistakes

https://www.roryteehan.com/writing/i-built-an-ai-agent-that-writes-its-own-rules
1•freediver•4m ago•0 comments

Nasal spray protects mice from respiratory viruses, bacteria and allergens

https://medicalxpress.com/news/2026-02-universal-vaccine-nasal-spray-mice.html
3•PaulHoule•5m ago•0 comments

Toit

https://docs.toit.io/language/
1•tosh•6m ago•0 comments

OopsDB – A TCP proxy to stop AI agents from dropping your DB

https://github.com/pintayo/oopsdb
1•pintayo•7m ago•1 comments

Neon is a human-readable structured data format

https://doc.nette.org/en/neon/format
2•ifh-hn•7m ago•0 comments

New HyperCard discovery: Neuromancer / Count Zero / Mona Lisa Overdrive

https://macintoshgarden.org/apps/neuromancer-count-zero-mona-lisa-overdrive
2•naves•7m ago•0 comments

Tell HN: It's official, I'm done with Claude

2•ra0x3•8m ago•0 comments

Harrison Chase: How Coding Agents Are Reshaping Engineering, Product and Design

https://twitter.com/hwchase17/status/2031051115169808685
1•JnBrymn•8m ago•0 comments

Regxa – query NPM, PyPI, crates.io, RubyGems, Packagist from one TypeScript call

https://github.com/oritwoen/regxa
1•oritwoen•9m ago•1 comments

How Pokémon Go is giving delivery robots an inch-perfect view of the world

https://www.technologyreview.com/2026/03/10/1134099/how-pokemon-go-is-helping-robots-deliver-pizz...
1•rbanffy•10m ago•0 comments

AI's hidden bias: Chatbots can influence opinions without trying

https://news.yale.edu/2026/03/03/ais-hidden-bias-chatbots-can-influence-opinions-without-trying
1•geox•10m ago•0 comments

Ghostty 1.3

https://twitter.com/mitchellh/status/2031042095822340417
1•tosh•11m ago•0 comments

Google to Discontinue Widevine Cloud License Service in April 2027

https://castlabs.com/blog/widevine-retiring-cloud-license-service/
3•dabinat•12m ago•0 comments

Summry – I replaced my mess of Make.com automations with this

1•tetianad•13m ago•0 comments

Codex Unresponsive

https://status.openai.com/incidents/01KK9JA8JKQKDW1W24T09NHBYH
1•rvz•14m ago•0 comments

Announcing Fedora Linux 44 Beta

https://fedoramagazine.org/announcing-fedora-linux-44-beta/
1•voxadam•15m ago•0 comments

You Hired the AI to Write the Tests. Of Course They Pass

https://www.claudecodecamp.com/p/i-m-building-agents-that-run-while-i-sleep
4•aray07•15m ago•0 comments

A small experiment in context aware storytelling on the web

2•vibecoder21•18m ago•0 comments

Iran: "The internet belongs to those who convey the voice of the nation."

https://twitter.com/shahinlooo/status/2031362334174703657
1•bayat•18m ago•0 comments

Will AI CapEx Pay for Itself?

https://chenyu-li.info/blog/
1•chenyusu•20m ago•0 comments

Show HN: Sandsofti.me – Visualize the time you have left with loved ones

https://sandsofti.me
1•kwm•22m ago•0 comments

Straitsweeper

https://straitsweeper.com/
1•davedx•22m ago•0 comments

Mesh over Bluetooth LE, TCP, or Reticulum

https://github.com/torlando-tech/columba
2•khimaros•23m ago•0 comments

CTF is dying because of AI?

https://blog.krauq.com/post/ctf-is-dying-because-of-ai
2•d_silin•24m ago•0 comments