« first day (1043 days earlier)      last day (3908 days later) » 

12:00 AM
@StackedCrooked Err.. daylight-saving time changes.
 
Ah, stuff like that.
 
@StackedCrooked Famous Oracle log entry 'Database stopped: time has gone backwards'.
 
@FredOverflow Did you start watching the lectures yet? ;)
 
@JerryCoffin :) would it be required to translate this into sane C++ as well?! I'm so tempted
 
12:21 AM
@Borgleader +1
 
@Rapptz How would you say "Would you mind if I stopped by?" in Japanese?
That kind of fancy wording structure is waaay out of my league right now.
 
Umm apparently this is legal C or C++:
struct S {int i;};
int arr[3];
arr->i = 5;
 
er, wat?
that doesn't even make sense.
no way is that legal.
 
I can't compile it in either, though.
 
Lolwat.
 
12:29 AM
If there is some way to compile that, it's the most terrible thing I've seen in regards to arrays vs pointers.
 
er
you know, for one critical thing, the guy arguing in the comments is describing a situation where the array is at least of type S.
 
Oh, that would be my bad lol.
I did that in my test for some reason.
 
but it's still dumb.
 
Any open source projects I could read through (in C++) that you imagine somebody at my level could understand? I think somebody recommended boost once, but I don't know.
 
12:31 AM
@Pawnguy7 No way you'd get boost.
 
My thought exactly.
 
Omg, now it compiles on both. I feel so sad.
I like how everyone calls me an expert in the questions.
If only they knew.
 
@StackedCrooked What is operator* supposed to mean in this context?
 
Sodomy.
 
Will anyone help me convert this C++ code to c#?
 
12:42 AM
@StackedCrooked Aah.
Well, that's not an abomination, that's just sexual intercourse. Between men.
Gay sex isn't an abomination.
 
I didn't mean that.
I was referring to the product of pregnancy.
 
@CCInc If you can't find the equivalent of a certain part, it should be fine by SO standards if you ask it right and it hasn't been asked.
 
@StackedCrooked That's not even biologically possible.
I mean, you can't get pregnant through the rectum.
 
@chris Ah, okay.
 
@EtiennedeMartel pff, lack of willpower
 
12:45 AM
Getting a dick in the ass won't get you pregnant, no matter how hard you wish for it to happen.
Best case scenario is you're going to enjoy it and that's pretty much it.
 
ITT: Bronies Sodomy is magic
 
Francis isn't a brony. He's just Belgian.
 
Any suggestions for a good Vim colorscheme?
 
Darker than @DeadMG's heart.
 
@EtiennedeMartel I object.
 
12:50 AM
@EtiennedeMartel Is that even possible?
 
@chris Everything is possible with Vim.
 
@EtiennedeMartel You should have said emacs. Then I could use the XKCD comic.
 
@chris Vim is better than emacs, if only because at least Vim wasn't made by rms.
 
Can't say I've gotten used to either yet.
 
@JerryCoffin Here's for shitz-'n-giggles
0
A: Issue with snprintf "date" and file locations

seheAnd in case you really wished it to be C++ code, here's a tested, somewhat sane C++11 version: TODO use execve or similar instead of system (requires a dirExists() function) #include <fstream> #include <sstream> #include <iostream> #include <string> #include <cassert> #include <cstring> //...

@StackedCrooked koehler, pablo are my usuals
 
12:59 AM
I usually go for pablo or torte.
I'll have a look at koehler
 
torte hurtz my eyes. Too bright
Mmm. Mistaken with zellner, maybe
Yup
@StackedCrooked I love it. It has that old-fashioned terminal "feel"
@StackedCrooked Torte looks okay for me
Amazing
 
Programmers and OCD
What is that
 
There are other patterns I tried as well.
But I won't say.
 
@StackedCrooked Please? (or just permutations of F[23]?)
 
1:08 AM
F3 F3 F3 F3 etc...
 
@sehetw You've been banned?!
@sbi ^ Nah Etienne reprimanded me
 
It's annoying that set paste doesn't seem to work if activated in the vimrc.
 
10 hours ago, by Etienne de Martel
-10 Imaginary Internet Points for using a hash tag outside of Twitter.
@StackedCrooked Docs:
	This option is reset when starting the GUI.  Thus if you set it in
	your .vimrc it will work in a terminal, but not in the GUI.  Setting
	'paste' in the GUI has side effects: e.g., the Paste toolbar button
	will no longer work in Insert mode, because it uses a mapping.
 
