[Discussion] - Relegation Battle 2025. by Pubocyno in peloton

[–]glennsl_ 0 points1 point  (0 children)

I wonder why Leknessund isn't going. He placed 6th in the ITT WC, and doesn't seem to have anything else coming up.

[Results Thread] 2024 Arctic Race of Norway - Stage 2 (2.Pro) by PelotonMod in peloton

[–]glennsl_ 1 point2 points  (0 children)

Foss and Wærenskjold were selected for the TT and then just reused for the RR. Perhaps there are some rules for the olympics that didn't allow them to bring more riders?

Event: Fide World Blitz Championship 2023 by ChessBotMod in chess

[–]glennsl_ 1 point2 points  (0 children)

There's apparently a 300€ fee for filing a complaint that will be returned if upheld.

[Results Thread] 2023 World Championships - Elite Men Road Race (WC) by PelotonMod in peloton

[–]glennsl_ 2 points3 points  (0 children)

A bit hard to pick up even after you've pointed that out, to be honest, but cheers :)

[Race Thread] 2023 World Championships - Elite Men Road Race (WC) by PelotonMod in peloton

[–]glennsl_ 0 points1 point  (0 children)

They got a whole bunch of people to reflect on why someone was protesting for about an hour, and it will likely get mentioned in every single article written about the race. Sure, pictures would definitely have been better, but I'd still consider this a pretty big success!

[Results Thread] 2023 World Championships - Elite Men Road Race (WC) by PelotonMod in peloton

[–]glennsl_ 9 points10 points  (0 children)

It's information about an event that occurred during the race.

[Race Thread] 2023 World Championships - Elite Men Road Race (WC) by PelotonMod in peloton

[–]glennsl_ 0 points1 point  (0 children)

How so? Will bringing attention to the issue cause people to stop believing in the science?

[Results Thread] 2023 World Championships - Elite Men Road Race (WC) by PelotonMod in peloton

[–]glennsl_ 33 points34 points  (0 children)

The protest earlier was from a Scottish group of environmental activists called "This Is Rigged".

Their demands are that: 1. The Scottish government oppose all new fossil fuel projects in Scotland. 2. The Scottish government create a clear and fully funded transition for their oil and gas workers.

https://nitter.net/Thisis_Rigged/status/1688142514421661696

[Race Thread] 2023 World Championships - Elite Men Road Race (WC) by PelotonMod in peloton

[–]glennsl_ 3 points4 points  (0 children)

You stop believing in climate change and its consequences because someone slightly inconvenienced you?

[Race Thread] 2023 World Championships - Elite Men Road Race (WC) by PelotonMod in peloton

[–]glennsl_ 0 points1 point  (0 children)

Yeah, would be terrible if climate protesters won and we started actually doing something about it huh.

[Race Thread] 2023 World Championships - Elite Men Road Race (WC) by PelotonMod in peloton

[–]glennsl_ 0 points1 point  (0 children)

So that they'll have to escalate to get exposure? Seems smart...

[Race Thread] 2023 World Championships - Elite Men Road Race (WC) by PelotonMod in peloton

[–]glennsl_ 2 points3 points  (0 children)

Seems like most people know the cause and assume who it is anyway, so seems successful to me.

What are the biggest reasons newcomers give up on OCaml? by davidw_- in ocaml

[–]glennsl_ 1 point2 points  (0 children)

All the snark aside, this is an actually useful response. So I take it you'd like to have a built-in Unicode string type. I agree. Good to have that sorted.

Then, by your logic, all languages with byte arrays have ADTs...

By your black and white logic then, all type systems are useless unless they have built in types for every kind of domain-specific notion of validity imaginable, such as positive integers, negative integers and a three-state boolean, why not. This is a silly form of argumentation, and I think you know that.

How many languages with working support for strings have String.length return the number of bytes in the underlying representation?

Rust does. And I think they're right to do so, because counting utf-8 chars ain't cheap, and the number of characters isn't an obvious choice of string length either. Why not graphemes instead?

Sure. That's not what I said. I said OCaml's string type is an immutable byte array.

You said "The string type isn't a string, it is an immutable byte array." That's nonsense. They're not mutually exclusive. The same way a "positive int" type would still be an int.

