« first day (1472 days earlier)      last day (3482 days later) » 

2:00 AM
I'm thinking of writing a calculator
 
@Rapptz why do you think polish is lame though? infix isn't that much harder
 
and I might as well get the EDSL out of the way
 
user1646075
@Nooble See also Eiffel, which does what those ones do, only scientifically.
 
They look interesting.
And weird.
Anyways, it's 10PM, goodnight.
 
@nightcracker Because RPN calculators irritate me.
 
2:03 AM
@Rapptz it wasn't RPN
@Rapptz it was PPN
+ 2 3
 
That's okay but still meh.
 
just add parentheses
(+ 2 3) and you've got lisp
 
user1646075
ciao
 
yeah..
I prefer infix
 
man
I'm still torn up
 
2:05 AM
granted, for taking derivatives + 2 3 is better
but I'm not gonna do that
 
what would the desired behaviour be with range(start, stop, step=1) with mixed integer types range(-10, vec.size())
@Rapptz it doesn't matter? you'll always parse it into a tree first anyway
 
I'm still not sure how to go about doing this sanely.
 
me neither
I tried looking in the standard library
 
?
 
but I can't think of anything relevant that runs into this issue as well
 
2:07 AM
Oh.
Take both as signed.
or the common type
 
here's the thing
with taking it as signed it can silently overflow
if you pass too large unsigned things into it
as a contrived example, range((1 << 63) + 10, (1 << 63) + 20)
if both start and stop are either signed or unsigned there is never a problem
it's just the mixed case that's bothering me
and then there's always custom integer types
would be nice if it worked with those out of the box (if they support regular arithmetic overloads)
@Rapptz hmm, is it required/expected that decltype(std::begin(x)) == decltype(std::end(x))
 
no
 
oh then the solution is obvious
 
well the standard library makes that assumption now
 
keep start/stop seperated types
 
2:16 AM
but it's going to change soon
 
just make sure the equality comparator is safely defined
 
yeah essentially that is the idea behind Eric Niebler's 'Sentinel' concept.
 
hrm
but that isn't very useful right now yet
 
Ell
I want to try typeclasses in c++ tomorrow
Is there a haskeller here?
 
Sure, why not.
 
2:24 AM
@Rapptz I think I've decided
 
Haskellers are extinct.
 
@Rapptz I will only use int64_t internally
@Rapptz I will make some overloads on the constructors for uint64_t that does a rangecheck
 
I don't know why you're remaking irange(...) :v
I've walked down that path before and I didn't like it.
 
because it doesn't exist in C++? and I really like it
with the C++11 foreach loop syntax
or range-for
 
I know the motivation behind it. I just felt like it didn't buy me much so I removed it.
 
Ell
2:26 AM
@luc in the Num type class definition
 
FWIW I took in two templates and just did a comparison.
 
Ell
The signature of add is a -> a -> a
 
I just needed operator== and operator+= to be well defined.
 
Ell
Does that mean I can't add an Int32 and a Float?
 
@Ell Correct.
 
Ell
2:27 AM
I'm on my mobile, else I'd have tried it
@lucdanton hmm. That's interesting
 
@Rapptz my problem with that is that it's not supported in the standard library yet and it's potentially unsafe with unsigned/signed
 
the standard library delegates these things to be undefined behaviour
because if you're going to be stupid then it's your problem
 
no I mean having begin() and end() be different types
 
I don't see why that matters
 
let's say you want to feed it into std::copy
or to initialize a vector with it
etc etc
 
2:30 AM
er
 
InputIt first, InputIt last doesn't work
you need InputIt1 first, InputIt2 last
 
I meant the signature for irange is irange(Int1, Int2)
not the return type
 
you said only operator== has to be well-defined
and +=
what did your iterator type look like
 
yes between the two types
 
an union?
 
2:31 AM
irange_iterator<typename std::common_type<...>::type>
 
aha, but that's a massive fail
 
didn't cause any issues
 
std::common_type<decltype(-1), decltype(1)> is unsigned
so range(-1, 2) will start off by giving you back 4294967295
 
