« first day (2673 days earlier)      last day (2501 days later) » 

nwp
nwp
00:02
Looks like top commenters under this question are more used to reddit.
@StackedCrooked Apparently that happened a number of times in a row (2 times for that answer, the last example worked, but it was about an hour later). And I had seen it a day or two before as well.
In fact, you can basically grep my answers for Wandbox links and see how often Coliru has given me issues (in fairness, I use Wandbox to get latest Boost to, or to compare behaviour across Boost versions)
Are you sure Mars has enough atmosphere to burn the Tesla before lithobraking kicks in? — gerrit yesterday
I love that word. Lithobraking
lol
@sehe Remember a timeout with magic value '111' will not be affected by the rate limiter.
ikr - check yo server logs :)
Since you've mentioned it, I've never used anything else
00:21
I don't mind ads. As long as they are not animated and not in the way.
nwp
nwp
I don't mind ads as long as my ad blocker blocks them.
ads are just short length brain wash
but we are being brain washed every day one way or another anyways even without being exposed to ads
I have disabled adblock in incognito mode. So I can use that to reach those sites that reject adblock.
00:52
Also online ads aren't an effective advertising strategy as they are typically ignored or induce rage
01:13
@Mikhail That's mostly because they're mistargeted.
Give me computer ads on MAL or one of the overclocking forums that I hang out in and I'll click on them.
The best placed ads I've ever seen were probably the hard drives ads on MAL.
A more pernicious strategy is to integrate them in technology reviews
@Mysticial but only if that means anime ads on SE
I mean ... even in this chat, anyone could be shamelessly self promoting her/himself :p
01:59
gotta write a realtime auto-contrast, but which algorithm to use. All the algorithms I know use a real-time histogram...
modern GPUs ruined all the fun, a few years ago it took 30 ms to do a histogram of a 4 megapixel image, now its down to like 5 ms
how is that ruining all the fun
instead of coming up with something fun, I'm just going to brute force run a few histogram
The histogram approach to auto-contrast works well for 8 bit images but its a little trickier for 16-bit or 32-bit floating point. For floating point its hard to determine the bins a priori. The plan is to run first histogram on a larger range, and then run a second histogram if the first one didn't catch enough of the values.
@TelautonomousKitty I, for one, most certainly am not! And you must believe this because I am wise, intelligent and 100% honest and trustworthy!
@JerryCoffin one of the best I would say ... only second to me </trollololo>
 
2 hours later…
04:28
Has anybody ever tried to do an exponential fit with the explicit least-squares solution. Its kinda got a ton of error...
^like the values for A can be off...
 
1 hour later…
05:33
I've been playing with the idea to have nested logger objects. So my classes have a member Logger object which is constructed by passing a parent logger. This way I can construct log messages with some contextual info.
This would make the log file easier to grep as well.
Probably not a new idea though. (Not gonna get a nobel prize for this "invention" :P)
Also I'd like to add a token bucket system for rate limiting.
@StackedCrooked Like Log4cplus.
@wilx So, what's good about it?
:P
06:05
@StackedCrooked It mostly works. :D
vast majority of buggy software mostly works ... works until it reaches a bug ...
 
2 hours later…
08:11
5500 sharks lurk in the waters off eastern Australia: study
omg ... and there are more than 100 times people on the land nearby?
nwp
nwp
There are also millions of water bears lurking in puddles. If you get too close the flanking bonus can become a real problem.
09:08
Does Patreon fit the need here ? I want to make a (small) donation for the services I get out of SE. What about a bitcoin "donations" address? — Criggie 9 hours ago
we're so close to getting paid for answers
@sehe do you mind pinning this
nwp
nwp
09:48
Today in "I don't actually know C++": dynamic_cast<void *> exists and actually does something.
Feel like dynamic_cast has been popping up a lot more since the ISO-C++ people put in their guidelines. (and clang checks them)
Feels like the "I don't know what the fuck this code is doing" kind of cast
well it's the oop cast...
nwp
nwp
As opposed to the (IKnowExactlyWhatImDoing) cast.
In OOP systems like Qt, failing to cast in qobject_cast gives you a nullptr which immediately will lead to a exception in subsequent lines. In an OOP system, you typically know the type. Admitably, you might mess it up by copy and pasting large swaths of code (for delegates in Qt, for example), but that's why it should be run-time only in debug or equivalent.
@Mikhail or "I can't design my code properly"
or "I don't give a fuck about signatures meaning anything"
09:57
What's an invariant?
33
Q: What are invariants, how can they be used, and have you ever used it in your program?

