« first day (1816 days earlier)      last day (3137 days later) » 

8:00 AM
Wait is that where you got the music fragment from
 
Ask @Mysticial, he really, really liked it.
 
He has poor taste
 
user1804599
Rust is awesome.
 
@AndyProwl Erm. I hope she's not trying to tell you she is pregnant
@elyse Yeah. But it stains
Also, how cross platform is rust
 
user1804599
 
user1804599
8:02 AM
:D:D:D:D:D:D
 
@elyse Does it have OOP yet?
 
user1804599
@sehe as much as LLVM I think.
 
@sehe T is non-deduced there, so I don't think that would work
 
user1804599
 
@AndyProwl That's exactly why it works! Otherwise, it would be "universal reference"
 
8:03 AM
@elyse Something close to what C++ or Java or C# has.
 
@sehe how can it deduce T?
 
Damn. Did I miss the forest for the trees.
 
user1804599
@wilx Why would you want a horrible model like that :v
 
I think so
 
@AndyProwl I guess I didn't assume it was to be deduced
 
8:04 AM
@elyse Because experience says it is useful.
 
Well.
 
yeah, I also noticed the requirement at a second glance only
 
user1804599
Mine says it isn't.
 
^
 
user1804599
It's less expressive than structs, functions, and ad-hoc polymorphism.
 
8:06 AM
@sehe Fortunately she would really have no reason to share that information with me but if that's her intention, ok :P
 
user1804599
C#-like classes are good when you have a fixed set of operations and want to implement them for a lot of types.
 
user1804599
That's often not what you want.
 
> Read my book
the guy's quite a commander
 
user1804599
Often, you have a fixed set of types, and want to implement more and more operations that work on all of them.
 
user1804599
That's what ad-hoc polymorphism is extremely good at.
 
user1804599
8:07 AM
And sum types.
 
user1804599
And this is what Rust already offers.
 
@AndyProwl Juuuuuust checking :)
 
user1804599
Also factory functions are more flexible than constructors.
 
user1804599
And constructors can't return errors.
 
@GregorMcGregor mmm not used that. Example?
 
8:09 AM
WEll.
libjpeg is entirely retarded.
 
@AndyProwl So you pass an opportunity to join mile high club? :)
 
It doesn't include its options with <jpeg/jconfig.h>`
Instead, it uses "" to include its options
Meaning you can't hook its parameters.
So the only way to change the config is to literally delete the file.
 
56
Q: Can someone give an example of cosine similarity, in very simple, graphical way?

TIMEXhttp://en.wikipedia.org/wiki/Cosine%5Fsimilarity Can you show the vectors here (in a list or something) And then do the math, and let us see how it works? I'm a beginner.

 
Which screws up the history.
 
@ThePhD Well, since the options change ABI or stuff, it probably is a good thing.
 
8:10 AM
@wilx I guess :P (damn short flights lol)
 
@wilx ... What.
 
user1804599
Being able to implement interfaces for existing types after-the-fact is something Java and C# programmers can only dream of.
 
@sehe You have the opus demos here too. o-o
 
user1804599
missing cto
 
Gosh, just how much code does sehe have lying around all cleaned up!?
 
8:14 AM
@ThePhD Yeah. Should prolly be gist. I don't maintain my github very much
@ThePhD Not much. Most of it is in SO answers
@ThePhD this means it's not valid to touch the config unless you include the lib source statically. In which case you can just edit the file
@AndyProwl length doesn't matter
 
@sehe I have edited the file. Though, to be fair, the libjpeg people don't know what Source Control is.
They still dist their sources with pre-prettied tarballs and zip files.
 
I think they now exactly what it means IRL
 
@sehe Right. We all know it's actually about width
 
That's about right
> The latest release is version 6b of 27-Mar-1998
This is veritably old software
 
So much work to do. q_q
I want to work on it all right now but SCHOOL.
 
8:24 AM
@Griwes any major C++ conference in Europe apart from Meeting C++ and ACCU and unconference?
 
user1804599
@ThePhD SCOBOL
 
I don't know of any.
 
@AndyProwl unconference :P
 
@StackedCrooked how could I forget :D
 
o_0 you should be able to use a lambda (with capture) as a predicate for find_if right...
 
8:25 AM
fixed
@thecoshman yes
 
if it's a find_if applied to a std::vector<T*> does my predicate just take T* or an iterator type? I thought it was T*...
 
T*
show us teh codez
 
user1804599
You don't apply find_if to a vector.
 
user1804599
But to an iterator pair.
 
