« first day (1413 days earlier)      last day (3537 days later) » 

11:00 AM
@CatPlusPlus inb4; I don't care about you fitting in
 
@CatPlusPlus fuck do it whatever way
do fucking MAGIC, use Mach7, integrate pattern matching into the language
I don't care.
 
Xeo
unpacked_foreach(myMap, [&](auto&& key, auto&& value)
    {
    });
 
The utter stupidity behind C++'s design process is so absurdly daunting that I don't even.
 
Xeo
of course you lose control flow that way
@BartekBanachewicz sigh
 
@Xeo CPS!!!
 
11:02 AM
Child Porn (as a) Service
 
Xeo
Cheese Pizza as a Service plx.
 
I'm officially moving the whole codebase to Idris
 
Xeo
have fun
 
I would use Idris logo for the meme but it has no logo
> I decided in September that it was time Idris stopped being a toy for supporting my own experiments in dependently typed programming and started being something that would be usable by others.
:lol:
 
/obj/driver.c, 29: undefined function do_log
Error within runtime_error:
Compilation within compilation
Compilation within compilation
Config error: initialization failed
I think I broke it
 
11:10 AM
@CatPlusPlus Based on the error message, you've written (or at least tried to compile or use) C. Apparently it's broken you.
 
It's LPC actually
 
@CatPlusPlus So it broke you and drove you (even more) insane. Sorry for missing that the first time around.
 
hmm
I should really not have import y; and import blah from y;.
maybe import just blah from y;?
 
what's wrong with import blah from y?
 
@JerryCoffin MUDs are fun!
 
11:14 AM
because that involves telling y and blah apart, which is problematic.
 
There's your manual namespacing
 
@Puppy from y import blah;
 
that can work too.
 
import y; brings y in scope and import blah from y; is the same as import y; blah := y.blah; undef y;.
 
wtf man, I don't have undef.
 
11:16 AM
Conceptual, fool.
 
right, so it's conceptually invalid since the concept of undef does not exist here.
 
You know what I mean.
Also plonk.
3
 
:lol:
 
on an unrelated note
 
sbi
:plonk:
 
11:19 AM
@BartekBanachewicz go wank some haskell!
2
 
is there is_associative_container trait or AssociativeContainer concept?
 
Xeo
no
well, there's a kinda-concept of "associative container" in the standard, but nothing codified
 
@sehe yes because if I point out an idiocy in C++ that CERTAINLY has to fucking be related to the fact that I like Haskell
 
Xeo
@Puppy import y (blah)
actually, just adopt Haskell's import syntax / semantics
they're great
 
11:21 AM
honestly haven't really looked into it.
 
@Puppy you should, also possibly read about Backpack
 
Xeo
@AlexM. Nice and clean
 
> Module systems like that of ML, on the other hand, permit a stronger form of modularity in which explicit interfaces express assumptions about dependencies, and each module can be typechecked and reasoned about independently.
already got it.
 
Read the whole paper.
 
a paper about hacking in an advantage I've already got to avoid a problem I don't have on top of a system I don't use?
2
 
11:23 AM
@BartekBanachewicz It is. The fact that you don't see it, doesn't mean you weren't influenced by your Haskell infatuation experience here
 
@Puppy yes, exactly that.
@sehe well fuck what now.
> this feature annoys me but it's only because I now know a way to do it better
 
Xeo
@Puppy How Haskell's import syntax works?
 
@Xeo yes
 
I call fucking bullshit on that mindset from ground up.
 
Xeo
@Puppy Here's a good writeup: haskell.org/haskellwiki/Import
 
11:24 AM
@Xeo Meh, I don't like the flattening tbh
 
Xeo
@CatPlusPlus Hm?
Oh, with re-exports?
 
Importing unqualified names by default
 
Xeo
ah
well, he can just flip that
 
Also he's doing manual namespacing so it's more complicated
 
Xeo
But I was talking more about the options that import gives you
 
11:26 AM
> Lastly, although Backpack is geared toward integration into Haskell, its design and semantics are largely agnostic with respect to the details of the underlying core language.
But yeah why would I read.
fucking attitude
 
Xeo
Mixing qualified, hiding, as and explicitly naming (hidden) imports
 
@BartekBanachewicz funny, because that's exactly how I read this
 