gablinI'm reading Coders at Work, and in it there's a lot of talk about invariants. As far as I've understood it, an invariant is a condition which holds both before and after an expression. They're, among other things, useful in proving that loop is correct, if I remember my Logic course correctly. I...

this?
@Mikhail yea, but it's programrammarz.se so a grain of salt is necessary
nwp
nwp
The example makes them sound useless.
A better example would be that std::map's elements are sorted.
I often do stuff like funThatAssumesNoSthg . filter (not sthg) $ xs
nwp
nwp
I cannot read that superior syntax.
And I don't know what Sthg stands for.
not clear if they mean stuff that doesn't change in general, or the assertions to verify that stuff doesn't change
10:04
@nwp funThatAssumesNoSomethings(filter (\thing -> return true if thing != something, xs))
nwp
nwp
That I can read :D
Well, before the edit at least.
\x is a lambda (if you look hard enough: λx)
xs |> filter (not sthg) |> funThatAssumesNoSthg
that almost works too
incidentally, if that was something like
nwp
nwp
@Shoe Looks backwards to me. Should be xs |> filter (not sthg) |> funThatAssumesNoSthg.
10:08
runStateT $ do
    modify $ filter (not sthg)
    liftIO . print $ get >>= funThatAssumesNoSthg
ye
in a regular imperative language this could be a race
and in fact, a lot of programs have this kind of issues because those two lines are two method calls on an object
nwp
nwp
Also today I learned struct B{}; struct D : B{}; D d; dynamic_cast<B*>(&d); //look ma, dynamic_cast on non-polymorphic types!.
What
What's a polymorphic type?
nwp
nwp
10:23
TLDR: something that has virtual in it
Actually the full text isn't much longer.
11:04
I wasn't expecting the standard to define that
12:02
Playing SC like a boss: youtu.be/-ckapvoeudw?t=1m54s
I clicked a clickbait and it was actually hilarious at times.
12:43
@wilx nice
12:55
I agree.
But then again, when reading the comments it appears the asker is really dumb after all.
He's being told he needs to write assembly.
To which he responds: "Can i write my assembly with C"?
nwp
nwp
Maybe he meant inline assembly. It's not obvious that you cannot write a bootloader with inline assembly.
For how terrible the question is it was well received.
I agree that there is a valid question in there somewhere, but digging it out is the asker's job.
He's pretty clueless. He's willing to learn. And it's not trivial. There are no "for dummy" books on this topic.
IOW valid question.
nwp
nwp
Valid question and valid question on SO are different things. He should be taught properly and people should help him, but that doesn't change the fact that it was a terrible SO question.
It's clearly too broad, has too many questions in one question and basically requires writing a tutorial. SO rejects such valid questions for good reasons.
though the answer really is to use IncludeOS rather than writing a bootloader
13:20
I just a job offer that included this link to YT: youtube.com/watch?v=3ra-EPHQ_60&feature=share
Notice how their files are .cpp and full of C code. :)
> C/C++ Developer
nwp
nwp
^ enough seen
@nwp Yup.
Wow, Youtube disabled all ads on Logan Paul's channel.
14:10
@StackedCrooked oh my god, who the hell cares?
Heh. One month ago I didn't know who Logan Paul was :P
nwp
nwp
Is it worth knowing?
nwp
nwp
cool
If you're into Japan stuff you'd have had your youtube homepage full of raging people about a month ago.
14:15
oh the suicide forest guy
Yeah.
He was earning 1.2 million per month of youtube ads.
And now they disabled his ads.
How do people know that?
Did he leak is info?
Dunno. I read this on a Flemish new paper site.
I guess guestimations based on viewership and extrapolated from known revenues
14:21
> According to SocialBlade, Paul earns up to $14.3 million a year, and up to $1.2 million a month. The site bases its figures on ad rates common for YouTube channels
@StackedCrooked rolled dice?
15:08
Comparing pointers with > is UB unless they are in the same array. — Bathsheba 8 mins ago
It is?
I'm pretty sure I've seen pointer comparison used as a tie-breaker in certain circumstances
nwp
nwp
Pretty sure that is correct.
Although apparently the wrong quote.
That one should be right.
But it doesn't say it's UB. I don't know. I fail at reading standardese.
> Otherwise, neither pointer compares greater than the other.
aka no ordering between them
but that's kind of impossible to implement using just raw poitners
nwp
nwp
That would make it well defined, meaning that int a; int b; assert(&a > &b == false); assert(&b > &a == false); must hold.
but there is no way to cheaply implement that without adding allocation information to each pointer passed around
nwp
nwp
Then again it's from the working draft, they might have changed it 2 days ago for all I know.
template <class T> bool is_from_same_array(const T *a, const T *b) { a > b == false && b > a == false; }
They probably had that in mind from the start which also explains operator precedence rules.
Actually no need to test for equality. Now it's not as cool.
15:27
@Borgleader It is. You can replace the > with std::greater<T>()(x, y) and it will be officially correct. (Even though std::greater also uses > internally.)
15:56
I worry about using your library if your refactoring rigueur is on the level of "global find & replace"
4
@Borgleader yes
@thecoshman I didn't
@Shoe it does because it ties in with presence of rtti
I piloted a racing drone! :3
how many casualties
@nwp agreed
@RobertTroipartrois none
it was on an open field
but it was fun
16:06
@RobertTroipartrois I'm very surprised so many C++ists have trouble reverse-engineering the joke there
@StackedCrooked The people saying that are ill-informed. With an EFI/UEFI BIOS, you can write a bootable program without using any assembly language at all.
@JerryCoffin but you need a linker that can emit a bootable binary
16:25
@ratchetfreak With UEFI, a "bootable binary" is a Windows PE DLL with the "subsystem" field modified to one that the boot loader recognizes (of which there are three, AFAIK). The EFI toolkit includes a tool to take a normal Windows DLL and change the subsystem field to your choice of those three.
17:26
@Feeds The inclusion of emoticons was a pretty stupid decision.
@thecoshman Use the democracy 21 voting system!
17:55
@StackedCrooked Seriously!?
I feel like you're pulling my leg here...
@Feeds Is there a reason why panel 1 says 1988, panel 2 says 2018 but panel 3 says 1998 - 2018?
1988 is idea time, 1998 is Standard time, I think
All I know that is that Ken Thompson (who also designed Unix) designed UTF-8 together with Rob Pike.
Ven
Ven
And then Rob Pike designed Go.
Clearly UTF-8 turned Rob insane.
I recently read an interview with Ken Thompson. Apparently his intention was to implement a filesystem. But he needed an environment to run it in. And that's why he wrote Unix.
Ven
Ven
Talk about shaving yaks...
18:08
Stupendous, from start to finish.
(I'd subscribe to that channel btw., it's such a fantastic resource of old material....)
18:35
@StackedCrooked That kind of workflow takes forever to get anything done. But in the end you end up with a ton of useful tools.
Ven
Ven
@Mysticial ...Or you end up with twenty different half-finished tools :-).
He worked for Bell Labs, which had money for R&D, long term investing, etc owing to their monopoly on key infrastructure
Ven
Ven
Back when this was the thing, and VCs not.
Real question here is if Bell Lab's monopoly was a net good or bad
@StackedCrooked <https://imgur.com/rQIb4Vw> /cc @Mysticial
18:44
@Mikhail Very early on, it was almost certainly a net good--but that didn't last very long. It had turned into a net loss quite a while before they were broken up.
@JerryCoffin Not disagreeing but why? I wasn't around back in the 1980s.
@Mikhail Before the breakup, service was fairly poor and prices were almost outrageously high. In current money, a long distance call (anything outside your own town) cost on the order of a few dollars per minute.
Ven
Ven
@Borgleader Too used to discord?
Was it a few dollars per minute to the civilized world or some shit hole? For example, I recall the 2000s when calls to Pakistan cost like $3 per minute.
@Ven eh, the gif wasnt inline, works for me
19:06
@Mikhail Civilized world. Even the next town over in your own state...
19:23
When I speak for longer than 10m my voice gets hoarse. I wonder how singers (like these) manage to maintain their voice for a 2h+ show.
I must be doing something wrong.
19:44
long experience and training
and water
user1804599
Hey @sehe whatsup
user1804599
@StackedCrooked Ken Thompson named O_CREAT. He fixed it recently in Go by adding an alias named O_CREATE.
user1804599
@sehe can I contact you
20:31
@JerryCoffin Screw monopolies
@rightfold Sure, long time no seen
Zedde gin kaarneval oan't viere
user1804599
@sehe Nee xD
user1804599
@sehe I’ll pm you on Twitter
21:01
I just got the student feedback from the fall courses.
The most critical stated "There were lab instructions in Swedish for lab 1, 3, 5 and 6. The others were in English. I'm not sure this matters much"
21:17
But until then... a quiz! Four questions, True or False, and no googling. Question 1. Astronauts' helmets contain a small piece of Velcro so that they can scratch their nose. 👩‍🚀👃
@CaptainGiraffe Consistency is key, sir
@sehe The instruction for lab 2 i is in bad need for a rewrite.

« first day (2673 days earlier)      last day (2501 days later) »