frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The US national debt now stands at $40T

https://apnews.com/article/treasury-national-debt-limit-a27a8d3651ff810b25c610d3e1b6259d
1•geox•9m ago•0 comments

Basics of the Unix Philosophy

https://cscie2x.dce.harvard.edu/hw/ch01s06.html
1•num42•10m ago•0 comments

Show HN: Linux and iPhone Continuity (iMessage / SMS)

https://github.com/zackb/tether
1•zackb•10m ago•0 comments

KVM Planes Head for Takeoff

https://lwn.net/Articles/1087590/
1•pykello•12m ago•0 comments

The Grand Unified Theory Extends A.E.'S Goals

https://medium.com/@f9121212/the-grand-unified-theory-extends-a-e-s-goals-b2c9456d7813
1•ortrich•14m ago•1 comments

Why Microsoft Entertainment Pack had a sticker announcing that it had Tetris?

https://devblogs.microsoft.com/oldnewthing/20260818-00/?p=112621
2•tybulewicz•22m ago•0 comments

The Pit of Success – An Interview with Rico Mariani

https://www.youtube.com/watch?v=48Rig6v-xYU
1•bananaboy•26m ago•0 comments

MailSalonSync – replace offlineimap or mbsync with JMAP support, written in Go

https://git.cerberusgames.ca/Starstreak/MailSalonSync
1•QBasicBitch•29m ago•0 comments

Thoughts About Scaling Law (By the Founder of ZAI of GLM Fame)

https://xcancel.com/antibot/captcha
2•vismit2000•37m ago•0 comments

Designing Loops for Production-Grade Work

https://www.liquid.ai/blog/agent-loops
2•kiyanwang•38m ago•0 comments

The little-told story of the WWII pet cull

https://www.bbc.com/news/magazine-24478532
3•madihaa•41m ago•0 comments

Measuring Strait of Hormuz ship traffic and how Big Oil profits from it

https://wherobots.com/blog/hormuz-vessel-detection/
1•dr-jia-yu•48m ago•0 comments

Polygon Discovers Fire Emblem: Fortune's Weave Requires the Console It Was Made

https://noisypixel.net/fire-emblem-fortunes-weave-switch-2-exclusive/
2•jamarna•50m ago•1 comments

Packing Malware in Rosetta 2

https://kernelkennel.com/blog/summercon2026-rosetta/
2•n0blenote•51m ago•0 comments

American killed by lightning while climbing Italian volcano

https://www.newsweek.com/american-killed-by-lightning-while-climbing-italian-volcano-12330506
1•jamarna•51m ago•0 comments

Slack Code Is Live

https://twitter.com/Benioff/status/2090240159115853956
1•ramoz•52m ago•1 comments

Armwood High graduate uses 40 scholarships to attend Princeton

https://baynews9.com/fl/tampa/news/2026/08/14/armwood-high-graduate-uses-scholarships-to-make-pri...
2•banimak•54m ago•0 comments

SeedSQL – Generate realistic SQL mock data with foreign key integrity

https://seed-sql.ai.studio
2•hrdhanush•55m ago•0 comments

Cloudflare Workers Spectre Attack Leaks JWT at 12 Bits/S

https://cyberupdates365.com/cloudflare-workers-spectre-attack/
2•sysadmin_diarie•56m ago•0 comments

MiniageOS: "Dumbphone" Version of LineageOS

https://github.com/ofdryads/miniageOS
2•ashenke•56m ago•0 comments

Fool's Gold: Defensive Deception Against Safety-Removal Attacks on Open-Weight

https://arxiv.org/abs/2608.17202
2•sbulaev•57m ago•0 comments

Scenic spot in Italian mountains overrun by tourists seeking the perfect pastry

https://www.ctvnews.ca/lifestyle/article/scenic-spot-in-italian-mountains-overrun-by-tourists-see...
2•mafidia•57m ago•0 comments

GEN-1.5, a one-shot learner robotics foundational model [video]

https://www.youtube.com/watch?v=1cllCVK-9lo
3•AareyBaba•57m ago•0 comments

Imging – Local Image Tools

https://imging.cn/en/
2•fgghyyfk•59m ago•0 comments

'It wasn't me': Weed use in Allegheny County jury room forces homicide mistrial

https://triblive.com/privacy/
1•hussnymoba•1h ago•0 comments

Cost-Aware Optimization for Agentic Query Execution

https://arxiv.org/abs/2606.03152
1•matt_d•1h ago•0 comments

Invited media and military members held at gunpoint at Space Force base in Calif

https://apnews.com/article/vandenberg-space-force-base-california-journalists-detained-4815c999cb...
3•barnoka•1h ago•0 comments

Hamilton's Theory of Turns Revisited

https://arxiv.org/abs/0904.4787
1•oliculipolicula•1h ago•0 comments

Forty First Dates and Still Searching

https://www.nytimes.com/2026/08/18/well/family/forty-first-dates-and-still-searching.html
1•gmays•1h ago•0 comments

Crypto's (and AI's) midterm PAC machine

https://www.politico.com/newsletters/politico-influence/2026/08/19/a-rare-setback-for-cryptos-mid...
2•mmooss•1h ago•1 comments
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/