« first day (1854 days earlier)      last day (3086 days later) » 

1:01 PM
@edition lol dude
 
user1804599
@Mr.kbok you should use that hot picture of you as profile picture.
 
all pictures of me are hot
 
user1804599
no, some aren't
 
heh ^.^
well that's true
 
user1804599
Your gf sent one to me recently and your penis was pathetically small.
 
1:08 PM
that's not very nice of her
 
user1804599
:(
 
(you're weird)
 
user1804599
:'(
 
But we like you that way. You're the zoidberg of the lounge
 
^ love the winrar reference
 
1:13 PM
So, it seems that a SFINAEd-out overload still shadows an explicitly imported valid overload from the base class with clang++ but not with g++.
I sometimes wish things were simple.
 
don't C++?
I'd call C++ many things, but simple is not one
 
@R.MartinhoFernandes I have no idea, I didn't bother to change Jacquelyn to someone else.
 
user1804599
@fredoverflow lol
 
user1804599
IYAM you should go to hell iff you buy WinRAR.
 
but no one did :o)
get it
 
user1804599
1:19 PM
Why would you go to hell for adultery
 
@AlexM. True, but sometimes it's fun.
 
try C#, the most uneventful possible language
 
'ello
I don't care about feed.
 
hi Feeds
 
user1804599
@FilipRoséen-refp REPOST
 
1:22 PM
Gregor impersonates feeds, feeds impersonates filip. Where does the craze end
 
@Mr.kbok exactly, feeds is always trying to do what I do - mighty annoying
sometimes even before I do it, which is even more frustrating
 
Ell
happy birfday @Mr.kbok
 
Ell
hey my system is emerge @preserved-rebuild'ing!
It finally looks like my system is on it's way to repair
 
The size difference "for such a small program" is irrelevant. It could be still 1.7k for my 90MiB binaries. Also, what did you do? Just ignoring exceptions? I don't want to use that software. — sehe 13 secs ago
How not not to handle no exceptions.
@Ell Tell us when it isn't!
@BartekBanachewicz what does it do? It's a bit cryptic to me (beyond YAIMDB and something something-not-quite-lua)
 
1:33 PM
@sehe people be crazy like that. 2kb? really?
 
Hi all, anyone here already tried Xerces and Xalan?
 
@VillasV Xno
 
@VillasV yes, it's horrible. why?
 
@thecoshman lol
 
@sehe 1.7 Kelvin could be the difference between life and death!
 
1:34 PM
@TonyTheLion TGIF <3 /cc @Morwenn
 
@VillasV We use pugixml here. I tried MSXML, Xerces, pugi, rapidxml, libxml, and ever a wrapper around .net's XmlDocument. pugixml is better.
Xerces is the worst btw
 
@Mr.kbok It's raising crazy exceptions here, and I really don't like those initializers
 
(of the ones in the list)
@VillasV lol, you bet.
nuke from orbit
 
@Mr.kbok oh god, why am I even trying. Do you recommend pugixml the most? My next try was going to be tinyXML
 
@VillasV definitely. The interface is very good - simple yet complete, it has xpath support, and performance is reasonable.
Also if you want to try it out there's an amalgamation
 
1:38 PM
@Mr.kbok pugi seems good, I also judge projects by number of commits
 
that's a weird metric but why not :p
 
@Mr.kbok I'll give it a try today, thanks :-)
 
I found pugi nice to use as well
 
you're welcome!
 
it's easy to include in your code base, and simple to use too
 
1:41 PM
@Mr.kbok On what criterion can you say pugi is better?
I'm not questioning your opinion, just interested to know
 
@R.MartinhoFernandes ooh, entire OSM data is noly 45GB... I'm fairly sure my phone could store all of the :D
it'd be kinda cool to have a complete map of the entire world, at that detail, in my phone
 
user1804599
> toName = (:) 't' . show
 
user1804599
author y u no section
 
Ven
:/
 
@Rerito It's very simple to setup and use, only a header and a cpp file. But you can make it a dll if you rather(compare with ALL OTHER LIBS). The interface is RAII, so you don't have any idiotic pointers everywhere(compare with xerces and MSXML), and no global library state either(hello xerces). Exceptions are std::exceptions and contain clear, concise messages with line information(hello xerces). Performance is good, documentation is good too (hello xerces?!?). Xpath support.
 
Ven
1:45 PM
Hi people
@fredoverflow @GregorMcGregor great memes, thanks
 
user1804599
@Ven I found a nice use-case for polymorphic variants.
 
Ven
@Elyse there are tons
 
user1804599
The type checker must internally use unification variables, and it's convenient if they are types, but they must not be visible outside the type checker.
 
@Rerito Node lists are c++ ranges, so you can range-for or boost-foreach over it, or even transform over it if you're into that kind of thing. texts are simple to extract, optional values cast implicitely to unspecified-bool-type, and all stringy types are convertible through xml semantics into common c++ types, ie arithmetics.
 
Ven
@Elyse you could've done your "sugar_rich" "sugar_free" with them
 
1:47 PM
My questions this year: « It seems that g++ and clang++ disagree. Who's right? ».
 
@StackedCrooked <3 Thank you for making Coliru, it makes it so quick & easy to disprove noobs :) (Exhibit A, second comment was responding to someone who wrote "it wont work with non primitives")
 
