« first day (2102 days earlier)      last day (2864 days later) » 

12:00 AM
another day, another news about a new/new development of social unrest
 
12:17 AM
@ChemiCalChems Of course not. It's a self perpetuating feeding ground for bored people
 
I was under the impression that most people on that forum are only pretending to believe the earth is flat and are arguing for it as an exercise of arguing ability
 
I would suggest everyone to develop their arguing ability on Stackoverflow instead
 
@jaggedSpire This much I assume too
@Telkitty That would be a splendid idea
It is not simply "better to be lockfree". Especially not frequently when there's not bursty workload. Lockfree often comes down to "trade power usage for latency". And complexity, of course. — sehe 57 secs ago
 
12:33 AM
I love trolling lazy noobs
Fighting idiots, fighting morons.
real people, real profile, only on stackoverflow™
 
@sehe Oh crap. What I wrote was Bach. The same piece sehe said it was. Now I just need to remember the Telemann piece. I feel awful. Thanks for all the help you provided.
 
@CaptainGiraffe Lel. You didn't get the first part right then. But it was still recognizable from the second half :) /cc @JerryCoffin
 
@sehe I have no idea what to say. My cheeks are redder than ff0000. I've played this piece so many times 20 years ago...
 
12:48 AM
Lol. Don't sweat it. I think the outcome is amusing.
 
I'm remembering more and more because of the embarrasment =)
 
@CaptainGiraffe woah, DNA in html
love it 💜
 
@sehe ...and when I did a little looking, I concentrated almost entirely on the first half. No wonder I didn't get very far (couldn't possibly be my own ignorance getting involved. No, definitely not that).
 
Is there a mumble channel where I can embarras myself even more? I think I have the starting notes now.
 
just... upload the plainchant to spotify or YT. You can monetize it too :)
 
1:03 AM
@CaptainGiraffe do what freddy does: attention whoring on YT with all his C++/Java tutorials
audience here is limited
 
I have a monthly salary for whoring the niceities of c++.
 
so does he (for Java or something else)
but still - limited audience
for unlimited embarrassment, go somewhere else :p
 
Should I feel bad that 70% of my students gets a better starting salary than I currently have after 17 years in the profession?
 
you have more holidays, don't you?
 
mm More Importantly I get do decide what to learn.
maybe 5 days more.
 
1:17 AM
Getting research projects, getting your students to do them, then sell the results :p
 
I finally got it. Huge thanks to @sehe and @JerryCoffin. flutetunes.com/tunes/…
 
Yay!
 
That midi version sucks fermented balls of course. It is a nice melody I promise.
 
Spotify has it. I've listened to it in many versions the other day
 
Neat. I played it while I was learning guitar in the military. A buddy in the same position I was in liked the duet so we practised a lot on this piece.
A captain (A proper Captain=) walked in on us practising. He listened for a short while and said "That's quite beautiful". His prior vernacular was "shitbags" and "cyka blyat" style comments.
 
2:15 AM
@Borgleader
 
 
1 hour later…
3:39 AM
Hey, I've been having issues with txt file corruption in its linux terminal directory. Ever heard of this? An ideas?
 
@0x1000001 txt corruption?
Terminal directory?
 
Yeah, I'm using it in conjuction with a C++ program. However, the txt file has started to corrupt upon every compliation (not run) of the program. Additionally, the text PuTTYPuTTYPuTTYPuTTY is output on the command line(using putty to connect to terminal)
 
I've had problems like this and none of them ever got solved. Although once, the problem was solved by removing the login greeter.
 
@Mikhail login greeter - a user interface feature?
 
3:55 AM
No, not the SDDM stuff. I mean you would login into the server and it would say "Welcome", except that messed up scp
 
@ ahh
@Mikhail any pointers on where to get started
 
Don't use putty...
For example, use the terminal client built into Ubuntu
 
@Mik
I'll give it a try, thanks
 
4:08 AM
Worked on Ubuntu terminal, thanks @Mikhail
 
??
Just use the console.
 
OK, Take that back, it got corrupted again.
 
4:35 AM
@0x1000001 What happened?
 
@thepiercingarrow After each run of the program,the txt file is corrupted. Each line of data is replaced with junk.
 
@0x1000001 What program?
 
