« first day (1997 days earlier)      last day (2943 days later) » 

user1804599
12:00 PM
> The allegations against the Kremlin in the Panama Papers are part of the propaganda of the West against Russia. That says security committee chairman of the Russian parliament, Irina Jarovaja.
 
user1804599
lol
 
Yup. problem is that smooth scrolling doesnt stop when you stop scrolling, sometimes I hold Ctrl to copy\paste or open in new tab, which with smooth scrolling the page will zoom off.
 
@sehe the motorcyclist was taken away with a helicopter, nothing else really.
 
@slaphappy ikr, 2.6TB of data, thats not a leak... a water dam just broke
 
Ven
meh
 
12:03 PM
@Borgleader definitely not sent over email :o)
 
Ven
nothing much happened with snowden and assange
@KhaledKhnifer mac?
 
@slaphappy lol
 
@Ven windows
 
@BartekBanachewicz doesn't usually sound good. Sad
@Borgleader some information might accidentally have been retained
 
@sehe It was the first sunny weekend this season
Of course people dragged their machines out and just went full retard throttle
 
12:07 PM
That would have been yesterday really
 
I still regretted I wasn't able to do that.
Becasuse of my trip to Austria I'll start doing the licence when I come back
which is pretty suckage given I've been waiting for that the whole winter
 
@slaphappy rofl
 
user1804599
12:29 PM
handle_call(_Request, State) ->
    {ok, {error, bad_request}, State}.
 
user1804599
so beautiful
 
So, what did I miss over the weekend?
Hi there.
 
user1804599
12:49 PM
> If you have a good reason (or other reason) ...
 
user1804599
lol
 
@Zoidberg uots dat?
Looks like Erlang
 
user1804599
> The pattern {'modxule', Module} can never match the type {'error','badarg' | 'badfile' | 'native_code' | 'nofile' | 'not_purged' | 'on_load' | 'sticky_directory'} | {'module',atom() | tuple()}
 
user1804599
Dialyzer is so cool.
 
user1804599
@Shoe yeah it's erlang
 
1:45 PM
Nobody talks here anymore
 
so if you talk here, do you become a nobody?
 
no I becomes a forgetful plonkist
DAT EDIT - EPIC
 
mesa a lounger
 
meesa asso lounga
 
nwp
@sehe We could buy ad space on stackoverflow :D
or declare it a feature
 
1:55 PM
@sehe discord took over
 
Familiarity breeds contempt - is my magnificent skillz in interneting appear reduced because I am on too much?
 
@sehe I'm offended
 
2:27 PM
mmmh who cares about generic programming around here?
with concepts I’ve been wondering about functions that look like e.g. template<…> thing<std::decay_t<A>, B> foo(A&&, B&&);
 
never heard of it
 
i.e. what’s the value of the constraints constructible_v<std::decay<A>, A> && constructible_v<B, B>?
seems awfully repetitive and not that useful to me, even if refactored (e.g. Blah<A> && Bluh<B>)
 
@slaphappy le fruit de la discorde (jdm patenté)
 
@sehe Discord is very active though
 
I don't think I'll care/ I'm not here for "activity"
 
2:32 PM
Good for you then
 
Hey guys
Quick question
*(int*)(*(DWORD*) dwAddress)
 
user1804599
@neet_jn Don't do that.
 
user1804599
Use std::memcpy.
 
I am not sure why rapptz is putting so much effort into promoting discord
 
@Zoidberg, not that I would use this in practice.
Though trying to make sense of this : *(int*)
would reference
type int
cast type int to the sequence of bytes, or value existing
at the referenced addresse?
 
2:39 PM
what
 
I should spend more time on my apps but I need to fix my dev box first
 
user1804599
One is potentially UB and the other one isn't.
 
Tax office called today & told me that I did something wrong again on my company tax return ... But they have been exceedingly nice and gave me a tax refund instead
I don't want to close down my biz, so the only acceptable alternative is to spend more time and effort into it now I have more time & $$
 
your face is UB
 
3:29 PM
@Puppy unanimously beautiful? awww thats so sweet
 
@Borgleader Urbanely Banal
 
