B
Sure bro!
https://lodev.org/cgtutor/raycasting.html
Ujjawal
Is it ok to add jmp main instruction in main() in the clang generated asm (clang++ -S file.cpp) or it also count as UB?
Moita
https://lodev.org/cgtutor/raycasting.html
This was my point of reference as I started building this.
Ujjawal
Like how to compile without compiler?
Maxim
Wdym?
i don't understand why you're looking at the assembly output of compilation results besides, you didn't provide enough information to answer your question
Maxim
Wdym?
and i don't think you understand the meaning of the term UB
Maxim
Is it ok to add jmp main instruction in main() in the clang generated asm (clang++ -S file.cpp) or it also count as UB?
do you have something in your code that is described by the documentation as UB?
Ujjawal
Ujjawal
and i don't think you understand the meaning of the term UB
you're right, i read on cppreference that calling main() is UB and one shouldn't call it, but yeah idk what's UB, will read about it
Ujjawal
do you have something in your code that is described by the documentation as UB?
#include <iostream> int main(){ std::cout<<"hello world\n"<<std::endl; return 0; } not in my C++ code, but i changed my asm code by adding jmp main before retq in main: so idk if its also UB?
Pavel
#include <iostream> int main(){ std::cout<<"hello world\n"<<std::endl; return 0; } not in my C++ code, but i changed my asm code by adding jmp main before retq in main: so idk if its also UB?
Assembly doesn't have a notion of UB, UB is defined on the level of C or C++ where C or C++ standard (and so the compilers) can't give some guarantees. These guarantees also mostly aplly to what assembly the compiler will not generate (extra checks, handling of some cases, zeroing memory, etc.). When the assembly is generated, you can't really introduce new UB by changing the assembly itself (or corrupting the executable e.g. while downloading it over internet). I'm not an expert in assembly, and I don't know how the categories of behaviour that is not specified by the platform are called, but I'm pretty sure there is no UB, since it is too high level concept for assembly.
B
This was my point of reference as I started building this.
I guessed, it also explains DDA very well .
Moita
I guessed, it also explains DDA very well .
I am yet to implement that. But I agree with you. Of all articles I went through in researching how to build this, this article was the most articulate. I loved it.
Judy
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
Iisso
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
Agent
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
harmony5 🇺🇳 ⌤
Non admins should be banned from executing this command (/start)
Shady
/report
Rose
Reported Jay [6617767656] to admins.​​​​​​​​​​
Rose
Reported to admins.​​​​​​​​​​
Roxifλsz 🇱🇹
Non admins should be banned from executing this command (/start)
True, but the bot isn't controlled by us
harmony5 🇺🇳 ⌤
True, but the bot isn't controlled by us
Can't you auto delete those messages, then?
Roxifλsz 🇱🇹
/cleancommand user other
Rose
/cleancommand user other
The following clean command types have been enabled in C/C++ Programming: - user - other
Roxifλsz 🇱🇹
We shall see how that works
Roxifλsz 🇱🇹
Also quite incredible to see the anti-spam bot working well
harmony5 🇺🇳 ⌤
Does it mean commands issued by users will now autodelete?
Roxifλsz 🇱🇹
I'm guessing yes, the commands will still run, but should be cleaned up
Rose
Heya :) PM me if you have any questions on how to use me!
harmony5 🇺🇳 ⌤
It works, but seems to only delete the user's messages. I wonder if there is a way to also delete the bot's reply
Roxifλsz 🇱🇹
I'll have to check
Saqo
Where can I learn threads and asynchronous?
Ludovic 'Archivist'
Where can I learn threads and asynchronous?
https://www.youtube.com/watch?v=8rEGu20Uw4g
Ludovic 'Archivist'
Where can I learn threads and asynchronous?
https://www.youtube.com/watch?v=8sEe-4tig_A
Saqo
Thank you
perfect
Fastfood management system project source code
Roxifλsz 🇱🇹
I wish I could throw bricks at people through screens, totally unrelated to above post btw
Sherlock
Anyone got a ppt of solid design practices without any name?
mito
Anyone got a ppt of solid design practices without any name?
Why not ask about liquid or gas or plasma design practices as well?
Sherlock
Why not ask about liquid or gas or plasma design practices as well?
they don't exist. 😂 I just need to give a presentation. Can't find a ppt that doesn't have a name
At⭕M
Hi anyone here expert android file system and low level device communication
Pavel
Hi anyone here expert android file system and low level device communication
https://medium.com/@gameraccoon/how-to-ask-questions-that-dont-discourage-people-from-answering-d5adc2cdf3de
Never Spam Bot
why don't you learn it from the net. you can find everything on the net i believe.
This looks like a spam. Sorry, I can't delete/restrict that user/message. The message is older than 24 hours ago.
Leroy
Please I'm a beginner
harmony5 🇺🇳 ⌤
Rose
Please I'm a beginner
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Leroy
Thanks
j
I’m currently seeking opportunities to collaborate with EU, US-based developers for long-term partnerships.
Ujjawal
#include <iostream> class X{ public: int a=3; }; class Y : public X{ public: int a=5; }; int main(){ Y obj; std::cout<<obj.a<<std::endl; return 0; }
Rose
Reported Aanchal [7110738459] to admins.​​​​​​​​​​
Muhammed
Any way to access X::a through obj?
I think the a must be virtual if you access with X::a. I remember so.
Nazım
I think the a must be virtual if you access with X::a. I remember so.
No, you can't make virtual member variable, you can only make virtual non-static member functions
A
i am a c++ developer
A
algorithm it's okay
Anonymous
What career paths are best suited for c, c++ programmers?
Rose
Heya :) PM me if you have any questions on how to use me!
harmony5 🇺🇳 ⌤
Fire
What career paths are best suited for c, c++ programmers?
I'm a C++ programmer and im a game dev
Fire
Actually you can do so many things with c++
Fire
Its a really powerful language
klimi
One could say it's Turing complete
Arthur
One could say it's Turing complete
Why "could"? I've heard of a proof that even template metaprogramming language is Turing complete, let alone c++ itself
Tiwari
Can I get PDF of notes of C++ which is full basic in which.......
Madhav
Hello anyone up
harmony5 🇺🇳 ⌤
Rose
Hello anyone up
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Madhav
#meta
#meta