« first day (1648 days earlier)      last day (3301 days later) » 

8:00 AM
BTW @thecoshman I've done some research and it turns out that A-level uses 650cc Suzuki bikes on tests :S
the one that other guy crashed himself on a year ago in Poland and died IIRC
hm, that sentence is a bit borked
 
@BartekBanachewicz odd that they are specific about the make, but yeah, they like to test you on a hefty sized bike
makes sense really
no point saying you are good to go when the biggest engine you have driven is a lawnmower
 
@thecoshman TBQF I think it's not going to be much harder than on my current one, at least I won't be afraid of being passed by everyone on greenlight
 
then you could go get a big 2l monster bike
 
I mean some things are harder when you have less power
 
holy shit this Q exploded
16
Q: Default, value and zero initialization mess

GabrielI am very confused about value- & default- & zero-initialization. and especially when they kick in for the different standards C++03 and C++11 (and C++14). I am quoting and trying to extend a really good answer Value-/Default-/Zero- Init C++98 and C++03 here to make it more general as it would ...

 
8:03 AM
not even talking about overtaking because it's nonexistent in my case
 
@BartekBanachewicz from what I've heard, around 150-200 is a good learner size. less then that and you just don't have to grunt to move when you want. But as they get bigger, well, they get bigger :P
 
c++ c++11 c++14 c++03 c++98 c++ c++11 c++14 c++03 c++98 c++ c++11 c++14 c++03 c++98 c++ c++11 c++14 c++03 c++98 c++ c++11 c++14 c++03 c++98 c++ c++11 c++14 c++03 c++98 c++ c++11 c++14 c++03 c++98
 
but starts, going uphill, the like
@thecoshman sounds about right
but I'm not going to pay for the A1 course just to drive the 125cc for one year, fuck that
 
In UK at 17 you can have up to 125 on L plates...
 
yeah in UK it's totally different, because you can slap L and go
 
8:04 AM
IIRC they don't differentiate...
 
in Poland you have to drive with a qualified instructor
 
@BartekBanachewicz oooh
 
which makes practice really shitty
 
wait... you can't practice on your own?
 
8:05 AM
$cam
 
special car (with doubled pedals) and an instructor
@thecoshman vOv
 
@BartekBanachewicz huh? we talking bikes I thought
 
@thecoshman it goes for both cars and bikes here
so really no difference
 
oh right, no in UK you can't just drive cars on you own, you need someone who has been qualified for two years in passenger seat
 
user1804599
lol you need a license to ride a bike?
 
8:06 AM
I know.
but that can be a family member or a friend so...
 
> around 150-200 is a good learner size
 
@rightfold yes... yes you do need a licence to drive a tank of liquid explosives around public areas...
@BartekBanachewicz or some hobo vOv
 
well that's why I'm happy I can drive that 50cc right now, because you get the equal feel of everything, you need to remember about turn signals and the like
 
you can drive 50 on your own?
 
yep.
well, it changed now
but if you turned 18 before jan 2013 you keep that privilege
 
8:08 AM
odd way of doing it
 
they couldn't/didn't want to take that away from people, so...
 
in Ireland as tighten it up, it's based on when you go the paper work
 
right now you need AM even if you're 18
 
so they say that any one who hasn't got the provisional by June will be subject to this new regulation
 
OTOH if you have B for 3 years, you can drive up to 125cc
 
8:09 AM
I really don't like that, I don't care how long you have driven a car for, bikes are not the same
 
but since I've passed B on friday, I'm not going to wait for 3 years :S
@thecoshman they are very similar in traffic
 
fucking flagdians
 
driving a motorbike is way closer to driving a car than a bicycle
 
oh, in UK you have to do a CBT (Compulsory Basic Training) before you are allowed to drive the bikes. It's a quick day course to make sure you are technically able to drive the thing
@BartekBanachewicz It's the idea of just letting some car driver have it
125 is small, but it's still enough to do serious damage
3
 
SCNR
 
user1804599
8:11 AM
SCANNER
 
I was going to s/125/my cock/ by then I realised what I would be saying :P
 
@thecoshman my GFs brother is thinking about that
 