no repro
add u to it.
1 is an int, not an unsigned.
 
I should play vidya.
Kinda bored.
Adios.
 
 
1 hour later…
3:39 AM
lol
chat died when I left :v
 
user1646075
isn't it nice to feel wanted ;-)
 
@Rapptz You’re the only one keeping this all together.
 
So does anyone here play SSB?
 
user1646075
nyet
 
4:06 AM
 
cpx
4:34 AM
It appears that I obviously confused and misunderstood that copying unique_ptr's value is not possible but it is perfectly possible.
 
Are you still confused?
 
cpx
About the de-reference in my question, yes.
 
I think you should remove the variable of dereferencing.
@cpx Try this.
@cpx Here is a didactic version with no dereferencing at all!
 
cpx
5:02 AM
I guess I can see why now because unique_ptr doesn't have a copy constructor defined in its class so, the copy isn't allowed with unique_ptr being a member variable in your class even if you define your own copy constructor.
 
It does work if you define your own. Isn’t that why you have the commented code?
 
cpx
It does but it doesn't do anything yet and still you can only move the ownership of pointer.
 
That’s another kind of question.
 
user1646075
5:27 AM
Ohhhh - robot hurt the mechanism attaching his shoulder to his torso casing - I remember now
 
user1646075
Thanks, @JerryCoffin
 
6:51 AM
@Borgleader "2nd Edition" Never knew there was one.
 
dammit watching hamburger videos makes me hungry
 
7:20 AM
I found a bug in our code due to the variable wtf being defined. Caused a spurious #ifndef wtf to compile dumping log files and slowing down our code
 
wtf
@Mikhail And why is there even a #ifndef wtf in your code?
Instead of comments?
Or something?
 
@MarkGarcia Because i'm not paid enough?
I'm in graduate school so I get like 2k a month
 
@Mikhail Oh it's yours. lol
 
Yeah, but my undergrad #defined wtf, so I'm blaming him
thats why we use git for blame
 
7:59 AM
@Mikhail
 
@Mikhail 2k what? that could be a fortune or fuck all. I suspect the latter though.
 
Ell
8:28 AM
24k sounds average
 
user1646075
Nigerian Dollars
 
user1804599
8:51 AM
Did you just call me a nigger?
 
user1804599
IE Y U NO form ATTRIBUTE
 
Breaking IE is a feature, not a flaw. — labyrinth Jan 16 at 18:53
See question too.
 
user1804599
Breaking IE dissatisfies customer.
 
user1804599
I'm being paid for making it work on IE.
 
9:05 AM
@rightføld lol. That's the most horrible job description evah!
 
user1804599
@MarkGarcia Actually my colleague does it.
 
user1804599
I use Gentoo so I cannot run IE.
 
@rightføld You use Gentoo because you love to watch walls of scrolling text.
 
user1804599
Because I love FEATURES="candy".
 
Ell
9:16 AM
He called you a Niger
 
user1646075
@rightføld I guess I did. Unless you're a white imperialist
 
I stopped using IE when Microsoft dropped support for app-emulation/emul-linux-x86-xlibs
 
user1804599
I stopped using IE when wait I never used IE.
 
In all honesty, you don't use IE, IE uses you!
 
user1804599
In Soviet Russia, IE is used by YOU!!
 
user1646075
9:21 AM
In Soviet Redmond
 
Redmond
 
user1804599
Rode mond.
 
user1804599
Rodehond.
 
user1646075
Reacharound Seattle
 
Tree Hugers
 
user1804599
9:24 AM
This may come as a shock, but no sane person will read unindented code like this. — rightføld 5 secs ago
 
@rightføld I think he ment no sane python
 
Xeo
lol'd
 
I don't speak your language
 
user1804599
I do, but I don't get the joke.
 
user1646075
google reads it for me, and I don't get the joke. "Are you eating that and we are the hunter"
 
user1804599
9:26 AM
It reads "You are the food and we are the hunters."
 
user1646075
google sucks.
 
Xeo
It's a line from the opening song lyrics of Attack on Titan
you won't get the joke if you don't know about that anime / manga
 
