Treeniks

joined 1 year ago
[โ€“] [email protected] 1 points 8 months ago* (last edited 8 months ago) (1 children)

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.

[โ€“] [email protected] 48 points 9 months ago (5 children)

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.

[โ€“] [email protected] 4 points 9 months ago

The only feature I miss in the Epic client is a way to make yourself appear as offline. Other than that, Steam has a bunch of social features that I couldn't care less about.

[โ€“] [email protected] 4 points 10 months ago

My vote goes to Auxio for music and Just Player for video.

[โ€“] [email protected] 24 points 10 months ago (2 children)

I'm pretty sure this only concerns twitch affiliates. Multistreaming was always allowed for non-affiliates.

[โ€“] [email protected] 40 points 10 months ago (2 children)

Actually when it comes to C++ 23 library features, MSVC is ahead of both. In fact, as far as I can tell, MSVC is the only compiler that fully supports all C++ 20 core language features at the moment. So credit where credit is due, MSVC has gotten way way better the past few years. Visual Studio is still awful, but the compiler has become quite competent.

[โ€“] [email protected] 20 points 10 months ago (2 children)

IntelliJ and PyCharm are the only JetBrains IDEs with community editions. If you want to use CLion for example, you'll either have to be a student or you have to pay.

[โ€“] [email protected] 7 points 10 months ago

The MS extensions are quite convenient, like Live Share and the MS C/C++ extension. There are equivalent free versions, but those are more work to setup and might not have the full feature set.

[โ€“] [email protected] 1 points 10 months ago (1 children)

Not perfectly sure what you mean. I found Zed to be not any less simple than Sublime+LSP+Terminus. Mind elaborating?

[โ€“] [email protected] 3 points 10 months ago* (last edited 10 months ago)

Haven't seen anyone mention the Zed Text Editor yet. It's only available on MacOS as of now, but I've tried it out a bit and once it's more mature (and available on other OSes), I might switch over from Sublime Text. It's got a similar speed as Sublime, but with LSP, vim emulation and collaboration features built in, whereas in Sublime I need to install packages to achieve the same. Also made by the same people who originally made Atom and Treesitter.

I also want to mention Onivim. Unfortunately, development has stopped, so it's not really a viable option anymore, but I loved the idea. The idea was to make a vscode/vim hybrid. To that extend, it's written in Reason which allowed them to support vscode extensions, thus they didn't have to create their own extension ecosystem, while still being faster than electron. As for the vim part, the entire editor could be controlled with a keyboard. They had a global shortcut to go into a "UI move mode" so to say, which allowed you to go to every single piece of UI you had on screen. Thus they were able to copy the vscode UI, but still be keyboard-only. It was a surprisingly effective idea, so I hope some people can revive it someday.

[โ€“] [email protected] 2 points 10 months ago (3 children)

I think Zed looks really promising in that regard, although it's only on MacOS so far (but other OSes will come). It feels like sublime text, but with modern LSP, vim emulation and collaboration features built in.

view more: โ€น prev next โ€บ