TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Shine with Gleam

49 点作者 rockyj9 个月前

11 条评论

davedx9 个月前
Great programming lang article, starts with premises then shows examples, iterations, and final words. Gleam looks really interesting, though personally I’ll stick with TypeScript because it’s “good enough” and I understand where mutability can sneak in sometimes well enough these days.
oDot9 个月前
I rewrote my webapp, Nestful[0], in Gleam.<p>I use it in Vue components with Vleam[1]. About half of the frontend is rewritten at the moment, and it is a joy to use.<p>I&#x27;d do it again just for the error handling.<p>[0] <a href="https:&#x2F;&#x2F;nestful.app" rel="nofollow">https:&#x2F;&#x2F;nestful.app</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;vleam&#x2F;vleam">https:&#x2F;&#x2F;github.com&#x2F;vleam&#x2F;vleam</a>
zeroc89 个月前
I&#x27;m currently a Java developer working on a large code base. This is where Java&#x27;s object oriented nature really shows its weaknesses. Reading other people&#x27;s code becomes a huge pain, since everything is mutable and you can never be sure what state your program is in after a function call. Even C++ is better in that regard, at least you can pass values by copy or const reference. Gleam looks really nice at first glance. The problem of course is, as long as there is no industry support, it doesn&#x27;t make sense to invest into it. It may be ok for small side projects, but I wouldn&#x27;t dare starting a major application in something like that. Sooner or later you come across something you need and there is no library for it. Then you are forced to start messing around with FFI and whatnot.
评论 #41408223 未加载
评论 #41422977 未加载
k__9 个月前
Half-OT: Is there any effort on getting BEAM on WebAssembly? There was Lumen&#x2F;Firefly, but the repo got archived a few months ago.
widdershins9 个月前
&gt; the &quot;flattening&quot; above seems unnecessary but I could not avoid it since &quot;Result#map&quot; wraps the Result in another Result (I could not find a flat_map).<p>In Gleam, this is called `result.try`[1]<p>[1] <a href="https:&#x2F;&#x2F;hexdocs.pm&#x2F;gleam_stdlib&#x2F;gleam&#x2F;result.html#try" rel="nofollow">https:&#x2F;&#x2F;hexdocs.pm&#x2F;gleam_stdlib&#x2F;gleam&#x2F;result.html#try</a>
WuxiFingerHold9 个月前
A perfect hands-on introduction. Gleam is on the paper the &quot;Simpler Rust&quot;. Yet very powerful. But it&#x27;s so incredible hard to become relevant in the programming language world. As others have said: Typescript (esp. with Deno) is not that bad. Yes, error handling is miles away from Gleam, but is this enough for people to make the switch?
评论 #41408054 未加载
victorbjorklund9 个月前
As an elixir developer I&#x27;m so jealous at Gleam (but stay with Elixir because ecosystem and phoenix)
评论 #41407850 未加载
jroesner9 个月前
As always put together perfectly. Not only fun to read, but also a new item on my todo list.
dxxvi9 个月前
It seems to me that Scala has all the features that Gleam has. And they both run in VM&#x27;s. Scala is not very popular and Gleam is less popular that that. Someone must really love learning a new language to learn Gleam. I respect it very much.
评论 #41407898 未加载
评论 #41407533 未加载
评论 #41407644 未加载
sureglymop9 个月前
Gleam is great. I think adoption will highly depend on developer tooling, LSP, ide integration etc.<p>The experience is alright now but it has to get better to go mainstream (if that&#x27;s even desired). If I had time I&#x27;d love to contribute.
283042834092349 个月前
From <a href="https:&#x2F;&#x2F;gleam.run" rel="nofollow">https:&#x2F;&#x2F;gleam.run</a> :<p>&gt; Black lives matter. Trans rights are human rights. No nazi bullsh*t.<p>I agree, but I do not agree with painting people that disagree as &#x27;Nazi&#x27;.<p>*edit: that quote was from the Gleam website, not the website linked.
评论 #41407746 未加载
评论 #41407843 未加载
评论 #41410086 未加载
评论 #41407740 未加载
评论 #41408855 未加载