« first day (1650 days earlier)      last day (3299 days later) » 

12:02 AM
@Nooble Yeah, once or twice. Excellent wine, but I can't imagine paying that kind of price for it--it's easily 20 times the price of some others that are just as good.
 
@JerryCoffin Yeah I couldn't imagine doing so either. Around $4000 for something disposable sounds a bit crazy.
 
hey smart peeps
go be smart here plz:
0
Q: Why can't the compiler resolve an overload of a std::function parameter?

Trevor HickeyObserve the following example: #include <iostream> #include <functional> #include <cstdlib> void Print_Wrapper(std::function<void(int)> function); void Print(int param); int main(){ Print_Wrapper(Print); return EXIT_SUCCESS; } void Print_Wrapper(std::function<void(int)> function){ i...

 
You can get good wine for 5 EUR.
 
@StackedCrooked Yes, you certainly can. Its fans, however, would argue that Petrus is not merely good wine--that rather, it's the best wine on planet earth.
 
@TrevorHickey No question dumping etc.
This is a duplicate so I'll find it.
 
12:09 AM
Well. If that's the wine they like the most then they are right..
 
12:19 AM
@Rapptz Don't want to swing the dupehammer without being sure, but I think this is a reasonable dupe.
 
nah already dupe hammered
it's the explicit cast with overloaded functions thing
 
@Rapptz Ah, excellent.
 
If you guys have experience with LC3, can you guys take a look a this? superuser.com/questions/904947/…
 
@committedandroider You probably need to provide more context (like the Verilog/VHDL from which this was produced) for anybody to answer without spending inordinate amounts of time studying all the details of the LC3 design.
 
@Nican can be, but tbh where OpenMP shines CUDA, AMP, and OpenCL shine a lot more
 
12:28 AM
Of course, it's possible somebody's noticed that particular piece of things and already studied it, but I'd guess chances are fairly small. I'd also guess the question probably fits better on the EE.SE than either of the places you've posted it. Without more context, it'll probably get shut down pretty quickly there too though.
 
@Mgetz Thanks!
 
@Nican just curious were you intending to ping @Mysticial instead? They have more experience at that scale than I do. I've used OpenMP a few times, ditto CUDA and AMP
 
@Mgetz I have to disagree--where OpenMP truly shines is in getting parallelism from existing code with an absolute minimum of rewriting. The others can gain more (no question about that) but nearly always require more work to do so.
 
@JerryCoffin I see what you mean, my experience is that data races often prevent that from working
 
(Somebody asked on the feedback page.)
 
12:40 AM
@JerryCoffin thanks should have done that
@JerryCoffin Can you help me on this though real quick? This is a true or false practice problem. Every LC-3 operate and date movement instruction either read or writes into the register file in the lc3 datapath. I said true. I am not totally sure though
 
@committedandroider Certainly sounds likely, but I'd have to look through an instruction list (just like you would) to verify it. Once in a while, instructions get put into classes they don't entirely fit, so for example something could be called a data movement instruction, but not actually move any data.
 
@JerryCoffin Is writing into a register file same as a register itself?
the file throws me off
 
@committedandroider Yeah, at least normally would be used to mean any write to any register (including things like flag registers and such).
 
@Mgetz Disagree
 
12:57 AM
Reagree.
how do I collision detection and resolution
 
Logarithms come into play
 
>>>/out/
not sure how to develop a decent system for this
 
It's difficult anyway
 
?
 
I think the usual way is "let objects collide, move them back to the collision point of contact".
 
1:02 AM
yeah I was planning on doing that
but I was thinking about how different blocks handle collision differently
like e.g. spikes you could walk through but get damaged but for walls it pushes you back
 
Have an event OnCollision that handles this?
 
yeah Unity has OnCollisionEnter etc.
 
GCC 5.1's std::string is now SSO instead of COW.
 
yeah
Of all things in Unity I like how they do collision detection and object tagging
>people who commit .dll, .exe, .o files
jesus
 
