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/

Alan Cache – the best caching library? (Part 1)

https://medium.com/alan/alan-cache-the-best-caching-library-part-1-e9e68ecf39dd
1•damsieboy•34s ago•0 comments

AI and bots have officially taken over the internet, report finds

https://www.cnbc.com/2026/03/26/ai-bots-humans-internet.html
1•ZeidJ•1m ago•0 comments

Show HN: Echoes of Deception

https://deception.madoke.org/
1•madoek•1m ago•0 comments

Building a Firewall via Endpoint Security?

https://objective-see.org/blog/blog_0x86.html
1•sashk•2m ago•0 comments

Researchers use quantum biosensors to peer into the inner workings of cells

https://artsci.washu.edu/ampersand/washu-researchers-use-quantum-biosensors-peer-inner-workings-l...
1•hhs•2m ago•0 comments

Post reporters called the White House. Their phones showed 'Epstein Island.'

https://www.washingtonpost.com/style/power/2026/03/27/white-house-google-database-epstein/
1•doener•4m ago•0 comments

Google warns quantum computers could hack encrypted systems by 2029

https://www.theguardian.com/technology/2026/mar/26/google-quantum-computers-crack-encryption-2029
1•doener•6m ago•0 comments

Exact Geometric Resolution of Cosmological Constant Problem: The Flat 3-Torus

https://zenodo.org/records/19241283
1•avonmach•10m ago•0 comments

Sashiko agentic Linux kernel code review system

https://github.com/sashiko-dev/sashiko
1•_____k•12m ago•0 comments

Engineers do get promoted for writing simple code

https://www.seangoedecke.com/simple-work-gets-rewarded/
1•aidenn0•12m ago•0 comments

SlopCodeBench: Benchmarking How Coding Agents Degrade over Long-Horizon Tasks

https://arxiv.org/abs/2603.24755
1•FiberBundle•17m ago•0 comments

Show HN: Show the ancestry of your code changes visually

https://www.codeboarding.org/diagrams
1•brovatten•17m ago•1 comments

Weak models excel at long context tasks

https://www.together.ai/blog/plan-divide-conquer
1•zagwdt•17m ago•0 comments

Both radiologists and AI struggle to identify 'deepfake' X-rays

https://radiologybusiness.com/topics/artificial-intelligence/both-radiologists-and-ai-struggle-id...
2•hhs•18m ago•0 comments

Ssereload(1) Introduction

https://timmarinin.net/2026/ssereload/
1•birdculture•18m ago•0 comments

Show HN: Multiplayer Local-First OpenClaw Native Mac App

https://clawcoda.com/
1•EthOptimist•20m ago•0 comments

Claude's popularity is forcing it to hit the brakes on users

https://www.businessinsider.com/claude-usage-caps-changes-popularity-anthropic-2026-3
1•almog•20m ago•0 comments

Software Performance Engineering: The Ideas I Keep Coming Back To

https://ricomariani.medium.com/software-performance-engineering-the-ideas-i-keep-coming-back-to-6...
1•cdrnsf•21m ago•0 comments

Dokis – Runtime RAG provenance enforcement without an LLM call

https://github.com/Vbj1808/dokis
1•Vbj1808•23m ago•0 comments

What if CRDTs for version control worked at entity granularity instead of lines?

1•rs545837•23m ago•0 comments

YouTube video uses the Klingon audio track to provide a Side B

https://www.youtube.com/shorts/I87xXqkbXMA
1•simonjgreen•26m ago•1 comments

Chat with multiple AI models at once

https://99helpers.com/tools/ai-chat
1•nickk81•29m ago•1 comments

Are We Approaching an Unprecedented Energy Crisis?

https://thedispatch.com/newsletter/dispatch-energy/iran-war-energy-crisis-hormuz/
1•simonebrunozzi•29m ago•0 comments

Sycophantic AI decreases prosocial intentions and promotes dependence

https://www.science.org/doi/10.1126/science.aec8352
1•salkahfi•29m ago•0 comments

The 24-year-old who wants to save the world in a home built prototype

https://www.topgear.com/car-news/interview/meet-24-year-old-who-wants-save-world-a-home-built-pro...
1•rmason•31m ago•0 comments

Om Malik – 'Astound'ed. Google Flips Its Fiber to PE

https://om.co/2026/03/27/astounded-google-flips-its-fiber-to-pe/
6•rmason•34m ago•0 comments

Show HN: Open Source 'Conductor + Ghostty'

https://github.com/stablyai/orca
6•nwparker•35m ago•3 comments

How you feel seeing this diagnostic at 3:27 AM? (compiler written in Zig)

https://www.reddit.com/r/Zig/s/QLv4H9PuH7
2•lucaas-d3v•37m ago•0 comments

Show HN: Peek – a simple, CLI network monitoring tool

https://github.com/hxii/peek
2•hxii•37m ago•0 comments

CGI Considered OK, Actually?

https://moonydev.xyz/blog/cgi_considered_ok/
3•moonydev•37m ago•0 comments