no seriously give me something sweet or I'll murder everyone around
 
Xeo
and having multiple of those import statements
 
Puppy has all the guarantees about dependencies he needs with his randomised ABI
:v
 
11:26 AM
@BartekBanachewicz Kindly ban yourself from this lounge for a few hours, thank you
 
sbi
@BartekBanachewicz Murder is sweet.
 
ah crap.
you know you made a change slightly bigger than expected when VS marks practically every line in the file as red.
 
@Puppy I'm sorry sir, but you seem to have caught a particularly nasty case of the red squiggles. It's curable, but can be quite painful for a while.
 
clear + rebuild
 
sbi
Kickstarter: A keyboard airbag triggered by a natural language parser "I'm no racist, but-" [POOMF] "Why do women hate chivalr-" [POOMF]
6
 
Xeo
11:30 AM
Fuck squiggles
 
@Xeo Hiding is somewhat interesting, but qualified, I don't see how that's different to just not using an import at all.
 
Xeo
@Puppy If you don't import at all, those names are not available.
simple as that
(except for the Prelude)
 
hm
I employed a similar system for separately-compiled modules, but for modules defined in the same source files, you get it implicitly.
 
Xeo
hm
Dunno if I'd like that
 
@sehe okay dad
I am stuffing myself with chocolate it should help
 
11:43 AM
@BartekBanachewicz Chocolate is a universal cure that helps all problems.
 
@Puppy there's also import qualified X as ... which is nice
 
I have just discovered Stylish extension for Chrome and Firefox.
 
hi @dolan
 
I've been eating chocolate for years and don't have cancer, so obviously chocolate even prevents cancer.
 
@JerryCoffin it certainly helps with low sugar levels
 
11:44 AM
I am going to make the chat use a serif font!
And bigger one.
 
hi @Bartek
There's a fly on my screen
 
We gotta formalize the protocol
 
HTTP
 
aw baby not in public
 
11:45 AM
joozek said you wanted [[terrain_type]], indexed by m[y][x]
We switched internal representation to Array instead of [[]] and I wrote a presenter for that format
 
You can use whatever representation you want but m[y][x] has better cache locality when iterating by row
It's not actually important its just my purrformance-OCD
 
instance ToJSON GameMap where
    toJSON (GameMap a) = toJSON . toListOfLists $ a
        where xSpan = [(fst . fst $ bounds a) .. (fst . snd $ bounds a)]
              ySpan = [(snd . fst $ bounds a) .. (snd . snd $ bounds a)]
              row y = [a ! (x,y) | x <- xSpan ]
              toListOfLists a = [row y | y <- ySpan]
vOv
it's not very ~performance~ on our side anyway :P
 
Ell
in what situations would you want to not use qualified?
 
@Ell most of the time
import Control.Lens bang done.
 
Ell
Isn't that terrible?
 
Ell
Like using namespace std;?
 
Xeo
This was fun
 
@Ell if you use using namespace std; in .cpp file it doesn't really matter.
 
well, it does, but not as much.
 
Ell
@BartekBanachewicz err
 
11:50 AM
okay
 
the real problem with using namespace std is the large number of unconstrained templates with generic names.
 
Ell
Don't we tell everyone to never do that? :P
 
"Core i5 is not good for Photoshop, get an i7 instead"
 
Xeo
@Ell Haskell has no ad-hoc overloading and ADL like C++, so there's not much that can go wrong
 
11:50 AM
putting it in the header, though, just makes it so much worse because now you're infecting every TU.
 
Haskell doesn't really have either of those problems, afaik.
 
@BartekBanachewicz Only if the chocolate is mixed with sugar. If you eat something close to pure chocolate (say, 90+% cacao) it's not going to do much for sugar level (but still cures nearly all ills).
 
@JerryCoffin it's Milka. Just checked and it's 58% sugar.
 
Yeah sure i5 is terrible for Photoshop I'll just get a double Xeon-E5 instead!
 
11:51 AM
I downloaded the Ryanair app so I could check in and use the mobile boarding-pass. It installed OK, but when I entered my email and password... you'll never guess this... it did not work! My screen has a little while plane icon circling on a blue background in an endless holding pattern, (or, at least, till it runs out of fuel).
 
@MartinJames I'm surprised you didn't have to pay for the app, then pay for the privilege of checking in
 
