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

Comments

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

Roblox devs now need a subscription to share their games freely

https://devforum.roblox.com/t/new-publishing-requirements-evaluation-process-for-games/4573166
1•hallole•35s ago•1 comments

Show HN: SCP – A protocol that drops LLM API calls to zero in 60fps physics loop

https://github.com/srk0102/plexa
1•srk0102•2m ago•0 comments

Generative AI in Banking: Top Use Cases and Benefits

https://www.kellton.com/kellton-tech-blog/generative-ai-in-banking
1•johnjosephkt•3m ago•0 comments

Ask HN: LeetCode, anyone still doing it?

1•kwar13•6m ago•0 comments

DeepDive – Autonomous OSINT investigation tool with 3D graph

https://github.com/Sinndarkblade/deepdive
1•sinndarkblade•16m ago•1 comments

MOS tech 6502 8-bit microprocessor in pure SQL powered by Postgres

https://github.com/lasect/pg_6502
1•adunk•18m ago•0 comments

Microsoft exec suggests AI agents will need to buy licenses, just like employees

https://www.businessinsider.com/microsoft-executive-suggests-ai-agents-buy-software-licenses-seat...
1•maxloh•18m ago•0 comments

What Comes After Vibe Coding

https://blog.bijup.com/what-comes-after-vibe-coding
2•andreirx•22m ago•1 comments

Show HN: One-command deploys from your terminal with CreateOS CLI

https://nodeops.network/createos/docs/CLI/Overview
1•alex_creates•23m ago•0 comments

Pruner: Give AI coding agents the right context in one shot

https://github.com/heikki-laitala/pruner
2•xfiler•24m ago•0 comments

Dependency cooldowns turn you into a free-rider

https://calpaterson.com/deps.html
1•calpaterson•30m ago•0 comments

Bypass Paywalls Clean Chrome

https://gitflic.ru/project/magnolia1234/bypass-paywalls-chrome-clean
2•Cider9986•31m ago•2 comments

Multi-Agentic Software Development Is a Distributed Systems Problem

https://kirancodes.me/posts/log-distributed-llms.html
2•tie-in•32m ago•0 comments

Sam Altman: Man charged with attempting to murder OpenAI boss

https://news.sky.com/story/sam-altman-man-charged-with-attempting-to-murder-openai-boss-13531548
2•taspeotis•34m ago•0 comments

UpDown: Efficient Manycore based on Many Threading & Scalable Memory Parallelism

https://people.cs.uchicago.edu/~aachien/lssg/research/10x10/ics26-single-chip-updown.pdf
3•matt_d•35m ago•0 comments

TanStack Start Now Support React Server Components

https://tanstack.com/blog/react-server-components
11•polywock•36m ago•4 comments

How the corpse flower came to be so weird

https://www.scientificamerican.com/article/how-the-corpse-flower-evolved-its-bizarre-traits/
1•1659447091•38m ago•0 comments

HyperVenom: Using Hyper-V for Ring -1 Control from Usermode

https://gsmll.github.io/hypervenom/writeup/
1•claykettle•40m ago•0 comments

Modern Git based version control with parallel and stacked branches

https://gitbutler.com/
1•rushil_b_patel•42m ago•0 comments

Can Germany restart its nuclear power program?

https://www.politico.eu/article/germany-berlin-nuclear-is-over-the-debate-isnt/
1•leonidasrup•44m ago•0 comments

Introduction to Spherical Harmonics for Graphics Programmers

https://gpfault.net/posts/sph.html
2•nicebyte•48m ago•0 comments

Hackers Reveal Rockstar Earns over $1M a Day from GTA Online

https://kotaku.com/hackers-reveal-rockstar-earns-over-1-million-a-day-from-gta-online-2000687207
1•jmsflknr•52m ago•0 comments

Show HN: Groupr – Rust CLI that sorts files into subfolders by extension

https://github.com/TimFinnigan/groupr
1•timfinnigan•57m ago•0 comments

Show HN: Shloka Artha [Word-by-Word Meanings for Shlokas]

https://shlokartha.in/
1•init0•58m ago•0 comments

Show HN: Deflect One – command line dashboard for managing Linux servers via SSH

https://github.com/Frytskyy/deflect-one
2•whitemanv•59m ago•1 comments

Show HN: 2nnel – self-hosted ngrok with one-click framework-agnostic deployment

https://github.com/22or/2nnel
1•rogerdodgerwang•1h ago•0 comments

Need feedback on sandflare.io – AI Agent Sandboxes with

2•ajaysheoran2323•1h ago•0 comments

When Dancing Plagues Struck Medieval Europe(2019)

https://daily.jstor.org/when-dancing-plagues-struck-medieval-europe/
1•rawgabbit•1h ago•0 comments

Is It Worth Learning Unity in 2026? In the Age of AI

https://darkounity.com/blog/is-it-worth-learning-unity-in-2026
2•hacker_13•1h ago•0 comments

I Built a Open Source Portfolio and Project Website – Sean Filimon

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