@StackedCrooked If you have any other features of coliru I can play with, send 'em my way (that includes, keybinds, other languages besides c++, other compilers aside g++, ...)
 
@sehe Doesn't work in Terminal either, at least for me.
@Borgleader Euhm.. let me think..
 
1:12 AM
@StackedCrooked Perhaps look at pastetoggle
 
Ah.
@Borgleader ls /usr{,/local}/bin
 
@Borgleader coliru.stacked-crooked.com/… could give you ideas (click Edit to see the command line used)
 
Once upon a time web access was enabled. The you could try to send a compile request inside your compile request. Which resulted in instant deadlock.
@Borgleader Btw, shift-enter in the command line allows multiple line commands.
 
Hmm, it appears I still fail to explain the issue with immediate contexts :(
 
@StackedCrooked Cool thanks /cc @sehe
 
1:17 AM
You can also access /Archive from the command line.
 
@R.MartinhoFernandes Huh. What. Where :)
@StackedCrooked Yup. Like you can just create local files and use them :)
 
Only inside of /tmp though
You can even rm -rf /tmp
 
@StackedCrooked Oh. Current working directory is fine for my purposes
 
The growing popularity of Coliru worries me a little though. It's turning me into a sysadmin.
 
1:21 AM
Whoosh
That's the sound it made
Flying right over my head
... :( It's late as well
I should be going to sleep. I bid you all good night
 
Cobol has an undeserved bad reputation because people remember the very old days of punch cards and code sheets. The 1985 and 2002 standards have really improved the language. — Joe Zitzelberger Jan 12 '11 at 13:51
 
@StackedCrooked Just pull the plug. Replace it with a static page pointing at the opensource repo. Whistle forevermore!
 
Yeah, I can even announce as if it's a super nice move of me.
 
@sehe Well, simple demo of the problem: coliru.stacked-crooked.com/…. The rest is all explanation and description of the issues this causes.
 
@R.MartinhoFernandes I got that far :)
 
1:24 AM
When posting proof I always print something from my program. This removes all doubt of forgery.
But it's soo easy to cheat.
 
@StackedCrooked only because you don't (directly) show the command line... har har
 
For some reason Róbert didn't see it as a problem :S
 
@sehe cat cmd.sh
 
fuuuuck
why did I go and buy and eat some chocolate.
 
@StackedCrooked If someone doubts it they can just fuck off try it themselves.
 
1:25 AM
Hello lads
 
@R.MartinhoFernandes AFAICS he started picking at your sub ideas. If he meant to say it's not a problem at all, he hid his point a lot better than you did.
 
I'm quite drunk. :)
 
@Jefffrey No you're just a kid :)
 
@StackedCrooked well, yeah 21 yo is being a kid :P
 
@sehe "The constructor in question is still ill-formed everywhere." This dismisses the whole thing as compiler bugs.
(But it is wrong and shows he didn't read the standard quotes)
 
1:28 AM
The weird thing is that every time I log in as drunk I feel like saying "I fucking love you" to everybody in the lounge.
 
@R.MartinhoFernandes You never told me Unicode would do this to my soul ;~;
 
Why, yes I did.
 
@ScottW, I fucking love you mate
 
Ok, Night all!
 
@sehe 'night
 
1:29 AM
@ScottW if you love me you'll get over it :P
 
@ThePhD Dude, everybody knows you shouldn't ever do anything with Unicode.
 
lol
 
:c
 
@ScottW where d'you live?
 
Unlesss youre the robot, because he can make it better for all of us
 
1:30 AM
I don't think I can do it anymore.
 
he lives under telkitty's bed
 
lol
BUt seriously, what country you live in?
Hmm. Considering that I'm considering to come visiting some of you.
Seriously, where?
...
Then I'll take a flight from Italy to... murrica
lol
 
Btw @DeadMG the new proposal deadline is looming ahead. What's your status?
 
@R.MartinhoFernandes Absolutely nothing.
 
I guess no going to Chicago since you don't have money for anything that isn't chocolate :S
 
1:35 AM
me?
 
yeah, unless you want to contribute the at least £1000 it would cost for me to go there
but secondly
 
@ScottW And even when you don't, you always leave something deep inside me to keep me company while I wait for next time. <333
 
I'm not submitting any proposals to Chicago because fuck the Committee.
I wasted six months on my Bristol proposals because of those useless assholes and I'm not making that mistake again.
 
Chicago is a long ways away from me, but if I tried hard I could make it there.
I want to defend @Xeo's lifting-lambdas paper.
And bring honor to his family!
 
they almost certainly won't even consider it, and wouldn't accept it if they did.
 
1:36 AM
@ThePhD Which paper is this?
 
When's the Chicago meeting anyway?
 
Um. I forgot the paper number and I don't have the link handy. You'll have to wait until Xeo wakes up. x3
 
@Rapptz End of September.
 
@ScottW Couldn't we make a drunk google hangout?
 
@ThePhD N362something, at a guess.
7, if I recall.
ah, N3617.
 
1:39 AM
Oh, I didn't even know lambda lifting was a term.
 
it's not, yet.
 
This should be an interesting read from what I saw looking it up.
 
Alright, so, Ezreal is kinda hard.
 
@EtiennedeMartel evening :)
 