@Ell for example operator imports are pretty much always unqualified.
 
@Mgetz Good point - will check my accounts..
 
Ell
Well I never
I've always avoided using namespace
I can bear to type qualified names out though
 
@Ell std:: is fine. Try typing Control.Monad.State.Lazy. every time
 
11:53 AM
@Mgetz They've gone that extra step: the plane is really just circling while it removes all the money from all his accounts (all in separate 10 Euro increments, of course).
 
Lovely!
 
Ell
@BartekBanachewicz alias it?
 
@JerryCoffin of course, because he has to pay to wait too...
 
@Ell people do that too vOv
in general I (personally) feel safe enough with Haskell compiler to not worry about stuff like that that much
 
@Mgetz Plus "convenience charge" for the privilege of paying from his phone.
 
11:55 AM
if I anything was to break it wouldn't compile ayway
 
@JerryCoffin already mentioned that, but yeah wouldn't be surprised
 
and if it's local to module then the impact is minimal
 
Do you guys use en_US or en_GB for your APIs?
I'm reading questions on Programmers about it out of curiosity.
 
@Rapptz for server side stuff, en_US
 
Either. Both. I don't pay attention
 
Ell
11:56 AM
en_GB
 
@Rapptz Like a field named 'colour' instead of 'color'? I try to use US English for source.
I try to use British English for normal text.
 
as long as your consistent it doesn't really matter
 
US English is what Latin is to medical professionals, IMHO.
 
@Rapptz Depends
 
but if one server delivers a parameter as color and another expects colour it's a problem
 
11:58 AM
en_IN would be great
en_FR for zisse
 
@Rapptz Where is the question?
 
@dolan yes but en_FR randomly rejects requests to the server because it doesn't like them
 
@VáclavZeman Unfortunately, they're both answered by the same old French guy.
So I wasn't getting varied answers lol
Just the same opinion of this one guy.
8
A: Should APIs be in en_US or en_GB or both?

MainMaInternational APIs APIs which are intended to be international use EN-US. So if your intent is to provide your API to the developers worldwide (or at least several countries where British English is not commonly used), you should use EN-US. Local APIs Of course, small APIs which are targeting ...

 
Xeo
@BartekBanachewicz as <3
 
@Xeo yeah.
okay I feel much better now
I suppose it's my own fault for coding in Haskell every day after coming from work
if you write only in C++ you don't feel all of those issues that much
 
12:05 PM
OK.. I turned on the wifi and the Ryanair app said it had an 'upgrade', (bugfix). I upgraded, and now the app fails in a new way. I can log in but then the app freezes up.
 
@Xeo You sir, have a baus definition of fun
@dolan better yet, get an i13
 
Xeo
@sehe I enjoy writing C++ if it's something I choose to write myself.
 
@sehe Where did the i11 go
 
Xeo
Yay, my fluffy McFluffkins blankets are here. And damn are they fluffy.
@dolan Or the i9
 
@Xeo Not prime!
 
12:06 PM
:D
 
Xeo
lol
 
@Xeo They come with large fries?
 
@dolan don't bother with that. It's just underpowered
 
Xeo
@MartinJames nope?
 
@dolan Son, you know me too well
 
12:09 PM
@Xeo Dunno. I don't feel like peering into my motivations right now.
 
Xeo
Wokay
 
[sigh] turning printer on..
 
Xeo
@sehe Anyways, satisfied with the capabilities of mystical_vector now? :P
Or do I have to tinker with it some more?
 
@CatPlusPlus phfs, wimp
 
Xeo
@Xeo Now that I think about it, what I really seem to enjoy is just blasting out code with a very specific goal in mind, when I know exactly what I have to write.
 
12:13 PM
oh look I cut my hand while shaving
 
@BartekBanachewicz you really are a special case
 
Xeo
That's what you get for using hipster razors
 
just noticed the scar
@Xeo you wouldn't get it
 
@BartekBanachewicz o_0 how slow is your reaction time?
 
@thecoshman it's quite small vOv
 
12:14 PM
@BartekBanachewicz how's it scarred then? or do you mean scab?
 
Xeo
@BartekBanachewicz hah, I was just speculating that you were using something fancy to shave.
 
@thecoshman uh that
@Xeo spot on~
 
