News for hackers. Stuff that matters.
Re:Ask HN: The Crystal programming language – what are your ... by javajosh on Thursday April 28, 2022 @11:19AM (#31193568)
Every programming language needs to confront the fact that it's distribution, not syntax, that matters, and nothing else. And JavaScript won distribution. By a landslide. There are many lovely languages out there, and you can certainly describe your personal processes or even your server processes with them, but ultimately you will be limited by ad hoc and brittle distribution systems, and their adoption will reach some small asymptote.
Re:Ask HN: The Crystal programming language – what are your ... by capableweb on Thursday April 28, 2022 @11:43AM (#31193928)
> Every programming language needs to confront the fact that it's distribution, not syntax, that matters, and nothing else.

Every programmer needs to confront that the fact that their opinion about what really matters, isn't the same thing for them as it is for others. And even more so, what really matters changes based on what context you're using the language in, and what you're building.

There is not a single metric that decides if a programming language "wins" or not. What does that even mean?

For me, Clojure won a long time ago, because what does matter is simplicity. But I also realize that this is a personal opinion, not something that I spread as "fact" for others to finally realize.

Re:Ask HN: The Crystal programming language – what are your ... by javajosh on Thursday April 28, 2022 @12:21PM (#31194481)
>There is not a single metric that decides if a programming language "wins" or not

Yes there is: it's the number of currently running processes described by that language. In practice this means counting every tab in every browser on every device on Earth. Even the largest DC operators in the world, Amazon, Google, Microsoft, NSA, etc who run sophisticated bespoke software distribution systems that support all kinds of runtimes, cannot compare in number to everything else. (Although it wouldn't surprise me if one or more of them attempts to maintain a stateful process for every man woman and child on Earth. That's still not enough.)

Re:Ask HN: The Crystal programming language – what are your ... by saghm on Thursday April 28, 2022 @01:32PM (#31195465)
I think you misunderstand what GP meant; by "not a single metric", I don't think they mean "there is no metric" but "there's not solely one metric". The one you give is reasonable in some contexts, but not every language is trying to optimize for that. "Winning" is relative to how you define the game, and not everyone will agree your definition is the one they care about.
Re:Ask HN: The Crystal programming language – what are your ... by javajosh on Thursday April 28, 2022 @03:41PM (#31197261)
If people don't like an assertion on which I base my analysis they can and should throw out the result. I am making a bold assertion, but I really think its right, so if you understand it enough to disagree with it, I'll call that a win. But I personally think the success criteria I've specified is not debatable, except of course as fodder for those who like to debate.
Re:Ask HN: The Crystal programming language – what are your ... by capableweb on Thursday April 28, 2022 @04:57PM (#31198117)
> But I personally think the success criteria I've specified is not debatable

I take it as you see "success" in terms of programming languages as something objective then, not subjective?

Re:Ask HN: The Crystal programming language – what are your ... by iostream24 on Friday April 29, 2022 @12:08AM (#31201324)
I have another metric called “performance” that JavaScript is not the winner of. JavaScript is a fact of life in web browsers, less so on servers. I really would only ever use Nodejs as a build tool on my dev box, but perhaps you can advise me of other uses. I don’t consider a long running public facing service to be a good fit for node due to such a VMs memory behavior over time.
Re:Ask HN: The Crystal programming language – what are your ... by WaffleIronMaker on Thursday April 28, 2022 @08:03PM (#31199745)
I mean, that's an interesting point, but you have defined winning only on a macroscopic scale. On an individual level, winning takes on much more subjective criteria, and I think that's what people typically need information about when making language decisions. Quantity of users is interesting, but I'm certainly not writing an OS in Python because it ranks higher than C on TIOBE, and I'm not going to discount smaller languages that I can use effectively on the sole merit that other languages are more popular.

Languages are tools that solve a problem, and it is possible for them to both be used by relatively few people and still successfully solve a problem.

For example, though Elixir is not as popular as Go, Elixir might win for me because I think it has a better concurrency model. Elixir is not globally used more than Go, but nonetheless it is my winner, and the people who pour their time into the product have still done an admirable job.

Re:Ask HN: The Crystal programming language – what are your ... by randito on Thursday April 28, 2022 @05:07PM (#31198232)
There's a great talk -- https://www.youtube.com/watch?v=QyJZzq0v7Z4 -- Why Isn't Functional Programming the Norm? – Richard Feldman -- that goes into this.

It's a discussion of "why" programming languages succeed.

Re:Ask HN: The Crystal programming language – what are your ... by sshine on Thursday April 28, 2022 @11:33AM (#31193761)
I fully agree.

A part of distribution is mature, easy to install and use toolchain. Another is a wealth of accessible packages. A third is being able to run on popular platforms. The only way to beat JS is eventually wasm.

Re:Ask HN: The Crystal programming language – what are your ... by sph on Thursday April 28, 2022 @06:38PM (#31199113)
Thankfully, humans are flawed so don't all go for the most perfect choice every time, because sometimes they want to try something _different_.

If we were robots, we would sit 8 hours a day in grey cubicles to write Java and Javascript because they have the biggest ecosystem and mindshare, increasing our productivity.

But I'm a human, for my small projects I optimise for other metrics than hireability. And truth be told, even at work sometimes I try to make my code writing a little fun with smaller ecosystems that spark joy.

Re:Ask HN: The Crystal programming language – what are your ... by iomcr on Thursday April 28, 2022 @09:06PM (#31200177)
Since we're on about distribution, I converted a nodejs application to Crystal. The docker containers were 1GB vs 20MB.
Re:Ask HN: The Crystal programming language – what are your ... by buffington on Thursday April 28, 2022 @11:35AM (#31193789)
While I don't disagree, what do you think of Crystal?
Re:Ask HN: The Crystal programming language – what are your ... by JohnDeHope on Thursday April 28, 2022 @11:41AM (#31193899)
I am interested in this topic. What is it that needs to be distributed: the compiler, the runtime environment, the attached debugger, the package manager client, the UI availability, the discoverability, the (relatively) safe execution? JavaScript had a lot of things going for it, but I wonder what was the thing that got distributed that won.
Re:Ask HN: The Crystal programming language – what are your ... by tsegratis on Thursday April 28, 2022 @12:18PM (#31194428)
Begins with B, ends with R, 7 letters

B _ _ _ _ _ R

Re:Ask HN: The Crystal programming language – what are your ... by saghm on Thursday April 28, 2022 @01:34PM (#31195495)
Blender? Bendier? Beefier?
Re:Ask HN: The Crystal programming language – what are your ... by tsegratis on Thursday April 28, 2022 @01:52PM (#31195772)
Rhymes with Trouser...
Re:Ask HN: The Crystal programming language – what are your ... by valbaca on Thursday April 28, 2022 @12:23PM (#31194501)
???
Re:Ask HN: The Crystal programming language – what are your ... by otabdeveloper4 on Friday April 29, 2022 @11:36AM (#31206507)
"Distribution" isn't a problem solved by programming languages.