A cpp program
I can pastebin it if you're interested
...should have said that cpp program writes to the txt file
 
@0x1000001 yes please
 
@thepiercingarrow ...will do
 
5:05 AM
@thepiercingarrow whole cpp program
@thepiercingarrow write to file function: pastebin.com/dDUES66y
 
@0x1000001 why do you choose C++ for this task?
 
college class on it req for major
 
Code looks more like C
 
Yep, prof likes C...
 
5:39 AM
Good choice
Good prof
void saveToFile(const char fileName[], const Song songList[], int size)
{
    FILE *out;
    out = fopen(fileName, "w");
    if (!out)
    {
       fprintf(stderr, "Fail to open %s for writing!\n", fileName);
       exit(1);
   }
   for (int index = 0; index < size; ++index)
   {
     fprintf(out, "%s;%s;%s;%s;%s\n", songList[size].title, songList[size].artist, songList[size].album, songList[size].min, songList[size].sec);
   }
   fclose(out);
}
@0x1000001 Or you can even replace your stderr print statement to perror()
 
plz it burns
 
Sorry?
@0x1000001 Use ++index not index++ - its faster.
 
++C
 
@Mikhail No I'm serious. It helps the optimizer.
 
Huh, cool
 
5:48 AM
This is dubious
Most compilers will correctly optimize this
In his case index is an int
ITS A FUCKING INT
 
@thepiercingarrow It works!!! THANK YOU
 
@Mikhail What do you mean?
 
int index = 0; is not an std::iterator
 
and it's just fucking academic assignment
 
@Mikhail What's an std::iterator?
@0x1000001 Cool really?
 
5:52 AM
@thepiercingarrow yep, 1st try. BTW, why does the C stuff work? What was the bug in C++ - is this something you faced before?
 
To be honest, I don't really know.
 
also this is over an io loop
 
@0x1000001 I've never seen this bug before...
@Mikhail jaja good point.
 
@Mikhail@thepiercingarrow what is the significance of it being an io loop in this case?
 
(my interpretation) io is slow, so its not really worth worrying about the tiny amount of time iterating takes, over the actual time that the io takes.
 
5:56 AM
@thepiercingarrow OK, does that relate to the bug in original code?
 
@0x1000001 Not really... at least I don't think so.
@0x1000001 just curious, why are you printing songList[size] in a loop, if size stays the same? Normally when one loops, one prints songList[index] or something...
 
@thepiercingarrow size varies on the number of entries...is that a relevant answer?
 
@0x1000001 In this loop:
for (int index = 0; index < size; ++index)
   {
     fprintf(out, "%s;%s;%s;%s;%s\n", songList[size].title, songList[size].artist, songList[size].album, songList[size].min, songList[size].sec);
   }
@0x1000001 wait btw are you trying to append text to the file, or overwrite the entire file?
 
@thepiercingarrow overwrite entire file
 
ok good just making sure..
So yeah in the above loop, you print the same exact thing size times?
 
6:03 AM
@thepiercingarrow yep
 
@0x1000001 oh okay. What was the assignment in a nutshell?
 
Ell
@thepiercingarrow [citation needed]
 
@thepiercingarrow Create a virtiual library of data
 
@0x1000001 Nice. What level is this course?
Oh 162 never mind ;)
 
6:10 AM
@thepiercingarrow It's just the second quarter of C++
 
Hmm would your professor be mad if you used <string.h> instead of <cstring> ?
 
Ell
@thepiercingarrow that answer is not a source
I see no benchmarks, no disassembly, no control, etc.
 
@thepiercingarrow just as long as we don't use the string data type or the associated <string> specific funcs we're OK
 
@0x1000001 Is this high school or college?
 
@thepiercingarrow community college
 
6:13 AM
@0x1000001 Neat. How old are you?
I'm 14 XD.
 
@ just turned 20
@ haha, you're good
 
wowow I'm so young compared to everyone here o.O
 
@thepiercingarrow Do you work in the field yet?
 
btw I am Male, born Male, and I self-identify as Male. I use the Male bathroom, and am male in every way.
 
@haha, that is good, thanks for sharing dude
 
6:15 AM
@0x1000001 Not really, I just do free projects for fun. (free as in freedom)
 
@thepiercingarrow ah, well you'll be able to get a job soon enough anyhow
 