oh, you're doing find_if(v, lambda)?
 
user1804599
8:28 AM
std::vector<T*>::iterator is either unspecified or implementation-defined.
 
it's find_if(begin(v), end(v), lambda)
 
user1804599
Your predicate takes T* const&.
 
@StackedCrooked as Andy just said, it's not about that
It's about circumference
 
lol
 
No experience with unconscious
 
user1804599
8:29 AM
Circumcision at the unconference.
 
That's why I don't go
 
you are already circumcised?
 
Damn. Stole my punch line
 
user1804599
sehe
 
8:31 AM
@thecoshman mind if it's stateful, pass by std::ref or capture by ref
 
@AndyProwl no no, I'm not that silly :P
 
Xeo
@thecoshman find_if
not find
 
yeah
lern2type
:D
 
@Xeo AGGHHH FOR FUCK SAKE
 
Lol.
 
8:32 AM
@thecoshman This is what concepts is supposed to fix :D
 
Gettttttttttttt dunked on.
 
ITT Concepts Can Fix Stupid
SCNR
 
@thecoshman also if(result != components.end()){ return nullptr; }
should be the other way round
 
I'm really curious to play with concepts
 
Is that her name
 
8:33 AM
@Mr.kbok oh yeah, I start to swap that logic around :P
 
@Mr.kbok nice
 
0
Q: C++: When should i use _disable() _enable()

user1235183Visual Studio allows instructs to clear the processors interrupt flag via _disable or _enable (see link). When, it is recommended to use such tools. Especally, in view of performance. https://msdn.microsoft.com/en-us/library/tzkfha43.aspx

fail
 
@sehe very feminine yes
 
I was gonna say, that's probably a male name in Italy
 
lol
 
8:33 AM
conception
 
snarfed
 
Miss Conception
 
I thought you were married @AndyProwl. For some reason
 
STAHP!
 
@GregorMcGregor lol
 
user1804599
8:34 AM
@GregorMcGregor lol
 
@Mr.kbok I'm not. I just have a grillfriand
 
user1804599
@GregorMcGregor missing the "requires a minimal understanding of the problem" close reason.
 
@AndyProwl Actually to be completely honest I pictured you sbi-old. I have no idea why.
 
@Mr.kbok I'm more like sehe-old
actually I don't know how old sbi is
 
I'm not a kernel mode driver developer. What is kernel mode? — user1235183 3 mins ago
gold
 
8:36 AM
I guess he told me but I forgot
 
Missing a minimal understanding of the problem — sehe 10 secs ago
@Mr.kbok Then, statistically, you had no reason to assume he'd still be married.
I mean, marriage is something young people do, when they breed
 
What a fucking day
 
Can we join?
 
My bike broke on the way to work, I took a train and got out on a wrong station
 
lol, I once took the bus in the wrong direction.
 
8:38 AM
And I was supposed to be early at work today because uni classes at 17:15
 
user1804599
In other words, you did a Robot.
9
 
This is a great day, still high on the LLVM voodoo I saw yesterday.
 
So now I have no time to go to uni and no way to get there
 
@StackedCrooked The same happened with me..on the half way, I came to know
 
@sehe Ouch, that's cynical
 
8:38 AM
Not that I understood much.
 
@elyse Robot++
 
user1804599
@JohanLarsson What LLVM voodoo?
 
@Rerito :D
 
@elyse i suppose
 
help
 
8:39 AM
@elyse The stuff you and sehe wrestled with on livecoding
 
before it was called that
 
(But still I laughed...)
 
I need to define a plan for my course
 
@elyse fuck I wouldn't do anything if not for that engine breaking
 
Like the apostle Paul!
You can still become famous
 
8:39 AM
For like tomorrow ?!?
 
user1804599
Just told a guy into slowing down his operations so that parallel map would be beneficial over serial map.
 
Fucking bs
 
user1804599
@JohanLarsson that was GCC voodoo, not LLVM voodoo.
 
Now I don't know what to do with my uni
And I don't know how will I get my bike home
It's like 8 kilometres
 
That sucks
 
8:41 AM
@elyse LLVM was mentioned :)
 
Can you call a service thing?
What's is that called in Poland
 
@BartekBanachewicz Can't you just call at work and say you had a problem, catch a train back, fix the bike, go to uni?
 
@BartekBanachewicz What do you mean "broke"?
 
Perhaps. Dunno how much id need o pay
 
inb4 we don't have service, we just have impromptu shrap heaps
 
8:41 AM
@Andy I have no idea what broke
 