Ven
@Morwenn the cat walking on your keyboard.
 
@Morwenn Clang, mosta time
 
@StackedCrooked Yeah right, have some love ♥
 
@Rerito XML Nodes have shared_ptr semantics so splitting your parsing code into methods is natural and safe. Documents write and read from streams, so you can dump to string or file easily. You control the way the document is formatted. You can to_string over fragments of documents easily. All stringy types support implicit convert-from setters that makes config files easy to write.
 
1:48 PM
@набиячлэвэлиь Except when it isn't. Unfortunately, it happens too :/
 
user1804599
@Ven in OCaml can you upgrade a non-polymorphic variant value to a polymorphic variant?
 
@Rerito ... And that's just off the top of my head.
 
Ven
@Elyse I think in an open polymorphic variant, you can. Maybe you'll need to tag it.
 
user1804599
E.g. type t = | A of int | B of bool, then turn a value of type t into one of type [ `A of int | `B of bool | `C of bukkake ].
 
Ven
ah, that way? probably not
 
user1804599
1:50 PM
:'(
 
@Mr.kbok I'm asking coz I wanna push forward to get rid of our fucking custom stupid dumb parser
 
guys
 
@FilipRoséen-refp yah
The filtering isn't the problem, the copy is. It's really a shame your question wasn't about the filtering (you didn't even mention hashing, and remember you didn't even tell us what buf was). Here's something I saved halfway, that you might find useful. It has the filter implementation reviewed and with tracing: coliru.stacked-crooked.com/a/9408d8964dc5cb8fsehe 1 min ago
 
@Rerito I figured :p
 
bad questions waste my time
It's time for an SO break I think
 
user1804599
1:51 PM
@Ven Basically I want this:
 
user1804599
type typ =
    | Bool_type
    | Func_type of typ * typ
    (* ... *)

val type_check : string expr -> (string * typ) expr

let type_check = ... (* internally also add Unification_variable variant, but don't expose it in the API *)
 
@Rerito I would show you the new code, but you know... I'd get fired
 
Lounge<C++> wastes my time or doesn't it?
The productivity being sucked by this chatroom is so high (at least for me :p )
 
@Rerito Use regex
 
user406009
@Rerito What is the purpose of life other than to waste time?
 
user1804599
1:52 PM
@Rerito No. You waste its time.
 
so, I have a white-list trait like is_abcd<> which defaults to false and I want it to be true for a select list of types
 
@Mr.kbok The standard way
 
Is there a way to do that without having to be inside is_abcd namespace?
 
@Elyse Kinda offensive, but I'll just answer that I don't give a shit
 
user406009
I mean, all the good things in life are a "waste of time". Spending time with family and friends. Exploring new places. Learning new ideas and concepts.
 
1:53 PM
@Mr.kbok I feel like I should search all XML C++ lib questions on on SE to add pugixml, because I found no mentions of it when I did my first search
 
@набиячлэвэлиь what?
 
user1804599
I suppose I can do type type_or_univar = Type of typ | Unification_variable of int.
 
is MFC required to work at Microsoft?
8
 
@VillasV It's kinda recent, and xml has passed out of fashion.
 
@Mr.kbok I suck at parsing english
 
1:54 PM
@Lalaland Well I waste time... following my managers' definition, not mine ;)
 
Ven
@Elyse yeah, I get what you mean. Maybe you can carry around an open-ended one internally, but only expose a closed one?
 
@Dean people work at microsoft
 
@набиячлэвэлиь no
 
user1804599
@Ven Can polymorphic variants ones be recursive?
 
Ven
1:55 PM
@Elyse not sure
 
user1804599
utop # type typ = [ `Bool_type | `Func_type of typ * typ ];;
type typ = [ `Bool_type | `Func_type of typ * typ ]
 
user1804599
nice
 
Ven
:D
 
user1804599
I suppose that works, then?
 
Ven
polymorphic variant in a type decl. amazing.
 
@Dean MFC is not required to work anywhere
 
@набиячлэвэлиь dude you really suck
 
MFC is unemployed
 
4 mins ago, by Mr. kbok
Is there a way to do that without having to be inside is_abcd namespace?
 
@Mr.kbok is_abcd isn't a namespace, hth
 
1:58 PM
ofc
 
@набиячлэвэлиь classes are namespaces AFAIR
 
@набиячлэвэлиь missing 's
 
user1804599
utop # type typ = [ `Bool_type | `Func_type of typ * typ ];;
type typ = [ `Bool_type | `Func_type of typ * typ ]
utop # let x : typ = `Bool_type;;
val x : typ = `Bool_type
utop # type typ2 = [ `Bool_type | `Func_type of typ2 * typ2 | `Univar of int ];;
type typ2 = [ `Bool_type | `Func_type of typ2 * typ2 | `Univar of int ]
utop # let y : typ2 = x;;
Error: This expression has type typ but an expression was expected of type
         typ2
       The first variant type does not allow tag(s) `Univar
 
user1804599
@Ven RIP
 
@набиячлэвэлиь I thought that was obvious, you don't specialize inside the template you're specializing
 
Ven
1:58 PM
aw :(
 
user1804599
utop # type typ = [> `Bool_type | `Func_type of typ * typ ];;
Error: A type variable is unbound in this type declaration.
In type [> `Bool_type | `Func_type of typ * typ ] as 'a
the variable 'a is unbound
 
user1804599
lolwat
 
@набиячлэвэлиь I said whitelist, not specialize. Also there is a way so
I just don't want to say what it is because I expect someone to come up with something better.
 
@Mr.kbok is pugixml thread safe?
 
2:01 PM
@Mr.kbok How are you gonna do it without specialization?
 
@VillasV no idea.
@набиячлэвэлиь surprise surprise. also kind of the point of my question
 
@Mr.kbok (except std::bool_constant<is_same<T, T1> && is_same<T, T2> && is_same<T, T3>>)
 
@Mr.kbok I guess I'll find out. Could not find that info in the documentation
 
The underlying array of the vector gets reallocated, the vector object itself does not move. The better question is, why are you newing a vector? — Borgleader 7 secs ago
 
Hey, I might have found a Clang bug.
 
2:03 PM
@Mr.kbok You can also forward-declare the specialization
 
why do so many people do this?
 
@Morwenn ...wouldn't be too surprising.
 
@Borgleader because dumb
 
new all the things!!
 
@TheForestAndTheTrees r u Java
 
2:04 PM
It's basically cargo cult programming, it worked in my lecturer's notes so it must work like this.
 
> Because it can be done
Why are you shitting on your desk? Because it can be done
 
Why are you? Because I can be done
 
Damn my quads are still burning from this morning
 
@Rerito Put'em out
 
@набиячлэвэлиь inb4 Sexual misinterpretation :p
 
2:09 PM
@Rerito Wait how can that be sexual
 
@набиячлэвэлиь Because "do someone" means a particular thing you see
 
@Rerito The verb "do" doesn't exist in that message
The verb "be", OTOH, does
 
"I can be done" = "I can be fucked"
 
@набиячлэвэлиь "done"
 
I suck
Very much
pls don't kill me
runs away sobbing
 
2:11 PM
yes
 
well done, you
 
@Mr.kbok Do you have an alert on .*fuck.*?
 
@Rerito lol why
 
Coz you reappear right after an instance of "fuck" (or "suck") :p
 
@Borgleader Yes :) :D <3 <3
 
2:15 PM
@Rerito That's because there's always some fuck or suck around.
 
Quick question: I'm looking for a specific name/term of a class-type-thingie you write where, when you call it, it creates 1 instance of it, and each time after that, you get that instance returned instead of a new instance.
(Is that clear enough?)
 
Fuck singletons
 
cache
 
singleton! Thx Andy! :p
 
lol
 
2:17 PM
Don't use them
 
Sorry for the very abstract (and not accurate) description :p
 
@Morwenn Indeed
 
That's ok, but don't use singletons
 
by all means use singletons wherever possible
everything should be, in fact, a singleton
 
your mom should have been a singleton
 
2:18 PM
I'm actually looking if I can use the design pattern in javascript in some way
 
@AndyProwl You know that your mom is a singleton and you always get Bartek's mom
 
yes you need to use as many design patterns in javascript as possible wherever possible
 
inb4 ~~~patterns~~~
@ScarletAmaranth lol
 
~~patterns~~
 
user1804599
@Jordumus Singleton. Make sure it's immutable, otherwise horror awaits.
 
2:19 PM
@Rerito hahahah
 
thx Elise :p Andy kinda beat you to it :)
 