@StackedCrooked Single Sign On? How does that work for std::string exactly?
@Rapptz Imagine all the wasted space on GH
 
1:14 AM
I guess I'll use entity noob system
 
@Cicada do you know how big a cloud is?
:P
@Rapptz ECS best system
 
ECS is lame
 
@Borgleader It's still wasted.
 
but iunno anything better that doesn't require a lot of thinking
 
@Cicada Short String Optimization (storing the data for short strings directly in the string object instead of in a separate buffer allocated on the heap).
 
1:16 AM
Jerry for the love of God
 
lol
you tried too hard with the backronym anyway
too obvious
 
@Cicada #tryhard
@Cicada i guess he does love himself :P
 
@Cicada Ruining lame jokes is just one more service we provide (at no extra charge).
 
I bet
std::tuple<Components...> would make a good static ecs
boredom aside
 
But love of god is eros/venus ... wait that's god of love
 
1:20 AM
@JerryCoffin But you do these every day
 
a bird murdered a lizard & dumped the body on my roof, nobody said anything, I tell ya, nobody!!!
I hope the bird came back & took the little lizard with it, I saw a magpie peeping in from a gap yesterday, maybe it's seeking opportunity to get the leftover lunch
 
@Cicada Of course. Governments put thieves in prison to maintain their own monopoly on stealing our money. I do the same with lame jokes.
 
@chmod711telkitty ~In today's episode of Telkitty's Magnificent Adventures~
@JerryCoffin Well I'll have you know I have the monopoly on lame jokes and I well intend to keep it.
 
@Cicada How's that working out for you?
 
guys
lame puns are my domain
no one can deny this
 
1:26 AM
@JerryCoffin It's holding up quite well IMO.
Just have to shove a nail in the coffin of the competition every now and then.
 
badumtss
and on that dud, bed time for me
 
Night!
 
@JerryCoffin steal, I call that robbery right in front of your face
governments & mafia have a lot in common you know
I have written an article many years ago comparing their similarities
 
You can't spell government without ent
 
Virii and snakes also have a lot in common and I don't see people running around comparing their similarities
 
1:35 AM
I have to do this fashion show thing for german.
The teacher cannot possibly think of worst project ideas.
 
Disguys as a bratwurst?
 
Too late, she picked out theme to be "classy" or something.
How do I catwalk?
 
A classy bratwurst.
 
I can't dress up as a sausage.
 
Then how do you expect to get laid?
 
1:39 AM
@Nooble That must be the wurst thing that could happen to anyone
 
clap
 
@CatPlusPlus :P
@Cicada The only thing I expect is a passing grade.
 
Thank you thank you I'll be here all day
Literally
 
@CatPlusPlus into the trash it goes
 
1:52 AM
have you thought about this?
 
Would you ever refer to variables in a namespace as "global"?
 
@Cicada You claim to be shooting for lame, but seem to be hitting closer to completely crippled.
 
@DavidKron Yes, in a practical sense.
 
2:13 AM
Speaking of governments & mafia, it's kind of funny, because money & power only has control within the human race. If you give any normal rat the choice between a piece of cheese & a hundred US dollar note, the rat would go for the cheese. Similarly human might have the ability to slaughter hundreds of chickens or cattles, but it has failed to control pests or virus spreading in almost all area of earth. Cockroaches & AIDs are the two of the best examples of this.
 
How profound
 
2:40 AM
@StackedCrooked Thanks for disabling Ctrl + S btw.
I do it unconsciously and I hate the stupid save as dialog.
 
That was a very early request by @Xeo.
 
Yeah I know
I've been running into it a lot lately
 
@Rapptz And the 4 second freeze before it pops up.
Having a sleeping external HD attached to the computer blocks the file dialog until it wakes up.
 
You host coliru on a home server?
 
No it's on a VPS.
 
2:45 AM
Oh.
 
3:34 AM
18
A: Do you prefix variable names with an abbreviation of the variable types? (Hungarian Notation)

