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/

Apple has an innovation gap. Will its new CEO fill it?

https://www.ft.com/content/d16f3ae6-8e27-4293-8bef-6bda7a9706d2
1•giuliomagnifico•1m ago•0 comments

CodeMySpec – Lovable for engineers who care about the code

https://codemyspec.com/products/code-my-spec
1•matthewsinclair•4m ago•0 comments

A reality check on the AI jobs hysteria

https://www.technologyreview.com/2026/05/26/1137855/a-reality-check-on-the-ai-jobs-hysteria/
2•joozio•5m ago•0 comments

Imec presents quantum dot qubit device using High NA EUV lithography

https://www.imec-int.com/en/press/world-first-imec-presents-quantum-dot-qubit-device-using-high-n...
1•u1hcw9nx•5m ago•1 comments

Show HN: The Structural Operating System for the AI Era

https://typerion.io
1•Techman92•6m ago•0 comments

FinOps for AI: Track What Your Code Costs per Commit

https://mooracle.io/blog/finops-ai-planning-poker/
1•theanonymousone•7m ago•0 comments

Egypt's Great Pyramid is also a great earthquake dampener

https://www.science.org/content/article/egypt-s-great-pyramid-also-great-earthquake-dampener
1•tzury•7m ago•0 comments

Harness, Scaffold, and the AI Agent Terms Worth Getting Right

https://huggingface.co/blog/agent-glossary
1•sergiopaniego•8m ago•0 comments

Collapse of Personal Computing – Investigation into the Destruction of Ownership [video]

https://www.youtube.com/watch?v=zyQwAhppWj8
1•alecco•9m ago•0 comments

What if every input, search and list was predictive?

https://aito.ai/blog/the-predictive-application/
1•arauhala•9m ago•0 comments

Basecamp Five

https://world.hey.com/dhh/basecamp-five-8fcfd2ef
3•software_writer•12m ago•0 comments

Daily Murder: a daily whodunit puzzle solved by logic on an elimination grid

https://dailymurder.com
1•KeepComputing•13m ago•0 comments

My Favorite Fable

https://sive.rs/horses
1•Michelangelo11•13m ago•0 comments

Skill to Income Mapping Engine

https://www.tooldocket.com/2026/05/skill-to-income-calculator.html
1•stoicstoic•13m ago•0 comments

Study: AI is helping to develop new gallium-based semiconductor

https://news.flinders.edu.au/blog/2026/05/26/ai-speeds-up-discovery-of-next-gen-computer-chips-an...
1•giuliomagnifico•14m ago•0 comments

Netherlands blocks U.S. takeover of DigiD operator Solvinity

https://nltimes.nl/2026/05/26/netherlands-blocks-us-takeover-digid-operator-solvinity-security-co...
3•nemoniac•15m ago•0 comments

IT Doesn't Matter [pdf]

https://www.classes.cs.uchicago.edu/archive/2014/fall/51210-1/required.reading/ITDoesntMatter.pdf
1•harlequinetcie•21m ago•1 comments

DBase is back, sort-of... Error: database not found

https://delphinightmares.substack.com/p/dbase-is-back-sort-of
1•deeaceofbase•24m ago•1 comments

Show HN: High-performance parallel save/load for large NumPy

https://github.com/NoteDance/parallel-saver
1•NoteDance•25m ago•0 comments

Steve Jobs MIT Sloan Distinguished Speaker Series (1992)

https://www.youtube.com/watch?v=Gk-9Fd2mEnI
1•downbad_•29m ago•0 comments

"Peak Civilization": The Fall of the Roman Empire (2009)

http://theoildrum.com/node/5528
1•downbad_•30m ago•0 comments

China vs. Taiwan: The Geography of an Unfinished War

https://jstribune.com/china-vs-taiwan-the-geography-of-an-unfinished-war/
2•bryanrasmussen•30m ago•0 comments

The AI bubble isn't like the internet bubble

https://pluralistic.net/2026/05/26/the-ai-will-continue/#until-morale-improves
11•doener•33m ago•1 comments

Sparse Autoencoders Reveal Cortical Brain-LLM Semantic Mapping

https://letsdatascience.com/news/sparse-autoencoders-reveal-cortical-brain-llm-semantic-mappi-bc5...
2•bryanrasmussen•34m ago•0 comments

BBC program on wave-powered boats [video]

https://www.youtube.com/watch?v=UWpxtfmpVD4
1•msuniverse2026•34m ago•0 comments

Microsoft and Uber Are Running into an AI Cost Problem

https://firethering.com/microsoft-uber-ai-coding-tools-more-expensive-than-human-workers/
5•steveharing1•37m ago•5 comments

StyloBot- Open Source self hosted behavioural bot protection

https://stylobot.net
1•scottgal•39m ago•0 comments

Benchmarking Vortex File Format vs. Parquet, CSV vs. DuckDB, Polars, Datafusion

https://dataengineeringcentral.substack.com/p/benchmarking-vortex-file-format-vs
2•eigenBasis•39m ago•0 comments

Raft Consensus with a Minority of Nodes

https://padhye.org/raft-minority/
1•moarbugs•39m ago•0 comments

Delta Brain Sync · Streamlit

https://delta-brain-sync-k99vym7mbyebesrfdl84sm.streamlit.app
1•TELEFOXX•40m ago•0 comments