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/

Show HN: Domternal – Rich text editor toolkit on ProseMirror with Angular UI

https://github.com/domternal/domternal
1•thomasnowhere•50s ago•0 comments

MegaTrain: Full Precision Training of 100B+ Parameter LLMs on a Single GPU

https://arxiv.org/abs/2604.05091
1•chrsw•5m ago•0 comments

Takeaways from Our Search for Bitcoin's Creator

https://www.nytimes.com/2026/04/08/business/takeaways-satoshi-nakamoto-bitcoin-adam-back.html
1•glenstein•6m ago•0 comments

Why the First TV Failed–and What It Can Teach You About AI Today

https://www.inc.com/lucia-auerbach/why-the-worlds-first-tv-failed-and-what-it-can-teach-you-about...
1•giuliomagnifico•6m ago•0 comments

Show HN: I pipe free sports streams into Jellyfin – no ads, just HLS

https://github.com/pcruz1905/hls-restream-proxy
1•pruz•6m ago•0 comments

The Empty Middle of AI Coding

https://xificurc.github.io/blog/the-empty-middle-of-ai-coding/
1•comma_at•10m ago•0 comments

Apple II emulator with extensive analytical tools

https://bsky.app/profile/jtauber.com/post/3mixa6ywbbk2l
1•mariuz•11m ago•0 comments

$200 subscription VS $3,650 in compute

https://sderosiaux.substack.com/p/200-subscription-vs-3650-in-compute
1•chtefi•18m ago•2 comments

Hacking Google Support: Leaking call logs and deanonymising agents

https://michaeldalton.au/posts/hacking-google-support
3•llui85•20m ago•1 comments

Uberbrain – Open-source photonic neuromorphic computing architecture (CC0)

https://github.com/GreenSharpieSmell/uberbrain
1•RockyDBear•20m ago•0 comments

Child Safety Blueprint

https://openai.com/index/introducing-child-safety-blueprint/
1•salkahfi•22m ago•0 comments

Selfhosting Vaultwarden (2023)

https://nachtimwald.com/2023/03/16/vaultwarden-a-self-hosted-password-vault/
1•nivethan•22m ago•0 comments

The Fixed Point – God, governance, and contraction mappings

https://hadleylab.org/blogs/2026-04-07-the-fixed-point/
1•idrdex•22m ago•0 comments

Disgruntled researcher leaks "BlueHammer" Windows zero-day exploit

https://www.bleepingcomputer.com/news/security/disgruntled-researcher-leaks-bluehammer-windows-ze...
2•ianrahman•22m ago•0 comments

Show HN: A 400-page book on agentic engineering with Codex CLI

https://leanpub.com/codex-cli/c/HACKERNEWS30
2•dvaughan•25m ago•0 comments

Chlorpromazine

https://en.wikipedia.org/wiki/Chlorpromazine
2•ogogmad•25m ago•0 comments

The Devil's Dictionary of Vibe Coding

https://gist.github.com/artfwo/63eaaffdb47cbba342b04f989bd9463b
2•latexr•29m ago•0 comments

Trier OS – Industrial Operating System

https://github.com/DougTrier/trier-os
2•DougTrier•29m ago•1 comments

Readership Maths Skills

https://entropicthoughts.com/readership-math-skills
1•ibobev•30m ago•0 comments

Anthropic's most powerful AI model Mythos Preview is too dangerous for release

https://www.euronews.com/next/2026/04/08/why-anthropics-most-powerful-ai-model-mythos-preview-is-...
1•frizlab•30m ago•0 comments

Valse Vrienden in Het Onderwijs

https://chuniversiteit.nl/dutch/valse-vrienden-in-het-onderwijs
1•ibobev•30m ago•0 comments

Writing an LLM from scratch, part 32i – Interventions: what is in the noise?

https://www.gilesthomas.com/2026/04/llm-from-scratch-32i-interventions-what-is-in-the-noise
1•ibobev•30m ago•0 comments

GIMP: The Movie [video]

https://www.youtube.com/watch?v=rs56ILRcYTg
1•pentagrama•31m ago•0 comments

Anthropic banned Pi, a third party harness

1•rapiz•32m ago•1 comments

The Reasoning Harness: Preserving What's Understood, Not Just What's Said

https://michael124.substack.com/p/the-reasoning-harness-preserving
1•miketep•32m ago•0 comments

Tell HN: I think my colleagues are just piping my replies into an LLM

5•trwhite•33m ago•3 comments

MemPalace review: strong ChromaDB baseline, weak moat

https://twitter.com/TheRiceFather/status/2041839033794408624
1•averrouz•35m ago•0 comments

TierFast – Tier List Maker

https://www.tierfast.com/
2•Afermetes•35m ago•1 comments

SpecLock – Your Claude.md is a suggestion. This makes it a law

https://github.com/sgroy10/speclock
1•sgroy10•39m ago•1 comments

A Claude Code plugin with 20 specialist agents for Elixir/Phoenix

https://github.com/oliver-kriska/claude-elixir-phoenix
3•quatermain•40m ago•0 comments