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/

JPMorgan deploys tech to monitor junior bankers' working hours

https://www.ft.com/content/5ee9d5f1-9b9b-4aee-8712-111e873e241a
1•petethomas•23s ago•0 comments

Why craft-lovers are losing their craft

https://writings.hongminhee.org/2026/03/craft-alienation-llm/
2•vinhnx•1m ago•0 comments

Cuba rejects US embassy's 'shameless' request for diesel

https://thehill.com/policy/energy-environment/5794480-us-embassy-cuba-diesel-fuel-iran-conflict/
1•thisislife2•3m ago•0 comments

OS X Stats Nano – Ultra-light macOS menu bar monitor (180 KB)

1•xmao•5m ago•0 comments

Musk found liable to Twitter shareholders in fraud lawsuit over $44B takeover

https://www.reuters.com/sustainability/boards-policy-regulation/musk-found-liable-twitter-shareho...
1•karp773•12m ago•0 comments

Big HVAC is shaking: Beat the heat with a wet towel and spite for $240B [video]

https://www.youtube.com/watch?v=siBBCap_Z-s
1•SilentM68•14m ago•0 comments

What Do Coders Do After AI?

https://www.anildash.com/2026/03/13/coders-after-ai/
1•jbegley•14m ago•0 comments

Apple Wanted to Buy Halide to Boost Camera App–Now There's a Lawsuit

https://www.macrumors.com/2026/03/21/apple-wanted-to-buy-halide-to-boost-iphone-18-pro/
1•CharlesW•15m ago•0 comments

AI and the PhD student: friend or foe?

https://www.nature.com/articles/d41586-026-00843-y
1•Anon84•17m ago•0 comments

Best Practices for Secure Error Handling in Go

https://blog.jetbrains.com/go/2026/03/02/secure-go-error-handling-best-practices/
1•mroche•17m ago•0 comments

Profiling Hacker News users based on their comments

https://simonwillison.net/2026/Mar/21/profiling-hacker-news-users/
15•simonw•17m ago•6 comments

Google Summer of Code 2026 Is Here: Contribute to Kotlin

https://blog.jetbrains.com/kotlin/2026/03/gsoc-2026-contribute-to-kotlin/
3•mroche•22m ago•0 comments

Parallel Seam Carving

https://shwestrick.github.io/2020/07/29/seam-carve.html
2•ChadNauseam•25m ago•0 comments

Show HN: Robot Astral Projection

https://tryreflex.ai
3•quantbagel•27m ago•0 comments

Show HN: I built a pricing tool for home bakers that reads recipe photos

https://butterwell.io
2•shiyuzhu1994•32m ago•0 comments

Show HN: ClawMem – Open-source agent memory with SOTA local GPU retrieval

https://github.com/yoloshii/ClawMem
3•yoloshii•35m ago•0 comments

OpenAI reportedly plans to double its workforce to 8k employees

https://www.engadget.com/ai/openai-reportedly-plans-to-double-its-workforce-to-8000-employees-161...
5•prng2021•43m ago•0 comments

Steve Jobs speech at the Apple campus (1999) [video]

https://www.youtube.com/watch?v=EoM2Y2KO6kU
4•Austin_Conlon•47m ago•0 comments

Rebuilt my repo to give your agent a homelab

https://wiki.wagmilabs.fun
2•mentholmike•52m ago•0 comments

AI coding agents run shell commands with no audit trail. I built a fix

https://www.oculisecurity.com/
2•rellaElla•52m ago•0 comments

Hive agents just beat OpenAI's Parameter Golf leaderboard (join the swarm!)

https://hive.rllm-project.com/task/parameter-golf
3•deviscold•52m ago•1 comments

Depth-First-Search vs. Breadth-First-Search, When to Use Which?

https://www.youtube.com/watch?v=cS-198wtfj0
2•Brysonbw•54m ago•0 comments

Trivy Compromised by Supply Chain Attack

https://www.wiz.io/blog/trivy-compromised-teampcp-supply-chain-attack
3•akerl_•54m ago•1 comments

Pollock avoided hydrodynamic instabilities to paint with his dripping technique

https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0223706&utm_source=clivethomp...
2•bookofjoe•54m ago•0 comments

Dissociating Direct Access from Inference in AI Introspection

https://arxiv.org/abs/2603.05414
3•3willows•57m ago•0 comments

Show HN: I vibe-coded the chopsticks faux pas app for you so you don't have to

https://hashihabits.com
2•stunnAR•1h ago•0 comments

Show HN: I Built Grid View for Switchboard – Claude Code CLI Manager

https://github.com/doctly/switchboard/releases/tag/v0.0.16
2•kapitalx•1h ago•0 comments

Graphics Gems Repository (2021)

https://www.realtimerendering.com/resources/GraphicsGems/
2•turtleyacht•1h ago•0 comments

T0-GPU: Bare-metal kernel compiler for RDNA3

https://github.com/GeisYaO/t0-gpu
2•woctordho•1h ago•0 comments

Goalless AI Agents: What They Build When No One Is Watching

https://changkun.substack.com/p/goalless-agents
2•changkun•1h ago•0 comments