smirkingmanpronounYou verbShould adverbNever verbUse adjectiveHungarian nounNotation, prepositionIt verbMakes collectivenounEverything adverbSo comparativeBloody adjectiveHard infinitiveTo verbRead.

lol
 
3:46 AM
where can I find a comprehensive reference of all get and getline functions?
 
@Mark curiously, the website seems to be down atm
 
@maja Try it again with the edited link.
I was used to typing htpps://
 
That's quite a protocol
 
oh lol
 
4:48 AM
Morning.
 
Good morning.
 
> Rust’s language design makes you write code with optimal performance almost always. In other words, you don’t need to have read and fully understand the compiler’s source code to write optimal code as you nearly do with C++ nowadays
I swear these Rust guys are high as fuck
 
But how high is fuck?
 
@Cicada lel
source?
 
Rust.
 
aw google+
 
Linked from /r/rust
 
such a tl;dr
._.
> I’m coming from C/C++ background and as a +Boost C++ library developer and maintainer
whaat
I can't find him as a maintainer for a boost library
Oh I found it
Boost.Thread!
hasn't done a single commit
 
@Rapptz His job is to read GCC's source code.
 
oh as maintainer he can't commit
I think he can only merge PRs
 
5:02 AM
Impressive.
 
oh nvm I'm dumb
heh
figures I do something stupid
thank you gitbub
@Cicada I'm reading through this now and only this line in particular seems terrible.
and the weird jabs at templates but I can let that one slide since it isn't total retardation
 
Well that's too bad because it's the one that made me stop reading :D
 
well there was also this line:
> plus const really does mean const in Rust whereas in C++ const is only a programmer annotation, and is otherwise ignored the compiler optimiser (due to const_cast/C casting/mutable existing!).
this is UB
he should know this
smh
 
Maybe he means the compiler can't optimise on const?
 
the compiler does optimisations if you do UB
just not the ones you'd expect
also:
> Static variant types are in the language! (called enums). And they are a particularly full fat implementation too, plus because they are static there is no runtime overhead,
this is actually cool
> It has virtually no automatic conversion semantics nor overloading, and hence requires you to spell out manually every single bloody conversion by hand - it won’t even auto convert a comparison of Option<T> to T.
does Rust really not have overloading? o.o
seems wrong
the con section is bigger than the pro section wot
 
5:13 AM
I didn't even pay attention
Was busy reading g++ source code.
The comments seem to debase some of his points
the very last comment being the most constructive and insightful IMO
 
I don't quite understand his point about errors
 
Rust has no OO, which is something that I would miss, I think.
Or did not have the last time I checked.
 
yeah it does..
anyway
> The cons in particular seem to be not uncommonly misunderstanding Rust or what exists at present.
I can't parse this sentence
send help
 
The cons in particular seem to be ((not uncommonly) (misunderstanding Rust)) || (what exists at present).
My kitchen sink speaks better english than that.
 
Suddenly Rust Evangelist Steve Klabnik in the comment section
 
5:20 AM
This guy is everywhere
 
His Holiness.
 
He probably has Google Alerts set up. :)
 
that hair though
 
I wanna be a tech evangelist when I grow up
> Vec<Rc<RefCell<Box<Trait>>>>? Is there a better way? (self.rust)
We've all been there buddy
RIP and God Bless
 
New backronym: RGB
 
5:25 AM
anyway take away from that post
I want compile time variant
 
@EtiennedeMartel lol, according to this, the Czech Republic has 1-1.5 cm bigger penises than the surrounding countries. Looks like Czech dudes are good at lying about the size... :)
 
That or they have massive immigration from penisland Africa
 
lol Korea
 
Still don't know how to design a good system for collision resolution
 
I had suggested logarithms earlier
You don't have much choice bub
Either extrapolate movement and "prevent" the collision, either let it happen and "roll it back".
 