Ven
Lol, school wants to (retroactively) grade the students -42 on all the projects we put on Github.
Even code I wrote home, so long it was for a school project.
 
it's forbidden?
 
Ven
I don't think so. If they can prove I wrote that code for a project of them
 
nwp
it is probably to prevent future students to copy so easily
making up good tasks is hard
 
Ven
3:39 PM
yep.
 
IGDI. why downgrade you, when this gives them license to downgrade all the future students :p
 
I feel like only shitty stuff makes it into boost nowadays
 
Ven
so after 2 years, when students will have to find an internship, they'll be like "yeah, I did two years at this school. Show you my code? Sorry, I can't. School won't let me."
 
@slaphappy and those children should get off your lawn, too
 
Ven
@melak47 because it takes less time for them :)
 
3:44 PM
@slaphappy Most mature code bases reach a point where they benefit more from having code removed than added. I'm not sure Boost has reached that point (it's certainly curated a lot more carefully than most) but I tend to wonder whether it might not be the case in a few areas.
 
Ven
@slaphappy if you actually know that it is forbidden (even considering it's a school project), I'd be very interested (when I wrote code at home)
 
@Ven that was a question :)
some schools just say "it's forbidden to put your code on the internet"
 
@Ven wat, ouch
 
Ven
@slaphappy well, I know it's forbidden to say "any code you write while employed here is ours", but if the code can demonstrably be proven to be related to something of theirs,...
 
schools have a lot of rules that are actually illegal. not that they care though.
 
3:47 PM
@slaphappy such as?
 
@JerryCoffin boost is a collection of libraries, so I would expect it to continue growing as new needs enter the market. we still don't have a decent xml library, or linq, or binary io.
 
Ven
I know a lot of grey areas my school exploits – I worked for them. But even if I were to use those, I wouldn't be able to finish my curriculum
 
@Borgleader off the top of my head: what ven just mentioned, pressuring you into/out of things unrelated to school activities (parties etc), forcing you to do things re: contracts with school partners (corps)
in contrast with employment contracts, there's actually no gain whatsoever to lawyer up against your school - you'll just lose time and money (even if you win)
 
Ven
One example: one of the school around here (namely epitech) makes you sign a contract saying "every line of code you write on the laptop you bought from us is ours"
which is 100% illegal in france
 
4:03 PM
hi
 
@slaphappy oh i see
@slaphappy dat flag
@SatyaNadella impersonating people is so 3 days ago
 
i can't change now
surprised i wasn't pruned
i even asked a bad question (intentinoally) that eventually got deleted
 
@slaphappy Got an update from Henri
 
figured that would've got me banned / nuked
 
The gig in your team is off
 
4:08 PM
all that happened was both my questions got deleted, even the legitimate one lmao
 
A position is still opened in the fixed income team and I should land an interview though
 
@slaphappy it is, and I'd expect more or less the same. Nonetheless, we already have a (literally) bewildering number of choices for some kinds of problems (e.g., regular expressions). One thing that would help in that particular case is simply more guidance about what kinds of requirements each of the libraries meets (and I'll admit, that might already exist--I haven't looked carefully in quite a while).
 
hi bartek
 
(Given the name, I suppose it's hedging)
 
@Borgleader what the fuck really
@Rerito that would be pretty hilarious, yet very sad (for us).
@JerryCoffin There's design docs in the libs. Regarding the choice issue you raised, I think boost solves it in a way - it provides a "semi-standard" implementation for a given requirement, something people can agree on what is the basis for a given feature, except if you have such specific needs that you want to move beyond boost
 
4:18 PM
@slaphappy Yeah, that would be a very good illustration of how dumb management can be
 
e.g. logging, formatting, or unit testing.
 
And if this is still down
 
Ven
oh slap is back to doge
oh no it's...
 
I can fill a position at BNP or Natixis (but Oguz said Natixis was kinda sucky IIRC)
 
@Rerito the rates team know how to manage their money, and they can recognize talent where it is. it's just too bad you can't help us, because we really need it.
 
Ven
4:19 PM
are you sure you wanna do that, @slaphappy?
 
Anyway I'll get you updated on what's going on
Now's the time to get home
 
@Ven some fucking moron flagged my message about schools. no idea.
I had to answer rerito, this is srs bizness
 
@slaphappy In this case, I'm talking about choosing between different parts of Boost: for example, when do you choose Boost Xpressive vs. Boost Regular Expression vs. (possibly) Spirit to write a specific parser for whatever you want to recognize?
 
@JerryCoffin Yeah, regarding parsing, there's just too many solutions. That's actually one of my main concerns with boost - there's just too much overlap between some boost libs.
 
@slaphappy Just text if more convenient
Off I go
 
4:24 PM
@JerryCoffin oh I wasn’t sure what you meant earlier but now I get you
 
Ven
@slaphappy aight
 
@slaphappy Perhaps do it in a constructive sense?
 
Ven
there's no destructor
i have no idea what he said, but I can allow him criticizing my school :)
 
