frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ethical Principles in the Creation of Artificial Minds

https://nickbostrom.com/ethics/aiethics
1•maxloh•1m ago•0 comments

Human-in-the-loop NLP as a first-class control layer

https://github.com/rado-stack/human-in-the-loop-nlp
1•rado-stack•2m ago•0 comments

Digital Euro 'only defence' against deepening US control of money

https://www.ft.com/content/b0602271-cd43-4a6e-a96d-c8166a05d040
1•rorylawless•3m ago•0 comments

I Made My Own Programming Language

https://github.com/Youg-Otricked/QuantumC
1•YougOtricked•8m ago•0 comments

Universal Commerce Protocol

https://ucp.dev/
1•qainsights•12m ago•1 comments

Was Philip K. Dick a Madman or a Mystic? (2016)

https://www.publishersweekly.com/pw/by-topic/industry-news/tip-sheet/article/70857-was-philip-k-d...
2•debo_•12m ago•0 comments

React Router has XSS Vulnerability · CVE-2025-59057

https://github.com/advisories/GHSA-3cgp-3xvw-98x8
1•maxloh•13m ago•0 comments

JEP Draft: Java Thread Sanitizer

https://openjdk.org/jeps/8208520
1•mooreds•17m ago•0 comments

Diagnosing performance with dotnet-trace and Perfetto

https://dfamonteiro.com/posts/using-dotnet-trace-with-perfetto/
1•lalitmaganti•17m ago•0 comments

High RAM prices mean record-setting profits for Samsung and other memory makers

https://arstechnica.com/gadgets/2026/01/high-ram-prices-mean-record-setting-profits-for-samsung-a...
3•walterbell•18m ago•0 comments

Show HN: dc-input - interactively fill dataclass instances via the command line

https://github.com/jdvanwijk/dc-input
1•janebelvanwijk•19m ago•0 comments

Ask HN: Cursor (LLM) Costs

1•anonyfox•20m ago•1 comments

Turntiles, an NYT style word game I made for my parents

https://github.com/wheybags/turntiles
1•todsacerdoti•21m ago•0 comments

New tech and tools for retailers to succeed in an agentic shopping era

https://blog.google/products/ads-commerce/agentic-commerce-ai-tools-protocol-retailers-platforms/
1•AznHisoka•22m ago•0 comments

Key Chinese Money Laundering Network Member Charged W Laundering Drug Proceeds

https://www.justice.gov/opa/pr/key-member-chinese-money-laundering-network-charged-laundering-ten...
3•737min•26m ago•0 comments

Fifty People Control the Culture

https://www.honest-broker.com/p/fifty-people-control-the-culture
5•Khaine•27m ago•0 comments

Ask HN: Cheaper Datadog Anyone?

2•kvaranasi_•28m ago•2 comments

When XLA Isn't Enough: From Pallas to VLIW with Splash Attention on TPU

https://patricktoulme.substack.com/p/when-xla-isnt-enough-from-pallas
1•patrick_toulme•30m ago•0 comments

Show HN: Voice Composer – Browser-based pitch detection to MIDI/strudel/tidal

https://dioptre.github.io/tidal/
2•dioptre•30m ago•1 comments

America's most novel train project is too deadly

https://www.economist.com/united-states/2026/01/08/americas-most-novel-train-project-is-too-deadly
3•yakkomajuri•30m ago•0 comments

There Is No Budget for Books

https://jonpauluritis.com/articles/no-budget-for-books/
1•jppope•31m ago•0 comments

WUTA WRENs

https://en.wikipedia.org/wiki/Western_Approaches_Tactical_Unit
1•CHB0403085482•32m ago•0 comments

Situation Monitor

https://hipcityreg.github.io/situation-monitor/
1•mellosouls•36m ago•0 comments

DOJ sues California cities over natural gas bans

https://www.justice.gov/opa/pr/justice-department-sues-california-cities-over-natural-gas-bans
5•737min•38m ago•0 comments

Show HN: Ma'at – Court-defensible jury analysis platform (open source)

https://github.com/Jennaleighwilder/MA-AT
1•jennaleighwest•40m ago•0 comments

Show HN: I built Sonars in 3 weeks to see if AI coding is useful for my company

https://sonars.dev
1•JasperBekkers•42m ago•0 comments

I Built a 1 Petabyte Server from Scratch [video]

https://www.youtube.com/watch?v=vVI7atoAeoo
2•guiambros•46m ago•0 comments

Local Food for the Hudson Valley

https://www.communityfoodworks.org
1•mooreds•49m ago•0 comments

True Scale of Solar System

3•Sarakuzoi•52m ago•0 comments

Asahi Linux – Porting Linux to Apple Silicon [video]

https://media.ccc.de/v/39c3-asahi-linux-porting-linux-to-apple-silicon
2•tensegrist•55m ago•1 comments
Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•8mo ago

Comments

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