« first day (1469 days earlier)      last day (3478 days later) » 

user1646075
4:00 AM
a little state machine should slip in there nicely...
 
user1646075
would spoil the simplicity though!
 
Boost meta-state-machine :P
Probably just an enum and switch :)
 
user1646075
also won't compress if you emit a count every time when count == 1 !!!
 
I know.
 
user1646075
bummer!
 
user1646075
4:02 AM
now you need an escape - just to escape too many escapes ;-/
 
On the Wikipedia for RLE there's an alternative way that fixes this.
> For instance, one popular method encodes run lengths for runs of two or more characters only, using an "escape" symbol to identify runs, or using the character itself as the escape, so that any time a character appears twice it denotes a run.
So "abc" becomes "abc" and "abbbc" becomes "abb3c".
 
user1646075
oh that's a nice trick
 
Yep :)
 
user1646075
abbc => abb2c ooops
 
user1646075
4:04 AM
unless 2 was just left out
 
@aclarke can't have it all :)
 
user1646075
unless 2 followed! D'Oh!
 
multiple encodings would lead to abbc => abb2c => abb22c => abb222c => abb2222c I think
No wait that's not right.
 
@Rapptz And you still read it. :P
 
user1646075
oh that's another problem. ab22c : how to decode?
 
4:06 AM
Not so much anymore
 
user1646075
what about using backslash...
 
omg im taking this online test for devry for the object oriented analysis and design. Its asking me how many lines of code is the standard per printed page. 25 50 75 or 100. What a stupid question
cant find the answer anywhere because its a ridiculous question like how many angels can dance on the head of a pin
 
user1646075
it's however many I choose.
 
user1646075
@StackedCrooked yeah &that
 
user1646075
4:08 AM
@helloWorldIsAlliKnow I believe some scholars in the catholic church determined an answer to this several centuries ago
 
user1646075
it has been said that every compression scheme can make the data bigger. Sigh
 
If you read input from /dev/random then compressed data will usually be larger.
Because no compression algorithm is able to find patterns in random data.
 
user1646075
wait for quantum computing maybe
 
What should I name my constexpr library?
I made it part of meta but I want it to branch out
 
link?
what kind of constexpr library? like math functions? or more meta programming facilities?
 
4:20 AM
well atm I only have some C stuff ported over to constexpr
and basic_string
but I feel like it needs somewhere else to be in rather than my meta programming sub-library
 
@aclarke right?! I cant wait to take my survey for school. Im going to tell them how ridiculous that question is
 
I'm not finding constexpr very useful tbh. Compile-time computation is something the optimizer will do with or without constexpr. So it's only useful if you need the result as an integral constant. And I rarely need that.
 
rather than relying on the optimiser you can require it
 
I suppose.
Still not something I've needed a lot. But maybe there's a few interesting use cases that I'm not yet aware of.
 
compile time string to int and vice versa is useful
I'm thinking of calling it 'leaf' or something
 
4:31 AM
I am ... an impatient person. With that said sometimes I am impatient because I have fully paid for the service and the other party is taking longer than promised to deliver it
well, if I am anxious, it is only fair for me to transfer a part of this anxiety to whoever inflicted it
 
4:43 AM
my algorithm is wrong though..
but I wonder if the idea could be useful
 
What result are you expecting?
 
Performance gain due to partial compile-time computation.
 
7626?
 
Yeah.
But I didn't think very deep about the algorithm.
sum(10) + sum(x - 10) is wrong
 
what's wrong with this algorithm?
 
4:50 AM
@Rapptz Nothing wrong with it. But it's 100% runtime calculation.
Because the input is only known at runtime.
 
I'm not sure how to make something 'partially' compile-time and run-time.
I didn't know that was possible.
 
But if x > 100 then x == 100 + (x - 100). Then we 100 which is integral-constant.
Not sure if making sense.
But it's not useful for the sum function.
 
I don't think that's required to partially be compile-time.
But I wouldn't know.
Using mathematics to turn loops into essentially O(1) transformations is cool though.
Try it out :p
 
