« first day (1820 days earlier)      last day (3121 days later) » 

user784668
8:00 PM
@elyse I'm not asking for a decent Lisp IDE, which Emacs indubitably is, but for a decent Rust IDE.
 
@elyse That's the worst nonsense I've ever seen ever
 
user1804599
@Columbo Why?
 
@elyse dat C-syle cast
 
user1804599
With foo.~T() you have to make sure the destructor doesn't mind being called twice.
 
can't deduce T
 
8:00 PM
@elyse Because you're not putting a whitespace between template and <
 
@ScottW Elllllliot
 
@Columbo why would you do that that's terrible
 
Ell
@ScottW try to guess first
 
user1804599
@AndyProwl if I wrote just T then it'd be able to take lvalues, because C++ is retarded.
 
@milleniumbug Pardon?
 
user1804599
8:01 PM
Is there a fix for that which does allow deduction?
 
> C++ is rearded
 
SFINAE
 
@AlexM. Depends what you’re doing. Parametrised modules have their fans—but so do implicits and I’m not too sure about those.
 
user1804599
cool
 
@Columbo template <typename T> ??
 
user784668
8:01 PM
@elyse Well obviously, it's C++.
 
@milleniumbug That's the way it should be written.
 
user784668
Tell us something we don't know.
 
@milleniumbug the only True way
 
user1804599
template<typename T>
struct identity { using type = T; }

template<typename T, typename U = typename identity<T>::type>
void destroy(U&& value) {
    auto x = std::move(value);
    (void)x;
}
 
user1804599
like that?
 
8:02 PM
@Fanael your mom's mass
 
user1804599
no
 
user1804599
whatever
 
user1804599
fuck C++
3
 
@Columbo no it's horrible
 
@milleniumbug Your mom is horrible
 
user784668
8:02 PM
@AnalPhabet Easy, it's 10 Sun masses.
 
@Fanael C++ still hasn't got one and it's been around for decades
 
I'd SFINAE on !is_lvalue_reference<T>{} or something
 
Ell
@ScottW Let me just check what's public fr15t
 
it's as if you wrote void f (int a, int b)
 
> Monad provides a solution, because it allows the programmer to customize how to handle functions that return an empty value. If the programmer instructs the compiler to return early when an empty value is encountered, then she doesn’t have to write all those checks manually.
I think I got where I had to
thanks!
 
user1804599
8:02 PM
@AndyProwl oh cool
 
@milleniumbug eyes bleed
 
user784668
@CatPlusPlus But C++ sucks so much even your mom sucks less.
 
Your mom sucks mostly due to gravity
 
Ell
@ScottW lolno
 
user784668
1 min ago, by Fanael
@AnalPhabet Easy, it's 10 Sun masses.
 
8:03 PM
@AlexM. Keep in mind you don’t have to learn about monads or class Monad per se. Sticking with Maybe is enough atm.
 
Ell
If I post my facebook people will look at my profile pic :L
I'd rather they didn't
 
I promise we won't
really
like, not a chance
 
@Ell Encrypt it for @ScottW
 
user1804599
Remove your profile picture.
 
what's your facebook
 
8:04 PM
Remove yourself
rm -rf .
 
user784668
Is Applicative finally a superclass of Monad?
 
user1804599
Yes.
 
It's stalkday saturday
 
We just need Robor to be here
And the stalksquad will be at it's best
 
@Fanael and a subclass of your mom, which is by definition the most comprehensive one
 
8:05 PM
@Fanael yeah lol
 
@Columbo I wouldn't write std::vector <int> so I don't write template <typename T>
 
@Fanael Next up: fail slated to move to its own thing for upcoming GHC 8.
 
Ell
@ScottW elliotpotts is your first hint
the other hint is that it's very easy to bruteforce
 
user1804599
@Ell dat faec
 
Ell
@ScottW yah
 
user1804599
8:07 PM
now I can just look at the new friends of Scott :P
 
user784668
@LucDanton Wow. Can we get join or >>= as the minimum specification, too?
 
user1804599
dat faec
 
Ell
@elyse just don't post it here pls :)
even though the pic is like 3 years old
I want people to at least have to put in a teeny amount of work
to find it
 
the match before you is "Smelliot"
 
user784668
8:09 PM
@ScottW u a Qt
 
user784668
u a GTK+?
 
user784668
But that's even worse!
 
I'm a windows form
 
user784668
u wot m8
 
I'm a terminal
 
