« first day (2500 days earlier)      last day (2440 days later) » 

12:18 AM
@Mikhail I should switch to Windows to get away from scum? What senseless universe are you being held captive in?
 
@sehe You are one of my heroes
 
 
2 hours later…
2:36 AM
great, the person who stole my website is going to sell it back for $350
not $350 is a great amount
 
am going to donate a few kgs of apples and carrots to some rescued horses ...
 
@Mikhail Not a bad retort. Not a good one either, but I appreciate the effort you put into it.
 
3:13 AM
what does line 10 do pastebin.com/0hNfscfN my idea was that it just frees up the stack
 
TIL there is an std::setjmp
 
free(prevThread->stackAddr); in this line ? I'm trying to figure out the down falls like something bad happening
could it be unreliable due to UB
 
Shouldn't it be easy to check if stackAddr is reasonable?
 
3:30 AM
@M.Jones Line 10 makes your eyes bleed... oh nvm all of them do that
@M.Jones Line 10 pretends to be a good programming language even though you need setjmp and longjmp for flow control
@M.Jones Line 10 is the real reason why Linus Torvalds is depressed
@M.Jones Line 10 added VLAs to this language. Not like it was bad enough without them
 
hahha man line 10 is getting destroyed
what do you mean by pretends to be a good programming language?
 
What do I mean?
 
yep
 
Are you blind? What I mean is I have problems. I have insomnia and this is my third day without sleep. I need help. I am screaming for help. God help me. Anyone. Help me please
 
wth why havnt you slept
 
3:41 AM
My doctor won't prescribe me any pills. He says I just need some good sleep. But what he can't seem to understand is that I am in pain. This is terrible. This is worse than child birth. With child birth, at least you get a baby in the end. I just get more and more headache.
I want to die
 
3:53 AM
You should go see your doctor again. Tell him what you feel.
 
@M.Jones Where did you get this code from
 
Are you really feeling suicidal or was it a figure of speech?
Get help, man. It's going to be okay.
 
@EnnMichael you need to drink alot of water and take some panadol. Try go for a walk as well to get some air. But pls go see the doctor
 
@M.Jones If this is some kernel code, you might want to look at stackoverflow.com/questions/23701318/thread-stack-allocation
It might be the kernel managing a thread stack, but it's quite a guess
 
obviously not kernel code because <linux/kernel> isn't included
also its a C question, so nobody bin it as c++ :-)
Would be C++ is they had use std::longjump
also they should have used printk
 
4:01 AM
I stand corrected :-)
Well no
All of the includes seem to be omitted - seems like this is just a snippet taken from a bigger thing
 
IF IT WERE KERNEL CODE HE OR SHE WOULD HAVE USED printk AND NOT printf
 
He uses longjmp and setjmp and printf without including the appropriate headers too
 
not to mention kfree
zomg, I changed my header and now I'm stuck here for the next 10 minutes
 
4:17 AM
Best part of C++ is waiting for the compiler.
 
Trying to figure out if I should code at a bar
 
You should code at a foo.
 
Related, should I use a union ?
 
 
3 hours later…
Ell
7:12 AM
Probably not
 
foodbar 4 the win
 
8:01 AM
user image
2
 
 
2 hours later…
10:25 AM
@BartekBanachewicz I refactored the project structure: github.com/horttanainen/tictactoe Wanna take a look and tell me if it makes sense? I will be working on an ai interface next and probably add an interactive executable
 
@A.N. nobody likes protobuf :) I was merely taking it as an example for a specific optimization — sehe 1 min ago
 
11:36 AM
@Telkitty lol, this awesome. :D
 
@nwp nice
 
11:47 AM
@wilx Nobody expects length to be a float.
 
@wilx this one is even better :p
 
@fredoverflow Exactly.
 
@Telkitty At first I thought it was a real teddy bear :)
 
@Telkitty lol
 
@nwp compile-time "variant" return types? interesting
@nwp Is that C++11, 14 or 17?
 
nwp
11:49 AM
17
You could do the same since forever with tag-dispatch, but it seems like there is no need for that anymore.
Also I might have found a use case for return type decltype(auto). More science required.
 
@nwp well auto drops references and constness. Any peeking would require decltype(auto)
 
12:06 PM
@fredoverflow Good article
 
12:21 PM
Hello, Cruel World!
@Telkitty Any more details about your trip yet?
 
12:39 PM
@Code-Apprentice sorry, I am a bit last minute person
but it's fairly certain I will be near yellowstone national park between 15 September - 17 September
 
@Telkitty no worries. I'm a follow-up kind of person. Don't mean to pester you about it.
I'm excited about the eclipse tomorrow
 
