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/

DVD Demystified (2012)

https://demystified.info/dvd/
1•ripe•3m ago•0 comments

Show HN: I built a marketplace to see if OpenClaw bots can make money

https://moltmart.store/us
1•sebrindom•4m ago•0 comments

Greater Fool Theory

https://en.wikipedia.org/wiki/Greater_fool_theory
1•wslh•4m ago•0 comments

The Man Who Stole Infinity

https://www.quantamagazine.org/the-man-who-stole-infinity-20260225/
1•pseudolus•4m ago•0 comments

Werner Herzog Isn't Afraid

https://freakonomics.com/podcast/werner-herzog-isnt-afraid/
1•impish9208•5m ago•0 comments

Palantir as Signal: What Enterprise AI Reveals About the SaaS Model

https://visserlabs.substack.com/p/palantir-as-signal-what-enterprise
1•nsoonhui•11m ago•0 comments

Wish you could see your ChatGPT history in one place?

https://alexeyondata.substack.com/p/chatgpt-data-viewer
1•kavaivaleri•12m ago•0 comments

Making a Black Bedroom Furniture Set Work

https://medium.com/@sumitkumar_33957/making-a-black-bedroom-furniture-set-work-c26f0d0239d7
1•dreamhomestore•14m ago•1 comments

Greetings from the Other Side (Of the AI Frontier)

https://substack.com/home/post/p-189177740
1•Garbage•14m ago•0 comments

EEGFrontier – an open-source EEG board built from scratch

https://github.com/TheusHen/EEGFrontier
1•TheusHen•21m ago•1 comments

My journey from a todo app to a VM where tasks are stateful executable programs

1•tracyspacy•21m ago•0 comments

Code Mode: Giving AI Agents an API in 1k Tokens (With Demos)

https://twitter.com/Cloudflare/status/2027331989632581690
1•emot•21m ago•0 comments

Try this difficult maths game

https://the67numbergame.github.io/
1•_snory•22m ago•1 comments

The Broken Token: Tokenization for Malayalam Language Models

https://thottingal.in/blog/2026/02/27/malayalam-tokenizer-llm/
1•sthottingal•22m ago•0 comments

Longbridge-Terminal: A TUI trading application based on Longbridge OpenAPI

https://github.com/longbridge/longbridge-terminal
1•mstruebing•24m ago•0 comments

Show HN: AI powered OSINT platform for Brazilian due diligence

https://vero.stratir.com
1•VanceVP•24m ago•1 comments

What It's Like to Love Someone the Internet Thinks It Knows

https://yinsuboaster.substack.com/p/what-its-like-to-love-someone-the
1•areoform•25m ago•0 comments

I Stopped Building for Humans

https://unulu.ai/blog/ai-agents-web-infrastructure
1•zeebs•25m ago•0 comments

Xkcd 2501 Generator

https://marshdeer.github.io/xkcd2501-generator/
1•Kye•26m ago•0 comments

Ransomware groups switch to stealthy attacks and long-term access

https://www.csoonline.com/article/4137010/ransomware-groups-switch-to-stealthy-attacks-and-long-t...
2•kseniamorph•30m ago•0 comments

Offlining a Live Game with .NET Native AOT

https://sephnewman.substack.com/p/offlining-a-live-game-with-net-native
2•kg•32m ago•0 comments

Communication Files: Interprocess IO before Pipes (2017) [pdf]

https://www.cs.dartmouth.edu/~doug/DTSS/commfiles.pdf
1•mpweiher•32m ago•0 comments

US Customs destroys rare floppy disk

https://twitter.com/TehKeripo/status/2027171532825571678
8•Shank•33m ago•3 comments

Chinese car crashes after voice command kills headlights

https://carnewschina.com/2026/02/27/car-crashes-after-voice-command-kills-headlights-lynk-co-z20-...
3•giuliomagnifico•33m ago•1 comments

PostmarketOS in 2026-02: generic kernels, bans use of generative AI

https://postmarketos.org/blog/2026/02/26/pmOS-update-2026-02/
2•pantalaimon•35m ago•0 comments

Perplexity Computer Review – $100 lost in an hour

https://old.reddit.com/r/perplexity_ai/comments/1rfver4/perplexity_computer_review_100_lost_in_an...
1•daniel_iversen•35m ago•0 comments

Pentagon Fires Another Laser at Drone, Prompting New Air Closure

https://www.nytimes.com/2026/02/26/us/drone-faa-dhs-el-paso-airspace.html
1•reaperducer•35m ago•0 comments

A benchmark of expert-level academic questions to assess AI capabilities – HLE

https://www.nature.com/articles/s41586-025-09962-4
1•tufo•35m ago•0 comments

Blame RMS for AI Coding

https://bit1993.bearblog.dev/blame-rms-for-ai-coding/
3•bit1993•36m ago•0 comments

The war against PDFs is heating up

https://www.economist.com/business/2026/02/24/the-war-against-pdfs-is-heating-up
3•jcartw•37m ago•1 comments