« first day (1489 days earlier)      last day (3442 days later) » 

10:01 AM
@Xeo it's not that simple :(
 
> CXX0063: Error: overloaded operator-> not supported
 
Xeo
lol.
 
There are bigger fish to fry that is missing, but even the small details are not there.
 
@R.MartinhoFernandes welp
still better than gdb
 
I wish I could, say, order breakpoints: break here but only after you pass through here first.
 
10:07 AM
@R.MartinhoFernandes yeah that would be cool
 
just dump a condition statement
 
@BartekBanachewicz lol
 
@CatPlusPlus what
I'd specify it differently - break only via this code path
 
@Mikhail Yeah, if I have to transform my code to debug something like that, that's a strong indication the debugger sucks.
 
1 min ago, by Bartek Banachewicz
still better than gdb
 
10:08 AM
@BartekBanachewicz That's less useful.
@BartekBanachewicz Keep saying it. 563 more times and it becomes true.
 
it's less generic certainly
@R.MartinhoFernandes challenge accepted.
 
@BartekBanachewicz The generic form is what you have in GDB: go all Turing-complete crazy with the Python.
 
yes, you would have it if it worked
 
@BartekBanachewicz GDB can do that
 
it could do that if it worked
it doesn't.
 
10:10 AM
Yeah, keep saying it.
 
So you saying "still better than GDB" and then "yeah that would be cool" is funny
 
it advertises features that are completely meaningless for me because this piece of shit doesn't work
 
Works fine
 
@CatPlusPlus anything working is better than gdb, because the latter doesn't work at all
 
For millions of people
 
10:10 AM
@CatPlusPlus yes, and I'm hallucinating
 
@BartekBanachewicz Sometimes the things you want to debug are not in the same code path as the things that trigger them: say I want to debug some rendering issue that only occurs after I click some button.
 
@BartekBanachewicz No, you're just bad
 
@CatPlusPlus maybe it doesn't work just for me then
 
PEBKAC
 
@CatPlusPlus right, that's an amazing argument
doesn't change my opinion about GDB
 
10:11 AM
@BartekBanachewicz Wait, because anecdotal denial is a lot better.
 
well for fucks sake what am I supposed to tell you
this piece of broken crap DOESNT WORK FOR ME
IT CRASHES
WATCHES DISAPPEAR
 
@BartekBanachewicz Better anecdotes?
 
IT'S FUCKING BROKEN
 
I don't fucking get it.
 
10:13 AM
@R.MartinhoFernandes don't click the mouse? problem solved
 
I've tried on multiple OSes with multiple projects and ALWAYS, FUCKING ALWAYS had problems with it
since like 2008 till today
 
> The following breakpoint cannot be set:

At animated_observer.cpp, line 354 ('start_animation(std::string name, const Src& src)', line 2), when 'name == "p"' is true

no operator "==" matches these operands
Dec 28 '12 at 2:10, by DeadMG
also, it would be really swell if VS did not crash whilst debugging.
Not me!
 
it's almost like debugging is hard...
 
dunno
maybe I'm hallucinating
maybe my computers are cursed
 
@BartekBanachewicz With GDB? Yeah, the problem is that sometimes particular GDB does not match well with what particular GCC version emits for debugging info.
 
10:14 AM
that's what I fucking see and either I'm right or mentally ill
 
@BartekBanachewicz Since you start by assuming it's not your fault, yes, that's the only other explanation.
 
@R.MartinhoFernandes should it be 'p'
 
@Mikhail It's a string
 
idk man
 
10:15 AM
> [re: name.size() == 1] This expression has side effects and will not be evaluated.
 
@R.MartinhoFernandes oh oh oh, that car analogy about driving down a road, and everyone is all angry at you and you going the other way, having to swerve around you and shit.
 
I have a long list spread out through the transcript.
 
why have you made me talking about gdb
 
10:15 AM
And it's all the small faults that make debugging simple stuff impossibly hard.
 
ghci best debugger :toot toot:
 
