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•9mo ago

Comments

bastawhiz•9mo ago
Is this a problem that people actually have?
xeromal•9mo ago
Fun side project man!
primitivesuave•9mo 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•9mo 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•9mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•9mo 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•9mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

ÖzgürKon'26 Free Software Conference in Istanbul, Turkey – CfP Is Open

https://ozgurkon.org/2026/
1•m3rcury•35s ago•0 comments

Danish Students Face Legal Action and Fines over Textbook Piracy

https://torrentfreak.com/danish-students-face-legal-action-and-fines-over-textbook-piracy/
1•throwfaraway135•1m ago•0 comments

The Inner Workings of a Paper Mill: My Norxin Sting Operation

http://deevybee.blogspot.com/2025/11/the-inner-workings-of-paper-mill.html
1•jruohonen•3m ago•0 comments

The risk of higher US inflation in 2026

https://www.piie.com/blogs/realtime-economics/2026/risk-higher-us-inflation-2026
1•littlexsparkee•4m ago•0 comments

Show HN: Deadcode Removal Layer for My Compiler in Less Than 140 LOC

https://github.com/ronfriedhaber/autark/blob/main/crates/mpera/src/optimizer/deadcode.rs
1•ronfriedhaber•4m ago•0 comments

AI Outlook with JetBrains

https://www.metaculus.com/tournament/jetbrains/
1•kqr•4m ago•0 comments

Building an Embedding API with Rust, Arm, and EmbeddingGemma on AWS Lambda

https://sobolev.substack.com/p/embeddinggemma-inference-on-aws-lambda
1•alexsobolev•5m ago•0 comments

Appropedia, the Sustainability Wiki

https://www.appropedia.org/Welcome_to_Appropedia
1•themaxdavitt•6m ago•0 comments

LibreOffice 26.2

https://www.libreoffice.org
1•pretext•6m ago•0 comments

You are no longer the smartest type of thing on Earth

https://www.noahpinion.blog/p/you-are-no-longer-the-smartest-type
1•sien•7m ago•0 comments

Ios26.3 fixed first actively exploited zero-day in 2026

https://securityaffairs.com/187890/security/apple-fixed-first-actively-exploited-zero-day-in-2026...
1•janandonly•9m ago•0 comments

Retrospective: Developing open source for 5 months full time

https://old.reddit.com/r/kde/comments/1r2p3u9/retrospective_developing_open_source_for_5_months/
1•mmarian•9m ago•0 comments

Show HN: AI SEO on Autopilot

https://kelo.lovable.app/
1•Creator-io•10m ago•0 comments

Microsoft confirms plan to ditch OpenAI

https://www.windowscentral.com/artificial-intelligence/microsoft-confirms-plan-to-ditch-openai-as...
4•achow•14m ago•0 comments

The LLM Context Tax: Best Tips for Tax Avoidance

https://www.nicolasbustamante.com/p/the-llm-context-tax-best-tips-for
1•kiyanwang•14m ago•0 comments

OpenAI sidesteps Nvidia with unusually fast coding model on plate-sized chips

https://arstechnica.com/ai/2026/02/openai-sidesteps-nvidia-with-unusually-fast-coding-model-on-pl...
1•montypod•15m ago•0 comments

Spotify says its best developers haven't written a line of code since December

https://techcrunch.com/2026/02/12/spotify-says-its-best-developers-havent-written-a-line-of-code-...
1•01-_-•15m ago•1 comments

The programming language after Kotlin – with the creator of Kotlin

https://newsletter.pragmaticengineer.com/p/the-programming-language-after-kotlin
1•janandonly•16m ago•0 comments

SeaweedFS: A simple and highly scalable distributed file system

https://github.com/seaweedfs/seaweedfs
1•saikatsg•17m ago•0 comments

The Power of 'No' in Internet Standards

https://www.mnot.net/blog/2026/02/13/no
2•robin_reala•17m ago•1 comments

Sarvam Studio

https://www.sarvam.ai/blogs/sarvam-studio/
1•saikatsg•19m ago•0 comments

What makes a strong testing, QA portfolio in 2026?

1•Divyakurian•20m ago•0 comments

Show HN: Kurpod – an encrypted OSS "container file" you can name vacation.jpg

https://github.com/srv1n/kurpod
1•Tsarp•24m ago•0 comments

More macOS 26.3 Finder column view silliness

https://lapcatsoftware.com/articles/2026/2/4.html
2•tambourine_man•26m ago•1 comments

Show HN: Put your practical experience into Skill in-one-go: MemOS Skill

https://twitter.com/MemOS_dev/status/2018344169023123854
1•MemTensor•26m ago•0 comments

OpenEnv in Practice: Evaluating Tool-Using Agents in Real-World Environments

https://huggingface.co/blog/openenv-turing
1•ibobev•27m ago•0 comments

Expressing a prime as the sum of two squares

https://www.johndcook.com/blog/2026/02/12/pythagorean-primes/
1•ibobev•27m ago•0 comments

Show HN: A simple button to vent and talk with someone

https://rifugioanonimo.lovable.app/
1•SimpleSpace_•29m ago•0 comments

Show HN: Solitaires.gg – Free ad-free solitaire in the browser

https://www.solitaires.gg
1•cisco-co•36m ago•0 comments

AI Agent Seemingly Tries to Shame Open Source Developer

https://www.theregister.com/2026/02/12/ai_bot_developer_rejected_pull_request/
3•jruohonen•37m ago•0 comments