Live data from Hacker News

Gleam v1.12

github.com

21–30 of 91 posts

Re: Gleam v1.12

#21
post #14
post #8

Earlier quoted context omitted.

Depending when this was, it was likely pre-1.x days? Things moved very quickly there for a while - it's worth checking back in again. Gleam seems to have a lot of obvious influences from Rust, and the creator is a rust dev. While the Gleam ecosystem is vastly less mature than Elixir's or Rust's (because it's literally younger), the language itself, I've found, is vastly more pleasant to read/write. YMMV of course.

> Gleam seems to have a lot of obvious influences from Rust, and the creator is a rust dev. Hi! That's me! Gleam the language doesn't have any Rust influence really. It's a happy accident that some of the syntax ended up looking the same, but that's likely due to both being inspired by similar languages such as OCaml and the C family. Most the syntax and the semantics predate Gleam's compiler being rewritten in Rust.…

> The build tool is a rip-off of Cargo for sure though.

Hey, great artists steal, as the saying goes...

It's all shaped up really nice. I'm a big fan of Gleam and your work in general.

Re: Gleam v1.12

#22

Earlier quoted context omitted.

The Gleam community has been the best, most welcoming community I've ever seen on the internet. And I've been a around for a while. I attribute this in part to their clear stance.

I was welcomed too, and strongly encouraged to contribute. It was really nice. Though the signals might appear abrasive to some, it doesn't represent an abrasive group of people at all.

Joining their Discord and getting greeted by the language creator himself within a few minutes was pretty cool. Most other languages, their creators/maintainers seem so unapproachable and distant. You can talk directly with the core team on there, ask questions, etc. Louis really has built a pretty fun community around Gleam.

Re: Gleam v1.12

#23
post #8

Earlier quoted context omitted.

>It's just so elegant to read and write. Interesting. I was just about to write the opposite. I tried Gleam to solve last year's Advent of Code, and it felt like a weird mix between Rust and Elixir. You can't write code as elegantly as you'd do in Elixir, which was somewhat disappointing. I switched back to Elixir after a couple of days. I think the biggest advantage of Gleam is static type system.

Depending when this was, it was likely pre-1.x days? Things moved very quickly there for a while - it's worth checking back in again. Gleam seems to have a lot of obvious influences from Rust, and the creator is a rust dev. While the Gleam ecosystem is vastly less mature than Elixir's or Rust's (because it's literally younger), the language itself, I've found, is vastly more pleasant to read/write. YMMV of course.

