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

7:00 PM
@Xeo The real value in ref-capture is &, not &x.
 
Xeo
@milleniumbug I've taken a liking to explicitly specifying the variables I capture if the lambda is long-lived (i.e., not just passed to an algorithm and consumed)
 
@Xeo Yeah, that's a good idea. But short-lived lambdas are more common IME.
 
Xeo
sure
not denying that
 
I wish all the websites were like coliru.stacked-crooked.com. No ads, no annoying irrelevant shit. Just plain and simple webapp.
 
IIRC Effective Modern C++ recommends explicit lambda capture
 
7:02 PM
oh gawd
building Boost.
 
Xeo
is it tearing at your brain?
 
no.
 
This typo is priceless though, so I'm going to spell it out
> Bost
Why are you building Boost? For MSVC?
 
user1804599
 
updating to 1.58
and also VS2013 died a fatal death so I'm trying VS2015 again
 
Xeo
7:06 PM
@rightfold lol
 
even trying to display the output of that horrific Boost.Build causes Notepad++ to crash.
 
<*> and <* align as fuck
 
user1804599
Don't use Haskell.
 
Scala is ugly
and I'm out of options
it is virtually impossible to align pleasingly <* with <*>;
 
user1804599
Go.
 
7:17 PM
Go ain't functional
 
Go Go Power Rangers
 
user1804599
> Package suffixarray implements substring search in logarithmic time using an in-memory suffix array.
 
user1804599
Hmm.
 
I could use C++ with Spirit but well fuck that once you get used to Haskell Parsec
 
user1804599
Use do notation.
 
7:20 PM
I prefer applicative parsing
 
user1804599
I prefer readable parsing.
 
Xeo
if you need to align, just go with do.
 
user1804599
Also (<**) = (<*).
 
user1804599
Alignment problem solved!
 
Xeo
>*>
or <*<
 
7:21 PM
*> aligns well!
(,) <$> variable <* symbol '=' <*> term
so pretty
@rightfold I'll use dat; thanks!
 
user1804599
I don't like custom operator precedence and associativity.
 
it sure as hell is worse in F#
 
user1804599
It creates syntactic dependencies between modules and results in a context-sensitive grammar.
 
user1804599
It's impossible to parse a Haskell module without parsing all the modules it imports.
 
F# is still crappier
associativity is based on the symbols you use in the operator
 
user1804599
7:26 PM
Scala does that. It's nice and simple.
 
user1804599
Everything is left-associative except operators which end in :.
 
and priority?
 
user1804599
And precedence is derived from the first character of the operator.
 
like, no way in hell will I "brain-parse" for combinations of special symbols denoting stuff
yeah I think it's horrible
 
user1804599
I prefer not being able to create custom operators in languages that have precedence or associativity.
 
7:28 PM
Anyone else getting capcha clicking on anything on a SE site where you're not logged in? This is super annoying
 
user1804599
In APL and Clojure it's fine.
 
no; no;
nothing in APL is fine
 
APL has been a topic in this room quite often the last few days
 
there is no point discussing APL; it's bad and the turing-award-boy should feel bad
 
user1804599
Why? APL is a wonderful language.
 
7:30 PM
it's virtually unreadable even by "a trained eye"
 
isn't APL the language where you had to type in moonrunes?
 
it deploys the so called "write only paradigm"
 
literally just rightfold and its creator could use it
 
it has syntax-level encryption
if you think Perl is unreadable, try APL
 
@LightningRacisinObrit décharge, as they say, I think (as in: "no longer my fucking concern" says the delivery guy)
@ScarletAmaranth did you
 
user1804599
7:33 PM
@ScarletAmaranth APL is only unreadable if you don't know the symbols.
 
user1804599
APL is as unreadable as Japanese is unreadable.
 
Xeo
Japanese isn't unreadable if you know it! :P
 
@rightfold pretty darn unreadable to me
 
Xeo
oh wait, I should read the message before that
 
nothing is unreadable if you know it
but there's also this thing called how long it takes to learn
 
user1804599
7:34 PM
APL is very easy to learn since it's very simple.
 
@sehe I know of your deep feelings towards Spirit, but Parsec is just... nicer; simpler...
 
and after you're done with how long it takes to learn
 
user1804599
I could implement quicksort in it after being exposed to it for about two hours.
 
nonono; APL is in fact unreadable even when you know it
 
@ScarletAmaranth Way to avoid the question
 
7:35 PM
you need to measure what you gain from the effort
 
@sehe yes, I am used to writing parsers in Parsec
 