user1804599
Oh references to stuff I don't know.
 
cpx
9:51 AM
Is that spiderboy with his father spiderman?
At first I thought it was only one person until I saw the head of a man.
 
Xeo
That's Spidey + Deadpool
 
cpx
A new hero I guess which I didn't know of.
 
Blech, I have been up all night writing Java... but enjoying it
 
Xeo
"new"?
whut
 
hello room
 
Xeo
9:54 AM
Deadpool has existed for a long time.
> Allerheiligen: 01.11.2014, Samstag
Holiday on a Saturday :<
 
Hey I have been looking forever for an answer to this puzzling question... In Java/Cpp how much memory does an Enum take? I heard everything from nothing to an int each! So in essence I got 16 different answers. Can anyone clarify?
 
Xeo
A variable of type enum blub occupies sizeof(blub) bytes of memory.
 
user1804599
@Xeo Good.
 
user1804599
WORK YOU LAZY FUCk
 
Xeo
:<
 
9:58 AM
so an enum of int should be one word no matter how many enum values there are?>
 
@Xeo What holiday?
Lazy non-Berliners.
 
user1804599
Allerheiligen.
 
user1804599
@RolandSams implementation-defined.
 
cpx
Looks like he got his clothes from the same shop as spiderman.
 
user1804599
C++ doesn't know about words.
 
Xeo
9:58 AM
@R.MartinhoFernandes Jelly jelly.
 
cpx
Shower!
 
@RolandSams 16?
 
@R.MartinhoFernandes hmm?
 
user1804599
33
A: what is the size of an enum type data in C++?

Nicol Bolas This is a C++ interview test question not homework. Then your interviewee needs to refresh his recollection with how the C++ standard works. And I quote: For an enumeration whose underlying type is not fixed, the underlying type is an integral type that can represent all the enumerator ...

 
user1804599
In Java it's unspecified. Java enums are just classes.
 
10:02 AM
@rightføld Sorry for hastlin' you guys. Thanks for the answer. Although I am a little disappointed in Java enums
 
user1804599
Java enums are vastly superior over C++' crap.
 
user1804599
Though still silly and limited.
 
user1646075
A rare claim to be able to make
 
Ell
I find it weird that anyone calls them enums
They should be called a const set or something such
 
@rightføld Oddly enough you're right
 
user1804599
10:05 AM
Proper ADTs > enums.
 
user1804599
Why is it odd?
 
user1804599
I'm always right.
 
user1804599
Hence rightfold.
 
everyone is always disappointed with Java
 
user1804599
I even vote right-wing parties.
 
10:06 AM
nothing personal
 
user1804599
@RolandSams Probably because Java is shit.
 
Ell
Lol
I never know what ADT
C++ has tuples and variants
Product type and sum type
 
user1804599
> sqlalchemy.exc.ProgrammingError
 
Xeo
@Ell variant is not a proper sum-type
 
user1804599
@Xeo How not?
 
Xeo
10:15 AM
boost::variant<int, int>
gl with that
 
user1804599
> The set of all possible values of a sum type is the set-theoretical sum, i.e. the disjoint union, of the sets of all possible values of its variants.
 
Ell
Ah yeah
 
user1804599
So indeed, if boost::variant<int, int> is not equivalent to boost::variant<int> then it's not a sum type.
 
@rightføld Where did you get that from?
 
@cv_and_he Wow. I love this game. It's so much better than code golfing. Virtual +1 for you too — sehe 12 secs ago
 
Xeo
10:23 AM
@rightføld Err, how is that a requirement for a sum-type?
That'd be stupid
The problem with boost::variant<int, int> is that you have no way to ever set the second value instead of the first.
 
woot, dropbox isn't filtered at work
I can move a shitload of music on it and download it here
v.s. usb drives
tried with 2 x 500mb flacs, got them downloaded in some two minutes
 
You use VS in USB drives?
 
whoops, to late to edit
 
Ell
Has someone tried to write ADTs in c++?
 
Xeo
Kinda. I wrote some kinda tagged_variant a while ago
 
10:30 AM
@Ell evyone, especially Java guys. Note: ADT means different things to different people (depending on their hipster-level)
 
