BinaryByter
Meaning that every variable adress is as fast as a normal one when using mmap
Dima
8 yrs
BinaryByter
ASSUMING that you map to ram
BinaryByter
ASSUMING that you map to ram
if you map to the hard drive, it will, obviously, be slower
D
it maps a memory adress to a page
AFAIK normal write is flushed by flush thread, so that is not blocking.... In case of MMAP what happpens?
BinaryByter
doesnt seem so
Talula
15 years.
Dima
thats not a lot
BinaryByter
we figured
Dima
USING TOOLS TO DETECT LEAKS
Dima
super cringe
Dima
weak coderz man
D
write to a file !!!
Dima
what
Dima
what to write
Dima
file.dat
Dima
leakyfile.dat
Talula
Oo interesting
Leaks happen when you forget something to be cleared or deleted (as object) but you know it through debugger and when you run the software for testing, these things happen.
BinaryByter
write to a file !!!
Oh you want to write to a file, well yea you can MMAP to a file, but it will be as fast as writing to ram + speed your hhd takes.
BinaryByter
everything is a file, remember
Vyacheslav
A life is not enough to learn all of the modern C++
Ariana
gdb
Dima
everything is a file, remember
everything is a descriptor would sound better
D
write? you mean something like writing to stdout?
Something liek write to a file is non-blocking, but what about if the file is mmaped into memory ?
Dima
you’ll get banned first
BinaryByter
idc if you send em
Ariana
you’ll get banned haha
BinaryByter
why would it be different?
the ram is a file just like a file on your harddrive
Ariana
Just ignore him
BinaryByter
I don't mislead them, I concede to their misbeliefs in order to go out of the way of useless debates
Talula
I persomally love valgrind
I personally do not program in C/C++ for normal OS (like Windows, Linux or Mac) but I use Lazarus which can have leaks, I use C/C++ for Embedded systems.
BinaryByter
Someone still uses that?`
BinaryByter
❤️❤️❤️❤️
BinaryByter
:D
D
Oh you want to write to a file, well yea you can MMAP to a file, but it will be as fast as writing to ram + speed your hhd takes.
I know , but I want to kknow is mmap blocking or not ?!! For isntance, the change doenr to ther memory area has to be synced to HDD before returning or so? Or does it wait for the flushing threads to do their work?
Talula
I don't mislead them, I concede to their misbeliefs in order to go out of the way of useless debates
Oh it's a big community, actually code is native and it's simpler compared to C/C++ (in a way) and cross complier really helps.
BinaryByter
since you HDD needs to spin up and change the read arm
BinaryByter
Oh it's a big community, actually code is native and it's simpler compared to C/C++ (in a way) and cross complier really helps.
Yes, Lazarus was nice, but I just felt like it was outdated, so after finishing my compiler I switched to C++
D
Well, in that case, yes it is
Okay Thnak you !!! And what happens in case of DIRECT_IO?? What is mechanism for DIRECT_IO
BinaryByter
Okay Thnak you !!! And what happens in case of DIRECT_IO?? What is mechanism for DIRECT_IO
No idea, tbh. I have not implemented MMAP yet, and i haven't read a lot on it xD
BinaryByter
sorry
Talula
Yes, Lazarus was nice, but I just felt like it was outdated, so after finishing my compiler I switched to C++
It's really not outdated but it's lagging behind compared to Delphi and C#.
BinaryByter
I just can't stand people who don't know a lot asking me high level questions they could either google or are not ready for
Ariana
ok can we kick this @stevewozniak person
BinaryByter
I'd like to kick a lot of people here
BinaryByter
You found your god in dima who unfortunately is stupid
D
Will do.. Just didn want to go through linux source at the moment.!! Easier way out is this group ;)
Talula
Because we Steve Wozniak... lol
Dima
What’s going on
Dima
lol what the uncultured people there
BinaryByter
I CANT WAIT to do that ;_;
BinaryByter
btw: it's fine, if you aren't @stevewozniak and ask a question that's not totally stupid, I won't troll
Dima
First you must be confidient in your own knowledge, before spreading it to other, having some *work* experience, not just code monkey who thinks that he’s cool
Dima
if you relate yourself to code monkey then congrats
Dima
yeah, to yourself
D
Well i will soon have to write MMAP for clinl
Man .. Best of luck !!! :D Fo let us test the kernel :D :D
Dima
go get some work instead of misleading people there
Dima
giving useless advices
Talula
Steve Wozniak here is Indian.
Dima
LOL
BinaryByter
yeah, to yourself
you are the guy who claims that he is above everybody because he never makes an error
BinaryByter
Steve Wozniak here is Indian.
Oh that explains a lot
BinaryByter
BinaryByter
maybe end of 2019