frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

AI Connector by Plumrocket

https://commercemarketplace.adobe.com/plumrocket-ai-connector.html
1•pearsonand•29s ago•0 comments

Xbox CEO Asha Sharma, who laid off 3,200 employees, to lead task force on jobs

https://www.pcgamer.com/gaming-industry/us-federal-reserve-taps-xbox-ceo-asha-sharma-who-just-lai...
2•robtherobber•1m ago•0 comments

Immutable Versions on Packagist

https://blog.packagist.com/immutable-versions-on-packagist/
1•moebrowne•2m ago•0 comments

Smart Cellular Bricks: Towards Collective Intelligence for the Physical World

https://sakana.ai/smart-cellular-bricks/
1•hardmaru•3m ago•0 comments

Fuck.com (1997)

https://www.links.net/webpub/fuck.com.html
1•downbad_•5m ago•0 comments

Imprisoned in My Own Mind

https://ahmedhossvm.dev/posts/imprisoned_in_my_own_mind/
1•ahmedhosssam•6m ago•0 comments

Show HN: Mock Chats – Make viral chat-story videos

https://www.mockchats.com/
2•oliverbenns•8m ago•0 comments

Commodore Amiga 500 Artwork

https://gibbok.github.io/amiga-500-art/index.html
2•doener•10m ago•0 comments

AI creating a Jevon's Paradox for lawsuits, deals and litigation [video]

https://www.youtube.com/watch?v=_uWnr42zGnE
1•OgsyedIE•10m ago•0 comments

ClipBridge – self-hosted clipboard sync for iPhone, Windows, and Mac

https://github.com/andreasserfilippi/clipbridge
1•Andreas4252222•11m ago•0 comments

Show HN: Vakh, a social platform for all things

https://vakh.com/
1•ajaychl•12m ago•0 comments

Show HN: Turn meeting recordings into searchable transcripts. All local

https://motionobj.com/minutefile/
2•hboon•12m ago•0 comments

Domain Expired – You Have 30 Days Before It's Gone Forever

https://urlwatch.io/blog/domain-grace-period-recovery.php
1•urlwatch•17m ago•0 comments

DolphinDB v3.00.6 and v2.00.19: Introducing DolphinX for Enterprise AI Agents

https://medium.com/@DolphinDB_Inc/dolphindb-v3-00-6-ecde33229456
2•yiweileng•19m ago•0 comments

Dancing with the Gods (1995)

http://www.catb.org/esr/writings/dancing.html
1•fbrusch•19m ago•0 comments

Nokia DCT3 Emulator

https://github.com/djr-747/nokia-dct3-emulator
2•71bw•23m ago•0 comments

Show HN: Narada – a browser built for agents, under your control

https://narada.koley.in/
1•arkokoley•24m ago•0 comments

Show HN: GGUFun, play snake and a simple maze on Ollama using hand crafted GGUFs

https://ggufun.grokked.it
1•grokkedit•25m ago•0 comments

The Human Cost of DOGE's War on USA.I.D.

https://www.newyorker.com/news/the-new-yorker-interview/the-human-cost-of-doges-war-on-usaid
2•doener•26m ago•0 comments

SticiGui – Statistics Tools for Internet and Classroom Instruction with a GUI

https://www.stat.berkeley.edu/~stark/SticiGui/index.htm
1•the-mitr•26m ago•0 comments

Ask HN: Which Chinese open source projects are you using?

2•khurs•38m ago•1 comments

Race into Space Is the Free Version of Interplay's Buzz Aldrin's Race into Space

https://github.com/raceintospace/raceintospace
1•_____k•41m ago•0 comments

How to Automate API Testing

https://keploy.io/blog/community/api-automation-testing
1•alokky•41m ago•0 comments

A local HTTP-to-SOCKS5 proxy bridge for Chrome

https://github.com/proxybasehq/socks5-bridge
2•m00dy•44m ago•0 comments

Zig Creator Calls Spade a Spade, Anthropic Blows Smoke

https://raymyers.org/post/zed-creator-calls-spade-a-spade/
81•crowdhailer•49m ago•37 comments

Muse Spark 1.1: Meta gains 8 Intelligence Index points in three months

https://artificialanalysis.ai/articles/muse-spark-1-1-everything-you-need-to-know
2•himata4113•51m ago•1 comments

Nock – System-wide sound and haptics for macOS (free, zero idle wake-ups)

https://nock.numericnetworks.com
2•abhiramssabhi•52m ago•1 comments

The Most Difficult Bugs to Fix in Software Development

https://raoufia2012-ship-it.github.io/difficult-bugs-guide/
2•theanonymousone•52m ago•0 comments

Device Context Protocol – Bridge LLM Agents to Physical Devices

https://github.com/device-context-protocol/dcp
2•manchoz•52m ago•0 comments

Major trial finds healthy behaviors help brain health in older adults

https://www.nbcnews.com/health/aging/major-international-trial-finds-healthy-behaviors-help-brain...
3•vrganj•55m 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/