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•1y ago

Comments

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

Open-source Express.js dev panel for routes and request logs

https://www.npmjs.com/package/express-dev-panel
1•dvsxdev•3m ago•0 comments

Engineering as Humanity's Highest Achievement

https://walkingtheworld.substack.com/p/engineering-as-humanitys-highest
1•hermitcrab•8m ago•0 comments

Three Cultures of Math

https://rkirov.github.io/posts/three-cultures-of-math/
1•mathgenius•10m ago•0 comments

Chess.com produces 3500 ton of CO2 in air for loading JavaScript bundles

https://www.chess.com/
1•emifo3•11m ago•2 comments

Mlx-serve – run LLMs natively on your Mac

https://ddalcu.github.io/mlx-serve/
1•wrxd•13m ago•0 comments

Outlook on Windows silently scales your email by 1.5×

http://picmel.com/blog/outlook-dpi-scaling-bug
1•rudixworld•14m ago•0 comments

Show HN: Query years of Ask HN and Show HN discussions as a knowledge graph

https://github.com/hash-anu/lightrag-snkv
1•swaminarayan•14m ago•0 comments

AI cost optimization tool "distillfast.com"

1•ashuashpawar•23m ago•1 comments

UtaForth – 303-byte 16-bit Forth in pure Netwide Assembler

https://github.com/Fuwn/UtaForth
2•irdc•27m ago•1 comments

LLMs Won't Replace Programming Languages

https://mech-lang.org/post/2025-01-09-programming-chatgpt/
1•tosh•27m ago•0 comments

Rotten Dot Com

https://www.theparisreview.org/blog/2026/05/06/rotten-dot-com/
20•lordgrenville•35m ago•6 comments

Machine Learning Offers Faster, More Reliable Analysis of Fermi Surfaces

https://www.tus.ac.jp/en/mediarelations/archive/20260417_0478.html
1•rustoo•37m ago•0 comments

Arm, the UK and Apple

https://thechipletter.substack.com/p/arm-the-uk-and-apple
2•klelatti•37m ago•0 comments

LLMorphism: When humans come to see themselves as language models

https://arxiv.org/abs/2605.05419
2•okey•39m ago•0 comments

Real signals or artificial stereotypes? Adventures with a cultural Copilot

https://kucharski.substack.com/p/real-signals-or-artificial-stereotypes
2•ceejayoz•45m ago•0 comments

In a quest to becoming AI independent

https://adlrocha.substack.com/p/adlrocha-in-a-quest-to-becoming-ai
4•adlrocha•55m ago•0 comments

Show HN: Tinyblok – publishes conditioned sensor data to NATS from an ESP32

https://github.com/lexvicacom/tinyblok
2•alexjreid•56m ago•0 comments

RISC-V Serial Debug Protocol Specification (Draft)

https://gitlab.com/lauterbach/riscv-rsdp-spec
2•jonesjohnson•57m ago•0 comments

Gen Z Resentment Toward AI Grows as Adoption Stagnates and Workplace Fears Mount

https://www.waltonfamilyfoundation.org/about-us/newsroom/gen-z-resentment-toward-ai-grows-as-adop...
5•mgh2•58m ago•0 comments

Eve

https://witheve.com/
2•tosh•59m ago•0 comments

Infinitary Logic

https://en.wikipedia.org/wiki/Infinitary_logic
1•soupspaces•1h ago•0 comments

DMA: A Community Hackerspace in Seattle

https://dma.space
1•bleeperblooper•1h ago•0 comments

Cursor CVE-2026-26268: Hidden Git hooks RCE via agents autonomous Git operations

https://nvd.nist.gov/vuln/detail/CVE-2026-26268
3•Armor1AI•1h ago•0 comments

JavaScript Tail Call Optimization in ES2015: Unimplemented and Stack Issues

https://blog.gaborkoos.com/posts/2026-05-09-Your-Recursion-Is-Lying-to-You/
1•birdculture•1h ago•0 comments

A Day in the Life of an "Enshittificator" (Norwegian Consumer Council) [video]

https://www.youtube.com/watch?v=T4Upf_B9RLQ
2•marojejian•1h ago•0 comments

From RSS Feeds to Atom Feeds

https://susam.net/from-rss-to-atom.html
1•susam•1h ago•0 comments

Show HN: Free Google Places API alternative using OpenStreetMap (no API key)

https://bizdata-web.vercel.app
5•johnleslie_pm•1h ago•0 comments

Thinking of the Children

https://blog.viewfromtheweb.com/thinking-of-the-children-4ed324d5/
1•rickdg•1h ago•0 comments

Show HN: Great Little Software – interviews with solo developers

https://greatlittle.software/
2•valeriavg_dev•1h ago•1 comments

LibreOffice 26.4 Beta Experiments with AI Writing Features

https://www.linuxjournal.com/content/libreoffice-264-beta-experiments-ai-writing-features-and-sma...
3•throw_await•1h ago•0 comments