« first day (2582 days earlier)      last day (2371 days later) » 

12:21 AM
@fredoverflow I got done confused by what I thought was a noob question on Kotlin... look here at his 'method 1'. I am confused by the little bit object : MapRowParser<T> { in the extension method.
 
My printer is super slow
 
But you have a printer
 
was a free gift when buying a laptop
also bulk cheap ink bought from web
 
12:37 AM
Sounds like the gift I got when I bought a dell laptop a while ago
 
@Mysticial predicated prefetch basically meaning if (predicate) prefetch(); ?
 
there are no cheapest skates, only cheaper skates
although slow, printer does print good quality stuff (if you clean the nozzle regularly)
still have 20 different coloured ink cartridges for this printer
 
inkjet are pretty much always slow
if you want speed buy a laser printer
 
If I print something everyday, I would consider buying a faster printer
but I hardly print anything on weekly basis
 
12:55 AM
 
1:30 AM
@StackedCrooked yeah
 
1:55 AM
Didn't EPIC have something like that?
 
2:05 AM
hiiii
 
2:28 AM
How is life going?
 
 
1 hour later…
3:58 AM
in a circle for most of us, of course ...
 
 
1 hour later…
5:00 AM
When we started distributing special status tokens that signify which people are important enough to join an elite group, we never could have imagined we might be creating some problems down the line.
2
 
 
2 hours later…
7:16 AM
also clean up spams ... 27000+ of them, currently with 1500 gone
if I could get through 20% of them in the next few hours, it would be great
 
 
2 hours later…
8:59 AM
@thecoshman object:SomeType {...} is Kotlin-speak for Java's new SomeType() {...}, i.e. create an instance of an anonymous class that implements SomeType, where the curlies denote the body of that anonymous class.
...sigh...
 
9:22 AM
@fredoverflow ah SomeType {...} would have made sense, it's the object: part that confuses me. I thought it might be an anonymous derived class, but I couldn't work it out
Thanks :D
 
^ Novel approach for deprecating stuff :)
 
ah, you have the idea of the 'singleton' instance with object don't you. So it's like a unique class with only this one instance.
 
You can evaluate an object : SomeType {...} expression multiple times, and each time you will get a different instance (of the same anonymous type).
 
std::colony: lol, go to Boost.Container and get users first
 
9:39 AM
std::colonoscopy
@StackedCrooked Yeah, the [[deprecated]] approach is now deprecated
 
10:04 AM
@fredoverflow Would it not be lots of instances of technical unique anonymous types? The types would all be the same implementation, but technically each is unique?
@fredoverflow Wow... I thought it was a fairly 'basic' bit of code to explain... took a fair bit
 
@sehe actually the compiler may add a sleep whenever you call a deprecated function
 
10:21 AM
Current status: watching youtube.com/watch?v=AKtHxKJRwp4 at 2x speed. This is over the speed of light. And I'm fast-forwarding too.
If you have time for an excellent talk, listen to Stephan Lavavej admonish you why doing std::make_pair<std::string, ptree> is not the solution you want to do "Don't Help The Compiler 48:42. He also explains some of the changes to std::pair and std::make_pair in c++11 — sehe 8 secs ago
Worth it.
0
A: does boost-1.55 boost::property_tree::ptree compile with c++11?

seheYes it does. The real change here is std::make_pair. C++11 changed std::pair conversion rules, as well as the make_pair convenience function, which was made move-aware. Analyzing It Property Tree allows construction like this: ptree pt("data"); to construct a tree with only value data and n...

Writing answers like this make me happy. When it finds the right audience it will make them learn all these bits I gathered from others over the years.
 