@JonClements I meant our personal discussion.
 
as long as things don't blow out of reasonable discussion - appears users didn't flag you for nothing... blah blah...
tread carefully please?
 
Ven
4:30 PM
seeths
 
And that was a constructive and informative discussion, FTR. I've been flagged and kicked for using garden-variety internet slur, not targeted at anyone. It' unjust and stupid.
 
@slaphappy idk, it came out of nowhere
 
cool - I await the non-flagging! Good job all.
 
Ven
great job being passive-agressive as well. :/
 
@Ven no one threw me any puppy biscuits...!
 
4:36 PM
our resident puppy ate all of 'em
 
I wanted a busicuit. :<
"Busicuit"
The Busy Biscuit.
 
3rd time lucky? :p
 
Dats a nice nickname.
 
user1804599
Hi sluts
 
user1804599
4:45 PM
And lord mod Jon.
 
nwp
@Zoidberg Flag test?
 
user1804599
dictator
 
user1804599
Why would you flag sluts? Sluts are great.
 
5:07 PM
Really? :p
thought we'd grown better than this @sehe?
 
hi. someone said you guys would enjoy this: shared.awalgarg.tk/collegeDS.pdf
 
(getting used to a new keyboard - very annoying)
 
@AwalGarg ahh C arrays, someone's stupid idea who was too lazy to think of anything better :P
 
yes, indeed C-arrays are cancer
 
.-.
I feel absolutely no motivation whatsoever anymore.
What's happened to me?
 
5:17 PM
@ThePhD yours just one of the lucky few who are evolving into a robot earlier than where meant to
 
Is it by reading that document? if so, would you be kind enough to sue my professors for that such that they can't get to college for a couple months?
 
@AwalGarg if anyone is to be sued its K&R
@AwalGarg (disclaimer: my comments come from my own experience not the paper, I only read the first 2 questions)
 
"questions"
 
@ThePhD You're becoming an adult ;)
 
@Borgleader This isn't what becoming an adult is supposed to be like.
Also, my Professor assigned me a presentation to do for today, two days ago. And I didn't check the mail a few hours ago, like a pleb.
I present in an hour. .-.
 
5:22 PM
>Here are the reasons your library sucks and Sol2 is better
 
How does this chat thingy work? Can you do code blocks in it?
 