If I ever find a valid use case :D
 
@StackedCrooked To be fair it makes some sense (like if the compiler saw f(100) when f is constexpr) for it to be evaluated in compile-time
But I'm not sure if it's mandated to happen.
 
user1646075
4:57 AM
Ruby isn't as flawed as the people who code it:
(! @thingy[named].nil? && ! @thingy[named].empty?) ? true : false
 
maybe if it was a separate constexpr function rather than a recursive one maybe
but since it's a conditional thing it's required not to execute if x <= 10
Imma name this thing 'Leaf'
it's catchy to me.
 
'Oh, hey Mom. No, nothing important, just at work.'
3
 
 
2 hours later…
7:05 AM
2 hours of silence. The lounge is falling apart :-o
 
7:15 AM
Here is an useless tweet:
As an American, I formally apologize to the U.K. for your national icon ending up as "4chan Man." http://t.co/YLc0O9x00W
 
user1804599
> an useless
 
user1804599
That's a useless N!
 
@rightføld Yeah (s)he's actually a girl named Nica.
 
user1804599
> More Americans have been married to Kim Kardashian than have died from Ebola.
 
wat
And who's dat?
 
user1804599
7:22 AM
> More Americans have been dumped by Taylor Swift than have died from Ebola.
 
user1804599

 
user1804599
dat chat message
 
user1804599
how did I do that
 
Can see.
Can't reproduce.
 
user1804599
Me neither.
 
user1804599
7:23 AM
Because I don't have a womb.
 
user1804599
7:50 AM
Python documentation is so bad.
 
How so?
 
user1804599
Well, putting everything on a single page is fine, as long as you make the ToC prominent and not in a corner so small that it word-wraps to become totally unusable.
 
Hm I don't think it's that bad.
I don't think the numbering helps.
The TOC is always prominent though.
It's there when you scroll down so you don't have to go to the top of the page
 
8:09 AM
The Irishman's watch cc @MartinJames
8
 
Guys, anyone remember how to link to libc++ on coliru?
 
clang++ -std=c++11 -stdlib=libc++  -O2 -Wall -Wextra -pedantic -pthread -pedantic-errors main.cpp -lm  -lsupc++  && ./a.out
i.e. -stdlib=libc++ and just -lm and -lsupc++.
 
user1804599
@TonyTheLion lol
 
@Rapptz ah, -lm -lsupc++.
Thanks.
Also just found: rextester.com/runcode
Which has MSVC.
 
8:26 AM
 
@Rapptz wow indeed. A lot of stuff I hadn't heard about before :-)
 
I'm trying to look for documentation that looks good format wise
outside of cppreference
it's hard :p
so much garbage
 
user1804599
TIL Boost.Bimap.
 
8:41 AM
@TonyTheLion love it
 
9:20 AM
> I have very little experience with lambdas, but I learnt that a reference is a pointer, so I suppose, that they would be equivalent.
^ Pearl from std-asylum
 
user1804599
wat
 
@AndyProwl taadaaa
lambdas are pointers are burritos
 
user1804599
Can you do auto x = [] { }; class a : decltype(x) { };?
 
> The “} operator” is powerful but but comes with a pre-defined destruction order which is not suitable for all applications.
@AndyProwl FFS why did you lure me in?
 
9:32 AM
This has nothing to do with boost, interprocess or maps. Initialize your variables. And don't new all the time (this is not Java!) — sehe 7 secs ago
 
@R.MartinhoFernandes lol
 
it's what happens with wiki style information gathering.
Imagine how small it would have been had there been (peer-)reviewed entries only
@rightføld add Boost.TransMap
 
user1804599
How can people work at a messy desk. :S
 
It's easy. Let me show you
 
I don't know
my desk is always clear
 
user1804599
9:36 AM
Where messy isn't just cables and paper all over the place.
 
or if there are things on it, they're laid out neatly
 
user1804599
But also hairs and crumbs.
 
user1804599
Like, filthy.
 
uh
 
I don't eat at my desk, so I don't know
actually, I eat stuff that doesn't leave traces
 
