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/

Diving into Starlink's User Terminal Firmware

https://blog.quarkslab.com/starlink.html
1•techgq•26s ago•0 comments

New AI-generated videos of Iran war spread across social media

https://www.youtube.com/watch?v=0mKCBAM4wZs
1•mgh2•8m ago•0 comments

Traders place $760M bet on falling oil ahead of Hormuz announcement

https://www.reuters.com/sustainability/boards-policy-regulation/traders-place-760-million-bet-fal...
2•Jimmc414•14m ago•0 comments

Show HN: I made a calculator that works over disjoint sets of intervals

https://victorpoughon.github.io/interval-calculator/
2•fouronnes3•21m ago•1 comments

Casus Belli Engineering

https://marcosmagueta.com/blog/casus-belli-engineering/
3•b-man•23m ago•0 comments

The Bureaucrats Won't Be Toppled: Revolts No Longer Work

https://unherd.com/2025/09/why-the-bureaucrats-wont-be-toppled/
3•barry-cotter•24m ago•1 comments

Infinite Velocity

https://cube-drone.com/posts/2026/infinite_velocity/
2•tapoxi•33m ago•0 comments

Madison Square Garden's Surveillance Machine

https://www.wired.com/story/madison-square-garden-jim-dolan-surveillance-machine/
2•c420•38m ago•4 comments

Why LLMs Aren't Giving You the Result You Expect

https://akitaonrails.com/en/2026/04/15/how-to-talk-to-claude-code-effectively/
2•vinipolicena•39m ago•0 comments

The parking lot that's keeping the lights on

https://www.begiant.ca/stories/places/solar-parking-lots-energy-emissions
2•Teever•46m ago•0 comments

Reflecting on my own strange year at Uber

https://anon-ex-uber.medium.com/reflecting-on-my-own-strange-year-at-uber-e73165422245
8•anon-ex-uber•46m ago•0 comments

Education research is weak and sloppy. Why?

https://www.theargumentmag.com/p/education-research-is-weak-and-sloppy
2•barry-cotter•48m ago•0 comments

Show HN: Nilbox – Run OpenClaw without exposing your API tokens

https://nilbox.run/
2•rednakta•50m ago•0 comments

The Centaur Era

https://secondthoughts.ai/p/the-centaur-era
1•gk1•52m ago•1 comments

No one can force me to have a secure website [pdf]

https://tom7.org/httpv/httpv.pdf
1•djoldman•53m ago•0 comments

Show HN - TokensAI – Mint for AI Usage

https://tokensai.dev
1•SowjanyaY•53m ago•0 comments

GCC Compiler Adds Arm AGI CPU Target

https://www.phoronix.com/news/GCC-Arm-AGI-CPU
1•Bender•55m ago•0 comments

Linux 7.1 Crypto Code Rework Enables More Optimizations by Default

https://www.phoronix.com/news/Linux-7.1-Crypto
1•Bender•55m ago•0 comments

Wine 11.7 Brings VBScript Fixes, DirectSound 7.1 Channel Support

https://www.phoronix.com/news/Wine-11.7-Released
1•Bender•55m ago•0 comments

Show HN: Irl.rent – What renters pay, not what's listed in SF

7•rajatady•57m ago•1 comments

Show HN: PodWarden – A catalog of 9k+ self-hosted apps with one-click deploy

https://www.podwarden.com/
2•rayneclarke•59m ago•0 comments

Show HN: Llama.cpp Tutorial 2026: Run GGUF Models Locally on CPU and GPU

3•anju-kushwaha•59m ago•0 comments

Conway's Game of Life with Penrose and Voronoi tilings

https://life.au.pe/
1•satchlj•1h ago•0 comments

PyCon US 20216

https://us.pycon.org/2026/
2•vismit2000•1h ago•0 comments

Steno – Compressed memory with RAG for AI agents

https://github.com/KultMember6Banger/steno
1•KM6B•1h ago•1 comments

Zoom teams up with World to verify humans in meetings

https://techcrunch.com/2026/04/17/zoom-teams-up-with-world-to-verify-humans-in-meeting/
1•rfarley04•1h ago•3 comments

Ludum Dare will officially end in October 2028

https://www.gamedeveloper.com/production/ludum-dare-will-officially-end-in-october-2028
3•matthew_hre•1h ago•0 comments

Researchers Stole $10k from MKBHD's Locked iPhone

https://www.macrumors.com/2026/04/15/apple-pay-visa-transit-exploit/
4•zacharyozer•1h ago•0 comments

Simple Machines

https://en.wikipedia.org/wiki/Simple_machine
3•ogogmad•1h ago•0 comments

Generating Hierarchical JSON Representations of Scientific Sentences Using LLMs

https://arxiv.org/abs/2603.23532
2•PaulHoule•1h ago•0 comments