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/

Amazon's cloud was hit by two outages involving AI tools in December, FT says

https://www.marketscreener.com/news/amazon-s-cloud-was-hit-by-two-outages-involving-ai-tools-in-d...
1•_____k•1m ago•0 comments

Reassessing European Contact: Insights from Spanish America [pdf]

https://isonomiaquarterly.com/wp-content/uploads/2026/02/iq-4.1-spring-2026-bassi-conquest-and-th...
1•brandonlc•2m ago•0 comments

Epoll and Kqueue: How Operating Systems Learned to Wait Efficiently

https://thecodinggopher.substack.com/p/epoll-and-kqueue-how-operating-systems
1•syntacticbs•3m ago•0 comments

The U.S. and China Are Pursuing Different AI Futures

https://spectrum.ieee.org/us-china-ai
1•oldnetguy•5m ago•0 comments

Nvidia DGX Spark: Is DGX Spark Blackwell?

https://www.backend.ai/blog/2026-02-is-dgx-spark-actually-a-blackwell
1•ResearchAtPlay•5m ago•1 comments

Pg-here: Run a local PostgreSQL instance in your project folder with one command

https://github.com/mayfer/pg-here
1•birdculture•6m ago•0 comments

Private Equity Debt Left a Leading VPN Open to Chinese Hackers

https://www.bloomberg.com/news/features/2026-02-19/vpn-used-by-us-government-failed-to-stop-china...
1•pvachon•12m ago•0 comments

Exercise has 'similar effect' to therapy, study on depression shows

https://medicalxpress.com/news/2026-01-similar-effect-therapy-depression.html
3•PaulHoule•14m ago•0 comments

Show HN: Lobster Sauce – the most recent OpenClaw news in one central place

https://www.lobstersauce.news/
1•Tjerkienator•15m ago•0 comments

NASA recalls dysfunction, emotions during Boeing's botched Starliner flight

https://www.reuters.com/business/aerospace-defense/nasa-chief-slams-boeing-agency-failures-botche...
1•JumpCrisscross•16m ago•0 comments

IEEE 802.19.3:Coexistence Recommendations for sub 1-GHz IEEE 802.11 and 802.15.4

https://ieeexplore.ieee.org/document/10148905
1•teleforce•19m ago•0 comments

Fault tolerant message passing C# with NATS.io: Use Distributed Object Store

https://nats-io.github.io/nats.net/documentation/object-store/intro.html
1•northlondoner•19m ago•1 comments

Show HN: Google Drive CLI for LLMs / Coding Agents

https://github.com/NmadeleiDev/google-drive-cli
1•Gregoryy•21m ago•0 comments

Ente Locker

https://ente.io/blog/locker/
1•sylens•21m ago•0 comments

Show HN: LinkedRecords – A Server-Sovereign Alternative to Firebase

https://linkedrecords.com/
1•WolfOliver•27m ago•0 comments

Django ORM Standalone⁽¹⁾: Querying an existing database

https://www.paulox.net/2026/02/20/django-orm-standalone-database-inspectdb-query/
1•pauloxnet•28m ago•0 comments

Gentoo Linux moves away from GitHub due to AI

https://www.pcgamer.com/software/linux/after-microsoft-couldnt-keep-its-ai-hands-to-itself-a-noto...
2•majkinetor•30m ago•0 comments

Is there a way to sort/filter by score on Hacker News?

1•7gorillaz•30m ago•1 comments

Nvidia and OpenAI abandon unfinished $100B deal in favour of $30B investment

https://www.ft.com/content/dea24046-0a73-40b2-8246-5ac7b7a54323
12•zerosizedweasle•33m ago•0 comments

Show HN: Geo-lint – open-source linter for GEO (AI search visibility)

https://github.com/IJONIS/geo-lint
1•ijonis•33m ago•1 comments

The battle over Scott Adams' AI afterlife

https://www.businessinsider.com/scott-adams-death-ai-avatar-resurrection-ethics-debate-family-bac...
2•pseudolus•34m ago•1 comments

Sounds in the city: on the utility of acoustic landmarks

https://www.tandfonline.com/doi/full/10.1080/13658816.2026.2617940
1•thinkingemote•37m ago•0 comments

Show HN: E-Rechnung Push – E-Invoicing for German SMBs (ZUGFeRD/XRechnung)

https://e-rechnung-push.de
1•Contenagent•37m ago•0 comments

IR³Pidgins – Universal Language via Pure Flux

https://bitcoin-zero-down-2ea152.gitlab.io/gallery/gallery-item-neg-895/
1•machardmachard•37m ago•3 comments

The Existence and Behavior of Secondary Attention Sinks

https://arxiv.org/abs/2512.22213
1•thw20•37m ago•0 comments

Show HN: OkaiDokai, tool-level firewall for OpenClaw, Claude Code and Codex

https://okaidokai.com
1•cedel2k1•40m ago•0 comments

A Bug Is a Bug, but a Patch Is a Policy: The Case for Bootable Containers

https://tuananh.net/2026/02/20/patch-is-policy/
1•tuananh•41m ago•0 comments

Postgres for analytics: these are the ways

https://www.justpostgres.tech/blog/postgres-for-analytics
2•magden•42m ago•0 comments

Investigating Climate Change Adaptation

https://kit.exposingtheinvisible.org/en/climate-change-adaptation.html
2•Anon84•43m ago•0 comments

Show HN: From Clawdbot to OpenAI: Dissecting the supply chain that sold out

https://the-mind-of-ai.com/posts/openclaw-necropsy/
1•agentic-wiki•44m ago•0 comments