kintrix

joined 2 years ago
[–] kintrix@linux.community 1 points 5 months ago (1 children)

Saddle and bike form matters a lot

[–] kintrix@linux.community 1 points 6 months ago (1 children)

What happened to your "th"s

[–] kintrix@linux.community 1 points 2 years ago

Don't know if it's succesful, but definitely just straight up stupid.

The are many places where it's not even allowed because it does not meet the local safety and protection standards. It's a fundamentally unsafe design, especially for the people outside of it. It should not be allowed on the roads, and the EU agrees with this.

Even if it was allowed within the EU, you would need a special driver's licence for it.

[–] kintrix@linux.community 2 points 2 years ago (1 children)

My guess is because a linter and/or HLS was suggesting it. I know HLS used to suggest making your fields strict in almost all cases. In this case I have a hunch that it slightly cuts down on memory usage because we use almost all Muls either way. So it does not need to keep the string it is parsed from in memory as part of the thunk.

But it probably makes a small/negligible difference here.

[–] kintrix@linux.community 3 points 2 years ago

Of course it's point-free

[–] kintrix@linux.community 2 points 2 years ago

True. I love how AoC is a hotbed for creative and/or insane ways of solving coding problems.

If you wanna check out how it goes in Nix: https://git.sr.ht/~kintrix/aoc2024

[–] kintrix@linux.community 7 points 2 years ago (2 children)

Nix, because I hate myself. No, it is very much not made for this purpose. But it's possible to use if for this.

[–] kintrix@linux.community 2 points 2 years ago* (last edited 2 years ago)

<$> is just fmap as an infix operator.

>>> fmap (+1) [1,2,3]
[2,3,4]
>>> (+1) <\$> [1,2,3]
[2,3,4]
[–] kintrix@linux.community 3 points 2 years ago* (last edited 2 years ago)

You can also use the pipe operators; but they are still experimental features.

foo (bar (baz x)) = x |> baz |> bar |> foo = foo <| bar <| baz <| x

[–] kintrix@linux.community 6 points 2 years ago

https://adventofcode.com/

An advent calendar of coding puzzles. Dec 1-25 you get a new puzzle every day

[–] kintrix@linux.community 3 points 2 years ago* (last edited 2 years ago) (1 children)

I definitely am: https://git.sr.ht/~kintrix/aoc2024

(The README is wrong, just copied it over from last year)

[–] kintrix@linux.community 2 points 2 years ago

That is basically the problem. Also that fractional scaling on Linhx generally still gives blurry results. Fractional scaling without explicit support from the apps side is very difficult to implement.

And yes, there are a ton of of apps that don't correctly respect OS hints for size. Even more common among apps that aren't Linux first, or are proprietary.

view more: next ›