« first day (2319 days earlier)      last day (2633 days later) » 
00:00 - 22:0022:00 - 00:00

user1804599
12:13 AM
@Shoe Haskell + Servant
 
user1804599
Servant is great for web services and can generate client libraries from your types as well.
 
2:24 AM
std::woe_stream
 
2:56 AM
I'm also upset that there aren't separate headers for the wide character prefix version of functions (ie, <wostream>). I rarely use both, at once, and having both wide and normal in the same header unnecessarily increases compile time!
 
3:07 AM
Are you retarded or
 
3:19 AM
@Mikhail Which takes longer: typedef basic_ostream<char> ostream; or the typedef basic_ostream<wchar_t> wostream;?
 
3:32 AM
also both are most likely instantiated externally anyway
extern template basic_ostream<wchar_t>; or how was the syntax again
 
3:57 AM
@Borgleader ^_^
 
 
1 hour later…
6:01 AM
 
I bought seafood and put in the car last Saturday, now my whole car smells like a piece of rotten fish :(
 
6:20 AM
FREE ... FEE, why so close?
the word button is found 407 times in this file
 
 
1 hour later…
7:25 AM
@Telkitty You are supposed to eat it, not just put it in a car.
 
need to bring it home to cook
 
@Telkitty I have seen that clip before. The Muslim woman is IMHO delusional, for more than one reason.
 
speaking of which, I think trump's muslim ban is good for low income americans but bad for big corporates, thus the protests from big corporates
 
@Telkitty I guess.
 
@Telkitty Unlike Western Europe and (maybe) Canada, the US had * de facto* rather strong rules on immigration from "Muslim majority" countries. Muslims in the US hare significant more educated than the rest of the population. And the largest group targeted has been Iranian's which are even more educated compared to other Muslim groups.
 
Ven
7:35 AM
Hi
 
@Telkitty I know of a few Muslim doctors who supported Trump because they believed Trump would lower taxes. Hopefully, they will reconsider.
 
7:58 AM
@Mikhail So you're saying that these doctors don't know anything about politics and blindly supported one the most vilified US elections candidate just because he would lower taxes. Quite an interesting way of representing Muslim intellectuals.
 
8:26 AM
Why are we takling about Trump in a C++ chat? :-)
 
@LiviuStefan Because we choose to talk about the lesser of two evils.
 
Ell
he manages to be in every other conversation it seems -.-
@Morwenn haha
witty
 
8:59 AM
Yet. another AI which is able to code.
https://www.technologyreview.com/s/603542/ai-software-juggles-probabilities-to-learn-from-less-data/
 
@Mikhail lower tax for one group means either extra tax has to be collected somewhere else or benefits will be cut
unless you can grow the pie
@wilx Immigration is bad for low income Americans because immigration will push up demand for resources, thus raise the price for those resources (i.e. rental or property price) and take jobs away from those people, but corporates will benefit because of cheaper labour and more demand for their goods and services
 
That's witchcraft. Burn it at the stakes!
 
@Telkitty I understand that.
 
And bake me a good steak while you're at it.
 
@Telkitty: Nice avatar pic. How do you call yourself? Chicken lady? :)
 
9:13 AM
>_<
 
@Telkitty Sorry. :D
 
that's okay :D
 
10:04 AM
@Telkitty And before them there were Dromornithidae, Meiolania, Protemnodon, and so many others. So what.
 
killing animal for food, that I understand, but it's dumb to kill for the sake of killing - waste effort and poor animals would be dead
human & their worthless effort in controlling their immediate environment
 
It's not worthless.
It's actually very very effective.
 
yeah yeah ... because rats & cockroaches are extinct </sarcasm>
 
Look how worthless:
@Telkitty Smallpox is.
 
TIL: There are bots on Github that create pull requests to projects using CI replacing all code with bitcoin-mining code.
 
10:10 AM
@R.MartinhoFernandes 1 out of a billions is, so I must believe that humans are great ...
 
nwp
Sometimes it is difficult to just let people be wrong on the internet.
 
it's weird if internet people all agree with each other (unless brain washed)
 
@FlorianHeigl1 @paaleksey clever gits
punny
 
@nwp Unless when it's yourself that's wrong. Then it's easy :P
 
you know
it struck me today
that some developers won't ever learn how to code properly, because before they do, their social skills get them promoted so that they don't have to code anymore
 
nwp
10:22 AM
"have to code"? That doesn't sound right.
 
well managers don't code
 
@BartekBanachewicz good?
 
@thecoshman are you asking me if I consider it good?
 
maybe?
 
Well my answer is maybe, then.
 
