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
BinaryByter
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
.
Anonymous
y r welcome
Anonymous
-y +u
Francisco
It depends
Gabriel
JavaScript and c++ are very similar
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
olli
Don't ask me in what way 🤷🏻‍♂️
the syntax of JS is influenced by C..
Gabriel
One is a programming language, another is a programming language, so they're similar in a way
No really I thought they were foods I ate JavaScript in lunch today
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.
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
Francisco
lol my librsry is easy to use
Well, all libraries are easy to use for the people who wrote them e.e
BinaryByter
github.com/wittmaxi/webcpp
BinaryByter
BinaryByter
BinaryByter
example use case
Francisco
i believe that mine truly is easy to use
And I think mine are truly easy to use e.e
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
i mean, sure, everything needs a good doc ^^
Francisco
Then its probably badly designed or doing very specific stuff
Well, it's meant to be used for maths
Francisco
Not everyone knows what a cyclotomic polynomial is
BinaryByter
true
BinaryByter
Then you wrote c++ wrong
new and delete ^^
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
Francisco
you shouldnt use pointers
Well, polymorphism may require to use them
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
Nothing wrong about pointers
but about memory management. However, their syntax clutters code, IMHO
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
Dima
😆