« first day (1645 days earlier)      last day (3300 days later) » 

9:00 PM
@Cinch How's that weird. Specs are never weird. It's just. Specs
@Prismatic Not really, this is what he means
 
I didn't know sehe was a polar bear O.o
 
what is this
 
Rubbish
 
equal_key?
Wait wait wait so an unordered_map can have duplicate keys?
 
duuuuuude
 
9:01 PM
No that's a multimap
 
@sehe Imagine the specs for the computer that had as its only output "42" in the canonical text. Those specs would likely qualify as weird.
 
Guys.
What's a good theme for Sublime Text 3.
 
@Nooble What.
 
@Nooble monokai
solarized is trash, only unciv'lized peasantry uses it
 
:P
 
9:02 PM
The best theme of all is the one you create though
 
@CaptainGiraffe Not if there was considerable market adoption. It stops being weird if it's accepted status quo by many for years
> uncivlized
 
user1804599
The best way to improve an abstract factory in C++ is to delete all the code, include <functional> and use std::function. — rightfold just now
 
I've started initializing members in class declarations rather than in source file constructor definitions... I don't know how I feel about it. On the one hand its nicer, but it feels kind of wrong.
 
user1804599
Clojure agents are interesting.
 
9:20 PM
mm; what happened to litb?
 
He came around once or twice. A bit like you, actually
 
user1804599
> there should be one—and preferably only one—obvious way to do it
 
user1804599
> has four different syntaxes for string literals
 
What’s the fourth?
 
user1804599
No idea; it's an unordered set.
 
9:26 PM
In a C harmony F is the fourth.
 
', ", ''', and """? I don’t really think that counts
 
user1804599
There's ', ", ''' and """.
 
At least that is what Cohen told me.
 
Funny how it's an unordered set yet you cite them in the same order :)
@CaptainGiraffe a.k.a. sub-dominant
 
user1804599
53
Q: Can we theoretically balance a perfectly symmetrical pencil on its one-atom tip?

TBBTI was asked by an undergrad student about this question. I think if we were to take away air molecules around the pencil and cool it to absolute zero, that pencil would theoretically balance. Am I correct?

 
9:29 PM
lolwut, cat fell of its sleeping place :/
 
user1804599
so many different answers!
 
@sehe That would have been an awkward verse but yes.
 
user1804599
@sehe We use the same data structure!
 
user1804599
@sehe s/call/cat/
 
user1804599
Calls don't sleep.
 
9:29 PM
inb4 runtime PGO self-tuning datastructure
 
@Nooble decided i'll just get a decent laptop. Recommendations? I want lightweight and hopefully some graphics card. Hopefully <$1.2k (waay bigger budget because i can keep it for college and crap)
 
user1804599
Woo I implemented new!
 
@rightfold very good deduction. I don't know what happened with my typing there
 
@Blob Sure.
 
user1804599
return new ((function() {}).bind.apply(constructor, arguments));
 
9:30 PM
Uhm...
 
user1804599
just JS being terrible
 
user1804599
hey fuck
 
user1804599
i pass the wrong arguments
 
@Blob Here.
 
right why do you blame that on JS?
 
9:31 PM
because fun
 
user1804599
huh I'm so confused
 
user1804599
aaaah I get it
 
user1804599
the code is correct.
 
@Nooble dayum. can't i shave some of that price off by taking an i5 x_x
 
@Blob Actually scratch that. Get this instead. i7 and GTX960m.
Also $1149.
 
9:34 PM
@orlp oh look, more benchmark contenders boost.org/doc/libs/1_58_0/libs/sort/doc/html/index.html
 
user1804599
Perl 6' autoparallelisation features are nice.
 
It's not hard to write apocryphic c++ "abc"[UNIX] is a fun one.
 
@CaptainGiraffe main.cpp:6:18: error: 'UNIX' was not declared in this scope
?
 
user1804599
For example <a bc def>».length returns (1, 2, 3) but may be executed in parallel because the » operator assumes .length is free of side-effects.
 
@Blob What compiler does not have the UNIX define?
 
lol why is "Guys." starred
 
Well that site hosts the worlds shittiest compilers.
 
@AlexM. Old lounge meme.
 
oh memes
like spurdo
I love that meme
 
So we have replaced the word saying with meme?
 
9:40 PM
yesterday, by R. Martinho Fernandes
> Words are memes that can be pronounced.
 
@CaptainGiraffe It has ghc
 
Like the old meme fox in a henhouse, but text on a picture?
 
sometimes I wonder how people managed to live before the internet
usually when I look at memes
 
9:42 PM
@CaptainGiraffe No?
I strictly remember a short period of time a long time ago people would always star "Guys" for no reason.
 
@Nooble literally no?
 
@CaptainGiraffe Figuratively no?
 
> strictly
 
Fucknuggets
 
REQUIRED MAY MUST
 
9:44 PM
I need another linux distro
 
> > strictly
 
