Anonymous
I'm not an expert at system programming. I think what you say is a binary semaphore. A mutex puts the context (thread) into sleep mode until the mutex is signaled by another context.
In comparison, a spinfork polls the state and checks if the condition is met. this results in a high CPU load, but is faster when the condition is triggered in a very small amount of time
BinaryByter
Oh I see
Anonymous
>whats the debate about again?
I guess the definiton of system programming ;) and yes, buzzwords can't be avoided ^^
BinaryByter
Ugh xD
Rahul
BinaryByter
Rahul
Rahul
Why mutex is ahead
Rahul
In Java objective c
Rahul
Swift
BinaryByter
Rahul
Creating multiple instances of fork will kill the ram and overload the CPU
Rahul
Ok thank you Maximilian and Victor for information
Rahul
Bye
Dima
looool
Anonymous
>Why mutex is ahead
It is better know and can be better understood. Mutex is a good choice where you wait until your download is finished, where a button is clicked or a complex calculation is finished.
A spinfork is better suited for very high active tasks like, waiting until a buffer is filled (so it can be flushed and filled again) during a copy, e.g.
Dima
Rahul
Anonymous
y r welcome
Anonymous
-y +u
Francisco
It depends
Gabriel
JavaScript and c++ are very similar
Cory
Gabriel
I'm learning both and I found them similar at the begining
Gabriel
Don't ask me in what way 🤷🏻♂️
Anonymous
Can't wait to use C++ scripts in my HTML code
Pavel
One is a programming language, another is a programming language, so they're similar in a way
Gabriel
Anonymous
Irony is not tolerated in programming
Anonymous
Too bad
Pavel
I found C++ similar to Java at first, when I was learning both. Then after several days of digging into forums trying to understand the Issues that I had, I realized that I had memory corruptions and memory leaks ALL OVER the place in a simple C++ program that I wrote.
Pavel
But it worked most of the time :)
Gabriel
Is python any similar?
Gabriel
Just asking because I don't plan learning it soon
Pavel
Yeah, I've got, a little. That was 8 years ago or so.
Pavel
For last 6 or 7 years it was my primary language. For last 5 years I've been working with it on commercial projects (before that it was for fun or for study).
How often.. 5 days a week.
Gabriel
Lisa
@madcarders
Pavel
In my case it was almost two years working on my projects, learning the language, patterns and different problems and solutions for them. That was enough to apply for a job. Luckily enough they developed the same kind of projects and had the same kind of approaches that I used, so it was easy to me that days. But, since then I discovered lots of new things and still know that I have a lot to learn, and I learn, and it pays me back.
Gabriel
But instead I got a degree in a field that I give no fucks about lol
BinaryByter
i combined them
BinaryByter
i do webdev in C++
BinaryByter
lol my librsry is easy to use
Aditya
Hi
BinaryByter
github.com/wittmaxi/webcpp
BinaryByter
BinaryByter
BinaryByter
example use case
BinaryByter
Francisco
I wrote two libraries (and still updating them) that are for modular arithmetics and polynomials. I find them easy to use, but I get why people would find them not that easy to use (not at least without good documentation and easy interface)
Francisco
And let's not forget that there may be a lot of bugs and inconsistencies
BinaryByter
BinaryByter
i mean, sure, everything needs a good doc ^^
Francisco
Francisco
Not everyone knows what a cyclotomic polynomial is
BinaryByter
true
Jussi
BinaryByter
Jussi
new and delete ^^
And if you use smart pointers - like you should in C++, there's no need to care
BinaryByter
you shouldnt use pointers
BinaryByter
Unless there is no other way
BinaryByter
references
BinaryByter
But agreed
BinaryByter
In such cases, i generally go with a smart pointer
olli
Nothing wrong about pointers
olli
In C++ I would only advise against using raw pointers for memory ownership
BinaryByter
Do your own homework
BinaryByter
Most Vexing Parse ^^
BinaryByter
google what it is
Anonymous
Ok
Anonymous
Hello every one
Anonymous
How to create file in C++ and send to 70 customers
Jussi
Dima
Dima
😆