@JulianSivertsen there is very limited (and poor, I'd say) markdown support. see chat.stackoverflow.com/faq#formatting
 
@набиячлэвэлиь Nah, it's for CG. That presentation is later.
 
Mar 22 at 17:01, by Xeo
Read The Rules™ or you will have bad luck for the next 30 minutes.
 
@ThePhD two days notice for a presentation? that seems a bit low
 
5:29 PM
I have read those rules before.
 
@Borgleader vOv
 
@ThePhD So hows your semester going?
 
> Self-investment: They’re highly motivated to invest in themselves. A bootcamp might cost about $17,000 for 10 weeks, not including living expenses or opportunity cost of foregone salary. How many people do you know invested $17,000 in their self-improvement?
 
@Borgleader :v
 
Holy shit. 17k? What a rip-off.
 
5:32 PM
@JulianSivertsen Support is minimal, to put it mildly, but even that's rarely relevant since anything more than tiny code snippets mostly belong elsewhere, so what you post here is just a link.
 
Okay, okay. I get it.
I was wondering, this new syntax for i
... I'm pretty sure I didn't press enter there.
Anyway the {} syntax for initializing variables. Would you use it for built in types?
Like int a{42}.
 
17
Q: What are the differences between c-like, constructor, and uniform initialization?

dayuloliTTBOMK, There are three ways to initialize a variable in C++. int x = 0; // C-like initialization int x (0); // Constructor initialization int x {0}; // Uniform initialization The uniform initialization was brought on for C++11 to provide a more uniform syntax for initializing differe...

 
int a{42} -> int a(42) -> int a = 42
Changes nothing about the generated code or what the language guarantees. At that point, it's just a useless style argument. Do what you like. :v
 
@JulianSivertsen the 'C++ Programming Language' recommends it to prevent narrowing conversions, personally I hate the stupid {} (or worse ()) syntax
 
5:37 PM
@набиячлэвэлиь I want a red bike in a brown shed.
 
A bloody stool of a bike shed.
 
@fredoverflow It this an anal sex analogy
 
bloederig
 
@набиячлэвэлиь Wat, I just picked random colors.
I think my last bike was red.
 
Your colour-picking motives notwithstanding, that sounds like an anal sex analogy
 
5:38 PM
@ThePhD It does guarantee against narrowing conversions, so int a = b; works fine even if b has (for example) type double, but int a{b}; won't compile if b is of type double.
 
posted on April 04, 2016 by Scott Meyers

In my "retirement from active involvement in C++" post at the end of last year, I wrote: I may even give one more talk. (A potential conference appearance has been in the works for a while. If it gets scheduled, I'll let you know.) Well, it's been scheduled, and I'm letting you know: I'll be giving a presentation at the Nexon Developers Conference in Seoul on April 28. The topic is "Modern C+

 
user1804599
C++21 will feature angle bracket initialisation.
 
user1804599
It's like brace initialisation but only works with initializer_list. So std::vector<int><5, 8> is no longer confusing.
 
what in the flying fuck
 
@ThePhD (hug) there there :)
im sure youre doing fine
 
5:41 PM
@Borgleader :V
Don't tell jagged.
 
@Isaac Ah, yes there it is, "I strongly recommend its use. It is clearer and less error-prone than the alternatives."
 
@Feeds I just hope he cancels that retirement.
 
user1804599
And it has the benefit of x<y>(z) being even more context-sensitive!
 
You're kidding me now @Zoidberg?
I'm going to see what more does Bjarne say about initialization.
 
maybe bjarne initialized rightfold?
could have been anyone of course
 
5:45 PM
He admits that while recommending the int a{42} he still uses the int a = 42 form from time to time.
 
user406009
Initializer lists was a mistake.
 
user406009
That fuck feature fucked up so much stuff.
 
what does an initializer list look like in code?
 
@JerryCoffin Das silly.
 
std::vector<int> v{1, 3, 4, 54, 4, 0}; I think.
 
5:46 PM
@JohanLarsson In std::vector<int> a = { 1, 2, 3, 4};, the {1, 2, 3, 4} part is an initializer list.
 
ah, same as c# then, nice in tests, thanks
 
user406009
We need a "remove initlializer lists" proposal.
 
this magic thingy subverts perfect forwarding, breaks uniform syntax initialization, it's problematic in its use case beyond simple containers
 
@Lalaland Not unless you're going to provide a superior replacement.
 
Not another initializer syntax!
 
5:48 PM
let { 1 } be translated into std::tuple<int>(1)
 
user406009
@JerryCoffin Array literals like how java does it might have worked out OK.
 
and { 4, "abcdef" } into std::tuple<int, const char*>(4, "abcdef")
 
shouldn't tuple be var tuple = (1);
 
@milleniumbug Most of what's problematic isn't initializer lists themselves--it's the fact that if you use a braced initializer, the compiler will assume that's an initializer list if at all possible.
 
@JerryCoffin isn't that the whole point?
 
5:49 PM
another problem is that { 1, 2, 3 } doesn't have a type
 
@Isaac No, not really.
 
@milleniumbug that's not perfect forwarding though :p
 
oh, let's not forget std::initializer_list can't handle move-only types
@melak47 neither would be the equivalent with std::initializer_list
 
@milleniumbug I meant const char* vs const char(&)[N]
how would you prevent decay if you wanted to? :/
 
@Lalaland Perhaps (hard to say much more without seeing how it was integrated into the rest of the language).
 
5:52 PM
hmmm, can you make it std::tuple<int, const char(&)[7]>(4, "abcdef")? that could possibly work
 
OTOH you have forward_as_tuple for that, I think.
 
@milleniumbug That's what it should be, yes.
There's no reason to lose information.
 
but yeah I think a tuple vs this weird pointer list of runtime size would be much more useful :/
 
Also, fucking eww, tuple.
 
lol
 
5:54 PM
For large lists, tuples would crack.
Compiler would barf.
 
MSVC is not a compiler :D
 
Not even VC++.
 
if tuples were a language thing...
:p
 
Older versions of clang (3.5, 3.6) already croaked when I had a get<...> with just 16 types in it.
 
16 types in a tuple?
Shouldn't you use a struct by that point?
 
5:55 PM
Yes. Stress tests on library.
And no, because you can't std::tie a struct.
Not without converting it to a tuple first.
At which point, why bother? :v
 
I have to look up std::tie...
 
20 minutes to presentation.
 
what are you presenting? :D
 
user406009
@JerryCoffin The nice thing about array literals is that they shouldn't add to much chaos into the language.
 
5:57 PM
@melak47 His DIIIIIIICK
ayyy
 
user406009
int[] { 1, 2, 3} simply resolves to a static const int[3].
 
static?
 
user406009
@melak47 Same way that "arstarst" resolves to some static const char*
 
user406009
It would be the exact same idea.
 
text is special
 
user406009
5:58 PM
Or s/static/text, whatever. Same idea.
 
with arrays being noncopyable that seems pretty useless
 
user406009
@melak47 It would allow you to have nice constructors for things as a replacement to initializer list.
 
user406009
std::vector<int> foo(int[] { 1, 2, 3 });
 
user406009
Or something like that.
 
user406009
The idea needs some polish, but the main benefit is that it would be simple and have minimal changes to the rest of C++.
 
6:00 PM
you can already do that :p
 
@Lalaland You rang?
 
user406009
@melak47 Then why the heck do we need initializer lists?
 
last time I checked deducing sizes and or types of arrays doesn't always work
 
6:05 PM
@StackedCrooked Have you given any thought to pulling lua on the coliru machine and letting people use the luac compiler / lua interpreters?
 
Hm, I might have.
 
but it's gone now? :P
 
It's just so much work.
:)
 
