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.

Monocle: Optics Library for Scala

106 pointsby curling_grad6 months ago

10 comments

openplatypus6 months ago
Yes, using Monocle for years now. So happy to have rich ecosystem of libraries in Scala land.
solid_fuel6 months ago
I haven't encountered this pattern before. Is there some more information on what problems this is designed to solve?
评论 #42240640 未加载
评论 #42239928 未加载
评论 #42240319 未加载
评论 #42243273 未加载
评论 #42240550 未加载
评论 #42247571 未加载
mhitza6 months ago
Does the LSP provide clear autocomplete on what properties can be accessed on the bound _ ?<p>Asking as someone that doesn&#x27;t use Scala at all, but has seen the hit-and-miss of some FP language LSPs.
评论 #42242192 未加载
评论 #42242087 未加载
henning6 months ago
So behind the scenes, every one of those statements will make a whole new user object with a whole new address object so that it remains immutable? And whether that will actually have any real-world performance impact is I guess entirely situational. Still, what happens if you do that with a big object graph?<p>Also, the original strong need for immutable data in the first place is safety under concurrency and parallelism?
评论 #42240588 未加载
评论 #42240507 未加载
评论 #42240213 未加载
评论 #42241999 未加载
评论 #42242210 未加载
评论 #42240728 未加载
ldjkfkdsjnv6 months ago
Every scala code base I have worked on, that wasnt written by small team of experts, turned into a huge pile of crap. A small squad of people that treat the language like a religion create an impenetrable masterpiece
评论 #42240712 未加载
评论 #42240456 未加载
评论 #42243428 未加载
评论 #42240652 未加载
评论 #42246866 未加载
neonsunset6 months ago
Also in F#: <a href="https:&#x2F;&#x2F;fsprojects.github.io&#x2F;FSharpPlus&#x2F;lens.html" rel="nofollow">https:&#x2F;&#x2F;fsprojects.github.io&#x2F;FSharpPlus&#x2F;lens.html</a>
wk_end6 months ago
Also available for TypeScript:<p><a href="https:&#x2F;&#x2F;gcanti.github.io&#x2F;monocle-ts&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gcanti.github.io&#x2F;monocle-ts&#x2F;</a>
btreecat6 months ago
I&#x27;m still trying to reason what the value proposition of Scala is in a business sense.<p>Developer are more expensive and harder to find, the tooling is weaker, the ecosystem less deep, performance suspect, and the overall XP feels clunky.<p>Plus our hardware is procedural, and contains&#x2F;manages state within the instruction pipeline.<p>I strongly believe it doesn&#x27;t belong as a core business technology.
评论 #42245549 未加载
评论 #42246592 未加载
评论 #42247999 未加载
评论 #42247078 未加载
评论 #42246096 未加载
评论 #42249363 未加载
评论 #42246184 未加载
评论 #42247677 未加载
评论 #42246137 未加载
cultofmetatron6 months ago
am I the only one who isn&#x27;t a little disappointed that this wasn&#x27;t a library to model the physics of physical lenses?
评论 #42245171 未加载
itronitron6 months ago
This has nothing to do with optics, which is a branch of physics that studies the behavior and properties of light.
评论 #42241343 未加载
评论 #42242517 未加载
评论 #42241118 未加载
评论 #42241631 未加载
评论 #42241728 未加载
评论 #42242492 未加载
评论 #42241135 未加载
评论 #42240906 未加载