« first day (941 days earlier)      last day (4012 days later) » 

6:00 PM
@MartinJames Two words: Laptop battery.
 
@JerryCoffin Thrown as a missile or used as an incendiary?
 
ooh yeah... and cell phone batteries too, though they pack less punch
 
@MartinJames The latter was what I had in mind (though most do have pretty solid cases, now that you mention it).
 
used as incendiary missile, probably
 
Talking of batteries, the FlameLiners are back in the air tomorrow :(
 
6:02 PM
also, the good old time bomb... connect it to a wall outlet, and run.
 
@hyde "OK, Mr James - so you tried to blow up your German customers - what went wrong?". "I'm from the UK and forgot my travel adaptor".
 
Can I get a suggestion? I am trying to make a 60ms operation 30ms with threads. I tried to use OpenMP but the thread creation overhead killed the parallelism. I am on Windows. Anybody have any recommendations for a threading library? If this were linux I would use pthreads.
 
@Mikhail Stop continually creating them. Submit tasks on queues.
 
@MartinJames Yeah, so I would use this kind of producer consumer paradigm with pthreads. What should I use for Windows?
 
..though thread creation does not take anywhere near 30ms.
 
@Mikhail how many operations per second (or whatever) you have, overall? Are you aiming to minimize overall time of execution, or are you trying to free CPU to do other things while you churn your operations at constant rate?
 
@hyde max time on execution
 
1
A: C++ Critical Section not working

Jerry CoffinThis code has a number of problems. First of all, deriving from the standard containers is almost always a poor idea. In this case you're using private inheritance, which reduces the problems, but doesn't eliminate them entirely. In any case, you don't seem to put the inheritance to much (any?) ...

 
@Mikhail I think Hyde wants to know how long each execution takes, compared with typical inter-thread signaling latency - call that 10us.
 
@StackedCrooked What is that?
 
6:13 PM
ghc
 
@Tuntuni Now supports Haskell.
 
@JerryCoffin Ahh. I should really get to learning Haskell or something similar. :/
 
@EtiennedeMartel lol okay.
 
A bit hackish although. Requires you to rename main.cpp to main.hs first.
 
@Tuntuni Probably. All the best people recommend it.
 
6:15 PM
@JerryCoffin Mhm. :) What about Python?
 
Oh dear...
 
@StackedCrooked Oh hey, that's pretty damn cool :D
I'll star that so other people can see it.
 
Actually, you can use ruby and python too. Or anything else you can find in /bin, /usr/bin or /usr/local/bin.
 
Xeo
Hnnng, this week's Henneko episode...
 
@Tuntuni Also recommended, but not really comparable to Haskell. Python emphasizes convenience and practicality. Haskell emphasizes correctness and theoretical grounding.
 
6:17 PM
@Xeo Haha I started watching it but then stopped for some unknown reason. I should probably catch up.
 
@hyde Single thread execution takes 30ms or 120ms. The code is SSE 4.2. Under heavy load I get the 2x speedup, under low load I don't. The threads are pinned to the cores. '_callthreadstartex' uses 40% of my runtime.
 
@JerryCoffin Ah, I see. I was just reading an article where it says they aren't really comparable. :)
 
Haskell has the shortest solution to PE1 that I've done.
:D
 
@JerryCoffin do you know haskell?
 
@bamboon A little, but not well at all.
 
6:19 PM
I understood that Haskell was mostly used in finance.
 
I think that's R
 
R is used for analysis like a calculator
 
@Mikhail That's COBOL :p
 
Visual COBOLVisual COBOL delivers the next generation of COBOL development and deployment. It brings the productivity of modern, industry-leading Integrated Development Environments (IDEs) to COBOL, including the ability to deploy key business-critical COBOL applications to Windows 7, .NET, JVM and the cloud.
 
Eww... COBBLE.
 
6:21 PM
lol
 
@StackedCrooked Normal banks use COBOL. Investment banks use Haskell (for things like financial models).
@MartinJames No, no no! Oswald Cobblepot uses VBA.
 
I forget what the acronym means - is it the first or second 'O' that stands for 'obfuscated'?
 
@Xeo Do you watch anime online or do you download it?
 
Xeo
Ew, streaming anime
 
@MartinJames None, of course. COmmon Business Oriented Language. I've seen a lot of bad things said about COBOL (most of them entirely deserved), but "obfuscated" isn't one I'd expect.
 