@0x1000001 cool. May I ask what country you are from?
 
@thepiercingarrow US
 
cool same
 
@ W coast
 
6:19 AM
hmm East Coast (NY) here
 
@thepiercingarrow - If you don't want people to see your personal information, then don't post it in places where everybody can see it :)
 
@TheLostMind hey, I was going to squeeze some more info out of him ;D
@thepiercingarrow anyhow, thanks for your help
 
@0x1000001 np :)
@TheLostMind sorry I'm drunk...
 
@0x1000001 - I see.. <goes looking for population of New York>
@thepiercingarrow - No problem
 
@TheLostMind This sounds like much too sensible of advice. I think you need to replace it with something involving public key encryption, or nerds will simply ignore it.
 
6:30 AM
@JerryCoffin - But then the "non-nerds" (I hope that its a word) who come here will just ignore it :)
 
@TheLostMind Non-nerds here? Have you confused SO with Twitter or something?
 
or BuzzFeed
 
Every site has non-nerds..
 
user1804599
Hi
 
Ell
6:47 AM
@thepiercingarrow that has none of the things I asked for :V
 
Xeo
7:02 AM
1 message moved to bin
 
user1804599
7:51 AM
@Ell You can do it in any Turing-complete system.
 
@thepiercingarrow godbolt.org/g/ghNba2 /cc @0x1000001
 
so
I watched Doomsday yesterday
it was a really nice movie
 
:31757763 I changed it cause of return.
 
I didn't expect too much, and I got a more violent miniature of Fury Road with nicer setting, nicer cars, nicer girls and maybe overall less polished experience
 
user1804599
8:00 AM
they're still different!
 
As it was, they had different behaviours, so different code was expected.
@Bassie The xor is padding.
 
user1804599
lol why does GCC want to return 0 in one function and not in the other one
 
Frankly I hate myself for that but I don't understand why Fury Road was rated so highly
 
user1804599
oh I see
 
@Bassie Oh, shit, no, you're right.
 
user1804599
8:01 AM
 
Dammit.
I forgot to remove the return type.
 
user1804599
Hey your link is the same as mine.
 
"Haha, you got UB there, suck it": godbolt.org/g/KP2aaK
I wonder what is the assumption that the optimizer makes that leads to no code.
That the function never returns, so the side-effect can never be observed?
Seems reasonable.
 
user1804599
lol in Rust you can do (*&mut 1) += 1
 
8:04 AM
Also ugh the movie cuts for some inferior publication schemes are so fucking annoying - source
 
@Bassie It's safe!
 
user1804599
Yup :P
 
@thepiercingarrow Oops, that last example was broken. Lemme try again. So it helps the optimizer, in what way exactly? godbolt.org/g/L7KmnZ /cc @0x1000001
Any of you use mutt?
 
