« first day (2180 days earlier)      last day (2994 days later) » 

16:01
> With -std=c++11 the warning is emitted in versions 4.8.5, 4.9.3, 5.3.0, 5.4.0 and 6.2.0, but not in 4.7.4.
bugs are fun
210
Q: How to calculate the angle between a line and the horizontal axis?

orlpIn a programming language (Python, C#, etc) I need to determine how to calculate the angle between a line and the horizontal axis? I think an image describes best what I want: Given (P1x,P1y) and (P2x,P2y) what is the best way to calculate this angle? The origin is in the topleft and only the...

this question of mine
was closed for 2.5 years
as 'off topic'
??
@ThePhD Sorry, my Vulkanic studies are on hold until I get a decent commute time.
good luck though
185,000 views is off-topic
i will vicariously live my programmatic aspirations through you
@Borgleader is mei... bae?
16:04
@orlp happens
WHEN WILL THIS STUPID CHAT CLIENT REMEMBER THAT NO, I DO NOT WANT INCREDIBLY LOUD PINGS
11
seriously
it works for an arbitrary amount of time
@orlp Cut the sound for this tab?
then a little gnome comes along
and flips the switch on the server
the cookie expired
@orlp I don't think I ever had a problem with that
Ven
Ven
16:05
stop deleting your cookies :P
@R.MartinhoFernandes does chrome remember the url for other tabs?
I'm not deleting cookies
the mute info is stored locally
I rarely have a problem with that but I keep headphones plugged into them
@R.MartinhoFernandes nope, just tested
16:05
but I've had it happen
...so I'm always surprised when visiting chat on different machine
Oh, block Flash for this page? ISTR that the sound is Flashy.
or you know
not fucking maximum volume pings
and not just a pleasant notification sound
nope, it has to be PIIIIIING
            var chat = StartChat({
                sound: {
                    file: "//cdn-chat.sstatic.net/chat/so.mp3",
                    vol: 65,
                    swfPath: "//cdn-chat.sstatic.net/chat"
                },
Seems like it's still Flash.
unless it’s meant to be the sound file played on the subwoofer
16:12
So FlashBlock should do.
on firefox you can do ctrl+m to mute just the tab
wait can I just put http://cdn-chat.sstatic.net/chat/so.mp3 in my adblock list
Alternatively you can block //cdn-chat.sstatic.net/chat/so.mp3.
@orlp Right.
@ratchetfreak Apparently that's not sticky on Chrome.
Restarting FF keeps the muteness, AFAICT.
someone pls ping me
16:13
FREEDOM
@ratchetfreak Oh, and that's per tab, not per URL, so you need to keep the tab open.
what should github.sncf be about cc @PatrickM'Bongo
@LucDanton That's where new releases to the C++ standard will be released, now that they're following a "train schedule".
why is it that any modern C++ feature doesn't feel like a feature?
instead of 'coool!' I always get 'wait, I couldn't do that before?'
16:21
@orlp Your calibration is off. Please recalibrate your feelings.
nwp
nwp
@orlp I'd say [[nodiscard]] and structured bindings are on the 'coool!' side
Ven
Ven
@orlp blabla syntax sugar, design pattrns and all
nwp
nwp
especially that [[nodiscard]] works on types and not just on functions
@nwp not on all types, right?
only enums and stuff
ohno
also classes
nwp
nwp
well, any type you can declare
16:24
considering it's C++17
nwp
nwp
can't do it on lambdas or ints, but that would be useless anyways
I look forward to using it in 2030
:(
nwp
nwp
nah, you can probably use it in 2019, and by 2025 MSVC will use clang and everything will just work :P
@nwp actually they've explicitly ruled that out, it may share quite a bit of code with clang by that point. But it will be an independent compiler
[[maybe_unused]] feels really annoying, to be honest.
It's really verbose. You won't see me getting away from /*T t*/.
16:29
@R.MartinhoFernandes C++ has never been accused of being too terse
[[possibly_not_in_use]]
Rust simply treats anything whose name starts with underscore as unused.
nwp
nwp
@R.MartinhoFernandes it meant for conditional compilation, like when you only use it in an assert
[[this_might_not_be_used]]
[[nonzero_probability_of_not_being_utilized]]
[[don't_fucking_use_this]]
16:31
@GillBates ' oops
@nwp Hmm. That sounds extremely rare, to be honest.
Like APIs that evolved badly and now have "must be zero" arguments.
I'm really struggling to understand what kind of argument you want to test without using the test result.
nwp
nwp
bool success = do_the_thing(); assert(success);
@orlp Actually, it has, though the people I've heard it from were all accustomed to C# or (mostly) Java.
@nwp don't let bartek haskellewicz see this disgusting side-effect code
16:36
@nwp Yeah, that doesn't look like good code to me.
(Yes, code like that may already exist but no one will go back and add attributes to it; I personally don't think a feature is worth if its justification is "it helps people who are writing bad code")
nwp
nwp
asserting success seems like something a PHB might do
@R.MartinhoFernandes So "compiles code" is a feature we should drop from most compilers? :-)
@JerryCoffin seems not that necessary
tbh
standards compliance is #1 priority
This stance is also why I really don't like the idea of standardizing scope guards.
(Note that this is different from Java's "people can write bad operator overloads"; one can justify operator overloads with good code)
@orlp Yeah; I wrote something of the sort a long time ago, and never actually used it. Also, the majority of "textbook examples" I've seen of usage of such things are bad.
@R.MartinhoFernandes Do you mean all scope-based things that release resources, or just the ones that release resources if and only if an exception is thrown?
@JerryCoffin The former. I thought the latter was not implementable in C++ without caveats (and thus not a good candidate for standardization until those issues are fixed in the language).
@R.MartinhoFernandes I've used it in the past to do some simple resource management for C apis
@orlp I just write RAII wrappers.
16:46
@R.MartinhoFernandes if I only use a certain part of the API, and only once, that seems super ugly to me
(If by "simple resource management" you mean "it was throwaway code", you are making my point)
1. my wrapper is incomplete (or I waste a bunch of time)
2. the wrapper is used once (I wasted a bunch of time)
I find that most of such wrappers are trivial to write as unique_ptr typedefs, so I reject your assumptions.
@R.MartinhoFernandes only if the specific destructor requires nothing else but a pointer, and the API in question returns exactly a pointer handle
@R.MartinhoFernandes Can I presume that you're not, however, including RAII wrappers, like most containers? So your objection is primarily (exclusively?) to the templates that purport to let you tack on RAII to a type not otherwise designed for it, rather than to classes that were designed to provide RAII for some particular resource from the beginning?
16:50
@JerryCoffin Right.
nwp
nwp
why did we not get std::unique_handle? :(
@orlp Also, this remark is a strong argument against standardization.
"It rarely comes up"
@R.MartinhoFernandes I'm not saying I favour standardization
I'm just defending that occasionally scope exit handlers are useful
@R.MartinhoFernandes In that case, I agree--and I'm a bit surprised. I kind of thought I was the only one who disliked these.
I've read about them (of course), and I find them a little bit intriguing, but I'm pretty sure I've never written real code that used one.
The combination of "it rarely happens" and "it saves me three lines of code" kills any interest it might have sparked in me.
@nwp The one time I saw this proposed it came in a package with scope guards and worse things (things that were actually harmful and not simply "why would you?").
(And unique_handle wasn't really much different from unique_ptr)
17:01
I have to agree, scope guards are meh, but unique_handle seems very useful, for example for managing file descriptors
where writing a deleter is not obvious
@milleniumbug But then that's the sort of thing that needs something real.
Using unique_handle is half-assing it.
nwp
nwp
opengl handles come to mind, they are just ints but otherwise behave like void *
unique_ptr can handle OpenGL handles.
Ven
Ven
WTB finally
@R.MartinhoFernandes and that real thing can be written on top of it
17:03
@milleniumbug Fair enough, but then it's just a really thin layer over unique_ptr. Not worth the effort to make std IYAM.
user1804599
@Ven Boost.ScopeExit
nwp
nwp
@R.MartinhoFernandes how? Do you allocate an int for it or put it in a void *?
@R.MartinhoFernandes Okay.
user1804599
What's a harlequin?
user1804599
17:06
Oh, apparently Harley Quinn is a harlequin.
user1804599
lol
user1804599
> a mute character in traditional pantomime, typically masked and dressed in a diamond-patterned costume.
user1804599
@BartekBanachewicz is there something like luaL_pchecknumber?
user1804599
I don't want Lua to throw exceptions over Rust code. It'd break horribly.
user1804599
@R.MartinhoFernandes Reminds me of Electroplankton. Great game.
17:33
@JerryCoffin I fucking hate scope guards, they're dumb as shit.
user1804599
Apparently they film those in Italy.
17:50
Alright, so embedding C Calls to things like Vulkan is a bit harder than expected... ;;
This is gonna take a bit for me to figure out how to do proper.
Vendoring LLVM is not my favorite idea.
@orlp I like how it feels :)
@Morwenn am I supposed to feel dirty now?
Of course :D
it gave me a 'nine inch nails' feeling
Right. There's a similar atmosphere.
17:57
0
Q: Is every line of a program has its own address

anna pooraniI'm learning function pointer in c programming. I came to know function pointer stores the address of starting point of a function . Let us consider a program #include <stdio.h> void display(); int main() { void (*ptr)(); ptr = &display; (*ptr)(); return 0; } void display() { print...

will be the size of address for #include <stdio.h>
tfw trying to take the address of include files
user1804599
XD
is it possible to filter questions based on asker rep?
I know that SO would never implement such a thing in an easy way because it would choke off their newer users
user1804599
Yeah.
user1804599
It used to be possible.
but my god is all the 'new user' question a bunch of crap piled on crap
user1804599
18:00
But not anymore apparently.
user1804599
You can use the Stack Exchange Data Explorer :P
I love contributing, but I don't love wading through piles of horseshit to get to someone who deserves an answer
@orlp wow sofa king we todd ed
@Puppy That's one thing I like about you--you're not halfway about anything. :-)
like this
0
Q: How can i check if my vector contains an integer? Strngstream?

Vinny ASo i created a code that reads in a file and puts each word into a vector. pretty much to sum it up, a space is what separates the word and assign them to the vector. So if file says "hello my name is", v[0] has hello and so on. Im now trying to check if the v[i] contains a number. This is a port...

you could probably set up some markov generator
that is indistinguishable from the regular garbage asked on this website
with little effort
that's how bad it is
18:02
@JerryCoffin I've ranted about scope guards many times here, and I know there are others here who feel the same about them- they're a terrible thing that promote terrible code caused by terrible programmers
> pretty much to sum it up, a space is what separates the word and assign them to the vector.
@Puppy I'll take your word for it. I must have either missed those rants or (more likely) just forgotten them.
I need to fucking start a website
'markov or stackoverflow'
user1804599
ya in a similar fashion
wasn't there one for pokemon and database technologies or smt
user1804599
18:04
bacon or beercan
user1804599
herpes or hairpiece
@orlp Kind of reminds me of an idea a friend of mine had. After you graduate from high school, you go to a one-week class that's basically "how to not be a dumbshit asshole". If you fail (or skip the class) you're treated as a child--no voting, no drinking, no smoking, no rights, need a guardian. If you pass, you give up the right to be dumbshit asshole, and sue people because coffee is hot and equally stupid crap. Oh, and you lose the right to ask most of the questions posted to SO.
user1804599
Going to London tomorrow.
@JerryCoffin I dunno, that coffee is hot suit seems like it could be legit.
Ven
Ven
Someone literally just told me this. "Stop innovating, you terrible person." https://twitter.com/jezenthomas/status/783365342752014337
Strawmen are amazing! Telling people to quit programming is also nice and c ool
18:06
I love this
"Why doesn't the console output the right answer?"
ya I'm sure the issue is the console
user1804599
TIL Emacs has a calculator.
user1804599
And it's the best calculator interface I've ever used.
'Why does the car drive into a wall?'
although now with self-driving cars this analogy starts to breakdown...
Ven
Ven
@rightfold you've never seen the art mode!
it's amazing
(it's even more amazing if you enable mouse support)
user1804599
Ok, I need a name for my new programming language.
18:07
@rightfold Rable
@rightfold Won'tgetfinished
wait
sec
@rightfold IWCT
Ven
Ven
@rightfold what is it?
user1804599
I'm going to the batman wiki, click random, and pick the title page.
Ven
Ven
@orlp you're using the lounge's memes much more nowadays
18:08
@Puppy I disagree. The expected temperature of coffee is anything up to and including boiling. If they put it in a plastic coffee cup, and it was so hot that it spilled on you because the cup melted, sure, reasonable cause for a law suit. Suing because you expected it to be lukewarm, and it was actually hot is nonsense.
user1804599
"Cassandra Cain/Gallery" it is
user1804599
CC/G
user1804599
Sounds cool enough.
user1804599
call with continuation, G
damnit
I wanted to make a cool latin name
that translates to 'never finish' or smt like that
user1804599
18:09
Hexapoda
but meh
@JerryCoffin I prefer my coffee in plasma form
user1804599
@Ven Working on Javascript, but talks about "moving the state of the art forward"...hmm. SO or Markov chain?
@JerryCoffin The coffee shouldn't be warm, but there's a large gap between "warm" and "causes third degree burns".
Ven
Ven
@JerryCoffin They also do PureScript. Yes, like rightfold
And I've been convinced for a while now that @rightfold really is just a Markov chains bot.
11
user1804599
18:11
PureScript is great.
pandas pygame wordpress android php mysql scrapy swift vbscript node.js asp.net vba vb.net
these are the tags I have ignored
I need more
think I'm gna add javascript
yeah
user1804599
@orlp 12 shitty technologies!
I'm gonna rename my next project to Pegasus.
@Puppy might as well go straight for MLP
18:13
@Puppy You may prefer your coffee cooler than boiling, but having that as an expectation is simply misplaced and wrong.
ok guys
markov or SO?
> How to check whether the first number is greater than to second number? if the first number is less than to second number it will do some do while loop? The question is where should I put the do while loop and how the syntax? thanks!
@orlp SO.
@JerryCoffin you sure?
ok
markov or SO?
> I need to create user by java with Data Base oracle with profile security to any user i created ? enter image description here Profile for password like this
user1804599
18:16
XD
@orlp Of course not. Any sufficiently advanced technology Markov generator is indistinguishable from magic idiocy.
6
user1804599
SO makes Turing tests easier to pass
@SiddharthVenu Straw.
I mean if you look at that guys profile
"bachelor, ucas"
I hate to break it to you mate
but it's not gna work out
if you're a bachelor in an english speaking country, and this is the best you can produce?
user1804599
18:22
Maybe he had a TIA.
user1804599
Please don't preach ableism.
user1593881
Does anyone of you know who wrote that tutorial on cplusplus.com/doc/tutorial?
dunno but if it's wrong, I'm not surprised
user1593881
Actually for a beginner I think it's golden
user1593881
Much better than most of what formal education has to offer on the subject
18:29
@Ven I doubt it. Or at least if it is a Markov chain generator, it's not a very good one. Good Markov generators routinely produce output that leaves you scratching your head because it almost makes sense. This rarely happens with rightfold.
Ven
Ven
@JerryCoffin Good point. Maybe it's a markov generators, and then the words are randomly sorted?
@JerryCoffin And that implies that any sufficiently advanced Markov generator is indistinguishable from rightfold.
:P
user1804599
@RawN You can't judge that if you're a beginner.
user1804599
cplusplus.com's tutorial is awful.
user1804599
It's really really bad.
Ven
Ven
Note - not that you'd ever hear rightfold say something is good. Except for cobol.
user1593881
18:32
Why do you think that?
Ven
Ven
cue "OMG COBOL".
@RawN because c++ is really really bad
user1593881
@rightfold I am interested to hear what makes you think that?
user1804599
It teaches bad practices, such as use of obsolete language features, and it doesn't teach things that are essential, and it also claims things that are not true.
user1804599
@Ven I think the PureScript book is pretty good.
Ven
Ven
@rightfold I think we talked about this already
user1804599
18:33
I can't recall.
Ven
Ven
I really don't like the PS' book because I don't find book that just reharse things to people that know, and doesn't teach to people that don't very interesting
user1593881
Well I wasted ten years with Delphi, to me that site was a revelation 2 years ago.
user1804599
I want an evil clown themed name.
Ven
Ven
I need to learn delphi
@Ven I am the Oracle of Delphi. Ask your questions, and I shall give you answers that you can rely upon 100%.
user1593881
18:37
Now I am preaching to all my fellow Delphians what a universe of possibilities c++ is
user1593881
Sadly they don't want to hear about it.
user1804599
Nobody wants to learn about C++.
user1804599
Rust made C++ obsolete.
@rightfold Oh, how I wish this were (even close to) true.
@rightfold lol
user1804599
18:40
Using C++ when you can use Rust is really dumb.
Ven
Ven
Go made Rust obsolete. Rekt!
user1804599
Totally different use cases
Ven
Ven
At least Go has HKTs, so clearly it's superior!
user1804599
Go is a DSL for network apps, Rust and C++ are DSLs for apps that can't use GCs.
TIL rightfold has gone insane
user1804599
18:42
more like wise
@ScarletAmaranth Only today?
@ScarletAmaranth There are two classes of people who see the world as they wish rather than how it really is. One is psychotics. The other is entrepreneurs. Distinguishing between the two can be difficult.
@JerryCoffin I have looked at the world.
My conclusion was to close my eyes.
@JerryCoffin So how's your multiprocessor thing coming along, open to long-distance collaboration yet?
multiprocessor?
18:51
I don't know how to name the architecture thing vOv
@ScarletAmaranth Ah, I meant to post this a couple days ago. We now have a form you can fill out: knupath.com/products/developer-board-program
@JerryCoffin uu, nice!
@orlp Processor with 256 cores per chip (and ability to connect multiple chips with a minimum of glue logic).
@JerryCoffin why? cache? shared memory? GPU?
@orlp Oriented primarily toward HPC. Definitely not GPU (nor competing directly with it). Designed to work well for tasks (e.g., sparse matrix operations) where GPUs work relatively poorly.

« first day (2180 days earlier)      last day (2994 days later) »