more like both gleam and rust have a strong ML influence (gleam might actually consider itself an ML? not sure about that, but it's definitely a descendant)

Re: Gleam v1.12

#24

The official website has an interesting footer > As a community, we want to be friendly too. People from around the world, of all backgrounds, genders, and experience levels are welcome and respected equally. See our community code of conduct for more. Black lives matter. Trans rights are human rights. No nazi bullsh*t. On one hand I applaud that their community standards are inclusive, but on the other hand, it shou…

> It's just another programming language, not a political platform

Politics is baked into everything we do, like the lack of any political messaging is still a political message. With this approach, it weeds out those that don't align with the core community which is ideal for an organization that only thrives with volunteer involvement.

Re: Gleam v1.12

#25

The official website has an interesting footer > As a community, we want to be friendly too. People from around the world, of all backgrounds, genders, and experience levels are welcome and respected equally. See our community code of conduct for more. Black lives matter. Trans rights are human rights. No nazi bullsh*t. On one hand I applaud that their community standards are inclusive, but on the other hand, it shou…

I used to be on the fence with this, finding the ideology-forward attitude fairly abrasive. I've since decided that while I don't love it, I see the perceived necessity of it that some people have. I enjoy the privilege of living somewhere and being a person who no one cares to cause problems for. Some people don't have that experience, and are targeted routinely and unfairly. I see it like they put up these barriers…

I used to think it was kinda pander-y, but then after participating in some of these communities it was just obnoxious when it wasn't stated, the cultural wedge between people. Where randomly there was drama from someone posting an unrelated yet offensive meme/joke, then it was a huge discussion on if it was ban worthy, if it was okay to joke about, or xyz. When really I just wanted to be nerdy with others.

Re: Gleam v1.12

#26

The official website has an interesting footer > As a community, we want to be friendly too. People from around the world, of all backgrounds, genders, and experience levels are welcome and respected equally. See our community code of conduct for more. Black lives matter. Trans rights are human rights. No nazi bullsh*t. On one hand I applaud that their community standards are inclusive, but on the other hand, it shou…

I used to be on the fence with this, finding the ideology-forward attitude fairly abrasive. I've since decided that while I don't love it, I see the perceived necessity of it that some people have. I enjoy the privilege of living somewhere and being a person who no one cares to cause problems for. Some people don't have that experience, and are targeted routinely and unfairly. I see it like they put up these barriers…

I dunno, it seems like everyone should have learned lessons from the sordid scala and node drama incidents, but instead they're just forgotten.

Don't make in groups and out groups. Just have a "be nice" rule and leave it at that.

Re: Gleam v1.12

#27

The official website has an interesting footer > As a community, we want to be friendly too. People from around the world, of all backgrounds, genders, and experience levels are welcome and respected equally. See our community code of conduct for more. Black lives matter. Trans rights are human rights. No nazi bullsh*t. On one hand I applaud that their community standards are inclusive, but on the other hand, it shou…

Being anti-nazi is not ideological.

Of course it is. You can't be against anything without an idea, without it you wouldn't be opposed, you'd just not give a shit. Not caring isn't ideological just like not believing in god isn't, but being anti-god? That's pure ideology.

Re: Gleam v1.12

#28

Earlier quoted context omitted.

I used to be on the fence with this, finding the ideology-forward attitude fairly abrasive. I've since decided that while I don't love it, I see the perceived necessity of it that some people have. I enjoy the privilege of living somewhere and being a person who no one cares to cause problems for. Some people don't have that experience, and are targeted routinely and unfairly. I see it like they put up these barriers…

I dunno, it seems like everyone should have learned lessons from the sordid scala and node drama incidents, but instead they're just forgotten. Don't make in groups and out groups. Just have a "be nice" rule and leave it at that.

The trouble is that nazis think it's very nice to get rid of the untouchables. Life is messy, you've got to set some boundaries and stick to them or jerks gum up the works.

Re: Gleam v1.12

#29
post #25

Earlier quoted context omitted.

I used to be on the fence with this, finding the ideology-forward attitude fairly abrasive. I've since decided that while I don't love it, I see the perceived necessity of it that some people have. I enjoy the privilege of living somewhere and being a person who no one cares to cause problems for. Some people don't have that experience, and are targeted routinely and unfairly. I see it like they put up these barriers…

I used to think it was kinda pander-y, but then after participating in some of these communities it was just obnoxious when it wasn't stated, the cultural wedge between people. Where randomly there was drama from someone posting an unrelated yet offensive meme/joke, then it was a huge discussion on if it was ban worthy, if it was okay to joke about, or xyz. When really I just wanted to be nerdy with others.

I get that. You can put up the signs, but it doesn't need to be a regular, loud topic in the community. In fact, the signs should serve to prevent the need to discuss it in the community and make moderation cleaner and easier.

Re: Gleam v1.12

#30
post #2

Some highlights from this release are listed here[1]. The best part of Gleam in my opinion is the language's design. It's just so elegant to read and write. Take this example code snippet from the release notes: pub fn find_book() -> Result(Book, LibraryError) { case ask_for_isbn() { Error(error) -> Error(error) Ok(isbn) -> load_book(isbn) } } It's a trivial code snippet, but I'm finding this kind of "first class" pa…

Error(error) -> Error(error) has strong if err != nil { return err; } vibes, and I don't consider that a good thing.

That's what Gleam's use expressions[1] are for (the last example is exactly this case). Most languages with the same heritage as Gleam have grown a similar syntactical feature, such as OCaml's binding operators or F#'s computation expressions. Although I appreciate how simple Gleam's is while having similar power.

[1]: https://gleam.run/news/v0.25-introducing-use-expressions/

Post reply on HN