« first day (1654 days earlier)      last day (3292 days later) » 

5:02 PM
@AndyProwl uhm, it seems cached
and since it says "internal accessor", it might refer to the cache object
 
user1804599
import qualified Data.Text.IO as Text.IO
 
user1804599
Nice, didn't know you could put a . there.
 
user1804599
And of course forM_ doesn't work on sets. ¬_¬ I thought Haskell people loved polymorphism.
 
@MarcoA. That does not seem to be the issue. The type returned by getTypeForDecl() is the one that has itself as the canonical type (I tried retrieving the canonical type), and it's also the same type returned if I do decl->getASTContext().getTypeDeclType(decl).getTypePtr(). The question I guess is why in the member function's visitation I get a type which is different from the canonical one (where the canonical one is the one I get while visiting the struct declaration)
 
user1804599
shiny Data.Foldable
 
5:17 PM
Does anyone here feel like going through a slideshow I have to do next week and give me feedback?
I'd appreciate it, swear. Also - if you don't know what a matrix is, probably not for you.
 
@jalf I wonder if hardcore DP aficionados have actually read the book. The quote makes it pretty clear that DPs are not language-independent.
 
Ahahaahaha people getting up in arms about Workshop paid mods feature
Fucking gamers.txt
 
@BenjaminGruenbaum Topic?
@BenjaminGruenbaum Oh, a Keanu Reeves presentation?
 
Xeo
Oh, KSP is released as 1.0 now.
 
5:21 PM
@fredoverflow it's probably like 1984, something everyone claims to have read
 
It's sounds absolutely awful :-(
 
~patterns~
 
@jalf Or "The Art of Computer Programming". Lots of people admit having bought the books and never touched them since.
 
@BenjaminGruenbaum Nah, sounds too trivial
:P
 
5:22 PM
@AndyProwl awesome, so can you explain to me wtf I'm doing there haha I have no idea.
I'm just going along with it
 
@BenjaminGruenbaum lol, no I'm so confused after reading the title that I'm packing my stuff and going home
 
@fredoverflow I legitimately read The art of computer programming and design patterns. I think design patterns has some interesting concepts and some truly awful ones and it didn't do well in the light of history. I absolutely love the art of computer programming though - I certainly wouldn't put them in the same bracket.
@AndyProwl haha, get to slide 3
 
@BenjaminGruenbaum I can make up talk titles as well. Let me browse the C++ standard... "Dynamic initialization of block-scoped initializer-lists for integral constant specialization." Should I propose that as a paper to the C++ standardization committee? :)
 
In the Israeli army, when you're a "noob" they make you watch over some fence for 3 hours and you're not allowed to do anything - you can however sneak a book in, even fucking huge ones.
 
user1804599
(>>>) > (.)
 
5:24 PM
So, that's when I forced myself to read these boring ones.
 
user1804599
(.) and ($) are for Arabs.
 
I'm so tempted to flag that...
Good thing lightness isn't here
 
user1804599
I read my code from left to right!
 
@BenjaminGruenbaum yeah, that's me
 