user1804599
9:37 AM
I do, with a plate.
 
> Optional: After delete local the name is free for reuse in a new variable declaration.
 
user1804599
No need to spill crumbs.
 
like toffees
 
What do they smoke?
 
and gummy bears
whoa, you reminded me of an important detail in choosing my next keyboard
I put mine under the shower for cleaning regularly
if the new one isn't waterproof then it's not a good deal
 
9:39 AM
@R.MartinhoFernandes Maybe they're talking about nested scopes? What are you even reading
 
user1804599
@AlexM. My keyboard proved to be colaproof.
 
@Cicada Nah, delete local is a proposed kind of statement.
 
omg
 
Xeo
lol
 
Vlad may be gone, but after ten minutes I already identified his replacements.
 
user1804599
9:41 AM
OP is a faggot.
 
Xeo
@Cicada Seems like they don't even know about nested scopes!
 
> I don't know why they don't fix the language directly with the following proposition:

- Constexpr should be used only when calling a function. Functions should not be annotated with constexpr.
FFS
 
Xeo
Robot be trapped.
RIP
 
@R.MartinhoFernandes hey, how'd doc's go?
 
> 1. The idea is about introducing non-intrusive support for dynamic polymorphism (similar to Haskell's typeclasses);
All crazies. /cc @AndyProwl
(Joking)
:P
 
Xeo
9:45 AM
> dynamic
whut
 
> Theoretically it should be possible to nest namespaces inside classes, structs and unions, what could be very useful.
(...)
It can also help compilers to optimize the code.
 
Wait what. Dynamic polymorphism? Either that's already in C++ either I don't know what they mean.
 
@Cicada "non-intrusive support"
 
Xeo
Haskell's typeclasses aren't really dynamic, are they?
 
I don't know how haskell does it but I'm not sure it gets much less intrusive than a vtable, does it
 
9:47 AM
The implementation basically consists of external vtables.
(Unless statically eliminated)
@Xeo If the functions don't get specialised, they are.
 
user1804599
@Cicada It passes a vptr for each relevant type class.
 
user1804599
Which point to the type class instances in question.
 
@R.MartinhoFernandes Right, I was unsatisfied with the low level of craziness so I thought I'd contribute :P
 
@Cicada In Haskell data structures don't have vptrs in them. The vptrs get passed in as hidden arguments to the functions. f :: Int -> Int uses no vptrs at all; takes an Int, returns an Int. f :: Num a => a -> a takes a hidden vptr to Num, and one object of the type for which that vtable applies.
 
9:55 AM
Always a nice day when Monty Python makes your point for you
 
user1804599
> I have a bit experiance in Java and started understanding the oops concepts in cpp.
 
user1804599
oops!
 
@Feeds Disappointed that Randall used the movie version of that line and not the real one.
 
Jim said "Houston, we've had a problem."
 
user1804599
10:02 AM
Fuck if statements.
 
@R.MartinhoFernandes nerd
@rightføld fuck statements
 
@BartekBanachewicz What, just because I binged the official transcripts some weeks ago? :|
 
@R.MartinhoFernandes they were a nice read :)
 
binged 1. (part.) see to binge 2. (part.; alt: bung) see to bing
4
 
I don't like binging things
googling is so much better
 
10:12 AM
I propose from now on we use "bung" for "to bing" just to disambiguate.
Also, to make it sound appropriately silly
 
@AlexM. How are those related?
 
Bing
 
The Microsoft official term is "Bing It™"
 
10:22 AM
@BartekBanachewicz Btw, spacelog.org
 
> …highly addictive… — The Huffington Post
 
user1804599
cock is highly addictive
 
> This kind of question is off topic. Nobody knows how LISP would your programming skills, since nobody know what those are right now.
I'm glad I started LISP-ing, it my programming skills
 
@AlexM. what does that mean?
 
it's the same as "I accidentally the compiler".
 
user1804599
 
@rightføld insanity
 
oh right
anyway how the guy answered, the snippet "public $foo as private;" is the least comprehensible thing I ever saw
 
