« first day (1493 days earlier)      last day (3470 days later) » 

7:02 AM
It'd be fair to say that GCC/Clang optimises no-op function bodies right?
i.e. empty ones
Hmm.. time to test.
 
@Rapptz if they are inline
 
lol
hm?
 
and if using -O1 or higher
 
It seems like it can't
 
or if not inline then -flto could optimize it away
but I haven't tested that one much
 
7:05 AM
lemme see a more complicated example
hm yeah it seems like it does
I ask because I'm wondering if I should do
#ifdef somemacro int f() { ... } #endif
or int f() { #ifdef somemacro ... } #endif
mainly for binary compatibility issues
 
binary compatibility?
 
ABI
 
in any case I generally prefer the first one. #ifdef inside function bodies is hurts readability
 
yeah same here
 
@Rapptz isn't that broken if 'somemacro' is not defined?
 
7:16 AM
I forgot to move the }
 
oh, the closing brace
 
copy pasting is hard
 
ah right, typo :P
 
So you don't want to undef the entire function via macro but you want the compiler to automatically remove it and also keep a stable ABI
 
I'm not sure what to do
I might pimpl or something similar instead
 
7:18 AM
What is that function, anyway
 
macro is uglifying the code
:(
maybe I should just forget about providing OS-specific/library-specific functions
take this as a sign
 
Put them in a separate TU and include/exclude from build
Or ifdef entire file
 
good morning Lounge<C++>!
it's not really a good morning, but heck.. it's morning alright
 
7:38 AM
 
ah yeah, it's monday today..
 
Xeo
mornin
 
The first law of holes, or the law of holes, refers to a proverb which states that "if you find yourself in a hole, stop digging". The meaning behind it is that if you find yourself in an untenable position, you should stop and change, rather than carry on exacerbating it. == Attribution == The proverb has been attributed to a number of sources. It appeared in print on page six of The Washington Post dated October 25, 1911, in the form: "Nor would a wise man, seeing that he was in a hole, go to work and blindly dig it deeper..." In The Bankers Magazine it was published in 1964 as: "Let me tell...
til
 
wut
 
7:50 AM
lol that was weird
 
dat pic
 
a trailer about a movie starring Robin Williams
 
Has anybody tried to program a Titan Z, is it one CUDA device or 2?
fuck its actually 2 GPUs
my dreams of 12GB FFTs are over
 
You can do a 12GB FFT on a CPU. :)
Actually, I've been doing them for a few years now.
 
Xeo
Well you are also certified crazy.
@FilipRoséen-refp I'm happy it's Monday, actually.
That means tomorrow is Tuesday, and that means I'll go visit my future kitties again. \o/
 
8:03 AM
I thought you had your kittens already
 
Xeo
not yet
 
Awww
What the hell is a 12GB FFT vs just an FFT?
 
@thecoshman Win satanists.
 
one is bigger?
 
you're doing an FFT on a 12 GB thing?
 
8:05 AM
Anybody know if the new intel processors are available in 4 CPU socket configurations? Im kinda fed up with CUDA, and was hoping to outperform a K6000
Yeah, my research work is in inverse problems and I'm going to need a ton of ram to try my scheme for tomography
 
@Mikhail You do realize that the memory access on those machines is complete shit right?
Unless you're using MPI or something.
 
@Mysticial Why would MPI be faster? I mean isn't a A->A MPI just what the machine normally does :-) . How bad is the memory access on a single image machine with 4 sockets?
 
@Mikhail i.e. Don't try to use a 4-socket machine like a shared memory machine.
 
@Xeo you're.. happy it's monday? you fucking freak; get OUT!
 
Ell
Morning people
 
8:09 AM
@Xeo (I'm just jealous)
 
@Mysticial So whats the fastest way to do the FFT and a few gathers (sums)? I got like 6K
 
Ell
@FilipRoséen-refp he's only happy because its my birthday ;)
 
user1804599
loool
 
@Mikhail Get a machine with as fast memory as possible.
 
@Ell is it, really? congratulations if that's really the case
 
8:10 AM
@Mysticial Is that a GPU?
 
@Ell Happy Barfday :)
 
user1804599
They're going to replace perfectly fine windmills because this is the last year they are subsidised for building windmills.
 
Ell
@FilipRoséen-refp it is :) and thank you
 
user1804599
While the current windmills will be fine for at least 15 years.
 
Ell
@TonyTheLion thanks :D
 
8:10 AM
@Mikhail If it fits entirely in the GPU memory then it would most likely beat out any CPU.
 
they are certainly not subsided.
they might be subsidied.
 
Assuming it's programming right.
 
@Ell How old are you now?
 
user1804599
@Puppy Yes that, almost!
 
Ell
@TonyTheLion I'm the ripe old age of 19
 
8:11 AM
old and doddery
time for prostate exams
 