@EtiennedeMartel Yeah, so many skill shots.
 
1:40 AM
So, I'm gonna try Medal of Honor. Wish me luck.
 
gl hf
 
Ah, I can sort of see where Xeo is going, though I don't know much functional programming, so it's kind of different.
lol the xdotool guy is back.
 
Anybody have a "do this in x lines" challenge I could try? Preferably a short amount of lines (like, 100).
 
Make me a sandwich in 50 lines.
 
A bit vague. Is it like a factory? ASCII art?
 
1:49 AM
I'd prefer a tasty one.
 
xdotool dude reminds me of the game "smash the roach" in which you need to squash a cockroach as soon as one comes out
 
Actually, some of the Project Euler things could be good.
 
eh, I never found them very good
more of a mathematical wank than a useful programming problem
 
Yes, I'd prefer not math-centered :D
 
Then I stalled you for nothing.
 
1:55 AM
Not really. Not as if I am doing anything useful.
I did learn one thing today.
I have no idea how C++ maps work.
 
You mean internally? Like the datastructure?
Or you dont understand why theyre useful?
 
Internally and externally.
I know why they are useful, though :D
So, I figured, learn internal and external.
Good or bad idea?
 
@Pawnguy7 Definitely good.
 
I still need to do the internal part
 
What is the... efficiency of it?
 
2:04 AM
Well, I can give a couple weak explanations, but nothing great.
 
@Pawnguy7 O(log N) lookup, insertion, deletion, etc.
 
I don't know that C++ maps are required to be implemented in a certain way but IIRC they're usually done as balanced trees
 
@Borgleader I know sets are usually RB trees.
Now I just have to find out what exactly a RB tree is.
My CS is quite weak.
 
@Borgleader They're not required to be, but yes, that's the usual. Most common is red-black trees, but I've also seen versions done with AVL trees and (recently) B-trees.
 
@chris Speaking of that, FredOverflow and I enrolled in Algorithms Part I
 
2:06 AM
Ah. That is very good, then. Last time I was going to use one, I didn't know what I was doing - didn't have comparison operator, and something about not having a hashcode. So, I homemade one - like, the basic capabilities, but terribly inefficient. And that thing was SLOW.
 
@Borgleader isn't that over?
@Pawnguy7 are you talking about map or unordered map ?
 
@chris Basically, a tree that stores a (rough) indication of its balance that's updated as you do insertions and deletions, so it can re-balance when it gets too far out of balance.
 
@Borgleader The complexity and interfacfe requirements are essentially that it has to be some flavour of binary search tree.
 
@Borgleader Cool, I would probably consider that, but I'll be doing some courses during university, so no big worry yet.
 
@A.H. It started today...
 
2:07 AM
In this case, unordered is what I need. I really don't know what I was doing back then.
 
@JerryCoffin Ah, seems reasonable, thanks.
 
@DeadMG Could be (and has been) a multi-way tree (e.g., B-tree).
 
But I imagine I will use ordered someday as well.
 
@Pawnguy7 Unordered is normally a hash table.
 
when needing a map your default should be unordered_map
unless of course you need the ordering
 
2:08 AM
I'm sure I've looked up almost every one of these at one point, but really only skimmed and forgot.
 
@Borgleader or have keys that are large/slow to hash.
 
yes that too (but i would look for a better hash algo before switching to ordered map)
 
Is understanding unordered_map simpler, I am guessing?
 
theyre both pretty simple imo
 
honestly, unordered_map I thought was simpler.
 
2:10 AM
@Pawnguy7 Maybe -- some people understand both easily, others seem to find one easier than the other.
 
map is a tree, unordered is a big ass array (with or without lists depending on how you deal with collisions)
 
it's nowt more than a linked-list, with a vector of pointers into said list, indexed by hash code.
@Borgleader You can't not have a linked-list element and still support O(1) insertion.
 
hash tables are trivial, but I never got around to learning about balancing trees
 