@BartekBanachewicz We like to watch your tantrums? :)
 
btw Mount and Blade is free on GOG till tomorrow
 
@CatPlusPlus oooh
lol I love that flag->delete hack
 
Flagging is vastly useless now.
 
10:17 AM
it's always been
okey I need to calm down
I've been awake for two hours and only things I've managed to do is get up and rant
 
Now it's easily superseded by kicking.
 
@BartekBanachewicz My day every day
 
ain't a problem sugar and coffee can't solve
 
user1646075
@rightføld Yayyy! In 2 months, you can explain all the stuff I never understood
 
lol you think he's going to stay with one language for 2 months
 
10:22 AM
Is F# going to be the new language of the month?
 
Analysing Syrian crisis with luminosity data: 2008 vs 2014 http://www.tandfonline.com/doi/abs/10.1080/01431161.2014.971469#.VF5nEfnF_6s http://t.co/PuscYyZqCx
 
Apparently you can get Witcher 2 for free too by collecting some stuff
 
@BartekBanachewicz there is
@BartekBanachewicz world hunge... oh
 
@Mikhail who picks that?
 
user1804599
> Fatal Error: Cannot find the class "NONE" in any known cluster.
 
user1804599
10:32 AM
wtf :V
 
user1646075
@rightføld big wtf.
 
user1804599
In class NIL inherit LIST [NONE]
 
uh
functions are monads
 
user1646075
@rightføld now you need to read a book!
 
user1804599
wait what are arguments covariant when overriding
 
10:36 AM
uh VS community edition
 
user1646075
if you redefine a function it's args can be redefined to a class in the inheritance chain that is conformant to the original arg. Return values can be ... what's the phrase ... counter-variant for similar reasons
 
really not an original idea (IntelliJ and a thousand others have had community editions for a long time) but it's still a good one.
 
@rightføld help
 
user1804599
with what
 
why doesn't type fn a b = a -> b compile?
neither does type fn a b = ((->) a b)
 
10:38 AM
What a rookie mistake, man.
 
user1804599
Because it must be Fn.
 
oh wait
holy fuck
lmao
I'm dumb.
 
good morning
 
@MarcoA. Yes that's important
That other people have used this combination of words
god
 
user1804599
@sehe HALLO sehe ALLES GOED
 
10:41 AM
@rightføld That sounds wrong.
 
@sehe Not really, no. New puppy next door squeaks all night, which makes Bailey squeak too. I'm gonna have to introduce them to try and get some peace.
Also, my interwebs have been crap since the 'Oh shit, our SSL code is fucked too, emergency patch!' Windows update.
 
Xeo
@BartekBanachewicz y'know, thinking about it just now, I can't seem to find a proper usecase
 
@Xeo I have a real world one
Note how this gets shitty when used here
if gameOver was :: Reader GameState Bool (or whatever monadreader)
I wouldn't need to get.
 
You'd have to use Reader's get instead
 
@CatPlusPlus I could ask inside of the function, yes.
I could also simply change its signature to State, but then it doesn't make it clear it doesn't modify the state
 
Xeo
10:48 AM
doesn't change anything there, ye. Except give some stronger guarantees about gameOver
 
@Xeo this precisely.
 
It actually doesn't change anything wrt this code
Reader would only be useful if you had to thread that value along
 
As is the function has the strongest guarantee
 
@CatPlusPlus that's certainly right.
 
10:50 AM
@BartekBanachewicz is you spud-land game using your own gl code or some external lib?
 
@thecoshman "spud-land"?
 
@BartekBanachewicz taters-vile
raw-chip-paradise
 
¬_¬ Potato Empires
 
oh there you go.
it's using <canvas>
or, more to the point, getContext('2d')
 
10:52 AM
lol what kind of game developer does this i.imgur.com/xeYQ7hG.jpg i.imgur.com/ohO7igE.jpg
those are two achievements in AC unity
ubisoft is so butthurt
 
lol Rsolutiongate
 
I don't really get how ubisoft gets away with this
 