6:26 PM
I'm sure COBOL was cool when it was new.
50 some years ago.
 
@Xeo So you download. :) How much space did you fill up (if I may know)?
 
The issue with streaming anime is that most of the anime players fucking suck
 
Xeo
I'm only at 580gig, you should ask @Mysticial
 
@Xeo Oh haha I've seen his site with those 3 HDDs.
I'm at 200-300 GB myself. DLed all of that in like a week and then stopped for a month. Now I'm continuing.
 
Xeo
But I'm only downloadng in 720p, while @Mysticial surely has everything in 1080p
 
6:28 PM
@Rapptz It had some distinct good points that were pretty rare at the time (e.g., pretty much the first higher level language with anything like a C struct). It was never cool though -- real programmers used FORTRAN, and sneered at puny wusses who wrote COBOL.
 
@Xeo I also download only 1080p. :)
 
Xeo
Well, I only had a single 1366x768 screen until recently, and I really don't have a good graphics card, so it wouldn't work out with 1080p
 
@Xeo Well save it for later when you get a bigger monitor. :D
 
Xeo
Now I got a nice 1080p screen, but still that crappy graphics card
 
Ah. Which one?
 
6:29 PM
@Xeo "Nice" starts at a vertical resolution of at least 1200.
 
Xeo
BenQ GL2450, for 130€
@JerryCoffin 16:10?
 
  IDENTIFICATION DIVISION.
  PROGRAM-ID. HELLO-WORLD.
  PROCEDURE DIVISION.
      DISPLAY 'Hello, world'.
      STOP RUN.
 
@Xeo Oh, well never heard of it lol.
 
@Xeo Especially for coding, the width is nearly irrelevant -- it's the height that really matters.
 
Xeo
hmhm
 
6:30 PM
@Rapptz beautiful and elegant
 
Xeo
Well, I have two windows / tabs side-by-side for coding anyways with C++
 
Do you guys use the 80 char rule or whatever it's called?
 
@Rapptz Should really be DISPLAY 'Hello world' after advancing one lines.
 
I got that from Wikipedia
@Tuntuni no
 
Xeo
@Tuntuni kind-of
I try to keep the individual lines short
 
6:32 PM
That's a really weird thing that we still do IMO
 
Xeo
but I'm not hard-driven for 80 columns
 
@Xeo I use one monitor for actual coding (4:3, but still wide enough for a couple windows) and a second for online help and such.
 
Xeo
I mainly keep em short ofr having two side-by-side
@JerryCoffin Well, I still only have one monitor connected
 
@Tuntuni mostly. but i allow a few outliers
 
Ah. But you still break up long lines right?
 
6:33 PM
@Xeo You're handicapping yourself quite a bit that way.
 
80 columns isn't long :|
 
Xeo
for one due to space issues on my current desk, and for two because I only got one graphics card, the other slot is the on-board chip
 
80 columns ought to be enough for anybody
 
@Rapptz Didn't mean 80 columns.
 
Xeo
@Tuntuni 80chars == 80columns
 
6:34 PM
@Xeo Yes I know that.
 
Well, iirc the 80 column thing is an artefact from IBM punch cards from the 20s-30s.
 
But he said he doesn't really follow do rule so I wanted to know if he still breaks up long lines.
 
Xeo
@Rapptz Wasn't it the terminals, rather?
 
164
Q: Why is 80 characters the 'standard' limit for code width?

fredleyWhy is 80 characters the "standard" limit for code width? Why 80 and not 79, 81 or 100? What is the origin of this particular value?

 
@Xeo I think you're right. I've read it somewhere a while ago. Phail.
@Rapptz O, wat.
 
6:35 PM
@Xeo Hollerith cards first, then terminals/printers followed the convention.
 
@Rapptz It's true that Hollerith cards were 80 columns. When I started out, quite a few people considered 132 columns (printer width at the time) the new standard, but it never really caught on.
 
Xeo
TIL
 
Meh. 80 columns is way too short. On my tiny 1366x768 screen I can have up to ~160 columns so I find it weird that we restrict ourselves to half of that.
 
Xeo
@Rapptz 2 files
next to each other
 
@Rapptz Indeed.
 
Xeo
6:38 PM
Is my reason for going with roughly 80 columns
 
I had a FORTRAN program of mine on Hollerith cards until ~ 5 years ago. I found them in an old box, but the elastic band had perished and the stack fell over the floor. I used them to start a barbeque.
 