:D
@Code-Apprentice where are you going to see it from?
 
I'll probably go to the river/falls that is like 2 blocks from my apartment.
 
12:56 PM
c++ question ?
 
You should start by chatting in complete sentences.
 
@Telkitty my parent's house, I'm in about 90% totality here
 
@Mgetz numbers, I want numbers :p (meaning latitude and longitude)
 
@Telkitty Denver
totality is two hours north of me in casper
 
i want to search in website fo webpage consisting given keyword and note down all pages or save pages containining that keyword
how can i do it ?
 
1:06 PM
@jagdish google?
 
i know how to get data from particular page but looping through its folders and search for keyword
@mgetz thanks
 
not everything is a programming problem, and moreover it's not always one you need to solve
 
because it is already solved by someone else ;)
 
1:52 PM
doesn't sound like a C++ question ...
have you considered trying the PHP room?
@jagdish they have very friendly helpdesk people there
 
2:22 PM
@jagdish obviously make a script with wget and bash.
 
2:49 PM
place_of_worship (deprecated)
instead there are: church, mosque & synagogue
I don't see temples anywhere ...
 
3:06 PM
yesterday, by sehe
Anyone around with the Mjolnir hammer? I used my closevote before I noticed the older question.
Still no one to dupe-vote this?
@EnnMichael Okay... Erm. What interests me most about this statement is the fact that you went through the trouble to remove the period. Makes it so... open-ended :)
 
3:24 PM
@jagdish C++ has 3 primary purposes: AAA game development, obfuscated-code-induced job security, and pissing off Linus Torvalds.
7
 
and create a pool of developers/programmers for Java & C# to steal?
 
The latter is the most important.
 
Have you ever felt like you definitely need some kind of streaming POSIX CLI utilities? Like md5sum which will sum unlimited number of files without relaunching itself.
 
user1804599
No.
 
3:45 PM
Good evening ladies, gentlemen and Jerry
4
Been a while. I've changed jobs in the meantime..
 
@EuriPinhollow I don't see the point. What is your use case?
 
Though this is the Lounge and not QA, and it is on C++, I'd like to ask the wisdom in the room: where would you start learning about profilers and debuggers for natively compiled languages?
 
@fredoverflow you forgot "adding liquidity to the bond market"
 
I'm not interested in specific tools (though I have them in mind.)
Rather about the underlying systematic knowledge that I feel I'm lacking.
 
@iksemyonov What is it that you think you are lacking?
 
3:50 PM
@wilx there is probably none. I am now filtering a busload of bullshit and I want md5sum of each fragment. ideone.com/dM3nph - this is my working solution albeit slow. I was thinking about something like using
md5sum - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
user784668
@EuriPinhollow Write it in a sane language instead of shell
 
@wilx well, look. A colleague asked me the other day "tell me in a couple minutes about VTune amplifier (sampling C++/Fort profiler by Intel)" and I realized I couldn't even provide a definition of "profiler". Or, the other intern asked me about GDB, I showed them a few commands, but I understand that myself, I hardly understand how either program works, what OS concepts it is built upon
 
user784668
Also why are you using MD5 in 2017 ugh
 
which will work in one instance and sum many inputs but the script still needs to launch the shell for each compound command ( { ... } )
 
3:52 PM
@wilx I think I lack some basic knowledge that underpins debugging and profiling. And of course a wider picture of the problem, not just a few commands' knowledge.
 
@Fanael >teaching about sanity in C++ chat
 
@Mikhail Thanks! For profiling, is there anything similar?
 
user784668
@EuriPinhollow PHP is sane compared to shell
 
user784668
@iksemyonov They use the exact same APIs.
 