8:12 PM
@Fanael Yup‌​. join is not a method for backward comp reasons that escape me IIRC.
 
look: Japanese Bartek: i.imgur.com/BfFeqx2.png
 
lol
 
user784668
@sehe Better than Polish Bartek, that's for sure.
 
what makes him a bartek
 
user1804599
chibartek
 
8:13 PM
I don't see any haskell anywhere
 
@AlexM. teh lookz
 
I can see a resemblance
 
BarTech
 
user784668
Can I catch a panic!?
 
@Fanael Only at the task barrier, which amounts to 'no'.
 
8:16 PM
Rust macro syntax is godawful
 
@LucDanton john-millikin.com/articles/monad-is-not-difficult isn't the guy redefining Maybe or something
is that normal?
 
@CatPlusPlus It scares people away from writing more macros though :V
 
ah nvm
I think I got it
it applies to Maybe Person only (?)
 
@AlexM. For a tutorial, yes.
 
@AlexM. That's horseshit.
the imperative "comparison" code is fairly terrible.
 
8:18 PM
@LucDanton so like what he did is not builtin?
it feels wrong to do that for some reason
redefining that is
 
@Fanael Yes. You catch a panic by freaking the fuck out
 
@AlexM. I don’t understand the question.
@AlexM. Oh, to clarify: he’s defining his own. Data.Maybe.Maybe still lives on inside Data.Maybe.
 
yea that's what I meant, I expected something like this to be built into the original thing
considering it's so useful
 
yeah it is
 
Demonstration purposes
 
8:20 PM
@ScottW alex.marginean0
np
don't stalk me (too much)
 
user1804599
@Fanael There are two ways. One is to run the panicking code in a separate thread, and retrieve the error from join. The other one is to wait for catch_panic to become stable.
 
@elyse Only two stars (one of them being my own). I am disappoint. This rooms sucks
yeap
 
let's try going the other way
fuck PHP
 
True that
 
user784668
Obvious starbait is obvious.
 
8:24 PM
Has anyone used a visual studio sln/vcproj to ninja file converter?
 
user784668
seriously
 
Ell
phew assignment almost finished, only have to write a report
 
user784668
Compiling Rust requires you to clone the whole LLVM tree?
 
Not surprised
 
user784668
I already have a perfectly functioning LLVM installation, use it ffs
 
8:25 PM
Puppy had to dig in LLVM/Clang internals too
They're not very good at APIs
 
user784668
Except it's literally unchanged upstream LLVM
 
user1804599
Download binaries instead of building from source.
 
suitable nickname
 
@Fanael It's about access to private headers and shit that are not installed, not changing it
 
8:27 PM
sounds robust
 
c plus plus software dot exe
 
user784668
oh right
 
user784668
rust-nightly-bin is a thing
 
Ell
can someone give me a very general pointer into how to print an infinite list in haskell?
 
user784668
print
 
Ell
8:28 PM
ah wait.
 
"But it goes on forever"
 
Ell
I thought my question was alike to that but it's not.
 
Who hosts the c++ rules rules btw?
 
Santa
 
user784668
8:29 PM
@PeeHaa Santi Cazorla
 
Ell
I have a function which generates a number sequence. I was hoping doing printStrLn $ show $ my_numbers would print as it discovered numbers in that sequence
 
@CatPlusPlus I see
 
Ell
but it is not the case
 
Can I PR or should I just shout the typos in here?
 
Ell
@PeeHaa PR
 
8:30 PM
@Ell That tries to show the entire list
 
@Ell Try to display a prefix of it with take n.
 
Ah cock. Yeeeah I'm blind
 
Ell
well, the numbers take a long time to get, and I was hoping it'd just show a new one when it encounters it. But at the minute it prints nothing
 
If you want to apply show/print to every element then you need mapM or whatever
 
Ell
whereas printing take 3 prints the first 3 of the sequence
@CatPlusPlus right okay
 
8:31 PM
mapM_ print my_numbers would probably be enough
 
Ell
@CatPlusPlus yes it is, thank you
 
Ugh of course you can't pass an event to a method in C#
Special things ahoy
 
ugggggghhhh ruby
 
the monad thing works, all tests pass
why does it work
so scary
why is this language so alien
 
@AlexM. magic guy meme.gif
 
8:36 PM
@AlexM. because you touch yourself at night
 
> Test suite tests: PASS youtube.com/watch?v=HQoRXhS7vlU
 
wtb mixins
 