@BartekBanachewicz I've been awake for way too long.
 
they're essentially considering their customers idiots
and make fun of their feedback
like, publicly
 
10:55 AM
Never not make fun of gamers
 
>>= on functions is really weird
 
@CatPlusPlus what else are they for?
@BartekBanachewicz ooh, it's all 2D
 
@AlexM. Their customers have a long track record of putting up with bullshit. IOW, they are idiots.
 
instance Monad ((->) r) where
    return = const
    f >>= k = \ r -> k (f r) r
right.
 
10:57 AM
Why are all the coolest things pre-1.0
 
@CatPlusPlus like potato empires
@thecoshman why are you asking?
 
pahtato
Dunno if I've linked that github.com/OmniSharp/omnisharp-vim
Not related
 
@BartekBanachewicz curious
 
So, no country south of Mexico has intercity train services?
 
btw a guy posted a nice brainteaser for me in the haskell room. I think I have the proper answer, but it's interesting #spoilers-below
 
10:58 AM
@R.MartinhoFernandes believable
 
My masterplan is ruined.
Well, not quite ruined, but affected slightly.
Actually, not even Mexico seems to have that.
 
@R.MartinhoFernandes ... oh destroy the intercity train lines in south America?
 
Nah, just daydreaming.
 
@CatPlusPlus I moved from vim to ST3
for no particular reason.
 
@R.MartinhoFernandes ... you could probably day dream for a lot cheaper if you stay home.
 
11:01 AM
It's gonna be hard to figure out how long it takes to ride a bus from Mexico City all the way down to Ushuaia.
 
Say, do you furners have native words for when you mean 'staying at home', but not literally in your house but just you local area?
@R.MartinhoFernandes there's lots to factor in.
 
Put the bus inside a cargo plane.
 
@LucDanton Not very helpful when the goal is to minimize plane travel.
 
nooo, plane in side bus
 
Okay, put the cargo plane on a cargo ship.
 
11:04 AM
I think bouncy Rosetta landing is positively comety gold
 
So far I only have a plane from Melbourne to Los Angeles, and I'd like to stay that way.
 
teeth grinding
 
@LucDanton Put the cargo ship on a cargo cult.
 
user1646075
Mexico City? You'd need one of those jeeps with the machine gun mounted in the back wouldn't you?
 
Maybe even get rid of that bit.
 
11:04 AM
@CatPlusPlus good morning afternoon to you too
 
Though boat trips are long and expensive.
 
@R.MartinhoFernandes fear of flying?
 
Morning!
 
@R.MartinhoFernandes Why are you going to spiderland
 
Did you know that there are no regular passenger ships between the Far East and Australia at all?
@CatPlusPlus I'm not.
Even though Southeast Asia is just over there.
 
11:06 AM
@R.MartinhoFernandes not surprised
 
So probably gonna be even less likely to find something between Australia and the Americas.
 
Yeah are long-distance ships even a thing still
 
Well, that’s why I suggested a cargo ship. Plus where would you stow a bus on a passenger ship?
 
Passenger ships
 
user1646075
@R.MartinhoFernandes only cruise liners.
 
11:07 AM
@CatPlusPlus Southeast Asia-Australia counts as long distance?
 
Dunno
 
user1646075
@R.MartinhoFernandes 3000k maybe
 
Indonesia is right there.
 
user1646075
sydney to brisbane is 1000k. brisbane to the top is another 1000. Then to say japan, probably another 1000
 
Sydney to Brisbane is not between the Far East and Australia.
It's within Australia. I fail to see the point.
 
user1646075
11:09 AM
no, but the scale. Japan to sydney 3000. to melb; 4000
 
I only roughly remember the map and where the continents are
Don't ask me about distances
 
@aclarke Why Japan.
1 min ago, by R. Martinho Fernandes
Indonesia is right there.
 
user1646075
@R.MartinhoFernandes just a sample.
 
user1646075
although you said S/E asia didn't you...
 
