frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

An Agent's Breath. The Heart Beats by Itself, Breathing Is a Choice

https://piotrzientara.pl/agent-breath/
1•piotrzientara•52s ago•0 comments

If you are browsing in Chrome / Firefox in desktop you should try this extension

https://chromewebstore.google.com/detail/digital-shield-tab-suspen/pkonihncnkmbejhhjadaognganhinnhc
1•digitaShida•2m ago•1 comments

The Cornetto Ice Cream Cone Framework for Prompting

https://hazn.com/cornetto
1•hazn•4m ago•0 comments

Ternary-Bonsai-8B-Gguf

https://huggingface.co/prism-ml/Ternary-Bonsai-8B-gguf
1•Bluestein•5m ago•0 comments

How Efficient Is Each Type of EV Charger? (2024)

https://insideevs.com/features/711659/ev-charger-efficiency-losses/
1•cisc•5m ago•0 comments

Show Your Work

https://jagasantagostino.com/blog/show-your-work
1•andsoitis•7m ago•0 comments

Tactile controls in a digital world (2024)

https://jenson.org/airpod/
1•andsoitis•12m ago•0 comments

Ask HN: What to focus on in this age of AI

1•yernarak•16m ago•1 comments

If AI coding is lowering your code quality, you're not managing quality right

https://www.i-kh.net/p/if-ai-coding-is-lowering-your-code
2•bucket2015•16m ago•0 comments

Humans Are the Only Real Agents

https://aboard.com/humans-are-the-only-real-agents/
1•k1m•18m ago•0 comments

velocity content marketing

https://www.briefiq.io/blog/what-is-content-velocity-in-seo-and-why-it-matters/
1•infofusioninnov•19m ago•0 comments

The Ma of a New Machine

https://jenson.org/ma/
1•andsoitis•24m ago•0 comments

Germany's green developers hit a wall: Insolvencies, tighter credit

https://www.briefs.co/news/germany-s-green-developers-hit-a-wall-insolvencies-tighter-c/
1•leonidasrup•28m ago•0 comments

Apache Cassandra 6 Accord transactions: What you need to know

https://www.instaclustr.com/blog/apache-cassandra-6-accord-transactions-what-you-need-to-know/
2•lewisl9029•29m ago•0 comments

Underclass: An OpenAI-compatible pooling proxy that pins sessions to one account

https://github.com/ghuntley/underclass
1•ghuntley•29m ago•0 comments

Romanian Crime Rings Are Draining U.S. Welfare Accounts

https://www.wsj.com/us-news/how-romanian-crime-rings-are-draining-u-s-welfare-accounts-c9750d32
2•impish9208•29m ago•1 comments

Scott Jenson: Are we going to use the same Desktop UX forever? [video]

https://www.youtube.com/watch?v=V7AfAcQwLW0
2•Topfi•29m ago•1 comments

Post Messages via Get

https://swarmmemo.com/
3•montenegrohugo•30m ago•1 comments

Doomsday: Friday, 13 November, A.D. 2026 (1960)

https://www.science.org/doi/10.1126/science.132.3436.1291
4•Metacelsus•32m ago•1 comments

DQuic: Extending QUIC for P2P and Multipath Transport

https://docs.dhttp.net/en/docs/protocol/dquic
1•Arya_xiaofan•32m ago•1 comments

Ask HN: If frontier models were free, would we produce better or worse software?

1•kandros•34m ago•0 comments

I'm Tired of the AI Tone

https://sagivo.com/blog/im-tired-of-the-ai-tone
12•sagivo•35m ago•8 comments

The Many Faces of Information Geometry [2023]

https://chinougea.medium.com/the-many-faces-of-information-geometry-89f6654c1cb4
3•the-mitr•40m ago•0 comments

Fastest Coding Agent (5x faster than Codex)

https://cotyper.com/
3•sumitsrivastava•43m ago•0 comments

Do you need a technical cofounder?

https://ivelum.com/blog/do-you-need-a-technical-cofounder/
3•stebunovd•44m ago•0 comments

A MySQL plugin that filters rows by meaning (built on TypeSafe Jev)

https://github.com/maayanlevy/mysql-ailike
2•maayanlevy-hn•49m ago•0 comments

Chat GPT for Seniors

https://shop.anthem.co.uk/store/products,chat-gpt-for-seniors_2646.htm?redir=true
3•jjgreen•50m ago•1 comments

Tiny Hairs That Help Corals Breathe May Malfunction in Warming Oceans

https://www.wired.com/story/tiny-hairs-that-help-corals-breathe-may-malfunction-in-warming-oceans/
3•joozio•52m ago•0 comments

Understanding Go's Escape Analysis

https://thecodinggopher.substack.com/p/understanding-gos-escape-analysis
3•adletbalzhanov•54m ago•1 comments

Show HN: A free website grader that explains the fixes in plain English

https://we.inc/tools/website-grader
2•umairalisadaqat•56m ago•1 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/