@Borgleader More like a vector of lists that gets resized when/if needed.
 
@DeadMG I guess he is talking about collision
 
2:12 AM
@A.H. Collisions are irrelevant as to that basic fact.
 
@DeadMG I was talking in general, but if C++ requires O(1) insertion, then yes linked lists are a given
 
inserting in the middle of an array is O(N), so an unordered_map cannot support O(1) insertion with an array as it's primary backing store.
 
@DeadMG Sure you can. You can use (for one example) balanced trees for collision resolution (improves worst case to O(log n).
 
@JerryCoffin O(log n) isn't O(1) not to mention that a tree is much more like a linked list than an array.
 
@DeadMG No, linked list isn't O(1) either. You're depending on few collisions to get O(1) in either case.
 
2:14 AM
@DeadMG isn't it supposed to use the hash function to know the index? (given that its empty)
 
@A.H. Knowing the index is the easy part. Re-ordering all the other elements is the hard part.
 
Well, gotta go. Boarding plane to go home for weekend.
 
I was referring to the technique (unless my memory is faulty) where if you have a collision, instead of having a list you just have do something like currentindex + hash % tablesize, and move to that index and keep doing that until you find an empty one
 
@JerryCoffin have a nice flight
 
Its been a while since I have my data structure class, but i somehow remember that being a possibility
@JerryCoffin bye, have a nice flight
 
2:15 AM
@JerryCoffin ISTR that if you simply rehash if there are a constant number of collisions, then you can achieve O(1).
 
@Borgleader It is (secondary hashing).
 
Are these kinds of things covered in data structure classes?
 
@Borgleader sounds like probing (if i am not mistaken about the name)
@Pawnguy7 yeah
 
@Pawnguy7 Should be.
 
@Pawnguy7 it was in mine
So would secondary hashing fit C++ unordered_map requirements?
 
2:18 AM
@Borgleader Nope, because if I have a structure of 1billion elements, it's gonna take you way longer to find a slot than for 1million elements.
 
Even if the number of collisions is the same in both cases?
 
@JerryCoffin Have a good flight! Enjoy the time home, you've earned a good rest. <3
Well, the open-address scheme @Borgleader suggested is kind of shitty. If you're looking for a better open-addressing scheme that doesn't use lists and still meets requirements for a hash map, try hopscotch hashing :
Hopscotch hashing is a scheme in computer programming for resolving hash collisions of values of hash functions in a table using open addressing. It is also well suited for implementing a concurrent hash table. Hopscotch hashing was introduced by Maurice Herlihy, Nir Shavit and Moran Tzafrir in 2008. The name is derived from the sequence of hops that characterize the table's insertion algorithm. The algorithm uses a single array of n buckets. For each bucket, its neighborhood is a small collection of nearby consecutive buckets (i.e. one with close indexes to the original hashed bucket). ...
^ This is the algorithm I implemented for my Dictionary<TKey, TValue, THash, TKEq, TAlloc>
Albeit, my Dictionary is still not entirely complete because I haven't finished implementing TAlloc properly for the entire data structure.
 
2:35 AM
@ThePhD Oh I know it's shit. I was just trying to illustrate secondary hashing cuz i couldnt remember what the hell it was called
 
Yeah. Secondary Hashing is one of the first open-addressing schemes developed.
It tended to have horrible collision semantics, so it didn't turn out to be very useful.
 
I'm bored.
I want to play a video game.
 
Oh!
 
Xenoblade
 
I know what you should play, @Rapptz
 
2:39 AM
Shoot.
 
@Rapptz Gone Home :3c
 
Funny.
 
Trololololololololol.
 
lol I used to have this
 
I made this magical Cache.sh script.
Cache.sh ls
Cache.sh ls # second time you get cached result!
It would allow me to call:
Cache.sh svn cat https://coliru.googlecode.com/svn/trunk/Archive/fe9d3f5e25d41d05ae396902cdc19bab-18aa934a8d82d638dde2147aa94cac94/main.cpp
And it would only be slow the first time.
 
2:44 AM
@Rapptz Pokémon-themed pogs?
Did even know that existed.
 
No.
It was (surprisingly) an original board game
 
@Rapptz I had some PC game that wasn't bad.
 
lol
I have 500MB left on my C drive
 
My favourite pokemon related toy was my pseudo-tamagotchi Pikachu.
I want to play a video game :(
I'm almost tempted to buy Spelunky.
 
2:52 AM
meh
didn't like spelunky
 

« first day (1043 days earlier)      last day (3908 days later) »