Похожие чаты

Hi what are these?

22 ответов

10 просмотров

masks to check only part of an IPv4 address

it checks to see if the ipv4 address is loopback

I advise you to use a book for networking. A good book I guess covers this stuff. You won't need to read it if you don't want to, but it can be used to check things like this. Sometimes things might get too confusing when you're still learning.

Déjà vu
or atleast use search engines properly

When you are still at the basics sometimes you don't even know what to search. For some people it's easier for others harder

Hayk Zneigras
When you are still at the basics sometimes you don...

when you have little pieces of puzzle so it's not that hard to find other pieces with simple searchs. he is already in production so he will not spend time to read big books but i'm not suggesting to avoid books anyways

they could hide lil confusions behind macros, you do it from now on

Hayk Zneigras
When you are still at the basics sometimes you don...

and keeping all documentations in mind solves no problem just wastes time and opportunities.

Déjà vu
they could hide lil confusions behind macros, you ...

What about hiding them behind inline functions like decent human being 😑

Ludovic 'Archivist' Lagouardette
What about hiding them behind inline functions lik...

inline function is not guaranteed to be inline or avoid ruining your stack etc.

Ludovic 'Archivist' Lagouardette
What about hiding them behind inline functions lik...

btw when I tried to define some macros in c++ after some search on how bad of a practice it is (I already knew that one shouldn't prefer macros to functions, but I couldn't find alternatives) I immediately cancelled all the macros I had defined and started searching new ways 😂

Déjà vu
inline function is not guaranteed to be inline or ...

Inline means the linker does whatever it wants with it, but the main point is having readable code that you can debug without having to compile it after a manual preprocessor pass

Hayk Zneigras
btw when I tried to define some macros in c++ afte...

What I dislike most is that macros don't have a scope (do they?)

Ludovic 'Archivist' Lagouardette
Inline means the linker does whatever it wants wit...

templates, inheritance, etc makes same problems for debugging. you guarantee inlining i will use it

Déjà vu
templates, inheritance, etc makes same problems fo...

I don't try to be smarter than a piece of software literally able to count the cycles both options will take on the actual hardware I will run on

Déjà vu
templates, inheritance, etc makes same problems fo...

I usually read that some compilers may inline some others may not or it may depend on the flags. But I wonder what overhead there could be if it's a simple comparison. I guess it doesn't change much if you aren't calling it really a lot, there inline imo is better because it makes the purpose clearer. But if the function would be called really a lot won't a good compiler optimize the function calls?

Hayk Zneigras
I usually read that some compilers may inline some...

Well not just comparison, there are more operations but it's still simple I guess

Hayk Zneigras
I usually read that some compilers may inline some...

If you are using a compiler that does profiling based optimization, definitely

Похожие вопросы

Обсуждают сегодня

We heading to 1.1$ 🤔?
CryptoBo$$
35
Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
45
Сonst magicTgHTML = (text, entities) => { let processedText = text; let offsetShift = 0; entities.forEach(entity => { const { offset, length, type, url, ...
Андрей
1
Здравствуйте товарищи! решил всё таки поставить линукс. Порядок создание разделов /boot/efi 200МиБ; /boot 1000; подсистему / 80000; swap 8Гб Будет норм?
K2
19
Koi bata sakata hai yaha ? Is baar shot open karna theek rahega kya ?
Hakuna Matata
13
Can you help a noob? I know LTC was one of the early alt coins. But what is the benefit of it today? What are its attributes? Why should I be bullish on it this bull run?
CryptoNoobian ($PEPI)
14
How Will #Monero Be Attacked? First of all I want to tell you that this is not teaching the network attackers, the central regulators. They already know how to attack the net...
Li₿ΞʁLiøη
3
#wazirx 15 May my account has fund of rupees 10000 but 16 May my balance is showing 8200 why?? Without any withdrawal
Learnwi
12
подскажите пожалуйста, как мне освободить результат записанный в переменную result? в чем проблема подскажите если МОЖЕТЕ?
Михаил Helper
28
Карта сайта