@EtiennedeMartel RTTI wouldn't cause cache misses unless you actually use it.
 
user1804599
I see photons.
 
is it like having some kind of prolog way of working in haskell?
 
not really. I mean, it's supposed to reason about existing programs I think
 
@BartekBanachewicz balls dropped?
 
@thecoshman hm?
 
@BartekBanachewicz puberty check :P
 
10:54 AM
uh
property Assoc = {| op :: a -> a -> a |
    All x :: a.
        All y :: a.
            All z :: a.
                op (op x y) z === op x (op y z) |}
    :: Pred(Int -> Int -> Int)
assert (+) ::: Assoc
 
@BartekBanachewicz I wrote something like that in PC class.
How do I convince boost autolinking to pick static libs?
 
Magic.
 
11:10 AM
lololol AC Unity officially requires an i5 2500k and a GTX 680 as minimum hardware, and people actually think that's true
well it may be true, if Ubisoft did something like
if (!minimum_hardware) run_like_shit();
this attempt to make consoles seem to be more powerful than PCs is lame
so lame
 
@CatPlusPlus Is loungecpp.net in UTC - 4 by any chance?
 
11:25 AM
I think I found a really weird bug in ASIO.
 
Making a beamer theme is fun
 
This gist.github.com/rmartinho/7aadc085cc3e60c4c25f is supposed to just be a loop reading from a serial port. Does it look like something is wrong?
I'm getting each byte being read twice.
Other software reads it properly so it's definitely something wrong with this program, or with asio.
I'd like some extra eyes to check for sanity before I file such a ridiculous bug.
 
@R.MartinhoFernandes Just file a ridiculous bug :-p
 
Xeo
@R.MartinhoFernandes But you get all bytes in the end, just duplicated?
nvm, the reads themselves are not concurrent.
 
@Xeo Yes. Each byte comes twice in quick succession.
@Xeo Yeah, it's a single-threaded loop.
The original was actually a loop with the coroutine macros, but I desugared it just to be sure.
 
Xeo
11:34 AM
@R.MartinhoFernandes Maybe the other software has duplicate-correction implemented? :P
 
@Xeo Other software includes PuTTY and my own small loop written in C#.
 
Xeo
heh
 
What's the C# code?
 
user1804599
twitter.com/1337RT so this exists
 
var port = new SerialPort("COM4");
port.Open();
while(true) Console.WriteLine(port.ReadByte());
Nothing fancy.
Just a dumb loop.
 
Xeo
11:38 AM
@R.MartinhoFernandes What about non-async Asio?
 
user1804599
Make it a smart loop.
 
@Xeo "Non-async Asio"?
 
Xeo
read instead of async_read.
 
So, synchronous IO
 
user1804599
Boost.Sio!
 
11:42 AM
Boost.Asio documentation is pretty fucking bad.
 
s/.Asio//
 
@rightføld is this a bot from here?
 
user1804599
Better than Sol's documentation.
 
ikr
@R.MartinhoFernandes Did you try setting the baud rate?
 
Yeah tried that too.
Manually set all the same settings as in PuTTY.
Synchronous reads work properly.
:<
FFS
 
11:50 AM
Hm :s
time for ridiculous bug report
 
@rightføld You own a macbook, right?
 
@R.MartinhoFernandes Did try with the option "☑ Use logarithms" ?
 
Does it work without the handler?
 
Did you reboot it?
 
What does that mean?
 
11:52 AM
Have you tried turning it on and off again, obviously
 
Without the handler there's no way to observe it working.
 
Hm true.
I meant without the recursion in the handler.
It just feels weird to me is all.
 
How would that work?
 
@Rapptz That's how boost asio works
 
(It's not true recursion; it just queues itself for later)
 
11:54 AM
@Cicada Is it? Never dwelled that far into it.
@R.MartinhoFernandes That'd explain it.
Well I'm out of ideas.
 
Let's file.
 
@Rapptz What robot said.
 
I'll have to workaround it or fix it myself, though :(
 
Web Archive saves the day again.
 

« first day (1469 days earlier)      last day (3478 days later) »