janAkali

joined 1 year ago
[–] [email protected] 28 points 9 months ago* (last edited 9 months ago) (4 children)

I don't believe it's only chrome's problem. I've noticed that firefox tends to lock all available memory to himself and whenever I need it, bastard just reallocates it into swap, making whole system laggy and slow.

So.... I've got my foxy friend into a Ram jail for being too hungry:
systemd-run --scope -p MemoryMax=1G --user firefox

God, I love linux!

[–] [email protected] 0 points 9 months ago

Mixed-breed puppies are the best!

[–] [email protected] 2 points 9 months ago* (last edited 9 months ago) (1 children)

It's Nim, but I have no idea why you can't do this in Rust:

var seeds = lines[0].split(": ")[1].splitWhitespace().mapIt(it.parseInt)

Full solution: https://codeberg.org/Archargelod/aoc23-nim/src/branch/master/day_05/solution.nim

[–] [email protected] 44 points 9 months ago* (last edited 9 months ago) (28 children)

I would accept discord/irc over mailing list. But nothing beats a proper forum website.
And no, subreddit is not a proper forum.

[–] [email protected] 1 points 9 months ago

He's a redneck, but in a good way.

[–] [email protected] 2 points 9 months ago* (last edited 9 months ago) (2 children)

Yeah, bechamel is great too, but I'm lazy. Cheese only is also fine if you let it sit a bit with top covered. It's not dry if you use soft creamy type of cheese. Baking it? Nah - it'll be too soft and melty for my taste, pasta should have texture.

[–] [email protected] 31 points 9 months ago (17 children)

WTF is wrong with americans? Can't they eat normal somewhat healthy food? Use real cheese and just grate it on top of some hot macaroni, damn it.

[–] [email protected] 25 points 9 months ago (3 children)

In theory this issue can be solved with LD_PRELOAD trick. E.g. redirect all/most/some fopen calls to "$HOME" to some other directory. But before I try to tackle it myself: is there already a similar solution like that?

[–] [email protected] 6 points 9 months ago

"Part of the couch, Part of the family"

[–] [email protected] 30 points 9 months ago (3 children)

I thought about this for some time. An anarchy would always collapse into governed state.

First, imagine the perfect scenario where there no authority and world is just a lot of tiny city-sized communities. It would take just a single bad actor to form a state, start invading neighboring communities and growing in power. In response - other communities would be forced to group into increasingly bigger states to have a chance to oppose influence from bigger/richer states.

This thought experiment also works if violent takeover is replaced by economic one. Think of cartels and monopolies.

[–] [email protected] 0 points 10 months ago* (last edited 10 months ago) (1 children)

Yes the compiler/interpreter can figure it out on the fly, that's what we mean by untyped languages.

Are there untyped languages? You probably meant 'dynamically typed languages'.

But even statically typed languages can figure out most types for you from the context - it's called 'type inference'.

view more: ‹ prev next ›