@Xeo He's misreading it.
 
Xeo
Yeah, I guessed
 
> Hungary to impose world's first internet tax cnbc.com/id/102111147
I'm sure it will work
 
user1804599
> Neelie Kroes, the EU's outgoing digital chief, told the Financial Times the measures would damage Hungary's digital economy.
 
user1804599
lol Kroes
 
user1804599
10:39 AM
stupid whore
 
Am I just stupid or is it really impossible to inspect a certificate on IE11? That makes the "continue" option rather ... Russian Roulette, if you ask me (it also makes it impossible to debug certificate issues)
@rightføld brainless monkey Smooth. I don't understand how you can act so dumb when you're obviously not dumb enough to not care.
 
Xeo
@CatPlusPlus YNAB sucks, the installer doesn't let me choose a location :<
 
10:57 AM
Oh brilliant, IE11. So now these dialogs are mutually blocking dismissal? content.screencast.com/users/sehe/folders/Jing/media/…
 
user1804599
$('#billing-deadline-days-label').text(this.value == '1' ? {{ _('day')|json }} : {{ _('days')|json }}) hurray
 
user1804599
beautiful
 
go back to Perl, fool
 
user1804599
I wish I could use Perl client-side.
 
user1804599
 
11:04 AM
I bet there are solutions for this
 
user1804599
    if (s == 'Mu') {
        return true;
    } else {
        return false;
    }
 
user1804599
top kek
 
lol. that's an epic subset of perl. Also the subset where it excells
 
user1804599
That's JavaScript.
 
user1804599
String comparison in Perl uses eq, not ==.
 
user1804599
 
Just applied Apple's hotfix for keeping data out of iCloud. http://t.co/BODxGOa7IM
 
user1804599
Ugh, uses JavaScript regex instead of Perl regex.
 
user1804599
Perlito sucks.
 
user1804599
 
My colleague has told me in very serious mode, that it's not any difference between using some IDE under Linux or developing from console using vim. May I kill him?
 
Ell
11:15 AM
No
 
user1804599
Yes.
 
I can't imagine how he would debug quickly some async && multithreaded app not from IDE
trully
or some GUI app
 
user1804599
Then you are a fool as much as he is.
 
@rightføld Why?
 
user1804599
I should give Emscripten a try.
 
11:17 AM
@deni no
because the answer is obviously "it depends"
he may be right under certain circumstances
 
@rightføld Wait man, let's be serious and please be kind. For example you have an async multithreaded server in development. Just for e.g., you want to say that you will debug it really good just in gdb from console?
 
my project compiled
 
Ell
Dialogue deadlock
 
I could have sworn I left it more broken when I left work on Friday
oh well
I won't complain
 
@Ell I had that :/
@deni trolly, FTFY
 
11:23 AM
 
user1804599
@deni You can effectively use a debugger without an IDE.
 
@deni you can prove your colleague wrong by proving that
> it's not any difference between using some IDE under Linux or developing from console using vim
 
And you should not have to interactively debug asynch code anyways
 
is not a theorem
hth
 
user1804599
Sole reason I use IDE is because it helps me refactor Python code.
 
user1804599
11:25 AM
But the editor itself is so shitty compared to Emacs and Vim.
 
I used to work exclusively with VS and test on W8 first
 
@corvid btw there was an anime about it - myanimelist.net/anime/6932/Kemono_to_Chat
 
but sublime text loads and feels so much faster, I use that instead
and test on Android first
 
You test the logical program flow. And you test the asynchronous scheduling.
As with juggling, the audience doesn't gauge that, at any moment in time, the relative positions of all the objects is in synch with the hand coordination of the juggler. The audience just checks that nothing is dropped and generally admires the patterns that arise
 
user1804599
VS was always incredibly fast on my machine.
 
11:26 AM
(never bothered to see how easy it would be to invoke MSVC from sublime text)
 
@rightføld You are not a believer.
 
@rightføld not for me, I have this huge solution that I must load, even though I only work with one project in it
it usually takes a good 30 seconds or more when loading, and this extends to 3+ minutes while it's parsing headers and whatnot
 
