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•10mo ago

Comments

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

Bleep – Local AI DLP proxy that catches secrets before they reach ChatGPT

https://www.bleep-it.com
1•llmhub•24s ago•0 comments

People Making a Killing Gambling on War

https://www.racket.news/p/warriors-casino-the-people-making
1•oopsiremembered•44s ago•0 comments

Ask HN: Do you feel less happy when coding with agent?

1•zane__chen•1m ago•0 comments

Reward, Risk, and Regulation: American Attitudes Toward Artificial Intelligence [pdf]

https://www.gallup.com/file/analytics/695027/SCSP-Gallup-American-Perspectives-AI_Report.pdf
1•djoldman•2m ago•0 comments

Metasystemic

https://metasystemic.xyz
1•gdss•5m ago•0 comments

MiniStack: Free, open-source LocalStack alternative with real DB containers

https://ministack.org
1•nnucera•6m ago•0 comments

Humane's AI pin is now HP's Copilot

https://gizmodo.com/this-is-what-has-become-of-the-humane-ai-pin-an-enterprise-laptop-chatbot-200...
2•lemonish97•8m ago•0 comments

Does nobody care about not being able to copy from Slack anymore?

4•neal_caffrey•10m ago•0 comments

A daily brief of what the top podcasts are saying

https://www.podsnacks.com/
2•siruva07•12m ago•0 comments

NASA unveils Space Reactor-1 Freedom mission to Mars in 2028

https://www.nasaspaceflight.com/2026/03/nasa-sr1-freedom-mars-2028/
2•LorenDB•12m ago•0 comments

Stack Overflow for Agents

https://arstechnica.com/ai/2026/03/mozilla-dev-introduces-cq-a-stack-overflow-for-agents/
3•greedo•12m ago•0 comments

Tell HN: Llamacpp now supports unified system RAM offloading on Linux

4•dabockster•15m ago•0 comments

OpenAI shutters AI video generator Sora after just six months

https://www.theguardian.com/technology/2026/mar/24/openai-ai-video-sora
2•auggierose•16m ago•1 comments

Rgx – terminal regex debugger with JSON output, colored matching, and 3 engines

https://github.com/brevity1swos/rgx
3•brevity1swos•16m ago•0 comments

Ask HN: Does the Gmail iOS app often hang in iOS 26?

3•lysace•18m ago•1 comments

How we made Ramp Sheets self-maintaining

https://twitter.com/i/status/2036165188899012655
2•pongogogo•18m ago•0 comments

Litellm wasn't just attacked – code executed before the app even started

2•Olsberg•19m ago•0 comments

Firefox now has free 50Gb built-in VPN

https://support.mozilla.org/en-US/kb/built-in-vpn
2•Gaishan•19m ago•0 comments

Hypnic Jerk

https://en.wikipedia.org/wiki/Hypnic_jerk
2•thunderbong•19m ago•0 comments

Predicting onset of symptomatic Alzheimerʼs disease with plasma p-tau217 clocks

https://www.nature.com/articles/s41591-026-04206-y
1•bookofjoe•20m ago•0 comments

Hash23 – A constexpr implementation of different hashing algorithms

https://github.com/rwindegger/hash23
1•superreeen•22m ago•0 comments

Static Machine Code Analysis

https://tetzank.github.io/posts/static-machine-code-analysis/
1•ibobev•23m ago•0 comments

4 Types of Quantum Computers Explained [video]

https://www.youtube.com/watch?v=l8L7afabIJ0
1•jonbaer•24m ago•0 comments

Owls of Germany

https://liebesgermany.wordpress.com/2012/12/28/owls-of-germany/
2•martialg•27m ago•0 comments

Newly purchased Vizio TVs now require Walmart accounts to use smart features

https://arstechnica.com/gadgets/2026/03/newly-purchased-vizio-tvs-now-require-walmart-accounts-to...
4•kotaKat•28m ago•0 comments

Australia's emergency plan starts with carpooling, escalates to fuel caps

https://www.smh.com.au/politics/federal/australia-s-emergency-plan-starts-with-carpooling-escalat...
3•KnuthIsGod•29m ago•1 comments

Type Construction and Cycle Detection

https://go.dev/blog/type-construction-and-cycle-detection
2•commotionfever•31m ago•0 comments

Minimal Version Selection Revisited (2024)

https://matklad.github.io/2024/12/24/minimal-version-selection-revisited.html
1•vinhnx•33m ago•0 comments

Show HN: Watermolecules

https://unrealwill.github.io/watermolecules/
1•GistNoesis•34m ago•1 comments

Show HN: I replaced Substack's algorithm with a chronological feed of new posts

https://findsubstack.com
2•meander_water•36m ago•2 comments