I do two files next to each other too
but I figure I'd have a bigger monitor than my puny 1366x768
 
@MartinJames I was probably worse: I still had a 12" reel of 6250 FCI mag tape until the last time I moved. Was never good for anything as useful as starting a BBQ, I'm afraid.
 
Xeo
It's teh amazing
 
6:44 PM
Can't wait.
 
Xeo
Pipiru piru piru pipiru pi~
So, who knows that ^?
 
just googled it
lol wat.
 
Xeo
@Tuntuni Yay, Bludgeon Angel Dokuro-chan :D
 
@JerryCoffin At our last place, we made a garden 'rockery' border with IBM 2.5" SCSI hard disks. So many failed in service that the offices had all the door-stops and desk-props it could take, so we had to find new uses :)
 
6:47 PM
Pokemon X/Y looks so cool :(
 
@Xeo Ahaha so disturbing :D
 
Xeo
It's cool
A bit on the gory side, but cool none-the-less
especially since it's comedy-gore
 
Something like Mirai Nikki?
 
@Tuntuni what. my eyes. why did I click
 
@BartekBanachewicz ahahah.
 
Xeo
6:49 PM
@Tuntuni Nah, Mirai Nikki was serious
Dokuro-chan is comedy
 
Ahh.
 
@Xeo YEAH SHIT IS GETTING SERIOUS WHEN 13YO WIELDS GIANT STEEL MACE
my god you freaks
 
Xeo
@BartekBanachewicz :D
As I said, Dokuro is comedy
 
@BartekBanachewicz Whaaat? :'(
 
You guys complain about the gore.
 
6:50 PM
@BartekBanachewicz Actually no, you're the one watching MLP. GG
 
I complain about the horrible song.
 
@Rapptz Same, it annoys me.
 
I just bought a song
literally
 
Xeo
@Rapptz Read the lyrics.
 
6:51 PM
The lyrics are why it's bad.
 
@BartekBanachewicz So you're what? A producer?
 
Xeo
@BartekBanachewicz Yes, I openly admit to being an anime "freak".
 
@BartekBanachewicz Something like this?
 
@Tuntuni moire or less
 
@Xeo What's your fav?
 
Xeo
6:53 PM
Hard to pin-point, I like a lot of animes
 
@BartekBanachewicz Also: did I miss something? This seems to be purely instrumental. By definition, to be a song, it must include singing.
 
0
Q: Split string with quoted variables

MathiasBHow can I split a string of the following format in C++?: "word","otherword","something else","1"

dupe
 
@Xeo Same here. Top 3-5?
 
Xeo
If we include Manga and Light Novels, my favourite would probably be the Toaru Majutsu no Index Light Novel
the anime was kinda bad
 
@JerryCoffin More people need to realise this!
 
Xeo
6:53 PM
Sword Art Online LN is also pretty good
 
@Xeo And what about anime only?
 
Xeo
Kami nomi zo shiru sekai Manga is nice too
 
-2
A: Split string with quoted variables

Manolis XountasisIt's a duplicate but i can not mark it yet. That's your code but next time search better!! Split String

 
Xeo
@Tuntuni Probably Mahou Shoujo Lyrical Nanoha
 
Man.
 
6:55 PM
In every question there must be that guy that knows that he is doing something wrong but does it anyway...
 
user142019
Yay I used a laser cutter today.
 
Xeo
I also recently came to like Shingeki no Kyoujin
 
@JerryCoffin oh fuck it it's a piece then. buy it.
 
@Xeo Something like Puella Magi Madoka Magica?
 
Xeo
@Tuntuni Not really
Madoka was more on the extremely dark and depressing side
 
6:56 PM
Oh. Did you see the new anime Kyoani is making?
 
Xeo
Meh
 
"Boku no swimming" ahah ;D
 
I don't watch too much anime anymore :S
 
@Xeo I like it too :)
 
Xeo
@StackedCrooked I read the manga, didn't yet get to watch the anime
They should rename it "Shingeki no Plottwist" :/
 
6:57 PM
I'm just at the anime.
 
user142019
user image
11
 
@rightfold LOL nice
 
That's a lame comic
 
The skinless titan can appear out of nowhere and then disappear again. That's mysterious.
 
Xeo
Colossal Titan
 
user142019
6:58 PM
Man.
 