user1804599
Well also nice is that I can run tests from IntelliJ and doubleclick failed tests to go to the assertions that caused them to fail.
 
user1804599
But making something like that for Vim should be possible.
 
@rightføld quickfix and location lists
 
11:28 AM
the thing is, I only need the whole solution to test the library, I don't work with any other projects in it
 
user1804599
@sehe does it parse JUnit output?
 
so sublime's way of just building a project tree and not parsing shit is great
because I can write code the second after I started it
 
user1804599
Rerunning only the failed tests would also be nice.
 
this shit is good (not sure how widespread it is around the world)
it's basically toasted bread with salt
a bit oily so it must have some other shit in it but hey
it's good
 
Xeo
I like them
 
11:36 AM
@rightføld well ... make a script :) I guess junit should have a results file that already enables this from the runner itself?
 
user1646075
@AlexM. I think I've seen them in 'continental delicatessen' as they like to call them here (so exotic!) but have completely ignored them. Also still trying to track down Kek...
 
user1804599
@sehe Yeah I'm gonna write a Vim plugin that keeps SBT running in the background and communicates with it.
 
user1804599
Starting SBT takes longer than running the unit tests themselves.
 
@aclarke we have Top Keks here
 
user1646075
11:40 AM
Do they really have holes through the middle? Is that so you can thread a dozen onto your pen and chew on them as you work?
 
yes, though I never tried to do that
 
user1646075
@AlexM. you are .... /thinks ... Romania?
 
user1646075
of course, nobody uses a pen any more
 
@sehe Oh god, the dreaded errorformat.
 
yeah, we have plenty of Turkish products for sale here
 
user1646075
11:40 AM
you are nice 'n close.
 
Top Kek being one of them
 
user1646075
I think some middle-eastern grocery shops are my best bet
 
user1646075
is it really yummy or just an internet thing?
 
Xeo
@R.MartinhoFernandes ?
 
@aclarke never tried it
 
user1646075
11:41 AM
heh
 
user1646075
i'll let you know ;-) … if i ever find it
 
I'd guess it's decent
 
user1646075
I'm all about Soan Papdi right now
 
probably similar to the Ulker range of sweets
also Turkish
Ulker sweets are okay, but they're no competition for more expensive brands
 
user1804599
 
11:45 AM
this is the best thing from ulker
some sort of soft biscuits filled with chocolate
 
user1804599
Ugh, wtf.
 
user1804599
Quickfix my ass.
 
user1804599
It puts the errors in the current buffer.
 
@R.MartinhoFernandes I am confused.
Where did you find this?
 
11:47 AM
You wrote this? :v
 
user1646075
looks good. Wonder what the slogan is. Google is being really clumsy today. Something about a tiny thing for your girlfriend. Or ricin for your friend. That seems a bit extreme
 
Xeo
@R.MartinhoFernandes Fun-fact: Likely won't do any allocation with a proper stdlib!
 
@Xeo How so?
 
Xeo
SSO?
 
I think GCC doesn't allocate until 512 characters.
 
11:49 AM
Oh. There's still an unnecessary copy, though.
 
user1804599
Stack allocation.
 
Xeo
@R.MartinhoFernandes Don't think you can do anything against that
 
Giving up already? :(
Rust can do it.
 
user1804599
You can return boost::variant<std::string, char const*> top kek.
 
Xeo
Dunno, don't really feel like trying
 
11:50 AM
^
 
@rightføld yeah so you can have optimized storage: sizeof(std::string) + 8 bytes for /any/ length of string.
 
8 bytes doesn't feel right
It feels so architecture dependent.
 
@R.MartinhoFernandes I'd say the design is wrong. coliru.stacked-crooked.com/a/00061f2c60ef2de3
@Jefffrey I don't care what it feels like. It is arch and impl dependent. So what. It's just a pessimization to enable an optimization. It's gonna be hard to predict what works better
 
@sehe I'd say you didn't read the comments and missed the point.
Also, ugh, CPS.
 

« first day (1472 days earlier)      last day (3482 days later) »