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/

Let's Talk about LLMs

https://www.b-list.org/weblog/2026/apr/09/llms/
1•lumpa•19s ago•0 comments

Gen Z workers who fear AI will take their job actively sabotaging its rollout

https://fortune.com/2026/04/08/gen-z-workers-sabotage-ai-rollout-backlash/
2•9woc•13m ago•0 comments

Tabularis: A lightweight, cross-platform database client. Hackable with pkugins

https://github.com/debba/tabularis
1•thunderbong•14m ago•0 comments

Flowyble Studio – Run Claude, Copilot and Codex Side-by-Side

https://flowyble.com/studio
1•schizi•15m ago•0 comments

The Munro Lecture with Adam Tooze – April 8 2026 [video]

https://www.youtube.com/watch?v=Th1pZfKi4SI
1•hackandthink•16m ago•0 comments

Energy-Based Models Is All You Need

https://www.youtube.com/watch?v=h9Gkchqr__M
1•frag•18m ago•0 comments

The Infinity Man: Demis Hassabis, Colleagues and Rivals

https://thechipletter.substack.com/p/the-infinity-man
1•klelatti•18m ago•0 comments

Mark's Magic Multiply

https://wren.wtf/shower-thoughts/marks-magic-multiply/
1•luu•19m ago•0 comments

Give Your Agent a Canvas, Not Just a Chatbox

https://create0.ai
1•enha•22m ago•1 comments

The Great GPU Shortage: H100 Rental Prices Up 40%

https://newsletter.semianalysis.com/p/the-great-gpu-shortage-rental-capacity
2•alecco•22m ago•0 comments

Due Diligence Framework Before Your Business Commits to Open Source

https://groundblue.gumroad.com/l/nlzhlx
1•elsadek•23m ago•0 comments

Show HN: I missed my terminal so I rebuilt email

https://tallyman.io
4•Mechse•24m ago•0 comments

AIYO Wisper – Local voice-to-text for macOS (WhisperKit, open source)

https://github.com/Aiyo28/aiyo-wisper
1•Aiyo28•28m ago•0 comments

What We Learned Building a Rust Runtime for TypeScript

https://encore.dev/blog/rust-runtime
1•vinhnx•30m ago•0 comments

Rust terminal projects in 3 years

https://blog.orhun.dev/800-rust-projects/
1•vinhnx•30m ago•0 comments

How AI Is Reimagining the Game of Golf–For Both Players and Courses

https://www.wsj.com/sports/golf/ai-in-golf-technology-impact-4122d0e1
2•thm•32m ago•0 comments

The tragedy of leisure

https://www.ft.com/content/b91b739e-2164-463c-a8e0-54b59650a9f9
2•pramodbiligiri•41m ago•0 comments

State of Utopia passes its first law

https://stateofutopia.com/laws/1/law1.html
1•logicallee•41m ago•2 comments

EU fingerprint and photo travel rules come into force

https://www.bbc.co.uk/news/articles/c39rkpe8mj2o
3•zeristor•41m ago•0 comments

Umeshism

https://scottaaronson.blog/?p=40
2•yawboakye•42m ago•0 comments

Artemis II is competency porn

https://lizplank.substack.com/p/artemis-ii-is-competency-porn-and
2•jgrodziski•48m ago•0 comments

Why you need to replace your native macOS screenshot app?

https://snapkeep.webytes.net/
1•Mohamm6d•48m ago•1 comments

Automated Browser Testing with MCP

https://en.wikipedia.org/wiki/Test_automation
2•jacksonkasi•53m ago•0 comments

Kaze Emanuar: Illegal 3D Rendering Techniques (N64) [video]

https://www.youtube.com/watch?v=xIUkoUEMf_g
1•tnelsond4•56m ago•0 comments

Picasso's Guernica (Gigapixel)

https://guernica.museoreinasofia.es/gigapixel/#3/63.11/-120.59
2•guigar•56m ago•0 comments

Show HN: LSM Trees: MemTable, Compaction, and the Amplification Triangle [video]

https://www.youtube.com/watch?v=rOC7jkN748w
1•rcron•56m ago•0 comments

France's government is ditching Windows for Linux, says US tech a strategic risk

https://www.xda-developers.com/frances-government-ditching-windows-for-linux/
5•pabs3•58m ago•1 comments

Reverse Engineering File Format Steganography Chain of the TeamPCP Attack

https://husseinmuhaisen.com/blog/reverse-engineering-teampcp-telnyx-file-format-chain/
1•husseinmuhaisen•58m ago•1 comments

GazeFollow from Scratch

https://github.com/aldipiroli/GazeFollow_from_scratch/tree/main
2•tgnk2341•58m ago•0 comments

Incremental Compilation with LLVM

https://ziglang.org/devlog/2026/#2026-04-08
1•birdculture•1h ago•0 comments