« first day (2209 days earlier)      last day (2739 days later) » 

11:00 AM
I PASSED MY DRIVING TEST
4
WROOM WROOM MOTHERFUCKERS
 
Is auto i = some_string.end() + 1; undefined behaviour?
 
Probably.
Why do you care?
 
nwp
@BartekBanachewicz try not to kill yourself immediately
 
@nwp woah thanks for telling me I was planning to do just that
 
@JulianSivertsen It's not a valid iterator. If the iterator type is just a pointer, then that arithmetic alone is UB.
(You're not allowed to even form pointers to after the one-after-last element.)
 
11:05 AM
Because my algorithm would do that.
 
Bad.
 
nwp
better find a better algorithm
 
Your algorithm's badware.
 
It's not that bad. Only does one operation too much at the end.
 
@JulianSivertsen how is that "not bad"?
 
11:07 AM
It is that bad.
It is that bad.
 
Jaja.
It makes the break out condition move into the middle of the loop.
Which I don't like.
 
user1804599
Never use iterators that don't check bounds.
 
@rightfold bullshit.
except the first part - "never use iterators"
 
Wot.
Iterators are great.
 
@JulianSivertsen Your iteration is probably wrong, then.
 
11:15 AM
Just to be sure I'm not equivocated, [](auto... xs) { f(xs...); } takes and passes everything by value, right?
 
Doing an operation at the end + 1 is bad.
 
@R.MartinhoFernandes yep
 
Just making sure they didn't do any silly magic like they wanted with for loops
 
I don't do that any more.
 
@R.MartinhoFernandes that depends on f, not the lambda expression
well, when it comes to passing
it does take by value yes
 
11:16 AM
I can buy a biiiiiiiiiike
Gotta go sooooo faaaaaaaast
 
nwp
I thought you had issues going too slooooooow.
 
@nwp lol actually I did go too slow again today on the first try
I went quite fast, got 48 again
and I'm like "ok fuck this shit"
did 58 and 63 then
 
@LucDanton Right.
 
going 63 straight up on a wall on a wet pavement was kinda sorta scary though
and then in traffic I had an average of like 25 because it rained and we went on all of those old pavement roads with shitload of holes in the Old Town
 
@R.MartinhoFernandes too much Rust, aye?
 
11:23 AM
thankfully that's the region populated by dozens of learner's cars that typically drive slowly so I could just hook up behind them and go at a steady pace
 
@LucDanton :D
Just found a merged PR that plays it way too loose with forwarding.
Generic code be hard.
 
am I crazy for wanting to write parametrised tests? @R.MartinhoFernandes you remember the range(0, 5) ^ range(8, 9) ranges-without-Boost.Range impl detail of Boost.Test
 
@BartekBanachewicz I really should stop being lazy and start sorting out bike stuff :|
 
I don't see what's wrong with wanting that.
@LucDanton Vaguely.
 
@thecoshman but it's so easy for you
 
11:29 AM
the test frameworks don’t seem to really support that stuff, from my perspective they really enforce one way of writing testcases
 
@BartekBanachewicz what do you mean?
 
@thecoshman for the 125cc I mean
 
I;ve got to fill out forms, book appointments, get to CBT place
 
oh, Catch’s CAPTURE is scoped! that could do the job just fine then. comes off as a surprise because I could only tell from reading about the deprecated SCOPE_CAPTURE, not the CAPTURE docs itself
 
nwp
@AlexM. I tried, got a login wall before I could do anything. No brain.fm for me :(
 
11:32 AM
@thecoshman but that's still only like a few hours right
and you're good to go outside on your own
> You then have to pass your full motorcycle test within 2 years or you’ll have to take CBT again.
 
@BartekBanachewicz
 
oh look new Spotify UI is even worse than before
 
The worst is having to sort out appointments
 
who would've thought
@thecoshman really...?
 
@BartekBanachewicz on mobile? yeah, shockingly bad :(
 
11:34 AM
@thecoshman nah, desktop
 
@BartekBanachewicz yeah, I hate having to book things to go palces
 
it's still orders of magnitude simpler than a full licence
 
true
 
so you just go there once to book, and then the 2nd time to do the CBT and you're done?
Can you do the appointment by phone? :P
 
Ven
No idea how to write -4(%foo) in LLDB... -.- nice manuals
Looks like GDB supports *$reg...
 
11:36 AM
Have to book it via some online form thing
 
wow so you don't even have to go there
buying the bike is gonna be way more complex than that :P
 
I have to book to get theory test done, the book to turn the theory licence into a learner licence, then book to go in for cbt
... maybeit's cbt then learn licence...
 
@thecoshman "turn the theory licence into a learner licence"?
wtf is a "theory licence"?
 
it's the license to theorize. Unlike your country, some countries do regulate that. And it's proven not to be a bad... oh wait. Brexit again
 
user1804599
WHAT
 
user1804599
11:42 AM
0
Q: EXC_BAD_ACCESS (code=1, address=0x10))??? What does this mean in this context?

Sad.coderI am building a genetic algorithm and I am having a problem. Is it a problem with memory, I am still new to new and malloc stuff. I would be grateful if someone could explain the error please. After the 4th increment of K I get an error with EXC_BAD_ACCESS (code=1, address=0x10)). It gets stuck a...

 
user1804599
He uses std::vector, at, auto, ALL THE GOOD STUFF
 
user1804599
oh wait haha rand LOL opusuck
 
Ven
lol
dogshit code
 
user1804599
yeah it's awful
 
user1804599
screams for <algorithm>.
 
11:44 AM
Screams for taste
 
user1804599
so noturmum
 
Also Jeff Beck's music is surprisingly... modern
I mean, c'mon, spotify:track:3hxKRXZ1yxqCuOSoZTphwV sounds like Nico Vega
 
@BartekBanachewicz sorry, I meant theory test. We have to a computer based test first to ensure we have basic road knowledge.
 
@thecoshman that makes sense, huh
those tests are easy though vOv
at least here we have apps that simulate the tests and share some of the questions
 
Annoyingly, the car one doesn't cover enough for bikes... even though it's about road usage... which is basically the same
 
11:45 AM
well, there are some differences
 
For my car theory test I just donwloaded a copy of the cd and did practice exams
@BartekBanachewicz but things like road signs, how to use roundabouts etc are the same.
 
yeah, I did a few dozen tests for both A and B and passed both on first try
@thecoshman then you shouldn't have problems preparing for it :P
 
I don't see what else you need from a theory point of view that couldn't just be covered by CBT
@BartekBanachewicz
 
@thecoshman there aren't that many differences formally
OTOH a few hours of the CBT won't prepare you fully IMHO
like, I mean, I know you can legally go out on a moped anyway
but there are things out there that can kill you regardless of how fast you ride
 
user1804599
in my horrible opinion
 
11:48 AM
yes thank you rightfold
 
user1804599
What is CBT?
 
user1804599
Noun: CBT ‎(usually uncountable, plural CBTs)
  1. Cognitive behavioral therapy.
  2. Computer-based training.
  3. Compulsory basic training.
  4. (BDSM) Cock and ball torture.
  5. Coulomb blockade thermometer.
  6. (computing) closed beta
 
@thecoshman Also I bought a leather jacket two days ago, so there's that
@rightfold #3
 
@R.MartinhoFernandes lol
 
user1804599
11:49 AM
@BartekBanachewicz ah thanks
 
Ven
@BartekBanachewicz #4 for you
 
user1804599
@R.MartinhoFernandes What does that have to do with driving?
 
user1804599
It's a dungeon activity. There is no room for a car there.
 
@BartekBanachewicz I've been wanting to get a long one for a while now, not for bike riding, but they seem to not be a thing in shops any more...
@rightfold who the hell uses #6?
 
what’s the C++1z dynamic scope/line/location class feature again?
 
11:51 AM
@thecoshman yeah, it would be horrible on a bike. But "not a thing"? I got mine in TKMaxx, they have shitloads of outlet things
I was going there for a past year or so and finally scored one that fit me somehow
 
@BartekBanachewicz I mean like knee length or longer
 
that's a coat, not a jacket
And your best bet for those is different; go to a 2nd hand (A lot of them), get one that fits you the least worst.
Get one that's a bit bigger than you need
then go to someone who can tailor it for you
my friend got an amazing coat for ~34GBP (about 1/3 of it was the price of the item itself) and it fits him perfectly of course
 
Ven
Yup, it happens exactly as I expect it. When both strings are equal, cmpsb gets to \0, which compare equal, and so the next time it tries to compare... boom
I've spent so much time before I figured out those .set next to my .asciz fucked up everything.
 
I actually have one like that but the place I knew that could fix it up for me must've closed, I spent like half an hour running in circles looking for it
but I got the coat for essentially free and it's hardly used so
 
Yeah, there's a good few places I could look around
laziness doesn't help
But also other things distract me :D
 
11:58 AM
LOL wow, I .... <golf clap> ... I haven't seen 6502 assembly in ... well, a long time. — Alex Howansky 15 hours ago
 
Ell
@BartekBanachewicz about time :v
 
12:20 PM
boy had I a hard time finding std::experimental::source_location again. keywords so I can search for this in the future if/when it happens again: source location line backtrace debug
also turns out it’s still a TS, not C++1z
 
user1804599
I am so sad.
 
Sam
@LucDanton that sounds like a good idea IMHO...
 
user1804599
@BartekBanachewicz I never even did one.
 
12:40 PM
@LucDanton Would you say you had trouble sourcing its location?
 
nwp
> Example: This section is incomplete
Reason: no example
 
@sehe lol
if you feel clever you can expand __FILE__ and then e.g. ## sv to get a string view, but you can’t with __func__ because unlike the former it's the name of a predefined variable and not a string literal
 
user1804599
1:01 PM
 
user1804599
> DOES WELL AT...
The thought that I may still be using this language in twenty years time fills me with dread
 
What does source_location::current() do when used in a defaulted param?
 
in? You mean in a function that has a defaulted param?
Oh. Defaulted template arguments, I suppose
Trying to parse the standard's chapter on templates is like trying to unboil an egg. — Lightness Races in Orbit 7 mins ago
Someone has worked on obscure entropy references
 
user1804599
Flagged as too chatty
 
Oh well. I liked it. And I don't like boiled eggs, so
 
user1804599
1:07 PM
I don't like eggs.
 
user1804599
Disgusting.
 
user1804599
Butthurt millennials are funnier than butthurt Bloomberg.
 
@R.MartinhoFernandes it’s supposed to do the right thing, i.e. it’s one of those mixed language–library features in the style of std::initializer_list. or at Ieast I think that’s what the spec says
 
Ven
@rightfold both are very funny
 
Ell
1:20 PM
@rightfold not even poached? :O
 
user1804599
I like scrambled eggs with shittons of pepper and bacon.
 
user1804599
Poached egg is fucking disgusting.
 
@rightfold pepper like in chili pepper?
 
user1804599
But at least with a poached egg you can relatively easily cut out the yolk and dispose off it.
 
user1804599
@Rerito Pepper like in pepper berries:
 
user1804599
1:24 PM
 
Because this stuff on scrambled eggs is delicious
 
user1804599
Carolina reaper or bust.
 
1:35 PM
Oh lord these function parameters (part 2) /cc @Mysticial
1
Q: Wrong bool value passed to function in C++

JohannI have a function defined in the header file prog.h, which takes a couple of arguments of the type bool, string and double. string createDataFolder(bool setPBC, string distribution, double timestep, double simtime, double potRange, double potStrength, double particlesize, bool steric, bool...

 
Ell
@rightfold not with a good one
 
@Rerito I'm reaching the end of my pot and it’s bitter as fuck now :(
5
 
@Borgleader D:
 
I can't seem to manage to make karma generators populate a basic char vector
this is driving me insane
 
Ell
eggs benedict are amaze
 
1:38 PM
Mighty @sehe pls hlep
 
I thought the second row was in-function variable declarations
 
@Rerito what's happening
 
let me show you an example of what I have done so far
 
Is it not a good for SO? I'm going to run soon so you might be quicker there. And I'll deffo see it
 
Well I guess I could especially since I didn't find anything precisely addressing the issue
 
1:42 PM
@rightfold but the yolk is the besterest part
 
In the sample above, if I the output vector contains boost::uint32_t instead of char, it goes well except that I get an uint32 for each byte of each input integer
 
Are you asking why char gets printed as char? That's a classic
 
oh fuck
 
> double dvar
 
 
1:46 PM
@Rerito try like so
 for (uint8_t el : output) {
	std::cout << static_cast<int>(el) << " ";
}
 
user1804599
 
Yes, I'm doing it right away
 
Assuming I'm not missing something because I'm currently assuming it's unrelated to Spirit
 
@LucDanton Cool.
 
@sehe That was exactly that, rookie mistake sorry for the inconvenience
I feel ashamed
 
1:48 PM
There are many similar answers on SO. I'm not sure they're easy to find
 
obviously I could not find them because my searches were spirit oriented :|
 
user1804599
@Ell Then good poached eggs are terrible and disgusting.
 
user1804599
@sehe I imagine your children doing dit.
 
I'd approve of that :)
 
1:55 PM
Why do they send humans to mars first, isn't it a better idea to cultivate some kind of worm farm there first a better idea? Or are they really suicidally desperate?
 
user1804599
And dit?
 
Ven
yo
 
user1804599
@Ven hi ven ;0
 
Ven
why am I so bad yo
 
user1804599
because you're a badlet
 
1:59 PM
In a C and/or C++ program... can you call main as a function?
 
In C++ no, in C yes
 
interesting...
 
user1804599
You can in a C and/or C++ program.
 
user1804599
Link your C++ code with C code that does it.
 
it's "no" in C++ to allow implementations to implement construction and destruction of static objects by inserting the calls inside main()
 
2:03 PM
@Ven Always remember that it doesn't matter how bad you are, there's still someone who is worse than you
At random, some guy from the RTC development team
 
Ven
still...
 
This software is actual cancer
 
user1804599
Cure it.
 
I can't, it's metastatic
 
oh no... gmalius has changed big time...
 
Ven
2:07 PM
@Rerito nice one
 
user1804599
Ven de Thiel why do you have a tussenvoegsel in your name when you're French
 
Ven
because I'm le Duc de Boulogne. :)
 
@Ven c'est c'est c'est quiii ?
 
user1804599
That's uppercase.
 
Ven
2:13 PM
Fuck, I'm the one who's wrong. DISENGAGE
 
user1804599
cuppercakes
 
user1804599
@sehe Yeah you'd expect at least a minute from a JVM.
 
Ven
why does my repe cmpsb not stop when ZF=0, and only when ECX=0 :(
 
ergh... I need to take some time soon to clear out my inbox... it's filled up with shit... again ¬_¬
 
user1804599
@Ven lol strlen
 
Ven
2:21 PM
@rightfold :(
I can't even manage to get that right
 
2:38 PM
@LucDanton completely different style, but likeable too
wow Bartek passed his driving test, time to count the days before his license gets revoked
 
Ven
isbartekbannedirlyet.com
 
@GundolfGundelfinger I would have said it’s not my usual musical fare as well, but after reflecting on it I actually listen to a handful of similar-ish artists. who have vidya gaems connections as well, interestingly enough. anyhoo I have a feeling the last song will pull me back in the future
 
@Ven now you have to make it!
 
Ven
noty
 
Well yeah there's a typo
 
Ven
2:49 PM
the other one just redirects to google
:(
 
hmm... I should make isthisrecursiveyet.com, it just loads into a div the google search results for isthisrecuvsiceyet.com and see's if the first link is this site... but effort
also, too many typos to not make :S
 
user1804599
quite easy to make
 
user1804599
 
Ell
@GundolfGundelfinger eh
 
3:06 PM
@GundolfGundelfinger Knot that you could no less ungood
 
I've officially begun my vacation
yaay
 
@ThePhD we use Sol2
Just saying
 
@nwp yes the login only part sucks
 
@R.MartinhoFernandes nice
 
3:13 PM
@R.MartinhoFernandes 'we' being your work?
@rightfold
 
user1804599
Hmm
 
user1804599
using a zip list for writing an interpreter
 
user1804599
lol allocating memory for moving from one instruction to another
 
ergh... damn my self crippled hand, it's actually hard to screw up paper. Really hard to grip tight enough for it
 
user1804599
lol microsoft went full facebook and made a slack clone
 
Ven
@Telkitty it was posted here already
 
@Mysticial already at 400
you sure it'll take a month to get to 500? :P
 
@Ven but I didn't read it
 
3:43 PM
@AlexM. Yeah. The tail for this one is a bit thicker than the ones from 2012-ish. So the dynamics have changed. Can't say I can confidently predict it anymore since there's other factors like the weekly newsletter (which I haven't looked at in years). My guess that this point is it will probably top out at 600 - 800 after a month if Reddit/HN don't get involved. If they do, then over 1k.
 
user1804599
 
@thecoshman Yes.
 
hehe...lol
 
3:54 PM
Oh, good news everyone! I (probably) don't have to do UI work :D
 
user1804599
bad news you do
 
so you hired someone ?huh ;)
 
;(
It's a sort of new project that my team would be moving onto, but I'll be left behind
 
you got fired ?
 
Probably old, but I hadn't seen a proof of C++ grammar's undecidability before: blog.reverberate.org/2013/08/… (I intuitively knew it so; I just hadn't seen it formalized)
 
Ergh... stupid work, I want to go! I have gig to night, seeing Amon Amarth
 
user1804599
4:22 PM
XD
 
user1804599
cool
 
4:38 PM
I remember someone linking to a website about something, like a chat room.
What was that?
 
a website that’s a chatroom? that’s just too far fetched
 
I, hold on. Can check the archives.
Ah, yes.
It was similar to Gitter.
 
Ell
Oh Debian. You didn't update grub for my new kernel :(
 
o_o no string_view UDL op in n4606
 
no grub for you
No Gnu Recovery and Update Bootloader for you.
 
4:50 PM
CATCH_CONFIG_CONSOLE_WIDTH is kinda crummy :s cc @R.MartinhoFernandes
 
Xeo
@LucDanton 606 operator not found
 
in any case I’ll switch to Catch and use something like so cc @R.MartinhoFernandes
 
nwp
@Ell Same. Supposedly it gets fixed in a day or a week or whenever. And apparently a grub-install fixes it, but I haven't tried.
 

« first day (2209 days earlier)      last day (2739 days later) »