Похожие чаты

Hi what are these?

22 ответов

20 просмотров

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

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

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

30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
Привет)) уже кажется эту тему перемусолили, но вот я так и не понял. Я сейчас сижу на 27дюймов 2к мониторе. На Актуальной макоси, если я куплю 27д 4к монитор: - будет ли изобр...
Vladislav Piskunov
16
Also, why can’t the community have a vote/ say when it comes to initiatives like buybacks. Isn’t the point of crypto decentralisation? Don’t we deserve input as long term supp...
👨🏽‍🦰
13
any reference of this implementation?
BitBuddha
29
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Hi guys, any problem with Pulsebrige? Trying to transfer from wETH to ETH. First it tells me to connect my metamask "through mobile app" not desktop. Then I did and confirmed ...
Snowflakecrypto
13
Карта сайта