frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Anatomy · a Skill for Claude Code

https://skills.wheresryan.sh/anatomy
1•bobajeff•35s ago•0 comments

Show HN: An interactive timeline of 20 years of Hacker News front page

https://www.adriankrebs.ch/hn-timeline
1•hubraumhugo•56s ago•0 comments

The Right Words in the Right Order – Notes on the Literacy Crisis

https://www.theideasletter.org/essay/the-right-words-in-the-right-order/
1•pseudolus•1m ago•0 comments

Show HN: VT Code – A terminal-first coding agent with sandboxed tools

https://github.com/vinhnx/VTCode
1•vinhnx•1m ago•0 comments

Armed federal agents knock on doors looking for noncitizen voters

https://www.cbsnews.com/news/federal-agents-seek-noncitizen-voters/
1•ck2•2m ago•0 comments

PHP2Shell

https://www.php2shell.com
1•nr378•2m ago•0 comments

Joseph Bell Was the Real-Life Inspiration for Sherlock Holmes

https://www.smithsonianmag.com/history/arthur-conan-doyle-based-sherlock-holmes-on-a-real-life-sc...
1•gmays•3m ago•0 comments

A tale of two PHP remote vulnerabilities

https://calif.io/php2shell.x/
1•sid_talks•4m ago•0 comments

LiveFrame – measure what video world models deliver on your hardware

https://github.com/kkjcodes/liveframe
1•kkjha7•5m ago•0 comments

Open-source Citus matches PlanetScale's Neki at 10M QPS on half the data nodes

https://stackgres.io/blog/open-source-citus-matches-planetscales-neki-at-10m-qps-on-half-the-data...
1•ahachete•5m ago•0 comments

Trump announces data center dividend

https://keithbrown.com/trump-data-center-dividend
4•drewlem•7m ago•0 comments

Show HN: CeruleanToolbox – Run Azure operations locally with a service principal

https://github.com/siris9476/CeruleanToolbox
1•siris9476•8m ago•0 comments

How the CIA Gave Steve Jobs Top Secret Clearance and Helped Him Return to Apple

https://brianroemmele.substack.com/p/how-the-cia-gave-steve-jobs-a-top
2•MaysonL•8m ago•0 comments

Legacy

https://longform.asmartbear.com/legacy/
1•tosh•8m ago•0 comments

Ask HN: Can we stay on topic?

1•jjsullivan5196•8m ago•1 comments

Starlink access in Ukraine a decision for Musk, not White House, Rubio says

https://www.reuters.com/world/rubio-says-witkoff-zelenskiy-meeting-positive-ideas-be-discussed-wi...
2•JumpCrisscross•9m ago•0 comments

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 out

https://www.php.net/index.php
46•timvdalen•10m ago•5 comments

Websites taken down across Europe ahead of critical cyber-security update

https://www.bbc.com/news/articles/cmly0lg3w5x2o
4•pieterr•10m ago•0 comments

Elephant-Goldfish-Model

https://github.com/google/elephant-goldfish-model
1•armdebug•11m ago•0 comments

PHP Vulnerability Rated 9.2, Highest Severity; EU Recommens Shutting Down Sites

https://finance.biggo.com/news/314e2cc6-2088-4681-bfc9-fbcd063bd3df
3•guytv•11m ago•0 comments

Large-scale predictive modeling in drug discovery: flow-based programming (2016)

https://link.springer.com/article/10.1186/s13321-016-0179-6
1•mpweiher•12m ago•0 comments

Wiki-driven development: coding agents update a wiki for you, you set direction

1•wek•13m ago•0 comments

Updated PHP version released to GitHub

https://github.com/php/php-src/releases/tag/php-8.2.35
90•tuyuri•14m ago•13 comments

Welcome to JavaOne (2012) [video]

https://www.youtube.com/watch?v=I5lAgaCbqZ0
1•brunoborges•14m ago•0 comments

Ask HN: Am I the only dev who, with the advent if AI, want to work in a forest?

3•aledevv•14m ago•4 comments

Self-hosted Claude Environments on secure open-source infrastructure

https://github.com/obot-platform/obot/
1•cjellick•14m ago•0 comments

The Architect Trap

https://medium.com/@oakley349/the-architect-trap-d08c860eaa5c
1•oakley349•14m ago•0 comments

Litellm 1.107.0 on PYPI Compromised

https://github.com/BerriAI/litellm/issues/47826
2•kykeonaut•16m ago•0 comments

LiteLLM Hijacked: Malicious 1.107.0 Wheels Steal Credentials

https://research.jfrog.com/post/litellm-hijacked-again/
2•SerCe•16m ago•0 comments

PHP2Shell: AI uncovers critical RCE in PHP

https://www.wiz.io/blog/php2shell-php-rce
7•danlark1•16m ago•0 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/