The Timor Sea is 480 km wide.
And there's Darwin on one side of it.
 
user1646075
11:11 AM
Geez - sydney to main part of indonesia by boat is around 6000
 
Papua New Guinea is even closer, but there's nothing across from there.
 
Usually damnit, but today a bit more
 
@aclarke Yes, Australia has only one city in it.
 
user1646075
heh
 
user1646075
11:11 AM
darwin - drunks and snakes ;-)
 
Hmm, it's a distance comparable to crossing the Caspian Sea.
 
Danger zone
 
Which was actually another complicated part of it :|
 
Robot's planning on conquering the world in the most optimal way
 
user1646075
around the world in 80 gays
 
user1646075
11:13 AM
hmm balloon? oh wait, fear of flying
 
Plan indefinitely on hold due to P/NP thing
 
user1646075
still calculating.
 
I like Verne books
 
Anyway, I did solve that Australia bit.
Now I'm stuck in Mexico City, trying to get to Tierra del Fuego.
 
user1646075
@R.MartinhoFernandes Gangs kidnapped you?
 
11:15 AM
I posted a comment on a Salt issue, does that make me an Open Source Project Participant
 
@aclarke Being inside people wouldn't be the optimal way of traveling.
Heh
 
user1646075
@Nooble no, only when you get there
 
@Nooble Put them on that bus
 
@CatPlusPlus yes
 
Oh wait.
I'll need a second plane section.
 
Xeo
11:17 AM
the heck are you planning for?
 
Nothing. Just fooling around.
 
btw I forgot to mention.
 
South America - Africa will be hard to negotiate without a plane.
 
I bought a Polish copy of Wreck This Journal for Natalia
 
Xeo
try swimming
 
Ell
11:17 AM
Morning
 
so far she's loving it
 
@Ell Hey.
 
Ell
Who is Natalia in the bond film
And which bond film is it... With Borris
I am invincible!
 
Would be nice if the Bering Strait could be crossed and if Australia was in it.
 
are you high @Ell
 
11:18 AM
@Xeo on land!
 
user1646075
Skip New Zealand. Hobbits and Kea birds
 
Ell
@BartekBanachewicz nah :L
 
@aclarke I thought of going Tasmania - Antarctica - New Zealand - North America, but that would mean even more planes.
 
user1646075
@R.MartinhoFernandes Antarctica would be a buzz. You can go on an icebreaker as a tourist i think
 
Hmm, Africa might be even harder than the Americas.
@aclarke Takes too long, though.
 
user1646075
11:22 AM
@R.MartinhoFernandes so kayak across the atlantic wouldn't work either?
 
It's easy to mess up erase/remove idiom:
vec.erase(std::remove(vec.begin(), vec.end(), element)); // crash!
vec.erase(std::remove(vec.begin(), vec.end(), element), vec.end); // OK
 
user1804599
@StackedCrooked That's why you remove the boilerplate by writing a function that does that.
 
So far I have some 60 days eastbound to Mexico City, only one cheat, about 2000 euros in travel fares, and more than half of that is the one cheat with that damn plane.
 
user1804599
template<typename C, typename T>
void erase_all(C& coll, T const& value) {
    coll.erase(std::remove(coll.begin(), coll.end(), value), coll.end());
}
 
You probably should be working
 
11:24 AM
@CatPlusPlus Waiting on a long test.
 
user1804599
And similar for std::remove_if.
 
user1804599
idiom = idiot
 
Ell
@StackedCrooked what does the first do?
 
@StackedCrooked std::erase(vec, element) #shouldbestd
@Ell crash
 
user1804599
I should've read the contribution guidelines: github.com/igorw/yolo/pull/16
 
I hate people who do void DoSomething(bool shouldDo) where if the param is true it does something, otherwise it does the exact opposite
 
@CatPlusPlus old, but cool
@AlexM. naming is hard
I have working randoms
I need map generation for potato
 
@CatPlusPlus neat
 
what are you mapping potato on to?
 
user1646075
@chmod711telkitty a plate. with sausages
 
