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

Comments

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

OSMU Community member posts proof that certain Bitcoin mining pools are fugazi

https://github.com/mweinberg/stratum-speed-test/tree/main/findings
1•metaprinter•56s ago•0 comments

bonsai_term: A library for building dynamic terminal apps by Jane Street

https://github.com/janestreet/bonsai_term
1•azhenley•1m ago•0 comments

Solar's growth in US almost enough to offset rising energy use

https://arstechnica.com/science/2025/11/solars-growth-in-us-almost-enough-to-offset-rising-energy...
1•pseudolus•3m ago•0 comments

"we are not enron" says nvidia [video]

https://www.youtube.com/watch?v=ThUNhjblo24
3•xqcgrek2•6m ago•0 comments

Generative AI in Software Engineering Must Be Human-Centered [pdf]

https://www.cs.ubc.ca/~rtholmes/papers/jss_2024_russo.pdf
3•nextos•7m ago•0 comments

OpenAI Loses Key Discovery Battle as It Cedes Ground to Authors in AI Lawsuits

https://www.hollywoodreporter.com/business/business-news/openai-loses-key-discovery-battle-why-de...
2•CharlesW•10m ago•0 comments

Show HN: Splintr – Rust BPE tokenizer, 12x faster than tiktoken for batches

https://github.com/farhan-syah/splintr
1•fs90•10m ago•0 comments

Ask HN: Why would you downvote without replying?

1•txrx0000•11m ago•0 comments

How 'Stranger Things' Defined the Era of the Algorithm

https://www.nytimes.com/interactive/2025/11/26/arts/television/stranger-things-streaming-netflix....
1•pseudolus•12m ago•1 comments

Warning: The Fed Can't Rescue AI

https://paulkrugman.substack.com/p/warning-the-fed-cant-rescue-ai
3•xqcgrek2•17m ago•0 comments

Apple's Preventing Some Apps from Working on Older iPhones [video]

https://www.youtube.com/watch?v=WXqVV8_GORE
1•barbs•21m ago•0 comments

Collabora Online Desktop Released with Improved UI from LibreOffice

https://www.collaboraonline.com/blog/collabora-online-now-available-on-desktop/
1•nogajun•22m ago•0 comments

Why is OpenAI lying about the data its collecting on users?

2•kypro•22m ago•0 comments

What Does "Capitalism" Mean, Anyway?

https://www.newyorker.com/magazine/2025/12/01/capitalism-a-global-history-sven-beckert-book-review
2•pseudolus•23m ago•1 comments

SM9 – Chinese National Cryptography Standard

https://en.wikipedia.org/wiki/SM9_(cryptography_standard)
1•uneven9434•23m ago•0 comments

Taking down Next.js servers for 0.0001 cents a pop

https://www.harmonyintelligence.com/taking-down-next-js-servers
6•polymathist•25m ago•1 comments

IPSW.me – Download iOS Firmware

https://ipsw.me/
1•uneven9434•26m ago•0 comments

Designable Emergence: The Next Frontier After the Artificial Nucleolus

https://medium.com/@peter_9588/designable-emergence-the-next-frontier-after-the-artificial-nucleo...
1•aniijbod•28m ago•0 comments

2025 Edelman Trust Barometer Flash Poll: Trust and AI at a Crossroad [pdf]

https://www.edelman.com/sites/g/files/aatuss191/files/2025-11/2025%20Edelman%20Trust%20Barometer%...
2•layer8•29m ago•0 comments

Beep-8: A Fantasy Console with an ARM-Based Architecture and C/C++ SDK

https://github.com/beep8/beep8-sdk
3•beep8_official•31m ago•1 comments

Dead, 279 missing in Hong Kong fire

https://www.scmp.com/news/hong-kong/society/article/3334217/major-fire-hong-kongs-tai-po-leaves-2...
3•nsoonhui•31m ago•1 comments

Show HN: Statements to Sheets – Convert Bank Statement PDFs to CSV

https://statementstosheets.com
2•spiked•34m ago•1 comments

DSP 101 Part 1: An Introductory Course in DSP System Design

https://www.analog.com/en/resources/analog-dialogue/articles/dsp-101-part-1.html
1•teleforce•39m ago•0 comments

Has the bailout of generative AI begun?

https://garymarcus.substack.com/p/has-the-bailout-of-generative-ai
3•chmaynard•46m ago•0 comments

The weirdest tool I own is also one of the most useful

https://www.zdnet.com/article/the-weirdest-tool-i-own-is-also-one-of-the-most-useful-and-its-14-o...
1•fcpguru•56m ago•0 comments

What we know about the Hong Kong apartment fires

https://www.bbc.com/news/articles/cdxe9r7wjgro
2•thunderbong•56m ago•0 comments

To Meld A.I. With Supercomputers, National Labs Are Picking Up the Pace

https://www.nytimes.com/2025/11/20/technology/national-laboratories-ai-supercomputers.html
1•bookofjoe•58m ago•1 comments

Chinese Pharma Is on the Cusp of Going Global

https://www.economist.com/china/2025/11/23/chinese-pharma-is-on-the-cusp-of-going-global
1•m463•59m ago•0 comments

AdBlock and Signal are for terrorists, according to the French government [video]

https://www.youtube.com/watch?v=1q1hjmwLqe4
12•pabs3•1h ago•1 comments

Show HN: HN Alerts

https://hnalerts.com/
2•davidbarker•1h ago•0 comments