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•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/

GLM-4.7-Flash: 30B MoE model achieves 59.2% on SWE-bench, runs on 24GB GPUs

https://curateclick.com/blog/2025-glm-flash-4-7-guide
1•czmilo•1m ago•1 comments

AInxiety

https://pcmaffey.com/ainxiety-1/
2•pcmaffey•5m ago•0 comments

Legal Structures for Latin American Startups (2021)

https://latamlist.com/legal-structures-for-latin-american-startups/
2•walterbell•6m ago•0 comments

GitHub Actions: Share build artifacts across independent jobs

https://www.thinkmill.com.au/blog/faster-ci-pipelines-share-build-artifacts-across-independent-jobs
1•flexdinesh•7m ago•0 comments

Show HN: LeetDreamer: AI-hallucinated LeetCode solution videos

https://github.com/joshribakoff/leetdreamer
1•joshribakoff•8m ago•0 comments

Designing 'One Hundred and One Dalmatians'

https://animationobsessive.substack.com/p/designing-one-hundred-and-one-dalmatians
1•ani_obsessive•10m ago•0 comments

Cronos Browser – Local AI, decentralized pool mode, and zero telemetry

https://cronos.avalw.com/
1•CronosBrowser•12m ago•1 comments

Cursedcraft, a software rendered voxel sandbox for the TTY

https://codeberg.org/mueller_minki/cursedcraft/
1•minki_the_avali•13m ago•1 comments

Gene therapy advances as scientists guide jumping DNA to target faulty genes

https://medicalxpress.com/news/2025-12-gene-therapy-advances-scientists-dna.html
3•PaulHoule•18m ago•0 comments

Veronika, the Tool-Using Cow

https://arstechnica.com/science/2026/01/meet-veronika-the-tool-using-cow/
3•nxobject•23m ago•1 comments

Nova Launcher Added Facebook and Google Ads Tracking

https://lemdro.id/post/lemdro.id/35049920
1•celsoazevedo•23m ago•1 comments

Show RLM Analyzer–AI code analysis using recursive LLMs(MIT CSAIL research)

https://npmjs.com/package/rlm-analyzer
1•zendizmo•24m ago•1 comments

Porsche Sold More Electrified Cars in Europe in 2025 Than Pure Gas-Powered Cars

https://newsroom.porsche.com/en/2026/company/porsche-deliveries-2025-41516.html
19•m463•26m ago•4 comments

Show HN: Prompt Reboot – a tool to surface failure modes in your prompt

https://www.promptreboot.com/
1•cedarscarlett•28m ago•0 comments

LinkedIn Causing 7000 Requests/Second? CPU Spike Across Fresh Systems

https://www.youtube.com/watch?v=24wNHf9JyMY
1•praveenscience•30m ago•0 comments

Harvard legal scholars debate the state of the U.S. constitution

https://www.harvardmagazine.com/social-sciences/is-the-constitution-broken
11•KnuthIsGod•32m ago•4 comments

How Much Is Eight Dollars?

https://defector.com/how-much-is-eight-dollars
3•MaysonL•34m ago•0 comments

The creator of Node.js says the era of writing code is over

https://jpcaparas.medium.com/the-creator-of-node-js-says-the-era-of-writing-code-is-over-8320c868...
3•CharlesW•39m ago•2 comments

Uber, often sued over car crashes, pushes for law to limit lawyer fees

https://www.latimes.com/california/story/2026-01-17/uber-personal-injury-lawsuits-california-law
6•sizzle•45m ago•1 comments

F5 tackles AI security with new platform extensions

https://www.networkworld.com/article/4118696/f5-tackles-ai-security-with-new-platform-extensions....
1•ohjeez•46m ago•0 comments

Uber Pushes to Cap Personal Injury Lawyer Payouts A.G. 25-0022 [pdf]

https://oag.ca.gov/system/files/initiatives/pdfs/25-0022A1%20%28Self%20Dealing%20Attorneys%29.pdf
5•sizzle•48m ago•0 comments

Austrian cow shows first case of flexible, multi-purpose tool use in cattle

https://www.amazon.com/IASEAHK-Cushions-Dining-Chairs-Kitchen/dp/B0DJCT6H9D/ref=sr_1_9?dib=eyJ2Ij...
2•bookmtn•49m ago•0 comments

SearchGuard: How Google detects bots and what the SerpAPI lawsuit reveals

https://searchengineland.com/inside-google-searchguard-467676
6•sans_souse•51m ago•0 comments

Show HN: AlgoSync – A social space for builders to share the "real" tech journey

https://www.algosyncverse.com/
1•lyquochao84•52m ago•1 comments

Netflix Ruined Korean Dramas Forever [video]

https://www.youtube.com/watch?v=p1_j6izmEX4
3•danhite•52m ago•1 comments

Opensync

https://github.com/waynesutton/opensync
1•handfuloflight•52m ago•0 comments

Bank of England 'must plan for a financial crisis triggered by aliens'

https://www.msn.com/en-gb/news/uknews/bank-of-england-must-plan-for-a-financial-crisis-triggered-...
7•matthewsinclair•1h ago•6 comments

EnergyNet Explained: Internetification of Energy Distribution

https://arxiv.org/abs/2509.08152
2•zekrioca•1h ago•0 comments

Scaling long-running autonomous coding

https://simonwillison.net/2026/Jan/19/scaling-long-running-autonomous-coding/
2•srameshc•1h ago•0 comments

Ask HN: Do Hackathons Still Matter in 2026?

4•rafaepta•1h ago•1 comments