5:28 AM
not what I mean :(
 
My next nickname shall be bub
 
I mean the event triggering thing
iunno how to make that shit generic
 
template<typename... T>
 
Evening guys
 
nice try
somehow seeing that gave me an idea
 
5:29 AM
wot XD
 
What event trigger @Rapptz
 
OnCollision
 
For what
 
collisions
 
For handling sound and videos
Mark Garcia spoils the fun
 
5:30 AM
what else man
 
No I mean what type
Bounding box? Separating axis?
 
@Cinch he's developing a collision detection system for MD5/SHA1
 
why does this matter
probably AABB
 
@Cinch Completely unrelated. Not video games
Not to be confused with wireless packet collision or hash table collisions. In computer science, a collision or clash is a situation that occurs when two distinct pieces of data have the same hash value, checksum, fingerprint, or cryptographic digest. Collisions are unavoidable whenever members of a very large set (such as all possible person names, or all possible computer files) are mapped to a relatively short bit string. This is merely an instance of the pigeonhole principle. The impact of collisions depends on the application. When hash functions and fingerprints are used to identify similar...
 
@Cicada I do know about collision detection, thank you.
 
5:31 AM
let's postpone this part 2 session another day
 
@Rapptz how are you organizing the profiles or system?
Like what if you have a multi-box entity?
 
@Cinch ==
 
@Cinch Then wtf are you on about boxes and stuff
 
btw I have to wonder
if player A hits tile B then are two OnCollision events triggered?
 
What I mean is that how you structure your system and scheme will determine this
 
5:33 AM
> ELI5 : What is the difference between constexpr and const ?? (self.cpp)
 
one for tile B to player A and another for player A to tile B?
 
Missed it, damn.
 
@Rapptz it's colliding boxes probably
 
u wot m8
 
Also I have this interesting theorem for angles versus diagonals
 
5:35 AM
@Rapptz Maybe the player and the tile react differently. Er, they should.
 
Given the center of a rectangle and its side lengths and therefore it's diagonals, could it be possible to establish an angle and distance range in which a collision will always occur?
Seems plausible
 
@Cinch Of course.
 
if the center of the rectangles are X distance away where the deflection of the rectangle is Y radians away
 
@Rapptz I've never designed such a system, but IMO there should be 1 collision event raised per collision, dispatched to a handler which is unique to the pair of type of object in the collision. Get it? Wall+Player, Wall+Wall, Player+Ball, whatever.
 
@Cicada also, quadtrees
Also, you might want to check collisions of velocity vectors, not just it's next position
 
5:38 AM
what
 
lol
 
If you have a sufficient velocity system, you might be able to establish a point-slope system
Where slope = dy/dx
 
@Rapptz I thought the funniest part was the D advocate coming in with: while (!file.eof) ..., immediately discrediting everything else he said (regardless of whether it might be true).
 
Using two vectors, it may be possible to do such a thing
 
@JerryCoffin Well there are valid uses of it, though
 
5:40 AM
@Cicada Oh? What would those be?
 
@Rapptz what type of game is it?
How much precision do you need?
@JerryCoffin Um, I'm guessing that we should check for while its good?
 
@JerryCoffin Random example
 
@Cinch Nope. Basically the same problem. EOF is only detected when you try to do a read, and the file was already at EOF when you attempted the read. When you need to do is attempt the read, then check whether you get eof. In C++ that usually looks something like: while (f >> x) or while (std::getline(f, x)).
 
I also remember seeing a valid use of it a couple days ago in a question. Even @LightningRacisinObrit noted it.
 
There are, in fairness, a few cases where the zigs and zags can align (so to speak) to signal eof at the right time so a while (!x.eof()) at least appears to work correctly most of the time. Still has other problems though, such as failing to break out of the loop if case of any other failures though.
 
5:48 AM
@JerryCoffin oh I get it
Why do programmers like to throw geniuses and hipsters into the void?
Both are unusually exceptional.
 
@Cinch Being a good programmer requires both creativity and discipline. Most hipsters lack the discipline to really program well. They can show streaks of brilliance, but it takes (a lot) more than that to produce much in the way of a real system. Most self-proclaimed geniuses simply aren't nearly as smart as they think, so almost nobody respects them.
 
@JerryCoffin What kinds of effort do we need to create complex programs?
Real and imaginary
 
@Cinch For the latter, only your imagination. :P
 
What did the professors say to the calculus student?
Euler pretry fast. I'd radian 10/10
 
@Cinch Wrong question. Producing a complex program is trivial. Producing a simple program that solves complex problems is what we usually want. That usually requires deep understanding of the problem, as well as an excellent grasp of how to express the solution in the chosen language.
 
6:02 AM
@JerryCoffin Why are scientists more progressive than most other programmers?
Because they're already on R and most hippies want the D
Although some just like to F#
And then there's Haskell
Why are Unity programmers obsessed with knives?
Because they C# things
What did the computer say to the other computer?
Nothing, silly! Computers can't talk!
 
[8]
 
@Cinch Your jokes have seem to have delusions of grandeur adequacy.
 
Okay serious
Isn't P vs. NP due to some form of entropy?
 
yeah dark entropy actually
we know it composes 99% of NP hard problems but can't observe it directly
 
I mean, entropy in the sense that certain things are harder to reverse than others or cannot be reversed
 
6:11 AM
@Cinch Doesn't matter.
Thinking small atm.
@Cicada The reason I ask is because I don't know how I'd pick which one handles the event.
 
@Rapptz well you could go the Unity route and determine which items are static.
Or you could remove the precedence and feed things through an external subsystem via the visitor pattern
Physics itself doesn't play favorites, after all
 
Xeo
@Rapptz yep, also got that ICSS - involuntary ctrl-S syndrome
 
@Cinch Well, apparently God does play dice with the universe, so who are we to be sure those dice aren't loaded?
 
@JerryCoffin If the dice of reality are always loaded, who is to say that it isn't?
Or that it is?
So I guess I should be looking into Boost.Spirit soon
Or Boost.Xpressive
 
$5 Simpsons Portraits. She must be a millionaire by now! Amazing. https://www.fiverr.com/eliana93fer/draw-you-as-a-simpsons-character--4
@Cinch Of course
@Rapptz never happened to me. Even though I map ^S to :upd!<CR> these days
 
6:29 AM
12 messages moved to bin
 
Ironic :) Thanks
 