10:28 AM
@R.MartinhoFernandes wait... what o_0
 
10:45 AM
@thecoshman That guy is one the worst climate change deniers in Australian politics, and he ran a Twitter poll with a loaded question hoping to confirm his biases, but it didn't, so he went all Trump on it. If it doesn't fit my preconceptions, it must be rigged.
 
Someone else on the thread put it nicely: "Demand evidence. When it disproves your theory, claim conspiracy. Donald Trump style."
 
user1804599
@Mikhail I'm upset that the whole I/O stream library interprets any bytes at all.
 
huh, getting rid of double-ended traversal has been relatively pain-free
 
doubled-ended traversal?
 
10:59 AM
as presented by Andrei Alexandrescu
 
Hmm, I'm having trouble with catch(err<T> const&)
Trouble being it doesn't catch the exception.
I don't remember any issues with catching templated types.
Are there?
 
I don't think so, but if you're expecting catch(err<Base> const&) to catch a err<Derived>, then it won't
probably not what you're doing though
 
No, no bases.
 
@R.MartinhoFernandes no
 
So maybe I'm trying with the wrong T. :/
catch(...) catches it :<
 
11:11 AM
I wonder if one can get exception type information from std::exception_ptr
 
you can add a base, catch it and take a look in the debugger
 
I'm guessing "not portably"
 
@milleniumbug I can cast it to std::exception and go from there. I know it's an err<Something> cause of the what()
I'll add typeid(T).name() to the what.
 
soon: defensive std::decay_t everywhere
 
due to unexpected exception with message:
WHERE'S THE MESSAGE YOU FUCK
 
11:15 AM
wow
 
bet you didn’t expect that
 
well, it's an exception, duh
 
Oh, lol, I'm an idiot.
4
Returning pointers to local vars = bad.
        std::string name = typeid(T).name();
        return ("T is " + name).data();
 
tiem to leak
 
That was my debug inimpulintation of what()
 
11:24 AM
yeah change to return (new auto { "T is " + name})->data();, problem fixed!
 
@LucDanton Je vois que tu as lu le rapport de l'IRSN
 
new auto :/
yes, I'd like to have a new car, thanks
 
@AldwinCheung well they have the opposite issue, unexpected decay leading to defensive exceptions :^)
 
Ven
Amazing. The slack client doesn't handle removing a team.
I love software.
 
11:27 AM
So it seems T was x<U> and I was throwing err<U> by mistake.
 
I blew up everything again by compiling too much at once
 
12:10 PM
Only human creates useless garbage - plastic for example
I mean, in nature, things are utilized in a cycle - even organic waste can be used as fertilizer
On another subject - are social media occasionally used as multi core mass simulation on unsuspecting humans?
 
it's more that nature found a way to reuse garbage eventually
O2 was garbage at first
 
yes I have thought about that, but if humans are generating useless garbage faster than nature can cope then we will be in trouble eventually ... although that does look is in the far far away future
 
"faster than nature can cope" makes no sense.
Nature doesn't cope.
It just.
Like, just.
 
It words
 
12:25 PM
Saying it "is" would be too philosophical? ;)
 
then s/nature/current set of ecosystems on the planet/
 
@ratchetfreak Those change without human intervention too. They collapse and new ones take their place. Or they slowly turn into unrecognizable ones, Theseus's ship style. It's always been like that. There's nothing special about these ones other than being current.
 
user1804599
Cool, Chrome can automatically enter a breakpoint when JS code is about to OOM.
 
@R.MartinhoFernandes but the current ones are the those that need to cope with human garbage
 
But unless by "to cope" you mean "to remain relatively unchanged", I struggle to see a problem with that.
 
12:45 PM
environmentalist do want the current ecosystems "to remain relatively unchanged". Though a more pragmatic view of "allow human life to continue existing until the sun explodes" is probably easier to achieve.
 
"allow human life to continue existing until the sun explodes" sounds a lot more selfish :P
 
human kind is inherently selfish
 
12:59 PM
shellfish is delicious
 
1:22 PM
Gotta like some of @sehe's barely upvoted ones
2
A: How can I do a boost style function object in Java?

seheJava 8 has lambdas: https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html So you can define any single-method interface: public interface BinaryFunction { String invoke(Object dataOne, Object dataTwo); } And implement your event marshaller as in C++: class MyEventMar...

 
@ratchetfreak O3 is like O2 but with vectorization and overall more aggressive optimizations
 
1:33 PM
@Columbo teehee. Java 8. I'd have forgotten
 
Well, I didn't know that lambdas just adapt to whatever function the interface declares
 