@Fanael it does not matter what the tool is as long as it is suitable (ok fine it's not the case).
 
3:53 PM
@iksemyonov No, but I've never had much of an issue with valgrind
 
@Fanael What about sampling vs .. the other kind?
i.e. vtune/perf vs valgrind, IIRC. Different mechanism, somehow, but I know little besides that fact.
 
user784668
@Mikhail Profiling with valgrind lol
 
@Fanael KCachegrind master race
 
user784668
Valgrind is a single-issue in-order architecture where all instructions take one cycle.
 
user784668
Your CPU is none of those things.
 
3:55 PM
@Fanael I am trying to dive into it now and I am running out of oxygen quickly.
Debugging my PHP program is actually what I need this script for.
 
@Fanael Is valgrind thus an emulator?
 
user784668
@iksemyonov Yes.
 
@Borgleader This is not a duplicate, please read the question. I have already mention that there are QAs available, however, none provide a definite answer to this question. — NULL 1 min ago
How is that not a duplicate?
 
@Fanael What about the CPU counters used by VTune Amplifier, I think it's a separate concept from the OS sending signals to a process?
 
user784668
@iksemyonov Yes it uses some other API.
 
user784668
3:59 PM
Dunno what's the API, try reading the perf sources to find out.
 
user784668
@iksemyonov Try running a program under nulgrind.
 
@EuriPinhollow that exists
 
@Fanael OK, reading the source hasn't occurred to me, I deem it too complex.
But then, is valgrind a profiler or not?
 
@iksemyonov that's the part where you just get your hands dirty. It's always a bit of work to make it actually work. Or are you asking about implementation of them?
 
@sehe Perl?
 
4:02 PM
@iksemyonov you can have sampling vs instrumented
@EuriPinhollow That's like saying your dream house exists (you can build it)
 
@sehe That's much warmer
 
user784668
@iksemyonov Valgrind is a machine code emulator that can be used to implement a profiler (callgrind/cachegrind), memory analyzer (memcheck) and lots of other things, at the cost of speed.
 
@sehe I'm going to ask my fav "student" question: how did you come to know that? I.e. "how did you learn it"?
 
By toying around. I got my hands dirty
 
In the sense of, .. ah, ok.
 
4:04 PM
@iksemyonov Needed to do profiling for a class six years ago, went "overboard" on that project
 
I've just googled and just every tool I could my hands on.
Over many years.
 
School and Uni have got me into the habit of studying systematically. Ie. there is a list of subjectss I must know to be an IT specialist.
 
user784668
@sehe But that requires you to put some effort, I'd rather ask in the Lounge!
 
@iksemyonov Things change over time. Since I dived in, linux kernels came up with new interface (perf record/perf report are nice for [production] profiling)
 
@Fanael In case you hint at yous truly, I hate asking for exact answers.
 
4:06 PM
@Fanael @iksemyonov is not one of those.
 
@sehe Thanks.
@Fanael As you may have noticed, I asked for "what are the basics that underpine the area". Again, following the notion that basics come first, details come second.
@Mikhail I went overboard on a profiling and opt competition 2 years ago, now I work at Intel, too..
"too" for overboard.
 
user784668
Why is TrustedInstaller using 6 GB of memory.
 
user784668
Dear Microsoft, your OS sucks donkey balls.
 
user784668
@iksemyonov Obligatory: stackoverflow.com/a/378024 (I believe he's a giant troll, though)
 
user784668
If you take this technique and automate it using debugging APIs, you get a decent sampling profiler.
 
Ven
6:09 PM
Hi
 
 
1 hour later…
7:33 PM
lounge's dead
 
user784668
@BartekBanachewicz Flagged for NSFW
 
Ven
Indeed pretty dead.
Not a reason to post ponies
 
@Ven that's precisely the reason to post ponies
 
Ven
Brownies shall be purged (by fire preferably)
 
I think you mean bronies
Brownies shall be eaten
 
Ven
7:51 PM
O'bronies
 
8:23 PM
@sehe Heh. I wrote the message, stared at it a bit, and I realized the period is hurting my eyes. So I removed it
 
8:37 PM
Hello world
 
Ven
hi
 
 
2 hours later…
10:21 PM
-9
Q: WHAT IS WRONG WITH MY CODE HELP ME JESUS

Sam OxfordCan someone please fix my code? I can't figure this out!!! I am literally going to type some more crap so that it will let me post. I have left some Shakespeare at the bottom. Enjoy! #include <CoDrone.h> //Include CoDrone LIbraries int checkPoint1x = 0; int checkPoint1y = 0; //reset checkpo...

/cc @Mysticial
 
@milleniumbug Hey, that question is obviously C
 
and this is obviously Lounge<C>
 
Isn't there a C Questions and Answers?
 
probably not
 
10:58 PM
I keep reading that the GO programing language is a joke, but I don't anybody using it. Where are they?
 
11:19 PM
@EnnMichael Thanks for the compliment. I admit it has been making me insecure for about a day now :S
 
is that how you use your vacation time
 
I'm back home
 
had fun?
 
Doesn't Linus know c++?
 
11:46 PM
@LucDanton I guess. I have trouble quantifying fun.
@JohanLarsson He doesn't. Are you checking out his LinkedIn, wondering what you can endorse him for?
(He'll probably claim he does, but he stays away so violently that he can't be anything but a rookie, AFAICT)
 
I don't have linkedin
You should teach him!
And stream it
he joined this year
Maybe stuck on what have you tried?
 

« first day (2500 days earlier)      last day (2440 days later) »