user1804599
@Puppy have fun!
 
@Mysticial Fuck how do we get rid of the GPUs if they keep winning in performance? I hate CUDA and I hate debugging them.
 
Ell
I've never had a prostate exam actually. Are you supposed to get them regularly? :L
 
@Mikhail You give them a task that won't parallelize.
 
8:13 AM
I should start doing research in one of those areas :-(
 
Or any task that won't fit in the GPU memory.
 
@Ell Only once you're like, 60 or older.
 
19 yo is old ... for a piglet, but I think you are not one
 
user1804599
You know what's nice about atheists? They don't behead people.
 
statistically I expect there are probably a few athiests who don't mind a good beheading
 
8:19 AM
if you suffer from depression & is suicidal, a super quick beheading is probably the least painful way to die
 
user1804599
I'm an atheist and I don't mind beheading terrorists.
 
headless chicken - possibly offensive & NSFW for some
 
@rightføld #notallatheists
 
Thanks for reminding me about this because I need more reasons to be miserable on Monday morning
 
user1804599
8:33 AM
Oh shit it's the 17th.
 
user1804599
Some MGSV announcement today.
 
user1804599
I hope it's the release date.
 
one less year to live
happy birthday, may you have a great day
 
Heh. I always find it hard to believe at least slightly that hieroglyphics were real.
 
user1804599
8:37 AM
Why? C++ is also real.
 
Sure is cool.
 
Xeo
@Rapptz Do you find it hard to believe that Kanji exist? :P
 
Ell
@BartekBanachewicz Wooo
 
not even comparable.
 
user1804599
Kanji West
 
user1804599
 
Xeo
@Rapptz Why not?
 
@Ell :)
all the best m8
BTW, look at that epic comment
113         /**
114	     * Calls seed(default_seed)
115	     */
116	    void seed() { seed(default_seed); }
 
user1804599
Soon:
 
user1804599
113         /**
114	     * Calls seed(default_seed)
115	     */
116	    void seed() { seed(random_seed()); }
 
user1804599
Also, the comment is a lie.
 
user1804599
8:44 AM
It calls seed, not seed(default_seed).
 
user1804599
If it called seed(default_seed) the body would've been something like { seed(default_seed)(); }.
 
Ell
@BartekBanachewicz Cheers :)
 
user1804599
hey Ell all the worst
 
@Xeo The graphemes are different by a long shot. e.g. Egyptian ones were actually symbols that are universally recognisable to an extent while the Chinese ones weren't (by extension this applies to Japanese too). Also hieroglyphics are old and non-existent now so they have more mystique to them.
 
@Rapptz I dunno, I feel that Egypt has been extensively explored anyway compared to say southern america ancients. Those are pretty amazing for me.
Maybe I've just spent too much time studying ancient egypt in my middle and high school.
I always found it interesting nevertheless.
 
user1804599
8:52 AM
I never found history interesting.
 
Ell
@CatPlusPlus heh
@rightføld Mmm
 
Y'all should play Nomic with us
Also Factorio
 
Voltaire is cool
oh lol I got 215 rep yesterday
didn't feel like much effort
 
Ell
@CatPlusPlus I have 3 science 1 assemblers and a science 3 assembler working at full steam
woo
 
8:57 AM
3 or 2?
I looked at science 3 requirements and have no idea how to start
 
You need to have the oil processing up and running, to get plastic
 
@CatPlusPlus does this thing have any social features
 
@BartekBanachewicz Define social features
 
or is it "everyone in their own sandbox"
@CatPlusPlus anysort of multiplayer
 
8:58 AM
There's WIP coop multiplayer in unstable releases
There might be versus later too
 
ah.
well then. I might buy it in a month or so
 
Ell
@CatPlusPlus oops. 2
 
But MP is nominally planned for 0.12
Current unstable is 0.11
@BartekBanachewicz Buy it now
 
@CatPlusPlus like node.js
hrhrhr <cries>
@CatPlusPlus I'm not going to play it now.
 
I've already sunk like 9 hours into my factory
 
9:00 AM
I was playing board games with random people till 1am yesterday
then woke up at 6 today
altough admittedly then I've slept two hours in the car in my ride to work
 
I woke up yesterday after terrible night and I'm still dejected and miserable and I don't think it's going away any time soon
Happy Monday
 
@CatPlusPlus Lounge group-hug time!
 
Also I have much fun with correcting HTML written by people who shouldn't write HTML gist.github.com/TheCatPlusPlus/86ff05a1abcaacac5d96
 
Ell
woo 2 labs constantly fuelled with science
4 now
 
9:20 AM
Its 3:00 am where Im at, work at 10
sunday funday
 
@MartinDrozdik And while we're at it, if you wrote it as std::vector<int> Big::convertToVector() &&, you could skip that swap entirely, because the object should be destroyed after the call anyway. — Bartek Banachewicz 10 secs ago
is this a reasonable advice? I think so, but I'd rather someone verified.
 