would you like some ketchup and fries with your fucknuggets?
 
yay for release notes
 
Aww we can't nest them.
 
starring: no
saying: all the fucking time
 
9:47 PM
Is it preferred to use .reset() on a unique_ptr or reassign it with = make_unique?
 
Depends on what you want to do
I prefer .reset() for clearing it.
 
Jan 16 at 23:57, by Borgleader
Guys
 
...
 
wat
 
Lounge<Wat>
 
9:48 PM
wat
 
Nice. Boost now has an "Experimental small_vector container."
 
@sehe like if I create a global unique_ptr instance and initialize it later
 
rotfl global
 
:)
 
A global will likely take care of itself without the pointer.
 
9:49 PM
@HalfEvil I'd just use assignment. Rule of thumb: try to use types as primitive types unless that's a false sense of familiarity (a.k.a. overload operators only to their natural meanings)
 
Their natural meanings is a difficult concept. That is why the rule is "don't do it"
 
Wut.
Whatever mate. You're not very consistent tonight
 
Hm okay I see, tbh the reset function seem kinda redundant (not considering that it's used internally by the = operator then)
 
If you really think that assignment to a unique_ptr is "tricky" for operator=...
 
user1804599
Don't use globals.
 
9:53 PM
@HalfEvil Except for p.reset()
 
user1804599
Globals are terrible.
 
I like this song
 
user1804599
They're not even global.
 
user1804599
They're process-local!
 
9:53 PM
it's simple and nice
 
(removed)
 
(transactional memory)
 
> Like If you watching in 1973 !
 
@sehe p.reset() can be written as p = nullptr instead
 
@sehe it's a meme from youtube
it's similar to...
 
9:56 PM
@HalfEvil Ah. There's a non-explicit conversion ctor for that then. TIL. Still would prefer .reset() there.
@AlexM. I know. But not with in the past, AFAIK
 
going to videos of old music and telling everyone how you're 10 and love 60's music unlike your generation
 
unique_ptr& operator=( nullptr_t );
 
sometimes it goes as far as "I'm a fetus and I love The Beatles!"
 
@AlexM. Oh, that's another thing. Yes, seen that enough times
@AlexM. sounds legit, btw
 
@AlexM. /s/meme/design pattern/
 
9:58 PM
@sehe people usually do it with the past just to plug in stuff like "I'm watching this in 100000 B.C. on my iStone"
a few days ago I learned that the wheel was invented quite late
 
@AlexM. Not bad actually. The intro is a bit long/uninteresting, but the rest more than offsets it
 
even after inventions like the flute
 
@sehe All I'm saying is that it is easy to find a need for an operator overload. The classic +, - , and * what have you. It is rare that it is the best way to go. op = of course being special.
 
Well. Nice of you to take that out of context :/ (it was about unique_ptr)
 
> A Salute to the Wheel
Always cited as the hallmark of man’s innovation, here is the real story behind the wheel – from its origins to its reinvention
http://www.smithsonianmag.com/science-nature/a-salute-to-the-wheel-31805121/#liJU638FTPJWPsqQ.99
pretty interesting
 
10:00 PM
Anyway I "need" to use global pointers as it's horrific to pass it around to every other object and function. And it needs to be a pointer because I do not want the object to be created at the moment the process starts
 
@sehe Allow me to apologize for reading it different.
 
we took so much time to develop, it's crazy
so many years
 
:D
 
@HalfEvil If it must be passed everywhere, you have a design problem. Also, dependency injection.
Friends don't let friends use globals.
 
^^ THAT
^ and that
 
10:03 PM
Most random operator overload in the standard library is << for cout :S
 
overloads are on types
 
Well, it is random, but it actually worked out nicely. Nobody uses bitshifts, so it's more commonly associated as the "put into stream" operator.
 
Yeah well on a ostream then
 
Don't forget about valarray. Soon path::operator/
 
@sehe Ouch. (path::operator/)
A path class could use variadic constructors.
 
10:06 PM
a guy on a random forum here announced that he's going to some interview (2nd year student, first interview) and asked people what to do lol
 
@milleniumbug well, that would rarely be useful IYAM
 
they're making it seem like such a big deal I think he's more scared than ever lol
"Congrats on your first interview, which is surely the first of many <more stuff here about what to expect>"
I found this one to be funny: "Since you're a 2nd year student the interview will most likely be about college, your college activity and projects, and pointers"
as in, pointers in programming
 
@milleniumbug well every other object was an exaggeration but it's for the object holding the font which is used by very many parts of the program. I mean I guess I could write a function for creating a label instance with that specific font...
 
stackoverflow.com/q/29723346/3065406 isn't that something for you guys?
 
@HalfEvil Font is only relevant to parts of the program that draw stuff.
 
10:08 PM
@deW1 for me?
why, thank you!
 
lol maybe @AlexM.
 
let's see what it is
a question I never asked for, exactly what I wanted!
 
@milleniumbug it's relevant to every state as every state has it's own draw function. And the program consists of 20+ states
 
I like this stuff SO added on profiles with no description entered
> Apparently, this user prefers to keep an air of mystery about them.
 
So, all the states should hold a reference to a font provider/label renderer what ever
 
10:13 PM
@AlexM. I wonder if they trim it though what if you input just a lot of whitespaces
 
user1804599
@fredoverflow the Go compiler doesn't store types in the AST at all.
 
@sehe yeah but that would require quite a lot more code. Why is it so bad to use a global for such a case anyway?
 
You'll find out when you need to test things, make it thread safe, change it, have spurious failures on shutdown, wanted to move it off to a shared library etc.
 
user1804599
@fredoverflow how about the following?
 
user1804599
class NodeID
sealed abstract class Node { def id: NodeID }
// subclasses…
type TypeMap = Map[NodeID, Type]
 
10:15 PM
I need a project name.
 
CompleteBogus
 
user1804599
@Nooble bukkake
 
ask cleverbot
 
@rightfold :P
@sehe Thanks.
 
@Nooble AstroBomber
 
10:16 PM
@milleniumbug Ooh that
Hm...
CompletelyBogusAstroBomber it is.
 
I like it
 
@Nooble INeedAProjectName
 
or, try to pretend you're from distant country, and name your project "TranslationError"
 
@milleniumbug affirmative
night all
 
@sehe night
 
10:30 PM
@sehe sleep well
 
10:41 PM
does VS pick up if there is a build.cmd in the sln folder and run that on build?
 
I beat The Family Man @Xeo definitely one of the more annoying ones.
 
@JohanLarsson highly doubt it
 
yeah, some voodoo is going on here :)
 
