TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What'd be your preferable syntax style for a modern embeddable language?

1 pointsby dvnguyenover 2 years ago
What would be your favorite syntax style for a modern embeddable language - a.k.a. a 2022 Lua or elisp?

1 comment

pizzaover 2 years ago
Here is a mini-dsl that I think has a really neat syntax: einops<p>e.g. how to upsample an image 2x<p><pre><code> from einops import rearrange, repeat rearrange(repeat(img, &#x27;h w c -&gt; h w r1 r2 c&#x27;, r1=2, r2=2), &#x27;h w r1 r2 c -&gt; (h r1) (w r2) c&#x27;) </code></pre> there is something that is just so elegant to me about einops. I wish there were even more operations, but it&#x27;s simplicity is nice too.