room topic changed to Lounge<C++>: Please do not bring in any sharps, we can't risk another incident. [c++] [c++11] [c++14] [c++-faq]
2
 
@thecoshman sigh... we're going to have to add to that soon enough
 
@BartekBanachewicz Don't use loops!
 
12:16 PM
@R.MartinhoFernandes hm. That's a fair point actually.
 
Learn to love pair
 
@R.MartinhoFernandes you mean hide the fact that somewhere a loop is actually being used?
 
Imma blame loops for everything from now on
@thecoshman There's no such fact
 
DID YOU KNOW OS IDLE PROCESS IS A LOOP
 
there are no requirements imposed on say transform to use a loop
 
12:17 PM
@BartekBanachewicz for(;;;){ std::cout << "Shut up @BartekBanachewicz" << std::endl; }
 
@thecoshman I dunno what you're talking about. I'm still wondering about the spin of a few electrons I have around.
 
@CatPlusPlus Except on Lisp machines, where it's recursive.
 
@thecoshman ew
forever $ print "cosh sucks"
 
FYI, for(;;;){...} performs faster and more Cthulhuly than while(1){...}
 
12:18 PM
Ukraine to seek Nato membership, says PM Yatsenyuk bbc.com/news/world-europe-28978699
 
did you know a mac starts reporting max CPU usage when its cpu temp gets above a certain threshold?
 
for some reason I'm not that surprised
 
@BartekBanachewicz I has tentacles, I win
 
@thecoshman while(1) is terrible because it's utilizing an implicit int -> bool conversion. while(true) is ok
well for some definitions of "ok"
 
12:19 PM
have not had lard for ages ... my grandma used to fry rice with it & it's awesome ... reminded by the blog of this lady because she misses lard too
 
@BartekBanachewicz vOv still sucks compared to for(;;;)
 
that's just an abomination
 
C++ compilers agree.
 
@BartekBanachewicz exactly the point
 
should at least be for (;true;) at least
 
12:20 PM
@CatPlusPlus Sure - loop round a HLT instruction, usually.
 
@R.MartinhoFernandes :O I canny have me tentacle loops forever?
or wait... it's not three semi-colons is it, it's three sections :(
 
womp womp womp
 
@thecoshman hihihi
 
Xeo
volatile const bool _ = true;
for (;_;) ...;
8
 
@MartinJames jmp $self
 
12:21 PM
Where did the tentacles come from?
 
in conclusion, I don't know loops, they all suck
 
@MartinJames form writing invalid C++
 
Xeo
@R.MartinhoFernandes Shh
 
BTW I do read blogs, but most of the authors whom I follow are women ... & misfits :x
 
12:22 PM
So, did someone add Aaron to the MiniFame yesterday?
 
I did
I'm butte
 
@R.MartinhoFernandes who to what?
... when?
 
@thecoshman Yes
 
12:24 PM
@CatPlusPlus I'll start doing that.
 
@R.MartinhoFernandes no you will not
 
uh I can't stop hearing the lyrics to She's Got Issues as "She talks about clojure and that validation bit"
which I suppose changes the meaning a bit.
 
@BartekBanachewicz ...a validation bit, to be precise.
 
@BartekBanachewicz I have no idea to what you are reffering. I'd like to keep it that way.
 
12:27 PM
@thecoshman Yes, I will.
 
@thecoshman it's The Offspring song. Come on.
 
@BartekBanachewicz oooh
you realise they are not new?
 
@Xeo oh always tinker more. I'll have to check the updated version out later
 
Anyone got any spare downvotes?
http://stackoverflow.com/questions/25568250/hijacking-ftp-server
 
12:31 PM
Half of my overnight bushwalk/camping gears ARE MALFUNCTIONING OR MISSING!!!
 
@MartinJames gladly
 
btw guys do you know about -XStandaloneDeriving ?
 
@BartekBanachewicz yes
 
it looks really nice
 
have done for about twenty seconds
 
12:34 PM
@sehe :)
 
data Foo a = Bar a | Baz String

deriving instance Eq a => Eq (Foo a)
 
@chmod711telkitty I read that as 'bushwhacking'
 
oh HsOpenGL had major update recentyl
 
HsOGL?
 
High school OpenGL.
 