user1804599
10:55 PM
@fredoverflow this is how the Go compiler associates types with AST nodes: github.com/golang/tools/blob/master/go/types/api.go#L130
 
I thought Go didn't have generics
 
IIRC it still doesn't
 
@Rapptz Gratz
 
user1804599
@Puppy It does, just not user-defined ones.
 
user1804599
@fredoverflow I added an answer to your Stack Overflow question.
 
11:01 PM
oh that's especially shit.
"We don't need generics- we just need generics".
 
Do you guys know any simplifier for arithmetic expressions resulting in a bool?
Like a boolean algebra simplifier with support for the greater + lesser than signs and simple additions etc
 
(disclaimer: first result on google, didnt actually try that particular feature of the site, although i have used others)
 
It gives me possible results
ie, tries to solve x,yz
instead of simplifying
or maybe... i just need to and the solutions it gives
 
weird, on this page theres a "minimal form" sections
thats why i suggested it
 
@Borgleader Yea but i think its just because its a regular boolean algebra simplifier, doesnt have support for < and >, then it prolly sees it as a formulae
Or i dunnp
 
11:10 PM
< and > are pretty meaningless in boolean algebra really.
if x > y then that's basically just y = 0, x = 1.
oh you didn't actually say boolean algebra simplifier already
you might be interested in looking at the workings of e.g. LLVM's optimizer.
 
user1804599
Alright, let's implement ! and <>.
 
user1804599
! <- { |x| if x {false} {true} }
<> <- { |xs...| !: = xs... }
 
user1804599
That was easy!
 
Dont get the second, is it both operators in one, or wtf
I just wanted an easy online tool to simplify my if statements whenever necessary, im a lazy ass
currently sitting with
if ((ang0 < ang1 && ang2 > ang1 ||
ang0 > ang1 && ang2 < ang1)
 
dont think that can be simplified any further
 
11:20 PM
i know i can do (ang0 - ang1)*(ang2 - ang1) >= 0
but thats not really helping
almost harder to read
yea you might be right
 
Hi guys, for wescrapping, are the solutions listed in HERE still up to date or there's better alternatives ?
 
Using an API is better...
 
@Enissay no.
 
@Enissay use python
much easier
 
Do you need to crawl aswel?
 
11:24 PM
@Puppy any tip/link to put me on the right direction would be greatly appreciated
 
no.
 
lol
nah, just some specific pages
@Borgleader I know how to do it with beautifulsoup... Still looking for an equivalent in cpp
 
user1804599
Alright, I wrote a type checker today.
 
hi
i am looking for the cool kids chat
 
Hello
 
11:34 PM
:)
 
Wrong room then.
 
user1804599
Scala is so awesome.
 
@Rapptz what the heck is that, and why do I wanna play it?
I don't play video games, whenever I'm bored I smoke - that's kinda my thing.
 
@FilipRoséen-refp Binding of Isaac
 
11:49 PM
@Borgleader "eyyy boi" <- approved
oh, it's not free :-/
 
Its 5.50$ on steam...
 
@Borgleader I don't have $5.50, nor do I have a steam account. I guess it's meant to be - no games for me this evening
 

« first day (1645 days earlier)      last day (3300 days later) »