@BartekBanachewicz Is it relevant considering the options?
 
Is the chain where it is supposed to be?
 
@BartekBanachewicz Yeah I mean, bring it to a repair service
 
@AndyProwl this
 
Speaking of robots, where's our funky robot?
 
8:42 AM
<awkward silence/>
No one knows
 
in Rust, 18 hours ago, by fredoverflow
Robot is probably too busy with cubes and boobs.
 
acquired silence
 
Always look in the Rust room.
 
silence acquisition is initialization
 
8:43 AM
That is where it happens
 
@AndyProwl For presentations, sure :D
 
yeps!
 
Rust is where robots go to die
 
user1804599
Except plastic ones.
 
@sehe scrap* heaps (late realization)
 
user1804599
8:45 AM
I need moore computing power.
 
Deduce computing power
 
hmm... if I do a find_if with a vecotr... can I just assign to that itterator... I want to either replace the value at the itter (if a match was found) else simple append to the vector...
 
@elyse not sure, there are laws about that
 
or do I need to specifically handle the 'no match found'
ah, no.
 
RIP priate
 
8:47 AM
ITT C++ 101
 
so if the element matching the predicate is there you want to change its value, and if no such element is there you want to append a new one?
 
@AndyProwl yay sex
@AndyProwl yes
 
sounds like a job for sets
 
@sehe I was thinking of that but he has a find_if
 
~premature~ ~emasculation~
 
8:48 AM
rather than a find
 
mmm
a map, likely :)
Crystal ball is a bit foggy.
 
nah, I want array like access for coherency #premature
 
lel I called it. Just use flat_map then
 
Ell
@AndyProwl lol
 
I don't think a map would help
still no search-with-predicate
I'd probably handle the two cases separately. If the returned iterator is end, append the new element. Otherwise, assign. If you need this in several parts of the code, extract to a utility function
 
8:51 AM
@AndyProwl I could just use the key
 
what key?
 
user1804599
@thecoshman do you want a set?
 
the 'get_id'
 
wait maybe I forgot the SSCCE
 
user1804599
@sehe Crystal is a programming language.
 
8:52 AM
oh
yeah sehe probably guessed correctly then
you can map by id
 
Lounge is confused this morning. <3
 
@elyse Yup. Like python they have a keyword for functions. They call it meth. #OO
 
and then use mymap[id] = value;
 
user1804599

 
user1804599
@sehe XD
 
8:53 AM
map it like it's hot
 
yeah, I'll std::map for now, I'm only working on POC atm
 
consider std::unordered_map
 
Plain Old Cock
 
lol
 
@thecoshman and replace with boost::container::flat_map if you need the locality of reference (guessing what you meant with "coherence")
 
8:54 AM
@sehe cache friendly basically
 
locality of reference
 
but yeah, I'm only trying to work out how to get this shit to hinge together
 
cache coherence is different thing
 
@sehe yeah yeah yeah
 
"whatever" - struggles along
 
8:54 AM
"get this shit to hinge together" is the technical term I think
3
 
You know, mindfulness solves a lot of problems by not running into them
Noun: road to Damascus
  1. (idiomatic) An important point in someone's life where a great change, or reversal, of ideas or beliefs occurs.
  2. 2007, Bryan Ferry, The Observer, Sunday March 18, 2007
  3. 2010, Vernon Jones, The Atlanta Journal and Constitution, Sunday February 14, 2010
Still had that in my clipboard for when @CreativeMind would finally ask
 
@sehe yeah, but I've spent (I smell chips :\ ) a while just thinking about it, and it's got to the point where I need something more concrete to play with.
 
@thecoshman So, this is actually the time where you switch from "whatever" to "I care about details"
 
@sehe sure, but not those details. Thinking too hard about what problems I could cause for cache usage is partly why I'm still (mentally) whiteboarding
 
@elyse What? Im shocked! :o
I'm deeply disturbed. And I'm deeply unhappy.
 
Otherwise, morning everyone :D
 
@Morwenn He's trolling. Of course rightfold knows all languages.
 
@Morwenn That's a weird finger. I wonder whether it's infected
 
Now I'm glad I didn't rush buying Nexys 4.
 
@Morwenn that photo is deeply disturbing
 
8:59 AM
@sehe In the mushroom.
 
there goes breakfast
 
@StackedCrooked That's not the full image though.
 
@StackedCrooked so is template wankery, yet we do it all the time :P
 
@StackedCrooked Classy :p
 

« first day (1816 days earlier)      last day (3137 days later) »