Xeo
@ScarletAmaranth Only so much you can do without do sugar
 
it's pretty safe to assume that in my case the effort of learning APL won't lead to anything worthwhile :P
 
Xeo
and backwards inference
 
@ScarletAmaranth :( deserter ...
:D
 
Xeo
7:36 PM
Parsec is really neat, though.
 
@Xeo I write applicative where applicable :)
 
@ScarletAmaranth Actually, it can be readable when you know (and write it halfway decently).
 
@chris o boy!
 
@chris lolwat
 
7:38 PM
@chris so much fail
 
Xeo
wow
 
@JerryCoffin nope; nope; nope - I think you have to develop an uncanny condition in order to even begin to recognize that it's APL and not mis-represented string of bytes
 
user1804599
Come on, this isn't so bad:
 
user1804599
sort←{
    1 ≥ ⍴⍵ : ⍵
    pivot ← ⊃⍵
    rest ← 1↓⍵
    (∇ rest /⍨ rest≤pivot) , pivot , (∇ rest /⍨ rest>pivot)
}
 
@ScarletAmaranth You may think that--but you're wrong.
 
7:41 PM
@rightfold ^∇^
 
user1804599
:D
 
@JerryCoffin never will I ever think otherwise! :P
 
user1804599
recurses.
 
also lol this: ⍨ is actually :S
 
user1804599
commutes.
 
7:42 PM
O⍵O
 
user1804599
1 ÷ 4 is -0.25 whereas 1 ÷⍨ 4 is 4.
 
(O⍵O) - Nyaa~~
APL > C++, officially
 
Xeo
:3
 
user1804599
is the right argument.
 
user1804599
And ⍺ is the left one.
 
user1804599
7:43 PM
For unary functions (such as sort) there's only a right argument.
 
Xeo
I was about to ask
 
Jake the Dog is, along with Finn the Human, the main character in the American animated television series Adventure Time created by Pendleton Ward. He is voiced by John DiMaggio. The character made his debut in the original pilot. Jake is Finn's best friend and adoptive brother. He is a shape-shifting dog who is 28 years old in "magical dog years". His magic powers allow him to stretch, shrink, or mold any part of his body to any shape and almost any size, ranging from becoming gigantic to becoming incredibly small. He acts as a confidant and mentor to his energetic brother, though has a tendency...
 
@ScarletAmaranth Which seems to translate to: "I don't know, and I'm not going to learn!"
 
is adventure time really that good
I saw that people like it
 
Dunno, never watched it
 
7:45 PM
CN cartoons seemed to go downwards as soon as they replaced PPG with shit like Ben 10 lol
 
@JerryCoffin I am quite fond (and aware) of my ignorance in this case :)
 
user1804599
Awesome. :)
 
@milleniumbug awesome spot
 
> Cyanogen partners with Microsoft to integrate Bing, other MS services
Cyanogen plans Google-less OS, and Microsoft helps fill in some of the blanks. http://arstechnica.com/gadgets/2015/04/cyanogen-partners-with-microsoft-to-integrate-bing-other-ms-services/
wait what
wasn't cyanogen the corp-free open source stuff
> CyanogenMOD (community edition) != Cyanogen OS (Commercial version, sold with One+, Yureka and other devices). There are no bundled apps on the community edition. Infact there is almost nothing on it, not even Google Play Services. It's plain AOSP with a few customizations.
nvm
 
8:02 PM
Whats an easy to parse 3d file format besides .obj?
 
.blend
 
not quite equivalent, itll have blender specific stuff. im just looking for an interchange format
 