user142019
Five minutes of battery power left and I have to get the train in fourty minutes. :(
 
Xeo
Sucks to be you
 
@rightfold Mine charges to 100% in 40 minutes lol.
 
user142019
Indeed. :(
 
@rightfold buy a book
 
6:59 PM
@rightfold 40 minutes in the train. where's the time I had to do stuff like that :)
 
user142019
@Tuntuni Yes, but what is 100%?
 
user142019
How long can you do with 100%?
 
@rightfold battery power?
 
user142019
And that means using Wi-Fi constantly and full screen brightness.
 
@BartekBanachewicz Probably not -- it's basically an overture, which really isn't my style.
 
user142019
7:00 PM
@Tuntuni duh
 
@rightfold I disable wi-fi, bluetooth, etc.
Only brightness is on (when it is not locked)
 
user142019
Well, then you can obviously use your battery for a long time.
 
@rightfold wait the python character is also a woman
 
user142019
Without recharging.
 
+ i don't use it much except for listening to music on the bus
 
user142019
7:00 PM
@Mikhail so?
 
so it lasts the whole day for me
 
Xeo
Good ol' RO BGM
 
Since I can find any other good anime, I think I'll give this a try.
 
Xeo
What anime from the current season are you watching?
 
Hataraku Mao sama, Attack of the Titan, erm
 
7:05 PM
@rightfold Oh - laptops. I thought you were all driving electric cars :)
 
I think that's it. There's also One Piece and Hunter x Hunter of course.
 
Xeo
Watch Suisei no Gargantia and Hentai Ouji to Warewanai Neko (Henneko, for short)! :)
 
I have Gargantia on my disk.
 
Since we're on a more or less classical theme today:
 
Guess I'll check out Hentai Ouji.
 
7:07 PM
 
@JerryCoffin that's some sweet ass trumpet
 
@StackedCrooked It is really awesome. :D
 
What is wrong with this: g++ -O3 main.cpp -o -fpermissive main && ./main for coliru?
says main is not a valid directory or file
garghhhh I don't use GCC enough
 
you can do an ls -al to see if the file is an executable
 
@StackedCrooked Indeed. I've had a CD of that for something like 30 years now, and haven't gotten tired of it yet. Used to bring tears to my eyes for sheer beauty. Now, also because my ears are no longer good enough to hear it how I remember it being when I first heard it.
 
7:13 PM
@TonyTheLion I suspect you need to remove the -fpermissive between the -o and main.
you may have created an executable called -fpermissive
 
Ah, Stroustrup's new book seems to be shipping... anybody got it ordered? even got a copy yet?
 
dammit my VPS is frozen again
tony, what the hell did you do :D
 
@TonyTheLion indeed, what @StackedCrooked said. What you wrote writes output to -fpermissive, and tries to include file named "main" in the compilation/linking as input file
 
lol
should be fine
 
Ah, it's working again.
@hyde I ordered it.
@JerryCoffin Reminiscing your excellent hearing brings you to tears?:)
 
7:22 PM
@StackedCrooked My hearing was once excellent -- but not any more, I'm afraid. Listening to it now, I'm probably "hearing" almost as much from memory as through my ears.
 
huh
I just noticed that I did in fact introduce lexing and parsing support for a bunch of operators
I just never implemented any types that support them
 
hello
 
@DeadMG: if you were programming a notepad clone, what sort of datastructure would you use to hold the text?
 
7:26 PM
random question of the week
brb
 
@ScottW an XML blob in a MySQL database?
 
A gap buffer in computer science is a dynamic array that allows efficient insertion and deletion operations clustered near the same location. Gap buffers are especially common in text editors, where most changes to the text occur at or near the current location of the cursor. The text is stored in a large buffer in two contiguous segments, with a gap between them for inserting new text. Moving the cursor involves copying text from one side of the gap to the other (sometimes copying is delayed until the next operation that changes the text). Insertion adds new text at the end of the first ...
 
@MooingDuck ..zip it up for extra performance.
 
Ell
^
 
@Rapptz that's a good one
 
7:29 PM
@MooingDuck an int.
 
@MooingDuck An array.
 
@MooingDuck coliru
Cassoulet (, from Occitan caçolet ) is a rich, slow-cooked casserole originating in the south of France, containing meat (typically pork sausages, goose, duck and sometimes mutton), pork skin (couennes) and white haricot beans. The dish is named after its traditional cooking vessel, the cassole, a deep, round, earthenware pot with slanting sides. The region once known as the province of Languedoc is the traditional homeland of cassoulet, especially the towns of Toulouse, Carcassonne, and Castelnaudary, the town which claims to be where the dish originated. All are made with white bea...
^ I like
 
