« first day (1818 days earlier)      last day (3129 days later) » 

user1804599
10:00 PM
dat 📱
 
Wp suggestion
Sushi 🍣 galaxy 🌌 dress 👗
 
user1804599
 
user1804599
@Mr.kbok I want that dress!
 
user1804599
I like BLACK.
 
user1804599
inb4 star
 
10:04 PM
eh-mo-gee
 
If there was less gun control a gun enthusiast would have shot the killer
 
user1804599
The killer shot the killer.
 
user1804599
He is, therefore, a hero.
 
user1804599
oh wait.
 
Hitler is a hero, because he killed Hitler
oh wait.
 
10:06 PM
@Mr.kbok And the probably shoot someone else later.
 
@elyse you can have it, juste select it and ctrl+C. You can't wear it though
 
user1804599
🌌
 
user1804599
did I do it correctly?
 
user406009
@Mr.kbok Scarily enough, that's actually a popular argument.
 
@elyse case in point, he was shot 💉 by a gun enthusiast
 
user1804599
10:07 PM
here's a shot:
 
silly gun enthusiasts and their syringes
 
@Lalaland That's because people will tell whatever they need to keep their guns.
 
user1804599
 
@Lalaland it makes sense in a way, but you'd have to ignore the fact that it never happens
@AlexM. lol
 
user1804599
I want to hunt rabbits with a magnum.
 
10:08 PM
People will always try to prove you that gun related problems are not actually related to guns.
 
Grenade exploded to your face? Have a syringe
 
Jim Jeffries (Australian Comedian) has a good sketch about USA's gun shenanigans
 
user1804599
inb4 broken wrist
 
@Mr.kbok Some girl already had a grenade removed from her face once.
 
user1804599
maybe an Uzi is better
 
user1804599
10:09 PM
hunting rabbits with an Uzi
 
@Morwenn O.o
 
@elyse btw I have the whole wardrobe lol 😁👒👓👔👕👖👗👚👜👠
 
I like high hills.
 