user1804599
@BenjaminGruenbaum why :(
 
5:25 PM
@rightfold How are you enjoying arrows? Last time I asked here around here all of you said you don't have an opinion about it.
 
user1804599
>>> is composition.
 
@rightfold You're asking why someone would flag "x is for Arabs" :D?
 
user1804599
In the direction it should be.
 
@AndyProwl :D That's me too.
 
@rightfold I thought boobs and dollars were for Americans?
 
user1804599
5:26 PM
:o
 
Wait, it's only one boob. That reminds me of Amazonian warriors.
 
yep, thank you VS
 
user1804599
generateStruct struct = execWriter $ do
    tell $ "function " <> structName struct <> "() {\n"
    forM_ ([0..] `zip` structFields struct) $ \(i, field) -> do
        let name = structFieldName field
        let iText = Text.pack (show i)
        tell $ "    this." <> name <> " = arguments[" <> iText <> "];\n"
    tell $ "}\n"
 
user1804599
I love Haskell! (<>) > (++)
 
boobs::spirit
 
Xeo
5:28 PM
@rightfold yay for monoids
 
user1804599
I also use forM_ from Data.Foldable instead of Data.Monad now.
 
Xeo
yay for genericity
 
user1804599
Screw insufficiently polymorphic crap.
 
@fredoverflow To me, it is a staple. I enjoy reading them if only to reminisce.
 
@rightfold how can you seriously read that and say that you love that :D ?
 
5:30 PM
@rightfold it's good for easing people into the language; fmap is more than enough, yet there's map available vOv
 
That's like, imperative code without the syntax imperative code usually merits :D
 
Xeo
om nom nom Nuernberger Rostbratwuerstchen and fried eggs
 
Also, I'd generate it into an object literal
 
Xeo
@ScarletAmaranth map, ++, and basically all list operations in Prelude only exist because of that reasoning
that it's easier for beginners to decipher the errors
 
user1804599
@ScarletAmaranth No. Design correctly, i.e. no redundant and monomorphic crap. Then to fix the "problem", add a --beginner flag that assumes you want to use map only with lists when creating diagnostics.
 
Xeo
5:31 PM
people hated that for a long long time, and proposed stuff like beginner-specific prelude
 
@Xeo ye, I don't mind really
 
@Xeo Is that the small or the big ones? The small ones should replace the idiotic "sliced bred" in the idiom for human pinnacles.
 
Xeo
@CaptainGiraffe the small ones
 
you're not gonna explain to a beginner that you have functors, monoids, semigroups and whatnot
 
Xeo
the big ones you're likely thinking of are Thueringer Rostbratwuerste
 
5:32 PM
@fredoverflow Meh, reading the comments under the answer reveals it's mostly the FP guys that are butthurt.
 
@Xeo Ah Marjoram and Caraway and Pork. I'm salivating.
 
@milleniumbug Because of the M word?
 
Xeo
@CaptainGiraffe they're so goood
 
user1804599
> <kms_> in C++ a for loop is magical built-in syntax. in haskell we can define zygohystomorphic prepromorphisms in a library
 
@ScarletAmaranth Just like you're not gonna explain to a beginner that you have useless arrays, MVP, resource leaks, UB- oh wait
 
5:34 PM
generateStruct fields = "function struct() { return {" ++ (intercalate "," fields) ++ "};}"
generateFields fields = map (\(x,i) -> x ++ ": arguments["++(show i)++"]") (zip fields [0..])
 
@CatPlusPlus I won't argue with that vOv
 
At my ugliest, no point free or fun, but I still find it way more readable :D
 
@fredoverflow The M-word is mentioned in the comments 41 times. It does say something, but I'm not quite sure what.
 
I don't even need the [] case
 
user1804599
@BenjaminGruenbaum that's something else.
 
user1804599
5:35 PM
function Acquaintance() {
    this.id = arguments[0];
    this.name = arguments[1];
    this.headquarters = arguments[2];
}
 
~patterns~
 
user1804599
Output should look like this.
 
Ok buddy
 
internet is boring today
 
Right, and mine does function struct(){ return {id: arguments[0], name: arguments[1], headquarters: arguments[2]}; } or something like that.
I can add a name param, but maybe your code does something different, also, I typed mine inline so it probably doesn't actually compile or work :v
 
5:39 PM
I have no fucking idea how this canonical types thing work in Clang
 
maybe it doesn't
 
@LightningRacisinObrit There isn't any decent Indian place nearby so I didn't eat that :(
I settled for fish and chips instead.
 
@EtiennedeMartel :(
 
I'm afraid I'll have to give up
 
@AlexM.: PIZZA
 
5:40 PM
just write stuff manually
 
> decent Indian
giggle
you should consider moving to India. I hear software development jobs are available there
 
Oh booyyyy
 
Xeo
@AndyProwl join #llvm on irc.oftc.net and ask there?
 
do you also still use ICQ?
 
@Xeo I will do that. Somehow the channel seems unaccessible from my workplace, perhaps it's blocked
Tried a few times, page doesn't load
I could access it yesterday from home
alright, out of here
 
5:43 PM
Virtualbox is not very good at cleaning up destroyed machines
 
WD-40 is not very good at cleaning up destroyed machines.
 
Vim is not very good at cleaning up destroyed machines.
 
ed is not very good at cleaning up destroyed machines.
 
Yeah you can stop now
 
user1804599
Cat Plus Plus is not very good at cleaning up destroyed machines
 
5:52 PM
> I propose to find a solution to avoid typing many of: #include <any-std-header>
The compiler could assume that all symbols in std are in the current namespace
after parsing a keyword, i.e. #include <>
 
o.O
std::fucku y u no work
 
@Columbo Sofa King We Todd Ed
@Columbo Why not #include <std> instead
 
@milleniumbug What about none of that?
 
ahahahah he uses using namespace std too
 
@LightningRacisinObrit lol
 
5:54 PM
so basically he wants the compiler to assume that everything it doesn't recognise is a standard library symbol and to go searching for it
 
@Columbo Oh wait, he's also using namespace. What a fail.
 
57 secs ago, by Lightning Racis in Obrit
ahahahah he uses using namespace std too
did you like my reply to his post
 
@LightningRacisinObrit I love you eitherway, baby
inb4 madison avenue link
 
@LightningRacisinObrit I got food too
 
@LightningRacisinObrit Hmmm, what a fail, he's also using namespace std;
 
5:55 PM
it's fries and a burger though, not pizza
this song is nice and calm
I remember getting the album when I was like 10 or so
on one of those audio cassettes
 
@Columbo I actually have a header named std_containers.hpp that includes all containers in the standard library - it's when I noticed that every time I want to use a container, I want to use another containers soon after that.
 
@milleniumbug Weirdo. I don't encounter that problem at all.
Like, I don't want to use a list after a vector lol
Actually, fuck list, anyway
 
calm down Cat
 

« first day (1654 days earlier)      last day (3292 days later) »