@Lalaland It fails for many (most?) real use cases, like initializing a vector. coliru.stacked-crooked.com/a/026e36337ef2eb5e
 
user406009
 
6:07 PM
stacked-crooked ~ # lua
The program 'lua' can be found in the following packages:
 * lua5.1
 * lua5.2
 * lua50
Try: apt-get install <selected package>
stacked-crooked ~ :( # apt-get install lua5.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  lua5.2
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 156 kB of archives.
After this operation, 359 kB of additional disk space will be used.
 
user406009
@JerryCoffin We would need a conversion operator or constructor which takes in an array.
 
@ThePhD let me know if it works or not
 
@Lalaland GCC thinks that's a C99 compound initializer o.O
 
@Lalaland Yes, at a minimum. Don't get me wrong--I'm not saying it's impossible to make it work, just that as-is, it doesn't accomplish as much as the first test might have seemed to indicate.
 
user406009
@melak47 Yeah. It shouldn't be too much work for C++ to include that feature.
 
user406009
6:10 PM
Whatever, what's done is done. initializer lists are here to stay.
 
user406009
Unfortunately.
 
eh. tuple literals would be more useful
but that would like...break all the things
 
@StackedCrooked Have to specify version directly, but I'm alright with that! Thanks!
 
user406009
@melak47 Is there a max tuple size?
 
@ThePhD Cool :)
 
@Lalaland std::size_t max I guess :p
 
user1804599
> If people vote for brexit I guess it [EU] will be gone by Christmas
 
user1804599
lol
 
user406009
Isn't there a decent chance of brexit passing?
 
@milleniumbug It's an Integrated Internal Compiler Error Development Environment?
 