@AlexM. FU. I refactored a group of five projects by swapping the name of two classes by 'copying' through temp. Now none of the projects will build at all:((
 
@LucDanton is Nothing some kind of singleton used for every Maybe instance? I think that would make things make sense to me if it were true
actually it's not nvm
 
Can anyone point me at a Q or A on templates, something like if you want to do X here are the steps and why for each? been looking at this and my head is about to explode.
 
8:50 PM
are u today's date because u are 10/10
@Jaden Try using English
 
@AnalPhabet what? MAKE SENSE!
 
> something like if you want to do X here are the steps and why for each
what is this
certainly not English
 
...
Also writing in caps doesn't make your point any more clear
Just sayin'...
 
@Jaden that's not a generic template tutorial
 
user1804599
added https://apps.skype.com to the IE blacklist and the ads are gone XD
 
8:53 PM
tutorial<T>
 
i don't know that much on templates. trying to study. I suppose templates allow me to figure make a function that can take int or float or double
 
@elyse I love the fact they are running nginx instead of iis :-)
 
user1804599
:P:P:P
 
@elyse IIRC 127.0.0.1 rad.msn.com to hosts works, too
 
hosts is garbage
 
8:55 PM
tru
 
@sehe that was an interesting read. Gave me some perspective which puts my current job in a better light than I use to see it in
sort of "I'm better off than most" feeling
although I'm also worse off than many
still, I guess I can't complain
 
> Businesses do things for irrational and political reasons all the time (see below), but in the main they converge on doing things which increase revenue or reduce costs. Status in well-run businesses generally is awarded to people who successfully take credit for doing one of these things. (That can, but does not necessarily, entail actually doing them.)
lol
 
evalExpression (Funcall funName paramExprs) vars funs = do
        matchingFunction <- find (\fun -> (fun^._1 == funName) && length (fun^._2) == length paramExprs) funs
        evaluatedParams <- if Nothing `elem` uncheckedParams then Nothing else Just uncheckedParams
        evalExpression (matchingFunction^._3) (zip (matchingFunction^._2) (map fromJust evaluatedParams)) funs
        where uncheckedParams = map (\expr -> evalExpression expr vars funs) paramExprs
sexy
I'm basically a haskell guru now
3
 
@sehe Lots of useful stuff in it. The part about cost/profit centers is very important imo
 
9:10 PM
It's still in my reading pile (oops) /cc @AndyProwl
 
@AlexM. Check out sequenceA, for uncheckedParams/evaluatedParams.
Oh right, it’s traverse.
@AlexM. btw how did you think to use map and find? What was the process like?
 
funs is a list of functions currently known by the interpreter and I need to find a function in it that has the same name and the same arity as the one given for evaluation... so I used find
it was convenient that it returns Maybe
 
@AlexM. for evaluatedParams, where you look for Nothing
Sorry, I meant elem :( not find
 
ah
evalExpression can fail if the given expression is bad (e.g. references inexisting variables) so after mapping eval on the given expressions (params), some of them can be Nothing
I used elem there solely to build a Maybe out of that [Maybe Double]
 
@AlexM. What’s inside that final Maybe.
 
9:18 PM
e.g. myFun 5 6 (a + 4) has 3 expressions as params, the 3rd can fail if a doesn't exist
@LucDanton final relative to what?
 
The one you built, as you put it.
 
Nothing if there's at least one Nothing in the thing or the thing otherwise, am I missing something obvious?
 
It’s not just Maybe, it’s Maybe something. What’s the something.
 
this whole thing: if Nothing elem` uncheckedParams then Nothing else Just uncheckedParams` is Maybe [Maybe Double]
 
If you add the other Maybe then traverse makes an appearance.
 
9:27 PM
@LucDanton sequence seems to be what I need
 
@AlexM. For traverse you have to go up the source a bit.
 
and lint tells me to use mapM
 
@AlexM. They’re more or less the same.
 
I like the way lint messages look in this atom plugin, really pretty
 
Which GHC are you using though, there was a recent change.
 
9:29 PM
 
@AlexM. Oh my bad lol.
 
7.10.2
 
I was going to show you how traverse is the same as mapping the sequencing.
 
amazing
 
user784668
Does lens still depend on the whole Hackage and half of GitHub?
 
9:30 PM
I reduced the thing to 3 lines
 
Good thing the plugin does it for you.
@Fanael Yes. Try lens-family/lens-family2 depending on what it is you want to do.
 
yea lint has been a real help
as soon as I moved my code from CodeWars to the editor, it started throwing suggestions at me
 
@AlexM. I’m guessing the lint is a relic of pre-AMP (don’t worry about that). mapM and traverse do the same thing.
 
user1804599
 
You can compare their types.
 
user1804599
9:31 PM
maybe I should add line numbers to the sexprs
 
so using traverse is considered to be the best practice?
 
@AlexM. I don’t know about that. It’s the more 'correct' type in any case.
 
@AlexM. A true basket case
 
mapM I'm seeing stands for mapMaybe which suggests what's happening quite well
 
hi
 
9:33 PM
@AlexM. It’s M for Monad (historically speaking). mapMaybe does something else, look for catMaybe.
 
yea my bad
catMaybe is [x | x <- list, x is not Nothing] from what I'm seeing
actually not x, it's the value inside the Just
 
@AlexM. You can write that [x | Just x <- list] and yup that’s right.
 
@Mr.kbok hi
 
We have always been borderline Lounge<Haskell>, but come on.. what's going on?
 
@FilipRoséen-refp Haskell programming.
 
9:39 PM
@FilipRoséen-refp I'm learning haskell
 
@LucDanton I can see that.. someone should just create Lounge<Haskell> so that we can continue our love/hate relationship with C++ in peace
 
but isn't not talking about C++ the whole point of talking about C++?
 
@AlexM. possibly, I don't disagree with that
 
user784668
@FilipRoséen-refp My relationship with C++ is much closer to hate/hate, thank you very much.
 
@Fanael I don't blame you, but.. well, I certainly both love and hate c++ (where the former is the stronger of the two)
anyhow, time to eat something and watch.. something else
 
user1804599
9:48 PM
readSexprsM :: MonadDiagnostic m => String -> String -> m (Maybe [Sexpr])
readSexprsM filename source =
    case readSexprs filename source of
        Left err -> do { emitDiagnostic (ReadError err); return Nothing }
        Right sexprs -> return (Just sexprs)
 
user1804599
really cool
 
awesome, I used the monad trick to avoid fmaping like crazy in my Mod eval too
evalExpression (Operation lhs Mod rhs) vars funs = do
        evalLhs <- evalExpression lhs vars funs
        evalRhs <- evalExpression rhs vars funs
        Just (fromIntegral $ floor evalLhs `mod` floor evalRhs)
time to take a pause now
 
blargh, scott meyers didn't have a talk during cppcon 2015?
 
and reflect on what I learned
 
ITT unreadable codedump
 
9:49 PM
@FilipRoséen-refp i didnt see one
 
I enjoy watching his talks because they are fun to watch, no matter if there's anything new addressed or not
@Borgleader any talk worth watching if you are not erhm, how to put this mildly; not that inexperienced?
 
@AnalPhabet that code is pretty readable though
 
@FilipRoséen-refp Are you looking for talks for you or your students?
 
hmm.. I think I will watch the constexpr video, just because I'm curious to see what he will talk about
@Borgleader for me, but maybe I can look for talks to recommend to my students too - the problem is that the course is C++11, so I think it will be confusing for them if I bring up new topics that are c++14
 
@ScottW Who's this?
 
9:52 PM
hi
 
how to upload images in code pen any one have idea about it..
 
@FilipRoséen-refp dude it’s not the same Scott
 
@LucDanton who said that it was?
@LucDanton I'm going to watch that talk because if there's something I've studied in detail, it sure is constexpr (and templates, of course)
"only produces constant values"
well, it certainly should only produce constant values
 
Well Chandler's talk on optimization was good (but his are always good), Sean Parent's talk was interesting but was more "high level" so its not for everyone. Sutter's talk was interesting, but not informative, all I liked is that theyre working on a static analyzer tool. Stroustrup's talk was interesting if only for the mention of GSL and the Guidelines. The range talk was a "repost" from a D talk apparently. It was new to me so I liked it, although I felt the example was contrived.
 
9:56 PM
I hate the name GSL, it reminds me of OpenGL
 
all values are constant :v
 
user1804599
Do I want module names to have to correspond to filenames?
 
@LucDanton in this case I sure hope he meant "values" as in "result", which was what I was getting at
alright, maybe I shouldn't watch this talk
 
all results are constant :v
 
@LucDanton stop misunderstanding on purpose!
@Borgleader thanks! starred so I can find it easily later tonight
 

« first day (1820 days earlier)      last day (3121 days later) »