Ell
well. at least I'll catch the train on time :3
also I died in the stupidest way
the replay is broken
 
You got run over by your own train? :v
 
user1804599
WTF
 
user1804599
ARGRGHGHGHGHGH
 
user1804599
9:28 AM
Filenames with spaces in them are so terrible.
 
like myspace.exe ?
 
user1804599
No, that's just a virus.
 
mp3.exe
 
user1804599
kerbalspaceprogram.exe
 
actually taylor_swift.mp3.exe will have the .exe extension ignored by explorer, then its just a matter of guessing the icon
swift and deadly
 
9:31 AM
@Mikhail I disable that on every pc I have access to
worst security failure microsoft has ever done.
 
user1804599
I hope you'll never have access to my PC.
 
lol
 
user1804599
Stay off my fucking settings.
 
@rightføld should've added "running windows"
 
user1804599
Oh then it's fine. :3
 
9:32 AM
Maybe we should hack all Windows boxes and then install updated
Maybe Microsoft should do that
 
user1804599
ugh
 
user1804599
syntax error in migration
 
user1804599
HOW HAS THIS EVER WORKED
 
Ell
@CatPlusPlus nah, killed by biters. but like 10 at once :L
they came out of nowhere
 
Shoulda made turrets
 
Ell
9:33 AM
I'd only been getting one or two every now and then
and all of a sudden
 
They evolve
 
Ell
@CatPlusPlus I had a few
 
And get more aggressive
 
Ell
Probably the increased polution
I was researching laser turrets
 
what's the game?
 
9:33 AM
@StackedCrooked thanks! Didn't notice it's back :3
 
Ell
@StackedCrooked factorio
 
@BartekBanachewicz what is back?
 
user1804599
Probably shit like BOM.
 
user1804599
Ugh.
 
well coliru is back
 
9:34 AM
@BartekBanachewicz Didn't know it was down ..but glad to help :)
 
user1804599
How do you find all files where the first line does not start with BEGIN;?
 
@StackedCrooked Since the 8 Nov downtime
I mean, I haven't used it since then
 
user1804599
Ah, I know.
 
I've tried a few days back and it was still down
 
9:35 AM
It was only down for two days or so.
 
anyway yeah, you're doing a great job with it so
Oh well.
 
@BartekBanachewicz no, not really. I consider it a miracle that it's successful.
 
yesterday, by Columbo
What the hell, where is Coliru
 
user1804599
for f in *.sql; do if [ "$(head -n1 "$f")" != "BEGIN;" ]; then echo "$f"; fi; done
 
user1804599
Nice.
 
user1804599
9:38 AM
Oh wait.
 
user1804599
for f in *.sql; do if [ "x$(head -n1 "$f")" != "xBEGIN;" ]; then echo "$f"; fi; done
 
user1804599
Glorious x comparisons.
 
why do you need head -n1 on a filename?
 
user1804599
I want to read the first line of the file.
 
oh, lol
sorry
 
user1804599
9:40 AM
I don't like done. Should've been rof for consistency.
 
I often forget the do.
 
user1804599
And elihw.
 
user1804599
In Z shell the do and done are optional if the body is on the same line.
 
user1804599
else is in the middle so it should be eles.
 
you suck at language design
 
user1804599
9:43 AM
I like then because it's as long as else. So you can do this:
 
user1804599
if condition
    then blabla
    else blabla
 
Truly the killer feature
 
user1804599
English is nice in this regard.
 
if should be a function
 
user1804599
Method on Boolean type!
 
9:45 AM
Fuck methods
 
user1804599
In Elixir if is a macro so you can call it with normal function call syntax.
 
user1804599
true |> if(do: 1, else: 2) :D
 
I wonder if application using _ could be useful
if _ a b :: Bool -> a
 
Xeo
aka std::bind? :P
 
Instead of flip gimmicks
Yep, with sensible syntax
 
Xeo
9:47 AM
also, \x -> if x a b vOv
 
ETOOLONG
 
Oh no extra 4 characters
 
user1804599
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
_ is reserved for holes anyway
 
user1804599
This migration ends in COMMIT instead of COMMIT; WTF.
 
Xeo
9:48 AM
@CatPlusPlus in the type signature only, though, no?
 
Holes aren't used in signatures
 
user1804599
@BartekBanachewicz you suck
 
Xeo
@CatPlusPlus wasn't that the proposal? stuff :: a -> _?
 
You use holes when you don't know what the signature should be
 
@Xeo that's something different
what cat's talking about is XTypedHoles
 
user1804599
9:50 AM
λ (([4, 6] !!) . fromEnum) True
6
λ (([4, 6] !!) . fromEnum) False
4
 
what you're talking about is Partial Signatures
 