user1804599
@R.MartinhoFernandes :(
 
user1804599
> ud2
 
user1804599
8:08 AM
I guess it needs an address for the label.
 
lol "Errors in geography"
"Scotland is actually north of England not south."
 
The assembly is literally "if this is not null, return zero, else UB".
 
user1804599
It should optimize out the test; argv is never null. :P
 
@Bassie It could be, in a freestanding environment. I guess there's not a lot of benefit from making the optimizer smarts to distinguish the two cases.
 
user1804599
8:11 AM
OIC
 
user1804599
I'm a fucking moron.
 
user1804599
It's corporation not cooperation.
 
user1804599
I want to work on my code generator again now :[
 
Though, it knows already.
It already treats main specially by returning zero by default.
 
user1804599
Since I now have my 3-line type checker, with one more line I could add fix, and then make it a front-end for my code generator.
 
user1804599
8:15 AM
Which would be fun since I could actually use it.
 
user1804599
@R.MartinhoFernandes File a bug report!
 
I wouldn't say it's a bug.
The behaviour is perfectly valid, and not entirely unreasonable.
 
user1804599
Depends on what the requirements are.
 
user1804599
No customer, no fun.
 
And as I said, as an enhancement, it's not really a big one.
 
8:16 AM
> The car featured in the chase scene is a 2008 Bentley Continental GT Speed. Bentley does not participate in product placement, so the film's producers purchased three of the cars for approximately $150,000. One car was mistakenly driven into a gorge; the second was used for the lion's share of the stunt shots.
why would you drive a $150k car into a gorge
-.-
 
user1804599
@R.MartinhoFernandes That's clang, this would require an LLVM pass.
 
or wait they meant 3 cars for 150k
> The filmmakers were astonished at how durable the car was despite the punishment it took; by the time filming concluded, the car only needed a cosmetic refit. Its frame and engine were all intact.
 
user1804599
While you can insert assertions to help LLVM, they're super limited.
 
well go figure it's a manually assembled car
 
@Bassie I assume "this is not zero" is the most basic assertion they could support.
 
user1804599
8:20 AM
> The llvm.assume (sic) allows the optimizer to assume that the provided condition is true. This information can then be used in simplifying other parts of the code.
 
user1804599
> The intrinsic allows the optimizer to assume that the provided condition is always true whenever the control flow reaches the intrinsic call. No code is generated for this intrinsic, and instructions that contribute only to the provided condition are not used for code generation. If the condition is violated during execution, the behavior is undefined.
 
Why the (sic)?
 
user1804599
"intrinsic" is missing
 
Oh. I think sic for missing bits is confusing. I'd just insert the missing bit in brackets.
 
Ven
Hi
 
8:24 AM
"Intentionally written thus" is confusing when the thing you're referring to was not written.
 
user1804599
@R.MartinhoFernandes :D
 
nwp
8:37 AM
what do you call it when you make a watchdog not kill your task? Trigger? Reset? Feed?
 
Break?
Oh wait, it's a watchdog meant to limit execution or something? I assumed it was meant to respawn it.
I would just call it a normal run.
 
nwp
it is meant to kill the task if it hangs, and I'm doing the "I'm not hanging please don't kill me" function
 
defibrillator
 
@nwp Heartbeat.
 
8:57 AM
ughhggh
the 500SL still didn't sell
for like 2 months now
the seller dropped the price by more than 10%
 
@R.Martinho I mean for loops
 
user1804599
9:32 AM
@nwp ping
 
nwp
@Bassie pong
that delay
worse than mobile
 
Possible cause for world war III: slowly down turn of #1 super power, possibly due to internal social unrest & quick raising of #2 super power that is faced with over supply of production power. Trigger is some controversial territory claim.
Sounds similar?
 
Ven
9:58 AM
I prefer tigers to triggers
 
world war is no fun, everyone gets burnt
 
10:14 AM
@thepiercingarrow then write one with a for loop
So no one uses mutt? @sehe @Luc who else might?
@thepiercingarrow godbolt.org/g/mLglQ0 Here. Point me to where it helped the optimizer.
 
@R.MartinhoFernandes Not any more
Stopped using it when I stopped running my own mailserver
 
What's the relation?
Or it is just incidental?
 
@Telkitty s/world//
 
@R.MartinhoFernandes Largely incidental. I used mutt because (a) roundcube was slow (b) I was too lazy to keep maintaining this installation. So I used mutt over ssh on the mailserver box.
Since I don't have a mailserver box anymore, there's no SSH either.
In fact, I rarely read my mail these days.
Never during the workday. Full stop.
I have to think to open my mailbox at night. Sometimes I forget.
(Of course the phone app lets me know that there's mail)
 
ex web admin stole my domain name
telkitty.com has not belonged to me for over 2 years (even though I am the one paying for it)
 
10:35 AM
> In this country magnetism is understood better by children before they've been to school than afterwards; same goes for gravity.
ugh
 
@Telkitty similar to what?
 
current situation
 
WW1 started because everyone wanted to go to war.
WW2 started because Germany wanted to go to war with everyone.
 
@R.MartinhoFernandes not me
 
btw nice question
2
Q: How to make a portable & compiler-agnostic glBufferData?

Ivan RubinsonThis question asks wether one can rely on the compiler to not mess with a structs values order and padding. According to the answer to that question, OpenGL defines, very clearly, what the byte layout of a std140 interface block is. C++11 defines a concept called "standard layout types"...

 
10:39 AM
nobody wants to go to war, they just happen to accidentally invade some other countries' territory and wouldn't let go of it
 
@R.MartinhoFernandes bullshit
war wasn't a goal
 
that's not what he said
 
11:06 AM
That's what she said?
I'm sleepy
 
I've just realized that @R.MartinhoFernandes looks like young Carlos Santana
 
Actually, in WW1 Germany wanted to go to war with (almost) everyone.
They actually prepared plans for fighting everyone at once.
 
@R.MartinhoFernandes for what reason?
 
@R.MartinhoFernandes And failed
 
@Abyx In case someone started terror attacks on archdukes.
 
11:21 AM
@R.MartinhoFernandes but why "with everyone" then?
 
@R.Martin well maybe gcc its the same, but some compilers its not.
 
@thepiercingarrow Don't get fooled by the URL. There are several versions of three different compilers on that website that you can try.
The latest versions of gcc, clang, and icc all produce the same code for both pre and post increment.
@Abyx You can't get to 18 supply centers otherwise.
 
A stellarator is a device used to confine hot plasma with magnetic fields in order to sustain a controlled nuclear fusion reaction. It is one of the earliest controlled fusion devices, first invented by Lyman Spitzer in 1950 and built the next year at what later became the Princeton Plasma Physics Laboratory. The name refers to the possibility of harnessing the power source of the sun, a stellar object. Stellarators were popular in the 1950s and 1960s, but the much better results from tokamak designs led to them falling from favor in the 1970s. More recently, in the 1990s, problems with the tokamak...
this name is even more unreal than the looks
 
12:06 PM
y'all read "tokamak" as tomalak, right?
 
why
 
I read it as Token Maker
it's Torus Maker but really all this is... so freaking weird
> “The whole problem with fusion is holding something at 200 million degrees in a stable way and not letting the heat leak out,”
I totally need to get back to my wind turbine project
but first I need to clean up the basement and make a new engineering bench
maybe paint the walls as well
ideally before the winter
Maybe I should work for Lockheed Martin
 
@Morwenn hahaha lol
 
@Morwenn Well, it's not that bad an idea
 
it is a terrible idea
eh you know I actually wanted to go back to my abandoned projects
but then I've realized that they were written in C++
 
@BartekBanachewicz I mean, it is terrible, but it does have it's advantages.
 
12:36 PM
@ChemiCalChems yes like most of the terrible ideas
 
@BartekBanachewicz Right
 
@nwp that's actually funny, you could write haskell-style application with it
I personally hate having to write parens for application
 
@nwp that is just insane
 
they're such a clutter
 
@ChemiCalChems lol genocide has its advantages too
2
 
12:39 PM
@sehe But overloading semicolons kills no one!
 
wrong
 
well, ok
it does
 
hi guyz
 
inb4 question
 
@Borgleader 2fast4me
 
12:47 PM
i face some tedious issue for out of memory issue in pthread and i already detach it and cleanup but still it gives me an error and due to that i got crash in my app
 
@Anjan have you ran a debugger on it to see what causes the crash
 
Actually it i am using c,c++ library in my android app but pthread written in pure c,c++ form and unfortunately i cant debug due to JNI issue
 
"c,c++"
if you squint hard enough you can see a bird flying, where , is his beak, c's are the eyes, and ++ is the tail
 
agree
but i got this error in log so if any idea " pthread_create failed: couldn't allocate 1069056-bytes mapped space: Out of memory"
 
12:53 PM
how come people are always trying to allocate insane amounts of memory?
are you using dynamic storage?
or static?
 
nwp
@ChemiCalChems your understanding of insane amounts is weird
1MB for a thread's stack is normal, at least in Windows
 
@nwp The guy the other day that was trying to move 100k strings
 
nwp
yeah, 5 bytes each, makes 500kb. That's nothing.
 
@nwp i know but still
 
as per stack traces the thread take between 2 MB to 10 MB usually 8 MB
 
nwp
12:55 PM
granted the std::string object has another 24-ish bytes, but thats besides the point
 
the issue occurs due to multi thread create in small bunch of time and it reach to max memory
 
@nwp My point is that amount of memory was over the max amount an hdd could store years ago. I know computers have evolved, but wow
 
nwp
@Anjan let me pull a sehe and just give you the answer: The problem is in line 48.
 
character 5
 
you want log ?
 
12:59 PM
@Anjan And code, if you are expecting to get an answer
 

« first day (2102 days earlier)      last day (2864 days later) »