1:45 PM
it's kinda the key feature of java's lambdas
and it allows that code using the lambdas be compiled by treating them as normal instances of the interface
 
user1804599
@Columbo oh god mutable maps
 
does anyone know of a name or an algorithm for this problem?
given two sets, you have an operation to determine if one is a subset of the other
using that operation, given a bunch of sets, build a tree indicating set inclusion
 
user1804599
for x in X:
  if not any(y == x for y in Y):
    return False
return True
 
@zounds that's not going to be a tree
 
user1804599
@ratchetfreak why not?
 
1:52 PM
given 4 sets: {A,B}, {A}, {B} and {}
the inclusion graph is a diamond
 
user1804599
omg Hasse diagrams
 
not all strict subsets B,C of A need to be strict subsets of each other. But you can have D that is a strict subset of B and C, so you get a DAG
@ratchetfreak that's much more to the point :) Nice
 
user1804599
@rightfold lol O(nm)
 
user1804599
all(y in X for y in Y) O(n) aaay
 
depends on how expensive the contains operation is
 
user1804599
1:55 PM
And very parallelisable.
 
you could also sort each set and then traverse them in parallel
 
user1804599
@ratchetfreak O(n log m) if badlets use badsets
 
user1804599
This is like hash join vs nested loop.
 
What if badlets use badgets?
 
user1804599
Jan 3 '16 at 1:11, by sehe
It boggles the mind.
 
user1804599
1:57 PM
oh wow that's already a year ago
 
user1804599
@R.MartinhoFernandes honeybadget don't care
 
"Vim" ways to generate random string ;) https://t.co/8ztEcIqINh
 
2:17 PM
@ProblemSlover wow that's so lame
it's not just an old joke, it's a bad rehash
 
user1804599
hi @BartekBanachewicz :3
 
Given two sets A and B, compute the intersection of A and B. If the said intersection has Card(A) or Card(B) elements, then it is equal to A (or B) and is therefore A is a subset of B (or B is a subset of A)
 
@rightfold helllllooo
I went to the bike store to try a few helmets on
apparently XS fits me
 
Using hash sets, it's O(min(Card(A), Card(B))
Using regular sets, it's O(Card(A) + Card(B))
@BartekBanachewicz You're asking for it
 
user1804599
> XS is an interface description file format used to create an extension interface between Perl and C code (or a C library) which one wishes to use with Perl. The XS interface is combined with the library to create a new library which can then be either dynamically loaded or statically linked into perl. The XS interface description is written in the XS language and is the core component of the Perl extension interface.
 
2:21 PM
@BartekBanachewicz Thin privilege.
 
arabic version of facebook looks kinda spooky
and should be binned :P
 
@R.MartinhoFernandes it's 25€ more expensive than the S/M sizes :/
@rightfold riiiight
 
@BartekBanachewicz Fat privilege.
 
user1804599
ooh XS clothing size
 
@R.MartinhoFernandes exactly!
also the XS black one is another 30€ cheaper
damn it
but the color goes to safety so there's that
 
2:29 PM
@BartekBanachewicz Pink tax.
 
3:12 PM
@rightfold I actually quite like immutable data structures
 
user1804599
3:25 PM
@Columbo Me too :)
 
@rightfold Although they are a bit of a necessity in a language with missing const correctness, too
 
Ven
 
3:45 PM
@Luc do you still "start" your ranges?
 
@R.MartinhoFernandes no (but no free lunch either)
 
Does that work happen in the ctor?
 
@R.MartinhoFernandes in the factory, the constructors are not part of the public API
 
Right, during initialization.
:/
 
like I said, no free lunch
 
3:48 PM
I'm getting back to flag hell right now :<
 
I should be getting another go at the deferred range thing again pretty soon, I’ll tell you how it goes
 
Suppose I have filter(rng , fun) with boost.range-style ranges.
range-v3 advances the first iterator to where fun(x) is true at the begin() call.
Either I'm missing something or this means that filter(rng, [](auto) { return false; }) consumes the whole range eagerly.
 
why the whole?
oh the predicate is vacuously false
 
@R.MartinhoFernandes I suppose that’s true, although 'consume' terminology is kinda more of an Alexandrescu-style thing
well it certainly applies to single-pass forward aka input
 
3:58 PM
@LucDanton Well, it evaluates everything, which precludes infinite ranges and for finite ones it makes what is supposed to be a lazy call into O(n).
(and for range-v3 specifically, is in blatant contradiction of the documentation: "Views are cheap to create and copy")
 
that’s what you get for being in a strict setting yeah
a strict (ctx, start, stop) triple to be precise
@R.MartinhoFernandes lol
 