wtf is this flag
 
@thecoshman so?
if you've driven a car for 3 years you're pretty well prepared IMHO
also most of the car drivers go voluntarily for some supervised practice
 
@BartekBanachewicz yeah, for being ont he road, but not for controlling a bike.
 
8:13 AM
@thecoshman there's really not much more to "don't fucking go all open on the gas"
 
@BartekBanachewicz some form of CBT should be mandatory IMO. Just to make sure you can actually control that fire ball waiting to happen.
@BartekBanachewicz it's not the getting it moving that concerns me
 
Can people stop starring things out of context
That's nasty
2
-.-
 
@thecoshman modern brakes are p good. You just have to remember to use them.
well, how about "don't go too fast if you're not comfortable"
it's all about common sense
 
@BartekBanachewicz brakes only work when you are on the wheels still
 
@thecoshman you'd be surprised how hard it is to fall actually
 
8:15 AM
how about don't just let people drive of on death waiting to happen.
 
like, when braking on a bicycle it's common for the rear wheel to lift off
this is p much impossible on 125cc
 
user1804599
I want to ride my bicycle.
 
not again
are you naked?
 
@BartekBanachewicz sure, if driven sensibly.
ITT Sehe is Rightfold's bicycle
 
user1804599
@sehe No.
 
8:20 AM
@BartekBanachewicz wait what did you know him
 
@sehe not really, no. I just read about his accident.
 
I imagine there are a few more stories like that though
 
and only yesterday I've realized the bike he was riding is the "official" test one
 
Sh
 
from what I've seen he had a few dozen meters to accelerate tops
and it put him so hard in the back of that van that the rear doors fell off
yeah well modern 650cc is serious business.
 
8:21 AM
What model?
 
Gladius SFV 650
 
to be fair, even some modern 200ish can have some serious stink
 
user1804599
Does the standard specify what a compiler must do with an ill-formed program after emitting the required diagnostic?
 
no
 
8:23 AM
no
 
user1804599
So do ill-formed programs result in UB?
 
@rightfold Hell++ can do the right thing
 
yes
 
user1804599
Or is it implementation-defined what happens?
 
8:24 AM
French toast!
 
user1804599
@Rapptz Nice.
 
@rightfold no, it's certainly not that
 
well... technically it's always implementation defined... just a question of if the implementation is doing the 'right' thing.
 
look for "behaviour of ill-formed program" in the standard or something
@thecoshman wrong.
"implementation-defined" means the impl has to be consistent
 
user1804599
Implementation-defined requires that the implementation documents what it does.
 
8:25 AM
UB doesn't have that requirement
 
@BartekBanachewicz bitch don't give me that shit!
 
@thecoshman it's an important difference
 
@rightfold doesn't mean that it has to be 'correct'
 
> If a program contains a violation of a rule for which no diagnostic is required, this International Standard places no requirement on implementations with respect to that program.
 
@thecoshman of course not, no one said that
 
user1804599
8:25 AM
@thecoshman it's correct as long as it satisfies all requirements.
 
@BartekBanachewicz it's also irrelevant to what I said.
 
user1804599
@Rapptz What if a diagnostic is required?
 
@thecoshman well... technically it's always implementation defined... is wrong
 
@rightfold doesn't mention anything
 
user1804599
8:26 AM
Nice.
 
@BartekBanachewicz ¬_¬ I meant that as a joke you realise... as in what ever the implementation does, it is doing what it defined it will do, regardless of what the spec says it should do.
 
> Permissible undefined behavior ranges from ignoring the situation completely with unpredictable results, to behaving during translation or program execution in a documented manner characteristic of the environment (with or without the issuance of a diagnostic message), to terminating a translation or execution (with the issuance of a diagnostic message). Many erroneous program constructs do not engender undefined behavior; they are required to be diagnosed.
 
trying to convert char* buffer {0x40, 0x69, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00} to double but I always get 0.0000 on ideone.com/RmV5gX
 
under the definition of UB
 
@thecoshman the spec isn't concerned with what happens in case of UB
my point is, while you can analyze what happens, you can't predict that
 
8:28 AM
@BartekBanachewicz nor is what I said.
 