11:44 AM
pair(potato,?)
 
user1804599
@AlexM. use enum not bool
 
return $ (flip evalStateT) m $ replicateM 20 $ do
 
user1804599
@AlexM. even better, two separate functions.
 
user1804599
@BartekBanachewicz you don't have to parenthesise flip :P
 
11:45 AM
@BartekBanachewicz I think I prefer (`f` y) to flip f y.
Though I avoid flip in general, regardless of form.
 
I was thinking more about this "ad-hoc" state
do you think it's a good style?
 
I tend to permaflip evalState because its argument order is dumb
 
yeah regardless of flip
assume you have a function f :: a -> m a
 
0
A: iterator over references of std::vector<std::unique_ptr<T>>

ColumboActually the solution for this problem is already implemented in Boost.Iterator. And it's sexy: std::vector<std::unique_ptr<int>> vec; // [..] using iterator = boost::indirect_iterator<decltype(vec)::iterator>; iterator iter = vec.begin(), end = vec.end(); indirect_iterator can be fo...

 
wait
yeah good.
m is some other monad.
 
11:47 AM
C'mon, OP! Use Boost
 
Now you want to modify that a in a series of steps
I imagine creating an ad-hoc StateT, initializing it with a param, then returning
should be execState than evalState actually
 
@CatPlusPlus Is it?
 
@R.MartinhoFernandes you want to do but you can't because initial state
 
(s -> r) seems a lot more useful than (State s a -> r) to me.
 
Hi all
I am trying to extract data from a function which takes in a struct as input parameters:
Function(unsigned long MXSysConfig,struct testStruct* myStruct)
How do I now extract this into another struct intialized within this function?
I tried myNewStruct = myStruct but that is throwing errors...
 
11:49 AM
@BartekBanachewicz Wait, why are you using evalState inside of do?
 
do immediately with evalState
Not inside
 
evalState' s $ do ...
 
evalState $ do
     modify shit
 
I p much always have that
 
11:51 AM
What.
@CatPlusPlus The monad is the first argument.
 
@R.MartinhoFernandes Yes that's why I flip it
 
Yeah, I still don't get it :S Maybe I do too much pointfree.
3 mins ago, by R. Martinho Fernandes
(s -> r) seems a lot more useful than (State s a -> r) to me.
 
> runState ?? My crazy complicated State $ do ...
 
I'd rather not have a named inner function than to make it pointfree
 
what ekmett allegedly uses, in typical fashion
 
11:53 AM
What's ??
 
@CatPlusPlus You don't need one.
 
> (??) :: Functor f => f (a -> b) -> a -> f b
 
You just drop the s argument.
 
3 mins ago, by Bartek Banachewicz
evalState $ do
     modify shit
Literally what Bartek did, actually.
 
11:55 AM
Dunno
Initial state tends to be constant too
Whatever really
 
@rightføld 523.7 PROTOCOL ERROR
unsafeWith dat $ \ptr -> #literalprogramming
 
@CatPlusPlus Yes, and I feed it once at the topest level I can and just pointfree it away everywhere I can by sticking to s -> r functions.
 
Maybe
Haven't done anything in Haskell lately
 
When I think State, I think s -> x, not State s a -> x
 
woops. clicked the c++ room. ABORT ABORT :P
 
Ell
11:58 AM
Hmm
MyTemplate<int> can't access MyTemplate<double>'s private members can it?
 
is foldr1 (>>=) even remotely useful?
 
> Of particular note was the introduction of the Mud Slide cocktail to Berlin. The Mud Slide is a fine drink that thecoshman introduced to some place who's name is lost in time.
Did thecosh write that?
The name is not lost in time. I pass by the thing everyday from work.
 
changeRandomTilesToWater m = return m >>= (foldl1 (>>=) [changeRandomTileToWater, changeRandomTileToWater])
the hell this doesn't work
 
@Ell Nope, it can’t.
 

« first day (1489 days earlier)      last day (3442 days later) »