10:13 PM
{-# LANGUAGE TemplateHaskell #-}

import Language.Haskell.TH

f :: Int -> Int
f = (+1)

main = do
    putStrLn $(stringE . pprint =<< reify 'f)
 
classy
 
THIS ACTUALLY WORKS
 
@Morwenn they offer a great view
 
@Mr.kbok Exactly. Awesome landscape.
 
@Morwenn also horrible story O.O
 
10:15 PM
I wish I also had awesome dreamscape.
 
Dreamscape?
 
@Mr.kbok Basically awesome surreal landscapes from your dreams.
You can find lots of pretty images if you look fro dreamscape :)
 
UPDATE Using Nonius for benchmarks: clang3.6-libc++-c++1y-O3, gcc4.9-c++1y-O3 and gcc5-c++1y-O3 - TL;DR: assign is slower, except for small capacities on libc++. CODE coliru/pastesehe 1 min ago
/cc @GregorMcGregor @CatPlusPlus
 
Ell
10:31 PM
@BartekBanachewicz what do people mean when they say "some dependent type signatures can mean only one possible implementation"?
 
@R.MartinhoFernandes ^ last night
 
Ell
@JohanLarsson wow
boooootiful
 
@Ell free theorems
> A name whose second character is a single quote (sadly) cannot be quoted in this way, because it will be parsed instead as a quoted character. For example, if the function is called f'7 (which is a legal Haskell identifier), an attempt to quote it as 'f'7 would be parsed as the character literal 'f' followed by the numeric literal 7. There is no current escape mechanism in this (unusual) situation.
this is hilariously bad ^
 
don't think it is shopped, the exposure is chosen for max nice
 
so
why would
$( funD "f'" (clause [VarP "x"] (NormalB $ VarE 'x) []) )
give me "x undefined"?
am I supposed to find out the name introduce by the pattern in a different way?
 
10:40 PM
@Ell How so?
 
Ell
@Puppy the sky is green n purple n that
 
so is my computer screen watching DS9
 
Ell
@Puppy screens are boring
real life is much more beautiful
real life has depth
your screen is 2d
 
that image is simply an image on my screen and has no more depth than any other image on the aforementioned
 
$(do
    xn <- newName "x"
    fn <- newName "f'"
    (\x -> [x]) <$> funD fn [clause [varP xn] (normalB $ varE xn) []]
    )
hihihihi
writing haskell like a boss compiler
it's not that complicated dunno why people run this FUD around TH
it's just writing AST directly
I mean sure I wouldn't recommend a beginner to touch that because it takes knowledge of everything in Haskell and then some, but once you have this knowledge it's pretty natural to use
let fakeSig = ["ell", "puppy"]
let stmts :: [StmtQ]; stmts = map (\s -> noBindS $ appE (varE 'print) (stringE s)) fakeSig

let body = normalB . doE $ stmts

(\x -> [x]) <$> funD fn [clause [varP xn] body []]
Who needs C++ to do metaprogramming :D
@Lalaland this is seriously eez.
now I'd just need to change fakeSig to be equal to actual function signature
and I could use it to generate the appE with appropriate conversions and number of args
or just a pattern match outright
I can do everything with this
 
10:59 PM
@BartekBanachewicz Who needs loungers to talk to :)
 
@sehe I'm too deep in haskell metaprogramming to notice lack of human interaction :D
anyway
this is much easier than Boost.Fusion
 
Try Boost.Hana, it's the new hype.
Or the future one I guess.
 
pff
not coding in c++
 
Who needs Haskell when what you actually want is curry?
 
@Morwenn wut
 
Ell
11:03 PM
I would like to go for a curry
 
Curry is love, curry is life :D
Seriously, I'm hungry now. I feel so dumb ._____.
 
@Morwenn oh my... im hungry now
 
@Morwenn :o
 
@Morwenn I'm not hungry at all--and I want some anyway!
 
I'm glad we all agree on this point.
 
11:07 PM
I have had Indian food twice in the last week and a half and I still want curry
 
@Morwenn but i have to admit Hana looks cool
I wish I had it a few years back when I was still writing c++
 
@Morwenn Is she nice?
 
@Borgleader I don't know.
I didn't try to use Boost.Hana, but it really looks like the next generation of C++ metaprogramming. It was fun to see that I wasn't the only one to code UDL for std::integral_constant by the way :p
 
@Morwenn I honestly have no clue what Boost.Hana does :P
 
@Borgleader More or less use types with values syntax.
 
11:10 PM
It's not too hard with template<char... Chars> UDL
 
@Borgleader It's Fusion + MPL for C++14
 
@Morwenn nods and slowly walks away
 
@Borgleader or, in layman terms, it has foreach that works on tuples - how about that?
 
that's not what hana is at all
lol
 
@Rapptz The most annoying part was to see whether an integer was big enough for an integer and if not use a bigger integer type, just like actual integer literals.
 
11:12 PM
how many upvotes can I give the same user in one day before the algo truncs them?
 
Ell
Hana allows you to operate on types as if they were values
^is this more correct @Rapptz ?
or still totes wrong?
 
yeah I'd say that's right
 
@JohanLarsson if I knew that, I'd still have 699 rep, but I'd tell you too.
 
@JohanLarsson iunno
 
There are worse ways to put it.
 
11:13 PM
@Rapptz that's what I said
 
This sounds like a job for science
 
@BartekBanachewicz not really
you can do foreach on tuple a million different ways, doesn't seem like a good way to explain Boost.Hana.
 
it was an example
foreach is typically ran on runtime values. Hana runs algorithms on types.
 
Ell
@Morwenn oh lol I didn't see this
now I feel silly.
 
@Ell Thats essentially what @Morwenn said, but I can't come up with situations in which Id find that useful
so i simply nod and hope people wont notice my stupidity :)
 
11:15 PM
// 1. Give introspection capabilities to 'Person'
struct Person {
  BOOST_HANA_DEFINE_STRUCT(Person,
    (std::string, name),
    (int, age)
  );
};
// 2. Write a generic serializer (bear with std::ostream for the example)
auto serialize = [](std::ostream& os, auto const& object) {
  hana::for_each(hana::members(object), [&](auto member) {
    os << member << std::endl;
  });
};
@Borgleader how about that
I posted this wall of code because @Mr.kbok isn't your library related a bit?
 
Also, sqrt(integral_constant<T, N>) basically returns a integral_constant<T, sqrt(N)> which means that it also allows to do maths with types.
 
@BartekBanachewicz Ok thats neat, too bad about the macro though
 
I changed my theme/colour scheme to this
iunno if I like it though
 
yours < Seti UI/Syntax
 
Ell
11:17 PM
@Rapptz the blue/purple is very contrasting with the yellow/green
 
Nexus best color scheme
 
@jaggedSpire tell your footloose roomate that this is the proper way to wake up :)
 
Ell
too much so imho
 
I tried Seti
 
@Borgleader I'd just read the tutorial. It's pretty intuitive.
 
11:17 PM
It looks pretty ugly.
@Ell yeah that's my issue too
 
Afterglow best theme
 
I think Template Haskell is different than Hana
as in there are things that TH can do and Hana can't and vice versa
 
@Borgleader O_O so...fluffy
 
the fact that TH can pop up arbitrarily named definitions is funny though
 
Nexus + Afterglow = ♥
 
11:18 PM
C++ can't do that w/o macros
 
@jaggedSpire ikr :3 (but not enough that you'd die)
 
@Borgleader :)
 
also "phase" best caret_style
 
I'll try Seti again.
 
Ell
solarized best colour scheme
 
11:20 PM
@Rapptz Winters is coming and you have no central heating? :)
 
@Ell it's only nice as my command line theme
I don't really like it for programming
 
@Rapptz what is the name of this one?
 
@ʞɔᴉN heeey
 
@ʞɔᴉN Material Theme.
 
heeeeey
@Rapptz thanks
 
11:22 PM
@ʞɔᴉN les consult the chart /cc @jaggedSpire :P
 
might try it, its very similar to my current theme except the colors are brighter
@Borgleader looks like we're still on friends :)
 
@Borgleader but what to do with all these 'e's?
 
put them in a salad i guess
 
@ʞɔᴉN with pears and pecans!
 
yeah iunno I can't say I like Seti.
 
11:24 PM
and curry powder /cc @Nooble
 
@Morwenn on the contrary. /cc @BartekBanachewicz Operads is where it's at
 
@jaggedSpire of course
@Rapptz I checked it out a couple times because it keeps getting recommended but eh
reminds me of legos or candy or something
no amount of colored syntax will make my code look good enough to eat
 
@ʞɔᴉN no that requires substances of a more illicit nature
 
> This actually works, but it doesn’t generalize. What we really need is a whole family of singletons parameterized by n: plusZ :: forall n. Dict (n ~ (n + Z))
> But the compiler is not able to verify an infinite family of constraints. We are stuck!
@jaggedSpire shrooms
 
@sehe mushrooms are tasty.
 
11:27 PM
I'm not too fond
 
shrug
I'm having some on some bruchetta right now.
with some smoked gouda, sliced tomatoes, fresh sliced garlic and fresh basil
 
> The Keccak algorithm (which NIST say is pronounced "catch-ack"[1] but Dr. Dobb's Journal says is pronounced "ket-chak"[8]) is the work of ...
Is it just me or ... is that bikeshedding between "green" and "green"?
 
@jaggedSpire now im hungrier
 
Wow my sublime plugins have >20k downloads combined.
 
i had boiled water mixed with grain seeds for breakfast
 
11:31 PM
@sehe Ketchup or catch up?
 
@sehe You say Gregor McGregor the potato farmer, I say Gregor McGregor the potato farmer.
 
We're all potato farmers on the inside.
7
 
@Borgleader mission accomplished. :3
@ʞɔᴉN grats
 
@Rapptz Actually, I'm a potato beetle on the inside.
 
well played
 
@JerryCoffin so if you get squished it'll make beetlejuice... beetlejuice... beetlejuice...
 
@BartekBanachewicz for in your Haskell binging exile (rather random time point, but start there nonetheless)
 
@Borgleader Careful with that...
 
user406009
@Rapptz I thought we were all chicken farmers ...
 
@Lalaland Only regular cock end users.
 
11:35 PM
@sehe woah that's a long read
 
Played that once. In a small ensemble. Not full orchestra
 
data Value = Number Int | Str String | Boolean Bool | Nil

add2 :: [Value] -> Value
add2 (Number a : Number b : _) = Number $ a + b
add2 _ = Nil
@Puppy How would you implement the above without pattern matching? I don't think visitors can be reasonably used here.
 
@sehe I saw it live. I really liked the themes :)
 
A small ensemble is a different thing altogether.
 
11:37 PM
AAAAAAAAAAAAAAH
 
@ThePhD Hi, I guess :D
 
... For the awesome. I was awake literally 30 minutes before class.
 
I had a sleep attack and I woke up literally 30 minutes after class.
The worst part was, I WAS SPEAKING TO THE PROFESSOR RIGHT BEFORE CLASS BEFORE I LEFT AND THAT HAPPENED.
So now I look like the idiot who said they'd be in class and then totally didn't show up.
 
There are at least 4 spiders in my living room, including one that seems to hand from nowhere .____.
 
11:39 PM
@ThePhD :(
 
@Morwenn This is a perfect time to practice your dart skills.
 
@ThePhD how does a sleep attack work
do you just like fall down or what
 
@Morwenn Oh yeah, I think I heard it twice, live. Once with Boris Berman in the Concertgebouw
@Morwenn it's the season. Each morning we have to breach a way out of our front door and garden
 
@BartekBanachewicz You just fall asleep. All the consequences thereof happen, whether it was your walking and you just take a facedive (which sometimes might jolt you awake enough to shift somewhere) or you just sit in that chair and look awfully interested in the materials used for the tabletop.
 
@sehe I have to admit that I have a pretty mainstream classical music culture and I don't know anything about who plays what ._.
 
11:41 PM
You look like that because you ... did that.
Own it. It is your fault. You didn't do it on purpose
 
@ThePhD are you diabetic or something?
 
@ThePhD Once I fall asleep while standing in the bus. I woke up as I was falling and almost crashed on the floor.
 
@sehe I know, but I slept before I did the report and I slept a little bit after. I shouldn't have bitten the dust.
 
@Morwenn Okay, mine is not mainstream (but neither is your pop/techno/whatever) but I'm atrociously bad with names. Just remembered this one.
Don't what the piano concert was that went with it
 
also I just rewrote appE (varE 'print) (stringE s) as [e| print s |] which basically makes me a (Template) Haskell god
 
11:42 PM
q-q I don't want that indexed.
 
he just removed that lol
 
@sehe yeah saw that
@ThePhD wut
 
That I have that.
 
@jaggedSpire Goes well with everything.
 
are you afraid of people robbing you or something
 
11:43 PM
@ThePhD A long dong right
 
@sehe The only name I remember is Petr Pololanik because he did the orchestral arrangments on two albums for Rhapsody (of Fire).
 
love that countdown haha
 
@ThePhD any meds?
 
But, uh... yeah. It's not worth talking about.
So, how was everyone's day?
 
JUST FANTASTIC
 
11:46 PM
I got 150 rep
 
Is the limit 100 or 200 rep per day?
 
@ʞɔᴉN C'est la vie.
 
@ThePhD really though I taught myself Template Haskell and I think you'd like it
 
11:47 PM
I hadn't listened to that song in ages *-*
 
it's the kind of thing that makes your code go bump in the night
 
Template... Haskell?
 
mm i love me some haskell
 
@ThePhD TLDR it's a way to operate on AST nodes as values during compilation which then get compiled into your actual code. You can freely add them to for example create a function definition doing anything out of thin air.
 
That sounds.... kinda OP, actually. Like Roslyn.
 
user406009
11:49 PM
Clojure's macros are much clearner IMHO.
 
ITT Bartek is like the C# guy who discovered Reflection.Emit no wait! Mono.Cecil no wait!! Roslyn
 
I want to listen to old Rhapsody albums now.
 
yeah, Roslyn.
 
@BartekBanachewicz Syntactic macros are a lisp thing :)
 
@ThePhD all right.
 
11:49 PM
@ThePhD OP?
 
OverPowered
 
@sehe overpowered
 
ah
 
@Lalaland I guess.
it's not like TH is the main selling point of Haskell anyway
 
@ThePhD :( I'm sorry.
 
11:50 PM
it's more of a funny addon
 
Is "out-of-sandbox" too much of a mouthful? I’m trying to describe project-internal dependencies (e.g. a test executable depends on the library it tests), in-sandbox dependencies, and, well, the rest. Those last two are collectively 'external' dependencies (e.g. project so-or-so depends on Boost, regardless of whether it’s system-installed Boost or a local, dev-only copy).
 
@jaggedSpire Everything'll be fine!
 
@ThePhD :)
 
@Morwenn that immediate opening reminded me more than a little of this youtube.com/watch?v=7RirEqehfsg
 
@LucDanton kind of
 
11:52 PM
@ElimGarak I watched the EA CppCon video during lunch while I was playing Cities: Skylines. Pretty much all he talked about I already knew.
 
how can one dependency be sandboxed and another out-of-sandbox?
 
I think its the fist time I say that about a C++ conference video, not sure if thats a good or bad thing
 
get a job at EA maybe?
 
@LucDanton out-of-tree might be close and seems more common
 
@ʞɔᴉN It’s more about how a given dependency is fulfilled. It can be fulfilled in-sandbox, or out-of-sandbox. And I’m wondering if the terms are clear enough.
 
11:54 PM
@sehe Wow, the repetitive bass is strong in the first seconds :o
 
@sehe Induces confusion with filesystem and VCS trees, no? :(
 
Of course in-tree is sometimes conflated with "in-repo". But not pervasively I don't think
 
@ʞɔᴉN I already have a job :P
 
@LucDanton I thought the "confusion" with filesystem was ... more or less desired?
What defines the sandbox boundaries, otherwise?
 
Does it matter?
 
11:55 PM
For the naming, sure (what else it there to grab)
 
@Borgleader but.. but money
 
@sehe Too much steeped in infosec terminology perhaps?
 
@ʞɔᴉN I dont think EA would pay me more than my curent employer
 
(I, you, or anyone.)
 
fuck gamedev
 
11:57 PM
Hey, I realize that counting_sorter<Sorter, std::atomic<std::size_t>> might just scale for parallel sorting algorithms.
 
@Borgleader fair enough
 
lol, I put so many templates everywhere that it just scales.
 
@LucDanton I'm not sure whether you're asking or suggesting something.
@LucDanton Am I? I don't think I am :)
 
@sehe 'Dev env' is another term for the sort of sandboxing I’m referring to. But then that steps into IDE territory.
@sehe For e.g. Cabal sandboxes, the cabal manual? Yeah the internals are all reflected in the actual FS but the user doesn’t care. Do you?
 

« first day (1818 days earlier)      last day (3129 days later) »