the behaviour of the program can change with the temperature outside
> regardless of what the spec says it should do.
 
If a compiler is 'wrong' (according to the spec) what it is doing can be defined by the implementation.
 
if the compiler is wrong it can do p much everything, becuase it's wrong.
do you mean "non-conforming" by "wrong"?
I was under impression we're talking about conforming compilers.
 
exactly, and as long as it has documented how it is wrong, it is still implementation defined, it's just the implementation defined it wrong
> joking
 
user1804599
In Perl 6, 1>>.say is UB.
 
user1804599
8:30 AM
Because Int.say has side-effects and >> requires the lack of side-effects. :P
 
what's >> for?
 
user1804599
If you have a list like 1, 2, 3 then >>.foo will call .foo on each element of the list and return the result.
 
> “<<” is the bitwise right shift operator. Usually, they’re used to manipulate the bits of numbers and do “esoteric” binary calculations, but in C++, operators can be overloaded, which means that we can re-define what they do for different types of data.
I'd certainly call << and >> the stream insertion and extraction operators. You may provide a historical note ("You might recognize these as the bitweise shift operators from the C language. ..."), But really, confusing people with completely uncommon, unimportant, unrelated and unuseful meaning is not very helpful
 
user1804599
The difference with map is that it is allowed to be completely optimised away or parallelised.
 
@rightfold as a new list of results?
 
user1804599
8:32 AM
Yes.
 
user1804599
> (1..10)>>.sqrt
1 1.4142135623731 1.73205080756888 2 2.23606797749979 2.44948974278318 2.64575131106459 2.82842712474619 3 3.16227766016838
 
is the operator '>>' or '>>.'
 
user1804599
>>
 
user1804599
You can also use ».
 
well, why do you have '.foo' opposed to just 'foo'?
 
user1804599
8:33 AM
.foo is a method.
 
@Cinch I'd also replace STREAM_TYPE operator<<(STREAM_TYPE stream, int i) with `std::ostream& operator<<(std::ostream& stream, MyType const& i)
 
@rightfold is that funny double arrow thing?
 
@NeelBasu undefined behaviour
%lf on an unsigned long.
 
Xeo
strict aliasing violation
 
@Cinch which makes the std::cout stream object “eat” it’s input is very confusing. cout eats input?! Maybe its arguments. But that makes no sense. What you are looking for is chaining operators for left-to-right evaluation. (cue: precendence, perhaps with (b? "yes":"no") and/or std::boolalpha)
"You’ll most likely get:" - what part makes it unsure?
@Cinch Ok. Time to provide us with a way to annotate. Is this thing on GH?
 
8:38 AM
0
Q: provability of while loop vs for loop

Vincent AdvocaatI have this teacher, he's quite smart (sometimes, haha) he said good programmers try to use while loops instead of for loops. the reason he gave for this is because while loops can be proven, as in, one can completely explain what happens in a while loop where as you can't do that for a for loop....

wat
 
user1804599
@thecoshman parallelism in action:
 
user1804599
% cat foo.pl6
(1..10)>>.print;
print "\n";
% perl6 foo.pl6
10864297531
 
I bet it's doing it out of order in purpose to make it look more parallel :P
 
@khajvah The question is as unclear as it can get.
Should the teacher say the opposite thing, I could see his point.
 
8:55 AM
@MikeNakis on the contrary. A cargo culter wouldn't ask the question, just perpetuating myths. Perhaps even punishing others for not "adhering to the rule". — sehe 28 secs ago
 
I'm really not a js programmer, but I wanted to try out something different for a project I had in mind
this highly sucks
 
What is "a permissive BSD license"? Should we be searching for it? Which license is it?
 
it's literally LICENSE.md
 
@StackedCrooked well, are you gonna post it on SO after all? It looks like a useful one for others
 
user1804599
Yum, salami.
 
9:00 AM
@Rapptz whoosh
 
@sehe It's a dupe.
 
