frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: Why do QR codes need so much visual real estate?

1•rishikeshs•3m ago•0 comments

Everyone should be using Claude Code more

https://www.lennysnewsletter.com/p/everyone-should-be-using-claude-code
1•bilsbie•3m ago•0 comments

Apple didn't have to go this hard [video]

https://www.youtube.com/watch?v=x4_RsUxRjKU
1•igravious•3m ago•0 comments

Show HN: Research repo for a time-based macroeconomic valuation model

https://github.com/ArturGrandi/grand-time-architecture
1•AGsist•3m ago•0 comments

On British Roads, Chinese Cars Are Racing Ahead

https://www.nytimes.com/2025/12/17/business/britain-china-cars-byd.html
1•bookofjoe•4m ago•1 comments

Show HN: Discord bot that reminds you to commit daily

https://github.com/NKMAK/commit-reminder-discord-bot
1•nkmak•5m ago•0 comments

China Seen Overtaking U.S. as Global Superpower (2011)

https://www.pewresearch.org/global/2011/07/13/china-seen-overtaking-us-as-global-superpower/
1•lawrenceyan•12m ago•0 comments

A development tool I cannot live without: bin/merge_master_into_all_git_branches

https://www.semicolonandsons.com/articles/merge-master-into-all-git-branches
1•jackkinsella•17m ago•0 comments

Grok Official Full Fixed Point Engine Release Google Suppressing

https://github.com/AnalyticalAgnosticAndrewRusher/VCH-Fixed-Point-Game-Engine-VIsualizer
1•ApexSignalAndy•17m ago•1 comments

Data center deals hit record $61B in 2025 amid construction frenzy

https://www.cnbc.com/2025/12/19/data-center-deals-hit-record-amid-ai-funding-concerns-grip-invest...
2•1vuio0pswjnm7•19m ago•0 comments

DraftKings hopes to score big with new prediction markets app

https://www.cbsnews.com/news/draftkings-prediction-markets-app-sports-betting/
2•mhb•27m ago•0 comments

Laws That Do Harm (1982)

https://miltonfriedman.hoover.org/internal/media/dispatcher/214279/full
3•mhb•31m ago•0 comments

From Zero to RAG (Part 1)

https://turtosa.com/blog/from-zero-to-rag
1•kevinroleke•32m ago•0 comments

Google and Apple warn employees on visas to avoid international travel

https://techcrunch.com/2025/12/20/google-and-apple-reportedly-warn-employees-on-visas-to-avoid-in...
7•SilverElfin•32m ago•2 comments

Climate change's hidden price tag: a drop in our income

https://news.arizona.edu/news/climate-changes-hidden-price-tag-drop-our-income
2•geox•36m ago•2 comments

HoustonTracker2 – A Music Sequencer for the Texas TI-82

https://www.irrlichtproject.de/houston/
1•austinallegro•36m ago•0 comments

TailwindSQL: Like TailwindCSS but SQL.className your way to database queries

https://tailwindsql.xyz/
1•sawirricardo•37m ago•0 comments

This is a duplicate. Please delete it.

https://community.ntppool.org/t/ntp-at-nist-boulder-has-lost-power/4192
1•nobody9999•41m ago•1 comments

HBM Supply Curve Gets Steeper, but Still Can't Meet Demand

https://www.nextplatform.com/2025/12/19/hbm-supply-curve-gets-steeper-but-still-cant-meet-demand/
1•rbanffy•42m ago•0 comments

U.S. Plans $80B Nuclear Power Expansion

https://spectrum.ieee.org/80-billion-us-nuclear-power
4•rbanffy•44m ago•1 comments

When creating images, AI keeps remixing the same 12 stock photo clichés

https://www.science.org/content/article/when-creating-images-ai-keeps-remixing-same-12-stock-phot...
1•rbanffy•45m ago•0 comments

C-reactive protein outpaced 'bad' cholester as leading heart disease risk marker

https://theconversation.com/how-c-reactive-protein-outpaced-bad-cholesterol-as-leading-heart-dise...
4•bikenaga•47m ago•1 comments

STPA (System Theoretic Process Analysis) at Google

https://sre.google/resources/practices-and-processes/stpa/
1•motxilo•51m ago•0 comments

Rcarmo/Guerite: A Watchtower Replacement

https://github.com/rcarmo/guerite
1•rcarmo•53m ago•0 comments

OpenWRT 25.12.0-RC1 Released

https://downloads.openwrt.org/releases/25.12.0-rc1/
2•josteink•59m ago•0 comments

OpenWRT 24.10.5 Released

https://openwrt.org/releases/24.10/notes-24.10.5
2•josteink•1h ago•0 comments

Why the fuel-switch story does not explain the AI171 crash

https://frontline.thehindu.com/the-nation/ai-171-crash-boeing-787-electrical-failure-core-network...
1•sltr•1h ago•1 comments

Show HN: Calcu-gator.com – Financial calculators for Canadians

https://calcu-gator.com/
2•Nitromax•1h ago•0 comments

Monte Carlo Cubes

https://thevesselshortstories.substack.com/p/monte-carlo-cubes
1•kawrydav•1h ago•0 comments

I wrote a code editor in C and now I'm a changed man

https://github.com/thisismars-x/light
19•birdculture•1h ago•6 comments
Open in hackernews

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

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

Comments

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