an array-backed list of strings should work well for any realistic text document on a modern computer. If you have millions of lines, then inserting new lines rapidly might get a bit slow, and need some optimization.
 
whoah, whoah
it's a Notepad clone
who gives a fuck if it's slow? it's going to be shite anyway
it's only virtue is being cheap
 
yeah, a linked list of characters would even work
 
7:33 PM
@DeadMG I think there's more to it than that. Arrays are pretty poor at inserts at the beginning.
 
1 min ago, by DeadMG
who gives a fuck if it's slow? it's going to be shite anyway
 
on modern cpus arrays are fast at anything
 
so Daisy had a good lick at my desk
 
at your what!? ..oh your desk
 
@DeadMG Heh - Bailey tends to do that too. Dogs can smell where a slice of pepperoni has been dropped, even if a month ago.
 
7:40 PM
yeah, I put some chocolate on there just today
 
Is there a windows version of argp/getopt that emulates the windows style of cmd-line arguments and parsing? (Not looking for getopt ports)
 
yeeeeah A in software engineering :D
 
Xeo
Oh yeah, I'll be in the Netherlands on Thursday
 
@Xeo really?
what for?
 
Xeo
Release-Party for one of our games, taking place here
 
7:43 PM
I think I'm gonna read this book.
 
Xeo
@EtiennedeMartel That flag looks like a mouse pointer.
 
@Xeo Yeah, that's what I thought it was at first. But then the title made me realize it was about the 2012 student crisis.
 
@Xeo looks like it could be fun
 
Xeo
Yeah
Lasertag, Bowling, Dinner, Random stuff, Lasertag
 
Dutch people are nice too.
 
Xeo
7:46 PM
Is the plan
 
> Proxy Error
Doesn't work 'round these parts.
 
to me the best part looks like the dinner :)
 
Xeo
I'm looking forward to the lasertag
 
@ScottW You could eat them.
 
I'd like to try that. I've done paintball a few times. But lasertag seems like more fun.
@ScottW oh you!
 
7:48 PM
hi...
a newb here ...
 
6 hours ago, by thecoshman
New here? Why not spare some heartache and read the newbie hints.
 
I like cold chicken
 
Xeo
@StackedCrooked I've only done soft-air so far
 
Yea cold chicken is nice
 
@Xeo You mean airsoft?
 
7:50 PM
@TonyTheLion the spices somehow taste better after the meat has cooled down
 
Xeo
We call it "soft-air" here, but yeah
 
I like soft-ice.
 
@StackedCrooked hmmm, yea
The idea that I can just hop into my car and go anywhere is still sinking in.
haha
 
I once ended up in Berlin like that.
 
Xeo
7:52 PM
@StackedCrooked haha
 
It happened to be love parade that day. It was the last year it was organised in Berlin.
I didn't know any of this beforehand though.
 
Every time I happen to flip my attention to the Lounge...
 
I had a stroll through the city, slept in my car, and then went home. I never want to do that again. Such a fucking long and tiring ride. (Berlin was nice though.)
 
@AnkurSharma Can you be more vague?
 
7:54 PM
@AnkurSharma I don't think you know what you're talking about
@AnkurSharma you mean a machine code compiler? Machine code doesn't need to be compiled.
 
@AnkurSharma Is there like a binary code compiler like c++ compiler, java compiler etc.
@Xeo Hentai Ouji is entertaining indeed :)
@AnkurSharma it never stopped being an image
aargh. I don't get this..
 
@AnkurSharma how do you convert a book of english letters into a story?
 
oh God, the Daisinator is on my lap no
w
 
@AnkurSharma you are worse than Miss Tina!
 
@DeadMG I now have this image of your dog with very poorly photoshopped lasers on her back.
 
7:58 PM
How do you get the hint?
 
@AnkurSharma if you want to include a binary file in your compiled executable, then maybe you should search for SO question which asks that... or if there aren't several already, ask a new one. This applies, even if you actually want something else, too.
 
Anyone here use windows powershell?
 
@DeadMG erm. enjoy :)
 
heh
 
my mom bought a second shih tzu.
 
7:59 PM
Convert this binary number to a image
 
Every times she visits my apartment it's a crazy bunch.
 

« first day (941 days earlier)      last day (4012 days later) »