@Rapptz ah. In that case, nothing lost. (I didn't see it before)
 
@sehe lol, I'll change it
 
I actually guessed and looked for it just now
2
Q: result_of doesn't work for me

Lorenzo Pistone#include <type_traits> using namespace std; struct asd{ void f(); }; int f(); typedef typename result_of<decltype(f)>::type result_free; typedef typename result_of<decltype(&asd::f)>::type result_mem; both the typedefs give an error In file included from ../main.cpp:1:0: /usr/include/c+...

great title
same answer too lmao
:(
 
@rightfold I'd rather go for sashimi
 
user1804599
9:05 AM
WHAT IS SASHIMI?
 
Xeo
> I've thought of result_of and decltype to be roughly equivalent (there are some differences
lol
@rightfold sliced fish
 
@rightfold prepared raw fish
aka yum yum yum
 
user1804599
Meh.
 
user1804599
I prefer salami.
 
user1804599
I have salami with pepper edge.
 
9:07 AM
@rightfold lol, border :P
 
user1804599
In Dutch they're the same word. :(
 
lol, bother :P
 
@Xeo I might as well answer the guy lol
 
raw meat is cool in general
fish or beef
 
cooked meat is hot
 
9:18 AM
a grilled steak is also pretty hot, but keeps the nice raw meat inside
 
@fredoverflow Blasphemy! Rammstein.
 
@rightfold With that name, probably some kind of fancy hipster JavaScript lib
 
Dakota toolkit seems funny (dakota.sandia.gov/documentation.html)
> Dakota, A Multilevel Parallel Object-Oriented Framework for
Design Optimization, Parameter Estimation, Uncertainty
Quantification, and Sensitivity Analysis
 
user1804599
@robjb Ela isn't by Google. It just was hosted on Google Code.
 
user1804599
No idea why one would move horrible host A (Google Code) to even more horrible host B (CodePlex), though.
 
9:25 AM
@ThePhD :( I'm really sad to hear that
 
> According to one estimate, leasing a top-level motorcycle for a rider costs about 3 to 3.5 million dollars for a racing season.
um
 
Grrr. I just found a bug due switch case label fall trhough. In java.
Y U NO FORBID, Java?
(yes I'm aware)
 
switch statements must die
Stupid languages blindly copying very low-level primitive switch statement after a 40 year old language.
 
Xeo
@ThePhD That sucks so bad. :s
@milleniumbug switch is ok. fall-through by default is not.
 
@milleniumbug you apparently prefer if/else chaining. Not every language will have ADT and pattern matching
 
user1804599
9:30 AM
in browsers you can like
 
user1804599
configure proxies
 
user1804599
what protocol does that use?
 
SOCKS, or
HTTP tunneling is a technique by which communications performed using various network protocols are encapsulated using the HTTP protocol, the network protocols in question usually belonging to the TCP/IP family of protocols. The HTTP protocol therefore acts as a wrapper for a channel that the network protocol being tunneled uses to communicate. The HTTP stream with its covert channel is termed an HTTP tunnel. HTTP tunnel software consists of client-server HTTP tunneling applications that integrate with existing application software, permitting them to be used in conditions of restricted network...
 
And HTTP above it.
 
user1804599
9:32 AM
> Socket Secure (SOCKS) is an Internet protocol that routes network packets between a client and server through a proxy server.
 
user1804599
Nice, thanks.
 
@sehe I've actually written a long rant against switch statement. I haven't posted it yet, I need to refine it.
 
user1804599
Switch statements are the one true way to do else if.
 
@Xeo I'm actually against C-like switch statement.
 
My tinnitus frequency is ~17.7kHz, it seems.
 
user1804599
9:34 AM
Fuck fallthroughs and not allowing arbitrary types with operator== defined.
 
user1804599
select > switch
 
match > select
 
Xeo
case > select
 
@milleniumbug I think I can predict the gist. You're right. Anyhoops, switch exists
 
user1804599
Which reminds me.
 
user1804599
9:35 AM
I will have to experience the pain of correctly implementing select.
 
@Andy I'm making some tuned mp3s for aural therapy. I'll let you know in a month how that worked.
 
@rightfold will your language have a great VB6.0 feature like On Error Resume Next ?
that is the cherry on the pie
 
@R.MartinhoFernandes Good luck with that. Is it your own initiative, or did you see a doctor?
 
@R.MartinhoFernandes Let me know if it works
 
Dr. Fetus without the remote detonator is not very good :(
 
9:37 AM
Fingers crossed :)
 
@R.MartinhoFernandes that's pretty high.
I think I have a tiny background noise in that area. Gets worse when I am really really tired (then I have to position my head precisely to be able to sleep). I can disregard it for the rest. I've never considered it tinnitus yet. It's not intrusive, fortunately.
 
@R.MartinhoFernandes I think I can't even hear that
 
@R.MartinhoFernandes Apparently helps with the "getting used" part, right?
 
elim > select
 
@sehe A tiny background noise? A tinytus, in a way.
 
9:38 AM
:D
 
lol
 
Better a tinytus than a platypus in one's ear
 
Xeo
@Rapptz Dr. Fetus is really shitty
 
@Cicada you also suffer?
 
yeah I'm regretting this
thinking of restarting
but I like going all the way through
 
9:40 AM
@Rapptz ?
 
video games
 
Can i call protected member function with object of that class?
 
@androidplusios.design they can be called from derived classes
not directly
 
@thecoshman Yes. Probably not as bad as Robot though.
 
@sehe IIUC the idea is to mask out the frequencies around the tinnitus, so that the auditory cortex cells responsible for those are "trained" less than the others.
 
9:42 AM
What kind of traversal arises from function calls? Something like foo(label0, call_foo(child0), …, call_foo(childN)) where call_foo, well, results in a similar foo(…) call on a given child?
 
Is their any way to call protected member function
7
Any way
 
@AndyProwl Actually, that might be wrong.
 
@androidplusios.design omg starring spree
 
@androidplusios.design Only if you don't mean to kill them or hurt them. They're protected.
 
> octave confusion
The tendency for an individual to confuse sounds one octave apart with each other, and to judge them as being identical. This potential confusion may occur during pitch-matching for tinnitus, where a common error is for subjects to select a frequency that is 1 octave lower than the actual pitch of their tinnitus. Testing for "octave confusion" involves presenting the tone selected as a tentative pitch match in alternation with a tone 1 octave higher, and requiring the subject to select that one of the two tones which best matches his tinnitus.
I might have fallen prey to this.
Lemme check 8.85kHz.
 
9:45 AM
@R.MartinhoFernandes I remember you saying you could hear sounds I could not hear though so it might be accurate
 
I can hear the sound of upvotes
Music to my ears
 
Definitely not 8.85kHz. The only other option is 35.4kHz and that's out of my hearing range for sure.
 
@R.MartinhoFernandes that's really high
 
user1804599
Hmm. I need to iterate an array in random order, visiting each element once and only once.
 
I don't think I'd hear it as a "sound" really
more like a pain or something like that
must be hella annoying
 
user1804599
9:51 AM
I guess I'll just shuffle it and then use a for loop.
 
@AndyProwl it's really unlikely for anyone to hear 35kHz
 
Jan 6 at 12:23, by R. Martinho Fernandes
KILL ME NOW PLEASE.
 
You could create a second list of indices and then shuffle that instead if you want to preserve the order.
 
@R.MartinhoFernandes so how does it feel when you play it on headphones? is it worse?
 
What do you mean?
 
9:52 AM
@BartekBanachewicz Nah, it was 18-20kHz
 
I post an answer, the guy who posts after me and fixes his answer after my reply gets comments from OP, OP says thanks to both of us but gets my name wrong
 
I couldn't hear it, Robot could
 
#JustAlexOnSEThings
 
Actually I could hear 17k IIRC but from my left ear only
my right ear started to fail at 15k
@BartekBanachewicz It's a sound and it's really really annoying
And thankfully mine isn't that annoying
 
@AndyProwl Trying to resist Stack Overflow-esque joke.
 
9:54 AM
@R.MartinhoFernandes do you hear it, like, louder?
 
@MarkGarcia lol
 
@BartekBanachewicz No.
There's no real sound, so there's no wave interference.
I can only hear it louder if I actually play the sound louder.
 

« first day (1648 days earlier)      last day (3301 days later) »