(don't listen to me I have no idea)
 
i guess ill check what assimp supports and look at samples of those
 
goddamnit boost.build.
why the fuck did you build it in the config I asked for and then build it again in a completely random different configuration?
 
8:05 PM
> In the initial, 30fps iteration, weapons and armour would degrade fairly slowly, but there were still occasions where I'd find myself with a nearly mangled weapon, and with no bonfire in sight. (Bonfires restore durability in Dark Souls 2). The new, 'next-gen' or DirectX 11 version runs at 60fps by default, and due to the way it's been coded, stuff in it now degrades twice as fast.
lol nice coding there
 
hmm
 
someone somewhere made a 30fps assumption, it happens
 
and --variant=debug but runtime-link=static instead of --runtime-link=static?
fail.
 
its dumb, but it happens
 
@Borgleader they released it like this though
and in a patch they're fixing something else
so it's a feature now
 
8:06 PM
@Borgleader Er, what if your GPU is a little shit and can only push 27FPS?
 
@AlexM. lol logic timestep tied to rendering timestep
Even my River Raid remake didn't do this
 
people are really mad about the durability
 
Xeo
s/physics/logic/
 
> I broke a Santier's spear in less than 20 seconds at FoFG.
 
@Puppy "its dumb, but it happens"
 
8:11 PM
From was pretty dickish with the DS2 remake anyway
it was not a free upgrade for existing DS2 owners
 
remake? i think you mean port?
 
it's a remake of the original port
 
why would they remake such a recent game
 
because it needed to be remade for next gen platforms
so it was like a port from PS3 to PS4 and then a port to PC
 
oh, its an HD version ok
 
8:12 PM
I don't even
anyway, they allowed people to buy the original DS2 full price and didn't offer any way to upgrade to the remake after release
 
why would they?
I don't see any obligation for them to offer free upgrades to a new version if they don't want to.
 
the Steam review section was full of "DON'T BUY THIS! They'll release the remake in a week, buy that one."
 
happens every time there's a remake
 
yes, especially for remakes like Heroes 3 HD
:P
they're not obligated to do anything like you said
I'm just dropping this from a customer's POV
 
customers always want more free stuff.
 
8:16 PM
I like free stuff
 
> gcc -v
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
oh fuck me
 
it was then that milleniumbug realized
he was running Ubuntu
 
Yeah, I was surprised too, I thought this computer was running Linux Mint
 
isnt mint essentially a reskin of ubuntu?
 
It most probably is. But without Unity shit.
 
user1804599
8:19 PM
Crap.
 
C'mon, why not 4.9.2 instead?
 
@Borgleader No.
 
6.0?
 
It's based on Debian just like Ubuntu.
though iunno if that's still true
Oh I'm thinking of "Linux Mint Debian Edition"
 
hey I found LRiO: /cc @LightningRacisinObrit
 
8:25 PM
wtf is she holding.
 
oh damn Sailor Moon lol
 
@deW1 GoT
 
seems like a G-spot stimulating vibrator
 
the stuff on the ussr flag?
 
@Puppy I know what it could be if the woman is brave enough.
 
8:26 PM
that is not helpful.
 
yall twisted its the sailor moon wand (i know because i googled it just now)
 
you know because i said it :p
why am I proud to know that -.-'
 
@deW1 i have a friend who does a lot of cosplay so i see a lot of pictures of cosplay on facebook, it was fairly obvious this was sailor moon
 
@Borgleader i like cosplay :)
 
10
A: Gated check-ins / pre-tested commits for Git?

Sam HolderWe have just started using git and have implemented pretested commits using workflows (I finished testing this just today). basically each dev has a personal repository which they have read/write access. The build server TeamCity in our case, builds using these personal repositories, and then i...

 
8:32 PM
Is there an online C++1z compiler besides gcc.godbolt.org? I know Coliru is at Clang 3.5 atm.
 
bah
 
do you have something like ^
 
I dislike Facebook muchly.
is there any way I can tell them to stop measuring the weight of my shits?
 
user1804599
@chris Coliru.
 
@rightfold Thinking about fold expressions in particular
 
user1804599
8:35 PM
Then you cannot use Coliru.
 
user1804599
Tell @StackedCrooked to install clang 3.6.
 
no, I don't wanna!
 
btw. shouldn't 1z be a tag for this room?
 
user1804599
perhaps
 
user1804599
we did have in the past.
 
user1804599
8:38 PM
Nice, the Go build system ignores Go source files in directories named "testdata".
 
user1804599
I'm pleasantly surprised.
 
well it's the smart thing to do
 
Hey uh guys
I'm having a problem with design
 
@chris Ask stacked to update it.
 
Remember Ludum Dare? Well here we go:
Say I want to get input and then find out what my mouse is hovering over
How might I do range-based detection?
 
8:40 PM
check co-ordinates against co-ordinates of UI elements.
 
@StackedCrooked, I could send you a cookie if you pay shipping and handling.
 
@Puppy No, but if I have too many UI elements that might not be wise
Isn't there some sort of binary or quadtree algorithm?
 
maybe next week
 
there is, but who gives a fuck?
it's just an implementation.
you can swap it out another time.
 
@Puppy Good idea
 
8:41 PM
you don't need to perform mouse-click resolution in the asymptotically optimal time.
 
but I'll search for this later
 
@StackedCrooked That would be really great. Hope it isn't too much work to do that.
 
@Puppy thanks puppy
 