I'll have to do some quick test to confirm it, and then I'll ping Eric about that one.
I think it's either too late, or maybe he'll start range-v4.
 
hey come on that’s not even funny :(
 
But the code seems clear.
For now I'm stuck with flags everywhere and every damn function in the interface checks if it should "start" the range before doing its thing.
 
@R.MartinhoFernandes I would say it’s probably more of a documentation mistake than anything else
@R.MartinhoFernandes you’re so lazy
 
4:02 PM
Oh, joke.
@LucDanton I'm not sure. Everywhere I've seen him talking about the library, he's hammering out this particular point.
 
huh
 
"views, cheap, blah blah, cheap, views"
 
too much time spent around string_view, array_view, etc. aka contiguous slices of memory perhaps :(
 
4:16 PM
@sehe Can I ask you Java questions that I'm too lazy to google
 
@Columbo no
 
@thecoshman Does that mean "Hey, I can help you"?
 
@Columbo no
 
@thecoshman But what does it mean?
 
user1804599
@Columbo They are a necessity in any maintainable code base.
 
4:24 PM
@LucDanton That's basically composable if(!started) start();, right?
 
@R.MartinhoFernandes yup
 
@Columbo Google it bitch
 
since I split all the info between context and positions you can also think of it as mapping (before_start, past_the_end) to [start, past_the_end)
 
@thecoshman Woah, buddy. No need for misogynistic terms.
 
Didn't find one in range-v3, so I'm writing my own as we speak. I'm gonna need this thing a lot.
 
4:27 PM
 
You know what range-v3 calls the "start" operation?
satisfy
 
uh really?
 
could as well call it entertain
 
            void next(range_iterator_t<Rng> &it) const
            {
                this->satisfy(++it);
            }
That's from the filter implementation. next() increments the operator, and then "satisfies" it, which means it advances it till f(*it)
 
4:31 PM
do_the_thing()
 
tbf that’s an implementation detail, no?
 
Yeah.
Still weird.
It kinda makes a bit of sense for filter if you squint, but then you have concat and join with satisfy as well :|
 
I'm guessing the invariant is that f(*it), and the function "satisfies" it
I'd name it enforce_invariant in that case then
 
@wilx who caused you so much grief
 
@milleniumbug But isn't that basically any function in the interface?
 
4:36 PM
@StackedCrooked bullets make a strong impact
@milleniumbug catch_up, scan_forward, slip_advance, spool_iterator_fwd
etc.
All pretty much more descriptive than "satisfy" (what, really)
@milleniumbug oh. entertain will be my choice for any callback actions. Sweeeet
 
@milleniumbug I don't like that because e.g. last = first would always restore the invariants; it should describe what it actually does. Enforcing invariants is implicit by the return of the public functions.
 
achieve_zen();
world_peace();
 
@R.MartinhoFernandes the same "invariant enforcement" code was used in several functions, and the immediate action was refactoring it to a different function. Probably
 
brahman();
rethink_life();
 
@sehe I'm not denying that the function is badly named (the fact that I'm guessing in the first place is a good indicator)
 
4:40 PM
ITT sehe being throttled.
 
std::fake_news(); (I'm getting adrift here)
@R.MartinhoFernandes ^<Space> is the bee's knees
@Columbo Stack Overflow, also Robot has better memory for lang specifics (I forget everything I don't work with daily)
 
So apparently Nomic is not very successful
 
user1804599
@sehe Eww a non-total function
 
@Shoe how many intersted?
 
@thecoshman Me you and robot
Who else played few years ago?
Bartek?
Maybe cat
 
4:53 PM
Yeah, few others I can't think of right now
could probably look to play nomic anyway... not sure how much it'd suck when done with so few players...
 
3 is too low methinks
 
user1804599
5:39 PM
TIR "Pythonic" is a synonym for "bikeshedding".
 
"Remembered"?
 
nwp
Realized
 
@Ven higher-order loop unrolling
 
nwp
@Ven That is awesome. Superb performance because it uses goto, great compile times because it has no templates and best of all: It has a hypnotic effect when scrolling down that makes you believe it.
 
5:53 PM
yeah the scrolling is fun
press the middle button, move the cursor slightly down and you have minutes of fun
observing how the pattern zigzags
/*This is mechanically generated code*/
 
user1804599
@Ven generated code so doesn't matter
 
gee, thanks for reassuring us, I guess
 
user1804599
Looks very auto-optimizable so that's good too
 
user1804599
@Ven Omg I just realized macros are great for complex number arithmetic in my FFT implementation
 
Ven
@rightfold the perl has generator code for the keywods
 
user1804599
6:08 PM
user image
8
 
6:22 PM
> Data truncation: Incorrect datetime value: '20162016-12-03 00:00:00'
What the actual fuck is my application doing
 
nwp
providing value-added anti-truncation measures?
 
Xeo
6:37 PM
@Columbo You seem to have travelled to the year 20162016, and the application can't cope with that
 
7:13 PM
yello
 
7:27 PM
@Xeo This is the weirdest shit ever. The SimpleDateFormat::parse function gets input "13 June 2016" with format string "d MM yyyy" and fails, but succeeds if I just call it in a sample main function
It's not like it's stateful
 
Xeo
Is that the actual input you give it?
 
Why?
 
Xeo
i.e., in main you literally do SimpleDateFormat::parse("13 June 2016"), and elsewhere it's an input string
 
Yes
 
Xeo
try checking what the input string actually is, maybe it has weird characters in
 
7:33 PM
No, I print it out in a log file
> Invalid date 17 December 2016 passed; not added to entry
From code
    try {
        return new Timestamp(format.parse(s).getTime());
    } catch (java.lang.NumberFormatException | ParseException ex) {
        LOGGER.log(Level.WARNING, "Invalid date {0} passed; not added to entry", s);
    }
 
Xeo
MVCE plx
 
Wait, is SimpleDateFormat thread safe
Surely it's only read on parse
 
Xeo
If it's using ICU under the hood, it's not threadsafe.
 
That may be it. A pool of threads is using that facility
 
Xeo
wait, SimpleDateFormat is ICU, right?
I know one ICU class that keeps mutable state in the class although the whole state is set and used inside of functions only, not across functions (i.e., it could've been a local variable).
 
7:37 PM
You can parse from the same SimpleDateFormat twice, right? Just to be sure it's not something ridiculous
 
Xeo
I assume so
 
tomorrow's the day
first commute on two wheels to work
 
Xeo
2 messages moved to bin
 
forecasts are perfect
 
why did my code got removed? o.O
 
Xeo
7:38 PM
Because we don't want to see a wall-of-code?
 
Feb 9 at 16:48, by nwp
Error: Unread reference Rules™
we have too much shit pinned
 
oh I see sorry
can I post a codeshare link?
 
Xeo
Especially C code.
We're not a helpdesk, please try one of the other rooms. Especially C rooms. This is a C++ room, and it's for lounging around.
 
I understand :)
have a good night yall
 
@Xeo No shit it works after enclosing the return statement in a synchronized (format) block
 
Xeo
7:44 PM
:icu:
 
@Xeo What is that, anyway
 
Xeo
> International Components for Unicode
They forgot the subtext "With a shitty implementation"
 
ueh
the XS helmet size is apparently for 53-54 cm head diameter. I have 57
it's highly unlikely that it was actually a good fit
I need to try out at least a few other models :F
 
user1804599
@Xeo I C what U did there.
 
user1804599
@BartekBanachewicz haha fatass
 
7:55 PM
@rightfold lol sure im so fat
 
Xeo
*fathead
 
user1804599
solv riamnn hypotsis and git ritch u won htave to work ever agan
 
Xeo
not ass
unless he doesn't know how to use a helmet
 
user1804599
what if he has a Glatze
 
user1804599
less protection means need for thicker helmet
 
7:56 PM
eh I mostly need something with a visor
open ones are fine up to a certain speed
 
user1804599
you need a supervisor
 
8:13 PM
@Xeo ...and you got the order wrong. In this case, the "shitty implementation" is important enough that it belongs at the beginning: "Shitty implementation of International..."
 
morning
I have a senior dev on my team who wants to do a thing that's fucking stupid
am somewhat concerned since last time, it took 18 months for us to get the stupid out
 
Xeo
lol
 
if things keep going like this I'll have to actually write my styles in CSS
a worthless hunk of shit whose only notable quality is being very slightly less of a worthless hunk of shit than the Javascript of 20 years ago
 
user1804599
> Rezar Prejoct Volervie
 
user1804599
 
user1804599
lol
 
9:19 PM
Just dropped in to say congratz to @R.MartinhoFernandes imgur.com/a/Db98u (however, I'm probably few years behind ;) )
12
 
@BartoszKP What book is it?
 
9:35 PM
some version of Effective C++
 
@Puppy Oh. Nice.
 
9:51 PM
lol, is Facebook filtering out comments from people that have me blocked? I.e., I cannot see their comments in the comment thread now?
@Puppy Man, you are the definition of grumpy.
 
not in this case
we already have a much superior solution
 
00:00 - 22:0022:00 - 00:00

« first day (2319 days earlier)      last day (2633 days later) »