make sure it's mutable, don't listen to @Elyse
 
Could have made a pun with the factory pattern as well but I would have missed an opportunity to mention Bartek's mom
 
user1804599
In fact, make everything immutable while you're at it.
 
I'm da winner
 
user1804599
2:20 PM
You'll enjoy your code much.
 
scarlet, you're such a nice person which so nice advice, I'm writing it all down ;)
 
the more random mutation you have in your code the better
 
which = with, obviously :p
 
user1804599
Factory isn't a pattern. A factory is just a function.
 
user406009
Well, singletons are ok ever now and then.
 
2:20 PM
turn your code into a witcher!
 
user406009
std::cout is a singleton.
 
I agree with @ScarletAmaranth, otherwise debugging is boring
 
@ScarletAmaranth Don't prevent race conditions, embrace them.
 
user1804599
No, std::cout is an object.
 
@Lalaland Except it isn't
 
2:20 PM
Abstract Factory is a pattern
 
user1804599
Singletons are types.
 
user1804599
Don't confuse objects and types.
 
@Elyse I confuse terms and types all day long, I live on the correct vertex of the Lambda Cube
 
Lamb da Cute
 
user1804599
@ScarletAmaranth objects, not terms!
 
2:21 PM
lambda cubes like an arrow
 
user406009
Fine, to be more pedantic, std::cout is a global variable. And it isn't all bad.
 