Haven't heard about that one
 
Xeo
@CatPlusPlus ah
 
user1804599
Typed holes are silly.
 
9:52 AM
mlyp
 
user1804599
Try writing good code instead.
 
instead of writing chat messages @rightføld
main.cpp:32:11: error: 'Noisy Test::foo() &&' cannot be overloaded
     Noisy foo() && {
           ^
main.cpp:26:11: error: with 'Noisy Test::foo()'
     Noisy foo() {
           ^
uh what the hell
@Xeo Y ^
 
Xeo
add ref-qualifier
@BartekBanachewicz because members without ref-qualifiers can catch all things
 
@Xeo ah okay. thanks
 
@CatPlusPlus are you... positive about that?
 
9:55 AM
Eh?
 
electronics joke...
holes and is 'space where an electron could go' IOW positive change
 
And I thought programming jokes are bad
 
This code I'm writing right now is horrible
 
@CatPlusPlus are you still fixing html
 
10:03 AM
Yes
 
more like a markup language :-/
 
user1804599
Nice.
 
I need to come up with a pattern, then write code that checks for that pattern and every step along the way involves going through 70k records and then generating a report on every kind of change and then hoping I catch mistakes
 
user1804599
> ERROR: relation "delivery_address_time_zones" does not exist
 
user1804599
10:04 AM
aaaaaaaaaaaaaaaaaaa why do migrations not succeed aaaaaaaaaaaaaaaaaaa
 
user1804599
oh
 
user1804599
I run them in the wrong order.
 
Good job
 
user1804599
:D
 
user1804599
And of course $(ls *.sql | sort -n) fails because there are fucking spaces in the filenames.
 
10:07 AM
24
A: What does the single ampersand mean here?

Lightness Races in OrbitIt means the member will be invoked when the object is an lvalue reference. [C++11: 9.3.1/5]: A non-static member function may be declared with a ref-qualifier (8.3.5); see 13.3.1. [C++11: 13.3.1/4]: For non-static member functions, the type of the implicit object parameter is “l...

 
@rightføld The float talk is up now.
And no, I haven't cut and dyed my hair. My part starts half way in.
 
user1804599
Yay.
 
@rightføld Good job using broken tools
 
hahaha
spot on
 
nice idea as well, but 'auto' needs higher C++ standard. — H'H 2 mins ago
... inb4 he calls "college requirements"
Good morning
@FredOverflow I was thinking you meant you wear a hair piece for a moment :)
 
10:23 AM
I wonder how easily C# gets adopted compared to C++ when a new version shows up
 
@sehe You think I lost all of my hair thinking about Java? ;)
 
@rightføld key selection - sort -k2.5n and the likes (though I admit to resorting (sic) to perl for this kind of thing, because honestly, sort and unique are just not attuned to eachohter)
@FredOverflow It's been known to happen
 
I mean, is C# 6 for companies that slow to adopt compared to C++14 (and, hell, 11)?
 
C# is for companies that are silly
 
@AlexM. It's pretty quick. The usual sequence is: whenever the mainstream windows version ships the required version of the framework, everyone hops on board
 
10:24 AM
Doesn't mean codebases get suddenly updated for all the newest features, because that doesn't happen ever anywhere
I don't really recall any issues wrt compiling older code with newer version set
 
Neither would it make any (business or otherwise) sense
 
user1804599
Finally.
 
user1804599
ls *.sql | sort -n | xargs -d "\n" cat
 
user1804599
@sehe sort works fine.
 
user1804599
But cat $(ln *.sql | sort -n) passes foo bar.sql as two arguments to cat.
 
10:29 AM
sh sucks
 
user1804599
@AlexM. Most C# developers practically still write Java with s/extends/:/g.
 
user1804599
No single var was given that day.
 
I like this. With keyboard shortcuts (Ctrl-Shift-Escape, "w3") this is a lot quicker than firing up IIS manager and using several mouse clicks here and there to make it give you the information. And it refreshes automatically. — sehe 13 secs ago
Simple answers get underrated
@rightføld IFS?
 
user1804599
What is IFS?
 
@StackedCrooked Is that Comic Sans? It looks silly.
 
10:42 AM
2 days ago, by sehe
It's a hidden pointer.
It's sending you to a website with a topsecret name
 
Iffy File System
 
@CatPlusPlus oh god that's brilliant!
 
Xeo
10:57 AM
hm. already noon
where did my time go!
 
Ell
Gosh its chilly
 
I have 4h logged already, it's weird
On good days I usually wake up around this time
 
user1804599
oh wow
 
user1804599
PHP gives an error on division by zero.
 
user1804599
PHP > JavaScript
 
10:59 AM
Almost done with the fucking HTML
 
Xeo
@CatPlusPlus I got a little over 3
 

« first day (1493 days earlier)      last day (3470 days later) »