pfft
you normally ignore all of the good advice
 
@Puppy You're too cute today to ignore LOOK AT THAT PROFILE PIC
 
8:43 PM
it's the same one as before
 
@chris it's a pain in the ass. I hope you feel bad for making me do this.
 
@Puppy (that's the point)
 
@JohanLarsson What is the benefit for running the shop like this compared to testing and talking to each other?
 
I see.
 
@StackedCrooked Try using a more comfortable chair.
 
8:45 PM
@CaptainGiraffe Testing and talking to each other is manual work instead of work you can rent a server farm for.
 
For raw data/POD-like structures, might I want to create as a struct and have it public by default?
 
raw data and POD are for morons.
 
I mean, say I have a class that stores sprite and position
If I need to flip the sprite it might be overkill to have classes to change that sort of thing
 
you should do whatever accomplishes what you actually need with minimal effort.
 
8:46 PM
@Puppy being a lazy ass isn't always the best thing...
but okay
 
WTF is wrong with people?
 
@CaptainGiraffe Gated check ins are really nice. No way to break the build or not fix all tests by accident.
 
@Cinch It pretty much is. That's the definition of all programming.
 
@Puppy No.
 
oh yes.
why not run your programs by hand?
 
8:46 PM
@fredoverflow 2 emails in how many days now? <
 
I'll tell you why, because you're fucking lazy just like me and everybody else.
we write programs literally for the sole purpose of making a machine do work for us.
 
@Borgleader one
 
because we don't want to do it ourselves
 
@fredoverflow I like how the link overflows into the next sentence.
 
damn it
where is that NASA programmer article
they literally outline EVERYTHING for a perfect program
but you do have a point I'm not going for perfection
 
8:48 PM
@Puppy i agree
 
user1804599
@fredoverflow lol
 
I'm sorry. I'm an idiot, why can't each developer be told to not commit build breaking code?
 
@fredoverflow tell him to stay with html :)
 
@CaptainGiraffe Again, that's manual programmer work instead of work you can farm off to a server somewhere. That makes it inferior by definition.
 
@Puppy Yep.
 
8:50 PM
So what is automated? I sincerely apologise for my ignorance.
 
checking if the build and/or tests is broken.
 
@deW1 Maybe it's a Google recruiter in disguise?
 
why make the programmer check if you can make a machine check for you?
 
dunno if you noticed but programmers are shit expensive and servers are cheap.
 
8:51 PM
@Petruza: There is this question which has been vetted by the SO C++ community to contain good books. Also, feel free to come join us in the chat and we'll lend you a hand. — DeadMG Dec 5 '11 at 18:24
 
on a unrelated (I think) note: that's not a valid regex. A \` escape requires a following character. To match a single \` char, use "\\\\" or "\\x5c"sehe 54 secs ago
Classic fail
 
@fredoverflow I would still tell him
 
So "TeamCity build agents" are just a make test? then pull into the central repo?
 
@fredoverflow Tell him to be an electrical engineer and not a software peep
electrical engineers actually get to work on cool stuff
 
@fredoverflow Is it waffle?
 
8:52 PM
@CaptainGiraffe In this case.
 
@Puppy Thanks.
 
it's literally nothing more than bog-standard make-the-machine-work-for-you.
it's just that in this case, "work" is "Check you didn't break the build".
 
@sehe What do you mean?
 
Waffle contacted me via mail too. And it wouldn't surprise me if he were in electronics eng.
 
In my experience, - if you break the build, you buy everybody Thursday beers and pay for lapdances. I guess this is cheaper.
 
8:56 PM
> I start learning C++ after html
great stepping stone
 
hey us so
what is the difference between an unordered map and a hash aren't they the same?
 
yes
 
@Cinch yes
 
they are variations of mash and hap
 
what.
So uh...
Hm.
 
8:58 PM
READ. Padawan
 
@sehe I DID, Master Polar Bear
 
We're not here to spell out documentation
@Cinch How come you ask, then
Read again
 
icebear
 
@sehe Because it's only about hashes and not in comparison to maps
 
@sehe or, rehash it
 
8:59 PM
@Cinch What are your feeling about a set?
 
@Cinch Oh wait, you edited in unordered. Yesh, they're logically equivalent
 
But a MAP is ordered?
Weird
 
std::map is ordered.
 
map is ordered because it's not unordered
 
@Cinch Then friggin type the right question the first time :)
 
8:59 PM
std::unordered_map is unordered.
 
let us add to the confusion
std::hash_map :D
 

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