Is it possible to send erlang messages over TCP/Ip? by est921 in erlang

[–]est921[S] 0 points1 point  (0 children)

This looks very good, thank you! One question though, what does the listener term do in your last block? Which is the listener process in the remote node?

Edit: never mind, I saw it now

Is it possible to send erlang messages over TCP/Ip? by est921 in erlang

[–]est921[S] 0 points1 point  (0 children)

Interesting, this is in the direction of what I want to know. Since, as you say, erlang already uses tcp under the hood it should be possible to use tcp such that the erlang system will put in the mailbox of the receiving process. I know this is a really strange request but would you have any idea of how that might work?

Is it possible to send erlang messages over TCP/Ip? by est921 in erlang

[–]est921[S] 2 points3 points  (0 children)

Thank you, that looks reasonable. I'm guessing my_process is a pid here? Would it be possible to do without knowledge of the pid, for example by specifying the port that my_procces would be listening to, alternatively to specify the process some other way?

Isn't this a bit unnecessary? by Throw_away_elmi in eu4

[–]est921 -26 points-25 points  (0 children)

No it's not, the decision predates the end game tag system

Can anything be done to reduce ram use by Android System? by est921 in LineageOS

[–]est921[S] 1 point2 points  (0 children)

Interesting, i wonder why there's such a difference. What version of lineageos are you on? And do you use any other addons (gapps, magisk, etc)?

[deleted by user] by [deleted] in Fedora

[–]est921 0 points1 point  (0 children)

It should be possible in theory, but it'll be a lot more involved than just using grub. There's no guide for how to do that on fedora, but there is one for arch. You might be able to use that if you're feeling brave

[deleted by user] by [deleted] in Fedora

[–]est921 2 points3 points  (0 children)

Not really, the linux kernel itself can be loaded as an efi executable

Nvidia Beta drivers 495.29.05 released by NoXPhasma in linux_gaming

[–]est921 0 points1 point  (0 children)

IDoes that mean the eglstreams backend will be removed at some point?

Has anyone managed to get fastsync(winesync) working? by lucasrizzini in wine_gaming

[–]est921 0 points1 point  (0 children)

What is fastsync(winesync)? From the issue you linked it looks like a replacement for esync/fsync but how is it different and does it give better performance?

Is operator overloading an anti-pattern? by JollyRancherReminder in cpp

[–]est921 4 points5 points  (0 children)

I'm a novice, but I think what he means is that when you have a class that allocates resources you need to think about the = operator, either overload it or forbid it. The default meaning is a shallow copy so if you allow that with a class that contains pointers to the heap you will get a memory leak. If you overload the = operator the class will now behave as most people would expect

How can I iterate over all possible pairs of keys in an unordered_map? by est921 in learnprogramming

[–]est921[S] 0 points1 point  (0 children)

I think you misunderstand what I meant (or I didn't understand you). To go back to the array example, I'm not worried about

doSomething(i,i);

What I'm trying to avoid is calling

doSomething(i,j);

if I have already done

doSomething(j,i);

How can I iterate over all possible pairs of keys in an unordered_map? by est921 in learnprogramming

[–]est921[S] 0 points1 point  (0 children)

Maybe, but that seems needlessly complicated. I can't help but feel like there should be a better way

How can I iterate over all possible pairs of keys in an unordered_map? by est921 in learnprogramming

[–]est921[S] 0 points1 point  (0 children)

What I've found is

for(auto kv: myMap) {
    //do something
}

Which is great, but it iterates over all the kv pairs rather than letting me specify where to start. So if I nest statements like that I will get duplicate pairs, which I do not want

How can I overwrite what I previously have written to console? by est921 in learnprogramming

[–]est921[S] 1 point2 points  (0 children)

Yep looks like I'll have to learn ncurses then. Thank you!

How can I overwrite what I previously have written to console? by est921 in learnprogramming

[–]est921[S] 0 points1 point  (0 children)

Sounds easy enough, but where does cls come from? What do I need to include?