bam!
@sehe Tom Hanks?
:P
 
Message removed :S
 
I should put on my headphones heh
 
Gee @mi5t4n maybe next time you can start with "Hello". So we can refer you to Stack Overflow for questions
 
6:31 AM
my bad
 
Ok. Just don't do that anymore :/ (inb4: deadline/question banned)
 
@mi5t4n Also, wall of code. You should fare better in Stack Overflow for those.
 
okk i will go post the question there :)
 
@Rapptz have you tried BlazBlue
 
No
 
6:36 AM
You should
I remember you taking about Smash
BlazBlue and Guilty Gear are known as high skill cap, fast, deep fighting games e
 
> I would recommend using your java skills to learn C++
wat
"You should write Java code in C++"
 
That's the risk. I'm not convinced it's what he wanted to say.
 
Lol
 
I suppose it's more like "you can teach yourself programming because you already know how to do stuff. So, give yourself simple challenges." But yeah, the implication is palpable
 
6:43 AM
It would also be better if he specifically meant common syntax and closely related ones.
 
I don't think so. I hope he specifically meant "you have some experience coding, so you know what makes for simple problems and what not. Pick a problem using that skill"
 
@Rapptz I'd say neither, as per my message.
 
not sure how that'd work
 
You have a handler for every possible type of interaction (ie, pairs of types of interactors)
 
that seems like a lot of work
 
6:55 AM
Not sure.
The types interactions are fairly limited
(Moving obj / Moving obj), (Moving obj / Static Obj) for starters
 
that's a massive simplification though
 
Yes
 
there are many static object types and many moving object types
 
But it solves your issue of "who handles the collision?"
I don't think it adds more complexity actually
It just reifies the collision interaction
But as I said earlier, I've never conceived such a system, so take my advice with that in mind~
 

« first day (1650 days earlier)      last day (3299 days later) »