Treeniks
The way UTF-8 works is fixed though, isn’t it? A new Unicode standard should not change that, so as long as the string is UTF-8 encoded, you can determine the character count without needing to have the latest Unicode standard.
Plus in Rust, you can instead use .chars().count()
as Rust’s char type is UTF-8 Unicode encoded, thus strings are as well.
turns out one should read the article before commenting
tbf that’s a lot easier to say when you’re the president of one of the richest companies in the industry. I don’t disagree, but not everybody has the resources to just keep developing forever, and that’s easy to forget too.
I’m a little confused about this one. The mappings are total, that is any number that is not defined explicitly gets mapped to itself. So it’s easy to create an example where the lowest number does not get mentioned within a range:
seeds: 0 3
seed-to-soil map:
10 0 2
soil-to-fertilizer map:
100 200 5
fertilizer-to-water map:
100 200 5
water-to-light map:
100 200 5
light-to-temperature map:
100 200 5
temperature-to-humidity map:
100 200 5
humidity-to-location map:
100 200 5
Here, we have seeds 0, 1 and 2. seed 0 gets mapped to location 10, seed 1 gets mapped to location 11 and seed 2 gets mapped to location 2. That means location 2 would be the answer, but it’s not a start of any range. I guess this just doesn’t happen in any of the inputs?
EDIT: actually it’s double weird. If you implemented a backwards search, that is you create reverse mappings and then try out all locations (which is what I and many others did), the result of the above example is location 0, whereas if you create a forwards brute force of all seeds, the result is 2. For the reverse approach to work in all cases, the mappings would have to be bijective.
I like Sublime Text and Sublime Merge and use both daily.
People keep saying this happened only because vaxry got banned from the FDO, completely forgetting the fact that hyprland has used their own modified fork of wlroots for ages now. They’ve wanted to get away from wlroots even before this whole fiasco, it really just tipped the needle for them to finally pull the trigger.
Mind you also, the ban in no way prevents hyprland from using wlroots still. The only thing the ban did was prevent vaxry from contributing to wlroots upstream, which is damn unfortunate if you ask me.
Jokes aside, I find that attitude not very healthy. Whether you want to call it open source or not, as I said, it’s far from proprietary, and certainly more than just source available. Dismissing it for that reason is quite unreasonable.