NXiss7
trap lover?
I couldn't see it properly, I was at work... 😅
914
it's just weeb art not actually japanese modern art
NXiss7
Probably.. I surf around Pixiv...
NXiss7
I like that style...
914
NXiss7
Fuck, hell no! 😄😄😄😄😅
NXiss7
We got too off topic btw... 😁
Joan
https://youtu.be/srpn69L4NCQ
Dima
https://youtu.be/srpn69L4NCQ
nice, but why not c++?
Joan
I can send your games in C too
TiMis
Hi
TiMis
I need your help
Artöm
#howtoask
TiMis
Help me
Hi guys im beginner of learning c
Hi... I'm also a beginner... I'm taking the CS50 course on Edx
Artöm
Help me
Have you read message by Rose?
TiMis
No am in school and we need it today
TiMis
Help me and i. Will do that
Artöm
Do it
Artöm
And stop pming
TiMis
I don't know from number 2 going
Anonymous
Pavel
Although ch is defined as int only the low order byte is written
Size of int is 2 or 4 bytes, low order byte is the least significant byte. Consider a number like 0xABCD the least significant byte would be 0xCD in this case
Tony
>Putting links in your pfp to get around the rule of not putting links in the chat
Anonymous
Hello, Is there anyone who knows a doctor for cryptography at the Moscow State University or any Russian university?
Tony
Anonymous
For what?
In order to supervise a PhD thesis
Chernykh
Positive hack day?
Anonymous
No .. C-Plus encryption for controlling the Internet
Tony
OpenSSL.
Azzam
Use std::prev
Thank you so much man.. You're a saviour xD
Volad Malevich
hey, guys! how to start processes in background one by one? I'm using QT
corporate
Sure
Volad Malevich
QThread
thanks, but how exaclty? is any way to write code without classes?
Mar!o
Hey guys is it worth it to register loop variables in C? Or will the compiler do it for me? I need max performance for a VM. What I did so far:
corporate
can anyone help woth this code
Mar!o
https://prnt.sc/r86an9
Artöm
But look at the image its many vars
register doesnt mean the variable will be in register, you know that?
András
No, register is almost useless and may be harmful
Register is 2x+ faster that anything else
Artöm
Register is 2x+ faster that anything else
Compiler knows better which data should be in registers. When you prevent it from doing it? code will be slower
Artöm
It isnt true for niche or too old compilers though
András
Compiler knows better which data should be in registers. When you prevent it from doing it? code will be slower
No. Compiler try to guess what would be better, but only programmer can write the most optimized code
Artöm
No. Compiler try to guess what would be better, but only programmer can write the most optimized code
I disagree. One need to spend so much time to write asm better than compiler it doesnt worth it
Artöm
New gcc + lto + pgo and this time is immeasurable
Tony
András
I disagree. One need to spend so much time to write asm better than compiler it doesnt worth it
Depend on your task. If 10% of speed means nothing than okay, but when even 2% means a lot...
Artöm
Depend on your task. If 10% of speed means nothing than okay, but when even 2% means a lot...
Ill ask again, do you understand how much time it takes? Im sure little asm pieces, intrinsics, manual loop unrolling and so on are unavoidable, even though compiler gets like almost all right, manual tweaking is small stuff in big automated stuff
Tony
There isn't enough general purpose registers in x86_64 chips to store all those variables you declared as register.
Mar!o
Why not R0 - R15 for x64?
Tony
Why not R0 - R15 for x64?
That's ARM buddy.
Mar!o
That's ARM buddy.
Oh yeah - right sorry but there should be
Mar!o
I just want max performance for my VM and I´m really not sure - these variables are the stack pointer etc.. and they should be fast as light
András
why
In most cases programmer's code makes execution time bigger
András
And you are asking such questions, so you don't know assembly well
Tony
Oh yeah - right sorry but there should be
There's 4, rax rbx rcx and rdx. Whether there should be more or not, take it up with Intel.
Mar!o
And you are asking such questions, so you don't know assembly well
I´m not running ASM on the VM, a custom bytecode language
Mar!o
There's 4, rax rbx rcx and rdx. Whether there should be more or not, take it up with Intel.
On my platform there are R0 - R15 with AVX/SEE 128-52 so xmm, ymm and zmm I want the compiler to use them all :)
Mar!o
But I know I have to do the SSE/AVX stuff with instrinsics since the compiler will not vectorize that great :(
András
I´m not running ASM on the VM, a custom bytecode language
How do u want to use register without assembly?
Tony
On my platform there are R0 - R15 with AVX/SEE 128-52 so xmm, ymm and zmm I want the compiler to use them all :)
Those are vector registers, performance is bad in those unless you use them for SIMD.
Mar!o
How do u want to use register without assembly?
I dont want to use the registers I want the compiler to use them for my loop vars :D
Tony
A VM is not a good SIMD application.
So a program will run all codes before the "return 1" and then terminate the entire program after it runs return 1?
Tony
Those registers are for mass math processing, such as what you might do when processing a video, audio, simple 3d work, or even a neural network. They're designed and optimized for such. You can use them for general purpose, however, it will not work well.