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/

Ask HN: What are your odds that "we are not alone" is confirmed this year?

1•keepamovin•2m ago•0 comments

I built a TUI to follow football in your terminal

https://github.com/0xjuanma/golazo
1•rocajuanma•2m ago•1 comments

FileCompress solves your oversized file problems easily

https://filecompress.org
1•zhouhua•3m ago•0 comments

Valkey Internals: The Architecture Behind Zero-Copy Command Propagation

https://frostzt.com/blog/redis-valkey-replication-internals
1•mariuz•4m ago•0 comments

Show HN: Hex Fiend – a simple game for mental math

https://do-say-go.github.io/hexfiend/
1•keepamovin•4m ago•0 comments

CentOS is coming to RISC-V soon if you have the kit

https://www.theregister.com/2026/02/05/centos_coming_to_riscv_soon/
1•Bender•5m ago•0 comments

Nitrogen ransomware is so broken even the crooks can't unlock your files

https://www.theregister.com/2026/02/04/nitrogen_ransomware_broken_decryptor/
2•Bender•6m ago•0 comments

Erlang ets

https://www.erlang.org/doc/apps/stdlib/ets.html
1•tosh•7m ago•0 comments

We scraped an AI agent social network for 9 days. Here's what we found

https://moltbook-observatory.com/
3•MoltObservatory•7m ago•2 comments

Adults are propping up the toy industry

https://www.economist.com/business/2026/02/05/adults-are-propping-up-the-toy-industry
2•andsoitis•8m ago•0 comments

The Engagement Trap: 45 Adversarial Patterns in Modern AI Assistants

https://pastebin.com/vhed7zXS
1•justOneFedUpDev•8m ago•2 comments

Emojicode Documentation – Compile and Run Your First Program

https://www.emojicode.org/docs/guides/compile-and-run
1•frizlab•11m ago•0 comments

Ask HN: Old hat devs, how do you feel about LLMs and how do you stay engaged?

2•jamesbfb•11m ago•1 comments

Rewriting Pycparser with the Help of an LLM

https://eli.thegreenplace.net/2026/rewriting-pycparser-with-the-help-of-an-llm/
1•azhenley•12m ago•0 comments

An Overview and Guide to Bypassing Deep Packet Inspection Censorship (2024)

https://medium.com/@mattouchi6/goodbyedpi-an-overview-and-guide-to-bypassing-dpi-based-censorship...
1•speckx•13m ago•0 comments

Optar – OPTical ARchiver

https://ronja.twibright.com/optar/
1•kekqqq•13m ago•0 comments

Show HN: Reversediffusion.xyz

https://reversediffusion.xyz
1•rvijgen•15m ago•0 comments

Intelligence Is Not Artificial

https://www.scaruffi.com/singular/index.html
1•Antibabelic•16m ago•0 comments

Show HN: A deep dive into Rolldown's bitset-based code splitting

https://www.atriiy.dev/blog/rolldown-high-performance-code-splitting
1•atriiy•17m ago•0 comments

Epstein files – Bash reference manual

https://www.youtube.com/shorts/ge955rbJ_EM
1•quantummagic•17m ago•0 comments

Show HN: Disavow Generator – Open-source tool to defend against negative SEO

https://github.com/BansheeTech/Disavow-Generator
1•SurceBeats•18m ago•1 comments

Show HN: Agent Readiness – Open-source CLI to check repo readiness for AI

https://github.com/kodustech/agent-readiness
2•gamalinosqui•19m ago•0 comments

Which emoji scissors can cut?

https://wh0.github.io/2020/01/02/scissors.html
2•fanf2•21m ago•0 comments

8th Gen I3 Hits 10 TPS on DeepSeek-Coder-V2-Lite 16B Moe

https://old.reddit.com/r/LocalLLaMA/comments/1qxcm5g/no_nvidia_no_problem_my_2018_potato_8th_gen_i3/
3•politelemon•21m ago•0 comments

I am the Excel world champion

https://www.theguardian.com/lifeandstyle/2026/feb/06/experience-i-am-the-excel-world-champion
3•sonabinu•22m ago•0 comments

Meanings of the Colors in the NYC Subway

https://www.untappedcities.com/secret-meaning-behind-colors-nyc-subway/
2•hirsin•24m ago•0 comments

There is empirical evidence of AI acting against our instructions

https://english.elpais.com/technology/2026-02-03/yoshua-bengio-turing-award-winner-there-is-empir...
6•geox•25m ago•0 comments

Show HN: Commentblocks – Website QA tool with no client signup needed

https://www.commentblocks.com/
2•julian97•26m ago•0 comments

Tactical tornado is the new default

https://olano.dev/blog/tactical-tornado/
2•todsacerdoti•26m ago•0 comments

Asia-based government spies broke into networks across 37 countries

https://www.theregister.com/2026/02/05/asia_government_spies_hacked_37_critical_networks/
3•Bender•26m ago•0 comments