10:39 AM
I've reworded the question. I don't think it's broad. I don't think it's off-topic. Voted to reopen. Sadly, I never heard about SourceInsight and I'm not sure it will be popular. My gut says this is just a limitation of the tool, but perhaps someone else knows! — sehe 21 secs ago
Since when are questions about working with the tools off-topic? That question was closed as "too broad" (it wasn't)
 
just for once, I agree
 
10:51 AM
@thecoshman No, this will print the exact same class 10 times, and only one .class file is generated for the anonymous class:
for (i in 1..10) {
    val job = object : Runnable {
        override fun run() {
        }
    }
    println(job.javaClass)
}
 
11:33 AM
@fredoverflow That's not true for Java as well is it? Is this the Kotlin compiler being smart?
 
Java does the same thing
(also: how would "generating N classes" work if the loop was while(true) instead?)
 
11:50 AM
I assume it would generate them at runtime
 
nope it's compile time
java cheats around the access limitations by adding accessor functions for fields that should be private but nested classes use
 
shouldn't nested classes just be members of the containing class and therefore have rights to access private members?
 
12:06 PM
except to the jvm they are completely separate classes in the same package
class Foo{
   class Bar{}
}
when compiled results in 2 files: Foo.class and Foo$Bar.class
 
yeah, that's just dumb
 
something to do with backwards compat at the time I'm sure
 
 
2 hours later…
2:00 PM
Polls on Saturday: std::uncvref, fewer uses of std::decay in the standard library, use of [[nodiscard]] in the standard library, make std::memory_order a scoped enumeration, add synchronized buffer ostream to the library, std::to_address, and adding constexpr to some functions in <algorithm> and to more std::complex functions
No huge feature for now
 
2:13 PM
template<auto> class constant; is starting to have a clearer shape
which might lead to a deprecation of std::integral_constant in the long run
Today will be totally dedicated to modules in EWG
 
 
3 hours later…
5:08 PM
Anyone here really good with F#?
 
sorry, but nope, I don't think so
 
No. The key signature for F# is too complicated for me to competently play anything in that key.
 
I guess this could be an occasion to wake up the F# room
 
I need to get an F# expert so that JavaScript doesn't get itself in a larger mess
 
@BenjaminGruenbaum why?
 
5:15 PM
@Mgetz JavaScript is getting |> (a good thing) and we're not sure how that should work with await.
 
@Mgetz One way to convince people to get rid of something to mess it up enough that people stop using it.
 
Be careful with that, some people will think it's actually how supposed to work (see C++)
 
@BenjaminGruenbaum better question is how will this work with minifiers
Honestly F# handles that by propagating the await to the let
 
@Mysticial Only has three sharps. Doesn't strike me as particularly complex (or did you mean F# major?)
 
5:21 PM
@JerryCoffin Yeah, F# major.
It's harmonically furthest away from neutral C major. So it has to have the maximum number of accidentals on the key signature.
Same applies to Gb major which is the same thing, but going in the opposite direction.
 
@Mgetz woah
 
@Mysticial Yeah--must have six sharps, if memory serves (but it's been a long time since I was a band nerd, so my memory probably isn't to be trusted).
 
@BenjaminGruenbaum so in theory you could just pipe promises together using that
 
@Mgetz so it automatically thens values?
 
@BenjaminGruenbaum doesn't look like it
looks like you're on your own, if a method returns a Task (Promise) you're responsible for resolving it
but you could do list comprehension on it
 
5:26 PM
@JerryCoffin It's been a while since I've touched a piano. :(
 
@Mgetz the question is what about things like foo |> await barAsync |> baz - how should await work in this case? I guess JS and C# are different from F# in this case.
 
const results = await
<iterable>
|> fetch
|> Promise.all;
5
A: Flattening nested async sequences in F#

CarstenAre you looking for something like this: > let aMap f wf = async { - let! a = wf - return f a - };; val aMap : f:('a -> 'b) -> wf:Async<'a> -> Async<'b> > let aConcat wf = Async.Parallel wf |> aMap Seq.concat;; val aConcat : wf:seq<Async<#seq<'b>>> ->...

 
> Nitpicky note: the comment in this screencast about pointers and arrays being "the same" will ruffle experienced C programmers' feathers. The C language does distinguish between arrays and pointers, so the comment is strictly wrong.
> However, thinking of arrays as being pointers will help new C programmers to understand what's actually happening: arrays are laid out directly in memory, with no extra metadata added, so the address of the array itself is also the address of the first element of the array. Simplifying this to "arrays are lies; they're really just pointers" is easier to grasp for someone who's new to C.
wtf
 
badlets as usual
 
@fredoverflow What sense does the phrase "arrays are pointers" make anyway? Those are two distinct types and standard sections. I've never understood the idea behind that "motto".
 
5:38 PM
Oct 29 '12 at 7:03, by Luc Danton
Shun the copula!
 
@fredoverflow Let me translate that to English for you: "The maker of this video discusses concepts he doesn't understand, so he substitutes outright lies for clear explanations. Please support me on Patreon."
 
6:11 PM
10
Q: Is dereferencing invalid pointers legal if no lvalue-to-rvalue conversion occurs

Passer ByTry as I might, the closest answer I've seen is this, with two completely opposing answers(!) The question is simple, is this legal? auto p = reinterpret_cast<int*>(0xbadface); *p; // legal? My take on the matter Casting integer to pointer: no restrictions on what may be casted Indirection...

the amount of comments...
 
Do I have a high enough rep to move a question to softwareengineering.stackexchange.com?
Because there's a question that's a good question, but not right to StackOverflow because it involves making judgement calls about design issues.
 
If it's not on the migration list, only a mod can do it.
 
Ahh, it isn't. So yes, only a mod can do it.
I think softwareengineering and codereview should both be on the migration list for stackoverflow.
 
Code Review isn't on it because even the mods can't do it right. So there's no way normal users can.
I don't know about softwareengineering.
 
laugh I see.
 
6:22 PM
@Omnifarious When it first started (as programmers.stackexchange) it was on the migration list, but they asked for it to be removed because it was being used (a lot) to migrate questions that just needed to be closed.
 
Is there a good place to go to poke a mod and try to prod them into action? The user is thinking of just deleting and reposting.
 
@Omnifarious In a flag?
 
@JerryCoffin Interesting. Yes, I can see how that would happen. :-/
Someone already has flagged it. But, I just flagged it too. Hopefully more flags = more likely to get attention.
 
@Omnifarious It was worse than you'd probably guess. Problem was it (Programmers.SE) had very little real direction at first--just "questions that didn't belong on SO". So that's what they got--including lots of questions that didn't belong much of anywhere.
 
Yeah, I still never even look at programmers because I can't really figure out what should go there.
 
6:26 PM
I still think SO needs an SO toilet that's unmoderated just to move all the shit to. That way we can at least say it exists instead of repeating the same backstory of Programmers.SE over and over again.
 
@Omnifarious I think things have gotten better since they renamed is to Software Engineering, but for quite a while it was apparent that nobody was really sure what should go there--for a long time, roughly 3 out of 4 questions posted there were closed within a few hours.
 
Well, the OP gave up on the mods and deleted and reposted.
 
@Omnifarious A quick look now indicates that it's now down to only 1/3 (or maybe even lower) being closed.
 
6:44 PM
@Mysticial bitbucket.stackoverflow.com?
2
 
@JerryCoffin That's good. I should try to answer more questions on softwareengineering.
 
@Omnifarious I guess I post answers there a few times a month or so, for whatever that's worth.
 
 
2 hours later…
8:50 PM
 
 
2 hours later…
10:37 PM
@fredoverflow Perhaps it's just stating it, without further explanation that leads to down-voting?
 
0
A: cannot get boost::spirit parser&lexer working for token types other than std::string or int or double

sehe Has anybody gotten this working for a lexer returning something else than double or int or string? Sure. Simple examples might be found on this site And for the parser also returning non-trivial objects? Here's your real problem. Spirit is nice for a subset of parsers that are expresse...

I wonder how many other people spend ~2 days on a single answer
 
@sehe Impossible to say with certainty, I suppose, but I think we could estimate it as "damned few" with little fear of significant contradiction.
 
Wow. Your response was so subtle my machine choked up
Had to reboot. I think something DBus-related had crashed
 
10:53 PM
wow sehe being ridiculously comprehensive again +1
 
Speaking of that meme, I wonder how @rightfold is these days
@milleniumbug This time it's actually a fractal, because I "late-published" a lot (looooot) of work I did on that Graphviz parser question that I never bothered to give to the OP at the time.
Turns out Graphviz is pretty hairy in that it deals with quite some state that interacts in devious, unwell-documented ways. Even so, that not even the graphviz tools (dot, gvpr etc) consistently roundtrip.
I had begun setting up roundtrip comparisons that included visual comparisons, but it soon turns out that repeated filtering the same graph through dot does not result in stable output.
I think I spent about a week in the graphviz tunnel.
 
> Schachner said she called Louis CK in 2003 to invite him to one of her shows and was dumbfounded to realise during their phone conversation that he was masturbating. "I felt very ashamed," she told the New York Times.
Wow. He wanked during a phone call.
 
There was a minor outage in Compiler Explorer today but I swear it was totally unrelated to a panic iron of my BBC Micro T shirt for @demosplash https://twitter.com/JamesMcNellis/status/929102403898572802
@Columbo As well
 
@sehe ?
 
@Columbo wow that's multitasking
 
11:05 PM
@milleniumbug Yeah, that's the only interesting part of that story IMHO
 
@Columbo Not only that. Or did you think wanking on the phone was the worst thing one can do? Because then I misunderstood
I must say I don't know how to detect the other party to a phone conversation is wanking. But if it's noticeable to the extent that it is apparent that is really the case, I must say that's more than a little rude. That has no consideration for public order norms, that have been properly legislated for anyhow.
 
@sehe Well, I don't think it's acceptable, but neither would I consider the graveness of that incident warranting repercussions. I mean, it's rude. And disgusting. But not sensational.
 
Oh. Reporting it doesn't imply "repercussions". It's just not necessary to keep it secret either.
 
Then again, it was a business call to a stranger....
@sehe Agreed!
And if I was on the other end of that phone call, I would be so perplexed that I'd feel the urge to contact some news agency about it.
 
I probably would never reach the conclusion that the person was wanking. I'd forever doubt it.
 
11:11 PM
Well.. a) It's Louis CK, the god of wank jokes b) he was probably panting...
 
But yeah, I'm male. And I might very well realize one day - much later - that this was stupid clear and not normal
 
Doesn't take Prof. Snape for that one
@sehe Like, when four women come forward with harassment allegations?
 
Something might trigger my memory and cause me to say "Hey - Yeah. Now that you mention it, that shit happened to me too"
@slaphappy The spaceship is obviously for abandoning earth
 
@sehe Btw. I read his apology and felt like it was halfway sincere and a 100% expedient. Portraying himself likeable as ever.
 
I haven't seen it yet. Yeah, he would be the guy you expect to be upfront
 
@JohanLarsson Ew. That's weird. Especially this case: dotnetfiddle.net/DaybgD
It means method lookup happens in the scope of the statically known type first and only if conversions do not lead to a suitable overload, the other (inherited) overloads become visible. Or something.
This makes sense from a devirt/optimization standpoint. And much more likely from a DLR standpoint (dynamic and IDynamicMetaObjectProvider could be costly to runtime reflect?)
But it's surprising from a strong typed parametric polymorphism point of view.
 
shrug at that fiddle
 
11:47 PM
 
@sehe This looks pretty much like things work in C++: B::Foo hides A::Foo. Not sure whether C# provides and equivalent of adding using A::foo; inside B, in which case it'd do overload resolution on them (and then overload resolution selects Foo(int), obviously).
 
@JerryCoffin No, it's doesn't hide. C# expressly prohibits that (requires new to hide)
 
it does not require new, only a warning
 
@JerryCoffin Also, play around with some other combos and you'll see...: dotnetfiddle.net/6OVTXn
@JohanLarsson Ah you're right. However, the point was that the signatures do not hide. I added the virtual to make it extra obvious, and also, see my previous counter-example ^
 
11:54 PM
@sehe Thanks, I think I've already seen too much.
 
:)
 
The C++ model where derived hides base may be evil, but at least it's a known, predictable evil.
 
yup
 
But yes, if they're normally treated as an overload set, but under some unspecified circumstances, you effectively get hiding instead, then that's clearly a pretty surprising result--surprising enough that I'd call it an outright bug.
 

« first day (2582 days earlier)      last day (2371 days later) »