frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Tesla could owe millions after judge tentatively finds workplace discrimination

https://www.reuters.com/business/world-at-work/tesla-could-owe-millions-after-judge-tentatively-f...
2•gwu78•1m ago•0 comments

Mountain Lion Kill-Site Forensics Identify Predation Scavenging Kleptoparasitism

https://mountainlion.org/2020/11/03/mountain-lion-kill-site-forensics-identifying-predation-scave...
1•brudgers•1m ago•0 comments

The EU is sneaking mass surveillance through the backdoor

https://unherd.com/newsroom/the-eu-is-sneaking-mass-surveillance-through-the-backdoor/
2•g-b-r•3m ago•0 comments

Ring lattices are not safe in the quantum setting, and a proposed solution

https://thebarchive.com/b/thread/957272781
2•ccertain•4m ago•0 comments

AI Agents help your investments never die

https://arells.com
1•jeyakatsa•6m ago•0 comments

The Europa Concept (Full NASA Documentary) [video]

https://www.youtube.com/watch?v=Lbnb_HZP9io
2•rocho•9m ago•0 comments

Show HN: D20 Bench – Code-Graded Benchmark for LLMs as 5E Game Masters

https://d20bench.com
4•johnpolacek•9m ago•0 comments

Robot dogs and drones win DARPA's disaster triage challenge

https://arstechnica.com/science/2026/12/robot-dogs-and-drones-win-darpas-disaster-triage-challenge/
1•aghuang•9m ago•0 comments

Execution of the Migration to Post-Quantum Cryptography (June 2026) [pdf]

https://www.whitehouse.gov/wp-content/uploads/2026/06/M-26-15-Execution-of-the-Migration-to-Post-...
3•greekanalyst•10m ago•0 comments

RSS Still Works

https://toolbox.rss.here.now/
20•DeepLogin•11m ago•1 comments

Royal Society Publishing Photography Competition Finalists 2026

https://royalsociety.org/journals/publishing-activities/photo-competition/2026-winners-runners-up/
5•gnabgib•11m ago•0 comments

Show HN: Kapelle – Terminal chat room for your agents

https://github.com/EdwardLiuyc/kapelle
2•edwardliuyc•11m ago•0 comments

Want to test a nice Calendar for iOS en macOS? DailyCal

https://testflight.apple.com/join/ftKEMP6Q
4•marc0janssen•12m ago•0 comments

The Unknown Floor

https://www.symmetrybroken.com/the-unknown-floor/
2•riemannzeta•13m ago•0 comments

OpenBridge, a modern standard for industrial UIs

https://www.openbridge.no
2•starkparker•16m ago•0 comments

Ask HN: Buy a physical security key now, or wait for post-quantum versions?

2•zernoshka•18m ago•0 comments

Sub-1-Bit Qwen4-35B-A3B: It Runs Natively at 0.74 Bits. It Isn't Good Enough Yet

https://blog.aitherium.com/blog/sub-1-bit-qwen4-35b-littlebit2-awzeal
2•waizns•23m ago•0 comments

The answer to AI is engineering

https://ghuntley.com/answer/
3•coldblues•24m ago•0 comments

Sanctum: "Swap the classical ECDH part of the exchange from x25519 to secp384r1"

https://github.com/jorisvink/sanctum/commit/c0972c36ad9fcbd790427a08d7e8ea1cc2327d9e
4•jvink•25m ago•0 comments

Brazil Sends Google the Bill for YouTube's Fake AI Doctors

https://latinamericanpost.com/business-and-finance/brazil-sends-google-the-bill-for-youtubes-fake...
4•gnabgib•27m ago•0 comments

Slop Grenades

https://flaviocopes.com/slop-grenades/
2•jruohonen•29m ago•0 comments

Influencer arrested after rafting on storm-swollen Los Angeles river

https://www.yahoo.com/news/weather-news/articles/influencer-arrested-rafting-storm-swollen-015822...
3•gnabgib•30m ago•0 comments

Minisign 2 Is Here

https://00f.net/2026/12/04/minisign2/
3•Tomte•33m ago•0 comments

I'm Archiving the GTK Bindings

https://forum.crystal-lang.org/t/im-archiving-the-gtk-bindings/9601
11•ht_th•33m ago•1 comments

Science Fiction for People Who Hate Science Fiction

https://classicsofsciencefiction.com/2026/12/05/science-fiction-for-people-who-hate-science-fiction/
12•rdmuser•38m ago•7 comments

AGI timelines: when AI leaders expect human-level AI, with primary sources

https://www.boorix.com/research/agi-timelines/
2•knowtheworld•42m ago•0 comments

Chinese are mocking Elizabeth Warren after watching Jensen Huang hearings

https://twitter.com/ginamilan_/status/2129209632736653625
6•rmason•43m ago•2 comments

Mass town anonymous reporting system draws opposition over free speech concerns

https://www.cbsnews.com/boston/news/concord-massachusetts-hate-bias-anonymous-reporting-free-speech/
3•rmason•45m ago•0 comments

Cryptography rumors are getting more specific

https://www.johndcook.com/blog/2026/12/05/dlp-attack/
2•christophetd•48m ago•0 comments

The dumb phone you already own

https://www.smarterphone.co/
3•mgd•48m 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/