I know this isn't the right room, but does anyone have any experience with Swift + Parse? I have an issue that is driving me mental...
 
@Elyse shhhh, they didn't notice
 
user1804599
@Lalaland It's pretty terrible, actually.
 
design paterns are important
 
user1804599
2:22 PM
It shouldn't be a global for the same reason other mutable things shouldn't be globals.
 
user1804599
It should be passed to main as an argument.
 
mt19937 rand(random_device{}());
transform((char*)&singleton, (char*)&singleton + sizeof(singleton), [&](auto) { return rand(); });
@ScarletAmaranth ^
 
that is an excellent piece of C++ - brings a tear to my eye
 
user1804599
What is random_sequence?
 
best code I've seen today
shut down the internet
 
user1804599
2:24 PM
Did you mean random_device?
 
alright alright I need to continue working, it was nice trolling you
 
@sehe it's a platform
 
@Elyse yah, forgot what came after the _
@ScarletAmaranth Random permutations, geddit?
 
@набиячлэвэлиь geddit; although you could have tried something funnier, such as random_advice
 
user1804599
@Ven ah, it's possible, but I have to upcast explicitly with :>.
 
2:25 PM
Good morning
 
user1804599
utop # let y : typ2 = (x :> typ2);;
val y : typ2 = `Bool_type
 
I'm going to get back to embedded development
I could use a break from userland for a while
 
Ven
@Elyse :/
 
user1804599
Why :/?
 
user1804599
It's fine.
 
user1804599
2:32 PM
I only have to do it in one place anyway.
 
user1804599
No, wait, in fact, I don't have to do it anywhere at all.
 
user1804599
:p
 
@Elyse u french?
 
> Of course, I really doubt your justification in doing this. You only "lose" performance when you actually throw, and you're throwing out a significant and helpful bit of the language.
how about embedded you scrub
 
Ven
@Dean no, but I am
 
2:40 PM
give me std::either instead of exceptions
 
user1804599
@Dean Dois-je regarde comme je suis français?
 
user3790646
Hello.
 
Ven
@Elyse 0/10; I didn't even get what you meant to say
hi @Andrey
 
user1804599
@Ven Bien; je ne parle pas très bien français de toute façon.
 
Ven
@Elyse "Bien" feels out of line here. Good job otherwise
 
user1804599
2:42 PM
Why? :(
 
Ven
@Elyse mh, well, there's nothing "good"
 
^ Bien
 
user3790646
Eu pensava que eu era o único que não tem a língua mãe como inglês.
 
Ven
"well" is more "Eh bien"
 
user1804599
2:43 PM
I meant "good", really.
 
user1804599
I like that you can't comprehend my message.
 
Ven
@Elyse Then you're missing an article. "Parfait" would work
 
user1804599
Était-ce charabia vraiment ou êtes-vous simplement mauvais à votre propre langue?
 
Wait, Michael Bien played in a Command & Conquer movie? There is a Command & Conquer movie???
 
Ven
2:43 PM
@Andrey I thought that was spanish, but it isn't. port?
 
@fredoverflow lul
 
Ven
@Elyse wrong again. Missing something between "était-ce" and "charabia": "du"
 
@fredoverflow Command & Conquer is a movie :P
 
Oh wait, maybe he just acted in the cut-scenes?
 
user1804599
@Ven :(
 
user1804599
2:44 PM
Ok, let me fix it.
 
user1804599
Était-ce sharia vraiment ou êtes-vous simplement mauvais à votre propre langue?
 
user3790646
@Ven Yes, it's Brazilian Portuguese, a bit different from Portugal's proper Portuguese
 
Ven
-.-
 
@BartekBanachewicz ohhhhhhhhhh... a platform!
 
user1804599
Lounge<Sharia>
 
2:45 PM
@Mr.kbok Well, ain't that just a little bit overcomplicated
 
@fredoverflow seems so
 
Okay I almost had a heart attack.
 
@набиячлэвэлиь it's not overcomplicated. it's the way to whitelist out of the trait's namespace.
 
@BartekBanachewicz meh - I used c++14 on my son's arduino toy thing
 
that game's cutscenes featured also the guy who voiced Darth Vader
 
user1804599
2:46 PM
@sehe heeft jouw vrouw ook een shariadriehoek?
 
@Elyse Could you, please, use a language?
 
user1804599
@набиячлэвэлиь Non!
 
@Elyse kweenie. Wasda
 
user1804599
 
@Elyse Ik wist niet dat hypocrisie nog "in" was: twitter.com/naasih_amien/status/533545385722003456
 
2:47 PM
@sehe arduino is an order of magnitude easier to program for than my board :S
@sehe exactly. You write code and it runs on it. It provides a data store, threading and http.
 
user1804599
@sehe :P
 
user3790646
@Mr.kbok Happy birthday ! :D
 
stalker detected
 
user3790646
@sehe No... There's a message starred there -->
 
@Andrey thanks!
 
2:51 PM
linker scripts are such goddamn magic
 
@Andrey stalking the stars
@BartekBanachewicz which is a prime reason to hate them :)
 
/* .stack_dummy section doesn't contains any symbols. It is only
 * used for linker to calculate size of stack sections, and assign
 * values to stack symbols later */
.stack_dummy (COPY):
{
    *(.stack*)
} > RAM
 
WOW.
WOW. You are trying to dethrone Andy here, right
 
@sehe Where is Andy's throne? Linky?
@набиячлэвэлиь Rechtsfalt spricht mehr Sprachen als er implementiert!
 
my little object: linker is magic
 
2:55 PM
@milleniumbug basically this
I want C++ code running anyway
this time I'm not gonna go the IDE route
 
user1804599
@BartekBanachewicz Is that C--?
 
user1804599
Oh, linker scripts.
 
I could use a debugger as well but most of this crap suggest eclipse
 
ahah
 
user1804599
bad faceswap -1
 

« first day (1854 days earlier)      last day (3086 days later) »