12:39 PM
@R.MartinhoFernandes ~
and for some reason i had old platform installed :|
 
Cool Ninja is not in Debian repos
Please be in backports
 
Noope
I'm too lazy to make a working Funtoo base box for Vagrant, so I'm dealin with Debian
 
Xeo
@sehe Well, I dunno what to add / change atm :P
 
Did you see debian.txt btw
 
12:42 PM
No.
@Xeo Factories.
 
Xeo
wat
 
@Xeo That's what they do in Java.
 
Xeo
lol
 
12:43 PM
Hehe - when OP sockpuppet dup got linked, he deleted it:)
http://stackoverflow.com/questions/25567774/translate-a-c-code-to-java-code
 
@CatPlusPlus I don't get it.
WAIT
 
@R.MartinhoFernandes I'm installing nmap
 
vOv gotta have yo dependencies bro
 
12:45 PM
> fonts-droid fonts-liberation
Can't install nmap without installing two separate font packs.
 
Because, you know, can't install nmap without installing one font pack.
 
That'd be silly
 
Gee, poppler too.
Can't install nmap without PDF support.
 
12:46 PM
How the hell does anyone ever do port scans without PDFs.
> libcups2
In case you want to print your port scan results?
 
how you going to view the results?
 
On paper after you print the PDF, obviously.
 
All I wanted for Christmas was a decent netcat
 
it did install cups right?
@CatPlusPlus you're a netcat
he he he
 
butte
 
12:48 PM
I am so smrt
@sbi mmm
 
vvvvvv vectors
 
sbi
Given that I have a std::multimap<K,V> mm(...); (and given that this is C++03+TR1+boost), what would transform() need to look like in order for
std::vector<V> vv( transform(mm.begin(), mm.end()) ); // or
std::vector<V> vv( transform(mm.begin()), transform(mm.end()) );
to compile and do the (obviously) right thing?
 
> Suggested packages: (...) ffmpeg
 
Xeo
> libpaper-utils libpaper1
@R.MartinhoFernandes Yeah, and that
 
Wow, port scans with video. Such technology.
 
12:50 PM
wtf guise
SO is asking for the real name when you use gargle auth
 
oh noes
how can trolls troll anymore?
 
Xeo
@sbi I imagine you're not talking about std::transform?
 
Ell
wtf guys
my code was working yesterday :(
 
Xeo
Also, boost::adaptors::map_values
 
@sbi Wait, what.
 
sbi
12:51 PM
@Xeo It's just a name for a generic transformation I need to apply to the iterator.
@R.MartinhoFernandes I want a vector populated by the values of a map.
 
C++ algorithms don't compose.
 
sbi
@Xeo Ah, I think we have played with this before.
 
So you have to do transform(begin, end, back_inserter).
 
@R.MartinhoFernandes NANANANANAA
 
sbi
53 secs ago, by sbi
@Xeo It's just a name for a generic transformation I need to apply to the iterator.
 
12:53 PM
Oops, transform(begin, end, back_inserter, fun).
 
I hope this upgrade won't become a fuckgrade
 
Xeo
Should work in C++03 too (without the ranged-for loop)
 
and the auto
 
Xeo
right
hm, second
 
@sbi Something dramatically different than it actually does look like. stackoverflow.com/q/5218017/179910 is pretty much what you're after though.
 
12:56 PM
> The Glorious Glasgow Haskell Compilation System, version 7.8.3
aww yiss
 
@dolan want a prize?
 
@thecoshman I'll just change it to Fucker McFuckerson
 
sbi
@Xeo Cool! Can I spell out the type of values or should I just put that into a function template and make it a template parameter?
 
> GHC now has a parallel compilation driver. When compiling with --make (which is on by default,) you may also specify -jN in order to compile N modules in parallel.
woah I forgot about that
 
@dolan vOv why not sir humpsalot?
 
12:59 PM
> In GHC 7.10, Applicative will become a superclass of Monad, potentially breaking a lot of user code. To ease this transition, GHC now generates warnings when definitions conflict with the Applicative-Monad Proposal (AMP).
why I was living in the past
I feel like getting out of the cave after 27 years
 
sbi
@JerryCoffin Thanks, that bind() magic is exactly what I thought I would need to come up with!
 

« first day (1413 days earlier)      last day (3537 days later) »