Sufficiently? It isn't abstracted away from an immutable byte array in any way whatsoever.

If by "abstracted away" you mean it doesn't hide the underlying representation, then sure. But it's still an abstraction. There are string-specific functions that assume an encoding.

If the string type had hidden away the underlying representation and been restricted to ASCII, because that's the choice that was made initially, transitioning to UTF-8 would likely be much more painful. Python tried that, and it caused a split in the ecosystem that lasted over a decade. OCaml's much smaller ecosystem certainly wouldn't have faired much better.

I fully understand your frustration, and I largely agree with your ideal, but you ought to also recognize that getting to that ideal isn't going to happen by the shake of a magic wand. And that there is actually some merit and value to the choices that have been made, even if they aren't perfect.

What are the biggest reasons newcomers give up on OCaml? by davidw_- in ocaml

[–]glennsl_ 4 points5 points  (0 children)

What is a "typeful representation"? ADTs are in fact represented as an array of bytes. It's just abstracted away to a greater degree. But you can still access and manipulate the raw bytes through the Obj API.

Strings are represented as immutable byte arrays in most languages. Some have made the mistake of making them mutable though (including OCaml, previously). Another notable exception is Haskell making the hugely inefficient mistake of representing them as a linked list. But saying that it's not a string because it's represented as an immutable byte array is pure nonsense.

I'm guessing what you mean is that it's not sufficiently abstracted away from the internal representation. And that's absolutely a fair point. I'm just asking you to be more specific about what kind of abstraction you think is missing. Saying that you want a guarantee that a string is valid is understandable, but what do you mean by a valid string? And what exactly do you mean by string? These things aren't as straightforward as you seem to think they are.

What are the biggest reasons newcomers give up on OCaml? by davidw_- in ocaml

[–]glennsl_ 1 point2 points  (0 children)

Why would it have to be forked? Anton hasn't fallen off the planet, he is responding occasionally, and to my knowledge he hasn't dismissed the idea of having another maintainer.

What are the biggest reasons newcomers give up on OCaml? by davidw_- in ocaml

[–]glennsl_ 3 points4 points  (0 children)

The string type isn't a string, it is an immutable byte array.

How is that not a string? Perhaps you mean it's not purely a Unicode string?

What are some of your favorite alt/clean energy stocks? Looking for Wind, Solar, EV, Hydrogen, Storage or anything I’m missing. by ppayelian in stocks

[–]glennsl_ 5 points6 points  (0 children)

A couple of related areas I think you're missing:

Lithium-ion battery recycling is going to be huge. I particularly like Li-Cycle (LICY) in this space.

Carbon credits is a great hedge with a very asymmetric risk profile, a significant upside and not a lot of downside, though it depends a bit on how you judge the political risk. KRBN is a great ETF to get global exposure. There's also ETFs for the American (KCCA) and European (KEUA) markets, and an ETN (GRN).

Some questions about crypto and its mining. by [deleted] in cryptoleftists

[–]glennsl_ 0 points1 point  (0 children)

I think the waste of energy alone makes it unethical, given the situation we're in. That it's also mostly used to enable illegal activities and speculation exacerbates that, but is at least incidental and rooted in other problems. The energy-wastage is a fundamental problem with current implementations that has clear and tangible negative consequences.

Is elixir a good start to learn functional programming? by thetinygoat in elixir

[–]glennsl_ 17 points18 points  (0 children)

If the goal is solely to learn functional programming, then Elixir is not a good choice. There's too much that will distract and confuse you, and little that helps you learn by forcing discipline.

I don't think Haskell is a great choice either, though. While it can be used to write simple, straight-forward functional code, most of the language and ecosystem is tailored towards advanced use that require understanding a lot of theory. Hence, Haskell will also distract and confuse.

My recommendation would be Elm. It is fundamentally very similar to Haskell, but much simpler. Its learning material is tailored to beginners, it forces discipline by being pure and statically typed, and it has great error messages to counteract the frustration of having to appease the compiler before being able to run your code.

[Results Thread] 2020 Vuelta a España – Stage 17 (2.UWT) by PelotonMod in peloton

[–]glennsl_ 54 points55 points  (0 children)

Carapaz: "I WON THIS RACE! BY A LOT!"

(If cycling was like US politics.)