user406009
6:19 PM
MSVC the ICE machine. It even sort of rhymes.
 
@rubenvb Hi @rubenvb! I think I have a satisfactory solution to the problem, so unless you're especially interested, I won't upload the code now (I'll publish it when it's cleaned up and less embarrassing :) I used Yakk's idea to implement my own stack. I allocate the vectors there until I run out of space, at which point I switch to heap allocation. This works well and closes the performance gap without risking a stack overflow.
 
I've seen this answer today, and it's awesome
 
6:37 PM
@Lalaland Doing a quick check, polls are saying 48% favor remaining, 41% favor exiting (and apparently ~11% undecided). Late deciders favor change much more often than not (something like 80:20). Assuming that holds true here, the split is extremely even.
 
user406009
@JerryCoffin Those polls flip quickly though as well.
 
@Lalaland When opinion is split this evenly, that's almost inevitable. I also think, however, that a lot of news sources consider it in their own best interest to try to create uncertainty even if little really exists, so they do they best to emphasize anything that might even hint at a change.
 
7:27 PM
@Borgleader Just finished my presentation and am sitting in class. .-.
Apparently, I killed it.
"That's a very nice presentation."
 
so how does that funny shape represent audio? :D
 
@ThePhD You smooth motherdinger <3
 
@melak47 It's Physically Accurate Sound Synthesis™. Each (full) shape represents the audio properties at a certain frequency of the humna hearing (from 20 Hz to 20kHZ, I believe). You store the deformation of a model and its vibration properties at every level of the human hearing (in steps of 1000khZ or something), and then calculate literal vibration physics in the scene to determine what the sound is like.
Video is on the right.
So rather than trying to just have someone do Foley, you have the literal actual object creating the sound it Should Make™ in reality.
This is useful for things that fall down and break or rocks hitting a floor. Rather than someone sitting there and rigging it all up, you can just let the computer do it. Major advances have been done in this in the lat 5-6 years, and more people ar ejumping on how to properly simulate different vibration phenomena (e.g., water being poured isn't sounded by the water molecules, it's actually bubble physics. YOu have to literallycalculate bubble physics to get accurate water pouring sounds).
It's fucking ridiculous.
 
sounds fun :D
and complex :v
 
It's stupid complex.
second order ODEs
PDEs out the ass
if @ElimGarak were here he'd be having a mathematics orgasm from it.
It's really not my cup of tea.
I just want to make really pretty 2D stuff.
 
7:39 PM
@ThePhD do you know yet what the final project group you've been assigned to wants to do? :/
 
@melak47 Yeah, I posted it earlier.
"CS Go."
 
oh, right
lol why did they call it that :P
 
"Compute Shaders: Go!"
 
"oh, sorr bjarne I thought you wanted us to plaY CS GO"
 
7:46 PM
so you're supposed to compile some syntax to GLSL and run that as compute shaders?
 
Yeah.
Though they're firing back commentsleft and right abut what it would be useful for.
@melak47 @Borgleader What would you use a Compute Shader to do?
I should probably ask ElimGarak this question too.
 
and what's that C++ code example got to do with it?
 
The idea is that you can leverage compute shader power without actually writing computer shader code.
E.g., we're stepping into DSL territory here where we (compile-time?) concatenate GPU code before shipping it off to the graphics card.
 
ah, ok
so C++ AMP but without compiler support :D
 
@ThePhD In uni we did particle simulation with it :)
Boids is an artificial life program, developed by Craig Reynolds in 1986, which simulates the flocking behaviour of birds. His paper on this topic was published in 1987 in the proceedings of the ACM SIGGRAPH conference. The name "boid" corresponds to a shortened version of "bird-oid object", which refers to a bird-like object. Its pronunciation evokes that of "bird" in a stereotypical New York accent. As with most artificial life simulations, Boids is an example of emergent behavior; that is, the complexity of Boids arises from the interaction of individual agents (the boids, in this case) adhering...
 
7:52 PM
@melak47 Or VexCL, or... .well, a million other things.
 
heyyyy @ThePhD
cum join us on discord bb~~~
 

« first day (1997 days earlier)      last day (2943 days later) »