News for hackers. Stuff that matters.
Re:Erlang/OTP 26 Highlights by bcrosby95 on Tuesday May 16, 2023 @11:25AM (#35963127)
Have you seen Erlang syntax? That's why. Even some of the best programmers I know are very superficial.
Re:Erlang/OTP 26 Highlights by zelphirkalt on Tuesday May 16, 2023 @11:52AM (#35963562)
I don't actually find the syntax to be so bad. It can even be pretty neat with the pattern matching.
Re:Erlang/OTP 26 Highlights by 0x457 on Tuesday May 16, 2023 @12:27PM (#35964136)
I don't think it's bad, but it looks very alien. It's also very simple compared to say JavaScript or really anything else.

I understand why Elixir was born.

Re:Erlang/OTP 26 Highlights by aabbcc1241 on Tuesday May 16, 2023 @12:28PM (#35964152)
Maybe a transpiler and type checker that convert typescript into erlang can help to drive the adoption
Re:Erlang/OTP 26 Highlights by masklinn on Tuesday May 16, 2023 @01:02PM (#35964665)
That’s Elixir, pretty much.
Re:Erlang/OTP 26 Highlights by cjallen88 on Tuesday May 16, 2023 @02:45PM (#35965958)
Purescript has an erlang backend FYI
Re:Erlang/OTP 26 Highlights by aabbcc1241 on Tuesday May 16, 2023 @04:02PM (#35966998)
That's interesting!

I think Typescript would be "easier" for a larger group of developers to hook on

Re:Erlang/OTP 26 Highlights by datadeft on Tuesday May 16, 2023 @12:51PM (#35964508)
Have you seen the semantical aspects of that syntax?
Re:Erlang/OTP 26 Highlights by bcrosby95 on Tuesday May 16, 2023 @01:31PM (#35965071)
You're preaching to the choir. I've been singing the praises of Erlang for about 15 years now - since I discovered it via a competitor's open source project.
Re:Erlang/OTP 26 Highlights by datadeft on Tuesday May 16, 2023 @04:17PM (#35967185)
Same to me. I was just wondering. To me the weird part is justified with the expressiveness and the clarity Erlang brings to the table.
Re:Erlang/OTP 26 Highlights by waynesonfire on Tuesday May 16, 2023 @01:00PM (#35964632)
These syntaxes arguments are pathetic. It's actually pleasant to both read and write.
Re:Erlang/OTP 26 Highlights by njharman on Tuesday May 16, 2023 @01:47PM (#35965284)
I find C/C++, et al curly brace syntax and semi colon at end of line, maybe; syntax absolutely abhorrent. Erlang reads like a sentence commas, and period at end. There's very little syntax and it makes sense. The problem it is different than what 90% people learned programming on (curly brace languages).

But the hard part of Erlang is OTP / understanding the concepts or rather unlearning the concepts from other programming paradigms.

Re:Erlang/OTP 26 Highlights by tkhattra on Tuesday May 16, 2023 @05:18PM (#35967878)
i spent a couple of memorable weeks a few decades ago between jobs reading up on erlang, including joe armstrong's (RIP) wonderful phd thesis. when i started, erlang looked "strange" (i hadn't done much prolog in uni). but after being immersed in erlang for a few weeks, when i returned to look at some C/C++ code, they looked positively hideous compared to erlang's higher level functional, and prolog inspired pattern matching syntax.
Re:Erlang/OTP 26 Highlights by pjmlp on Tuesday May 16, 2023 @02:02PM (#35965455)
Depends on how much one likes Prolog.

Then again, languages lose adoption pitches based on whitespace and tabs significance.

Re:Erlang/OTP 26 Highlights by nvarsj on Tuesday May 16, 2023 @03:01PM (#35966151)
It does look pretty weird if you have only ever worked in an imperative language.

If one can get past the initial impression though, they'll find it's actually a very simple, nice language. Much simpler than Scala/C++ and probably even Java these days. Also simpler than other functional languages like Haskell. I picked it up in about 1-2 weeks. There's very few gotchas in the language or hidden complexity. It flows well.

I'll also add the language suits the usage pattern. Pattern matching works very well with the gen_server approach. And the binary syntax is so nice if you need to deal with over the wire protocols, as is common in distributed systems.

Re:Erlang/OTP 26 Highlights by SoftTalker on Tuesday May 16, 2023 @03:12PM (#35966291)
I like it. It took a bit of getting used to ("bit" here used to mean "pretty minimal amount"). I didn't find it to be any sort of hurdle, and Erlang meshes quite well with how I think about programming. It's my favorite language of any that I've used.