« first day (1815 days earlier)      last day (3126 days later) » 

user1804599
9:03 AM
Operations on them are also reasonably efficient I think.
 
user1804599
Or maybe not, I don't know actually.
 
user1804599
It needs to find the GCD every now and then.
 
Fortunatey, you can skip the GCD when adding or subtracting regular integers. The naive operation will produce a normaized fraction.
 
user1804599
Cool.
 
user1804599
Money is often not integers though.
 
9:09 AM
0
Q: Adding a natural number to a normalized fraction

MorwennI am currently writing yet another rational number class where the fraction should always be normalized. When adding a natural number to a normalized fraction, it possible to get a non-normalized fraction? In other words, if I compute r2 := r1 + n where r1 is a normalized fraction and n a natura...

 
user1804599
money money money must be funny in a rich man's world
 
@elyse you have scary words for all things :)
 
Ell
@Morwenn wait why?
ohh wait
 
@Ell See the Q&A on Math.SE :p
 
Ell
adding a natural number
 
user1804599
9:10 AM
@JohanLarsson in C#:
 
user1804599
void f(object a, object b) {
    // here, a and b may be aliases
}

var a = new object();
var b = new object();
f(a, b); // no aliases
f(a, a); // aliases
 
user1804599
Rust forbids f(a, a) if a is &mut.
 
SG is subgroup?
 
study group
 
or stargate
 
user1804599
9:12 AM
SuicideGirls (NSFW)
 
&mum <- reference to big object
17
 
user1804599
Fun-fact: the Earth is 2015 years old.
 
user1804599
If something is N years old, then it's also M years old where M < N.
 
I see the coolness of that but no
 
> Therefore, we propose that Annex K be either removed from the next revision of the C standard, or deprecated and then removed.
 
user1804599
9:17 AM
 
@elyse I discovered later that the optimization was already implemented in Boost.Rational though. Obviously, I wasn't the first to think it would work :p
 
user1804599
> The name "Rust" originates from the fungi of the same name.
 
user1804599
TIL
 
user1804599
> Rusts are plant diseases caused by pathogenic fungi of the order Pucciniales (previously also known as Uredinales).
 
> disease
yes
 
9:26 AM
so I have to give this sort of motivational talk about C++ at work and preparing it is just demotivating me
7
 
lol talks about languages
 
well, not strictly about C++, more about CppCon, but the idea is to elicit enthusiasm
 
lol enthusiasm in programming
 
the point is I know most people will just be bored and negative
and that's demotivating me from the start
 
9:28 AM
@AndyProwl You motivate people about programming languages by showing them cool programs written in them.
 
@AndyProwl show them bearded lambdas!
 
@fredoverflow yeah that sounds like the right approach
 
user1804599
Armor stands are the weirdest thing in Minecraft.
 
user1804599
You can use them for everything, including implementing ray tracers.
 
but I have no cool C++ program to show that I can prepare in 2 days
Niebler's talk is probably what gets closest to it
 
user1804599
9:30 AM
Armor stands are like monads.
 
// minimal cool C++ program
int main()
{
    // no need to return 0; in C++!
}
 
user1804599
That's retarded.
 
@fredoverflow I'd get a really quick "get out" unless I can say it in a funny way and saying it in a funny way is hard
 
user1804599
They should have made it so that void main would be allowed instead, at best.
 
user1804599
Like in C# and D.
 
9:31 AM
You know what else is hard in a funny way
 
@AndyProwl Show them my nested variadic lambda expansions! <3
 
user1804599
My penis.
 
@GregorMcGregor and really quick? I know bby
 
@AndyProwl Take the negative-overhead abstraction talk about coroutines. It's written to be motivational.
 
coproutines
 
9:32 AM
@Griwes yeah, I have problems reading that
@Morwenn I'd have to explain what coroutines are. I don't understand coroutines.
 
user1804599
Show them how badly ADL is done in C++.
 
@AndyProwl :D
 
copoutine
 
@AndyProwl Fair point.
 
user1804599
9:33 AM
@AndyProwl lol
 
user1804599
@fredoverflow computism!
 
uh
I wrote a test for a new feature to implement like TDD says you should
 
Wow, people discussing the allocation of proposal numbers and the ownership of proposals in the future proposals forum.
 
I run the test and it passes
Turns out there was already everything needed in the code to make the feature work as it should in the test
next..
 
It's always surprising when the tests work.
Even more when you expected them to fail for a very specific reason.
 
9:36 AM
I expected them to fail because I didn't wrote any code for that use case yet
 
in general when you do TDD by the book tests should not work the first time you write them, but yeah it can happen
 
They kinda "fell into working"
It sounds better in French
tomber en marche
 
pit of sucks ass
 
lol
 
^ that's C++
 
user1804599
9:37 AM
@fredoverflow Flag is misogynist
 
@Mr.kbok I tried TDD the other day, and I must say writing the test first is a lot more fun than getting the feature to work and then write the test after the fact, cause then I'm always "Okay, time to commit, wait, fuck, still gotta write the test..."
 
Tits Driven Dick
 
@fredoverflow yeah, if I don't do TDD I just don't write any tests :P
 
@fredoverflow Yeah, right :D
 
it also makes it likelier that you write testable code in the first place
 
9:39 AM
Writing tests for already working code is plain boring. Regression tests are a bit less boring.
 
@elyse Don't you have programming languages to design and implement? ;)
 
user1804599
No.
 
user1804599
That's boring.
 
user1804599
Fuck it.
 
@elyse lol
 
9:39 AM
@fredoverflow But that fails terribly if you are prototyping a new subsystem or something :P
 
@Griwes Sure, I'm more talking little features like implement an operator in a compiler or something.
 
you don't need TDD for quick prototyping
 
user1804599
Combat all Gutmensch.
 
@elyse your avatar is offensive; it discriminates against regular brick boxes
4
 
just don't end up productizing the prototype
 
user1804599
9:40 AM
@Mr.kbok ?
 
user1804599
@AndyProwl You must have never heard of protoduction.
 
@elyse The ones without the question mark.
 
user1804599
@Mr.kbok Fuck them.
 
:O
 
user1804599
9:41 AM
@fredoverflow ...
 
Wow, just wow! :o
 
user1804599
fredoverwow
 
lol
 
such offensive wow
much trigger
 
user1804599
Flack Overstow
 
9:42 AM
very lounge
 
elyse in Wonderland
 
lol
 
user1804599
lol
 
last minute edit success
I had 3 seconds left
 
The Lounge should be somewhere in the C++ Lands map.
Probably in Terra Incognita.
 
9:43 AM
No it's the goat hams
 
Its definitely a black hole.
 
user1804599
Perl 6 has so-called type modifiers written as :D and :U but everybody calls them "type smileys".
 
user1804599
I want to implement Perl 5 in Rust.
 
user1804599
fish also shit in the river
 
user1804599
9:47 AM
so why not humans
 
I don't think that's just shit
or rather
 
because its not only excrement
 
right
 
also other wastewater
 
user1804599
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
 
user1804599
9:49 AM
I SEE
 
pantoona is high again
 
user1804599
🕴🕴🕴🕴🕴
 
this begs the question (no it's doesn't): where's Bartek today?
also no answer from Martin :(
 
@elyse DEAD PEOPLE
@AndyProwl sulking ref
 
user1804599
 
9:51 AM
Don't look at andy
Dat flag
 
Xeo
Crap.
 
user1804599
use Carp;.
 
Xeo
I did a sudo apt-get upgrade and now I'm stuck on a login loop on our Linux buildmachine :<
 
in Java and Android era , 5 secs ago, by sehe
Here's a rule that doesn't suck: don't use flags
 
@elyse happens to me every day
 
user1804599
9:52 AM
The function names in Carp are funny.
 
afk getting the kids
 
Carp Die
 
user1804599
Precondition violation is called croak. Internal error is called confess.
 
user1804599
Printing a backtrace for debugging without failing is called cluck.
 
Xeo
ffs
why do things just break
 
user1804599
9:54 AM
Because you write C++ code.
 
@Xeo I have asked myself this many times
I have yet to come up with a good answer, besides "its software"
 
Xeo
3 mins ago, by Xeo
I did a sudo apt-get upgrade and now I'm stuck on a login loop on our Linux buildmachine :<
 
user1804599
Ask @CatPlusPlus.
 
user1804599
He knows all about apt-get.
 
9:56 AM
@elyse Are you becoming the next Terry Davis? :)
 
user1804599
what is Terry Davis
 
user1804599
help
 
TempleOS (formerly SparrowOS or LoseThos in development) is a biblical themed lightweight operating system created over the span of a decade by programmer Terry A. Davis. The software is a x86-64 bit, multi-tasking, multi-cored, public domain, open source, ring-0-only, single address space, non-networked, PC operating system for recreational programming. The operating system was designed to "talk with God" according to Davis and uses an interface similar to a mixture of DOS and Turbo C. Davis describes the operating system as a modern x86_64 Commodore 64 with C in place of BASIC. == History... ==
 
oh that guy
 
user1804599
oooh
 
9:57 AM
> The operating system was designed to "talk with God" according to Davis and uses an interface similar to a mixture of DOS and Turbo C.
Maybe I should try it someday.
 
The code for that thing is absolutely crazy.
I guess code does reflect the brain of the programmer.
 
@Griwes In a good or bad way?
 
user1804599
Is there also an OS that is designed to talk with Allah?
 
> Because Davis often communicates in blocks of text produced by his oracle, or with apparently off-topic declarations about God, he’s had accounts ​​banned from SomethingAwful and Reddit. He can be aggressive and confrontational, sometimes denouncing critics with profanity and call them "nigger."
woah
 
user1804599
And will you be beheaded if you don't use it?
 
9:59 AM
@fredoverflow ...bad
ah
you are quoting from that.
 
user1804599
> Shift-F7 inserts a Bible passage. (Or, less revelatory, the copyright notice from Project Gutenberg’s e-text Bible.)
 
user1804599
lol
 
@elyse ty ty
So I was out of dog food this morning, gave sandwiches to the guys.
Bought lunch from the restaurant and brought home to them.
Posted a schnitzel through the mailbox in the door.
They don't see that often.
 
user1804599
@fredoverflow I wish I could live without a job and work on the same project 24/7.
 
10:13 AM
Woot, have the Internets at home
 
@elyse I am already planning for my early retirement so I can do exactly that ;)
 
I do the opposite, usually work on work stuff at home.
Or at work for free in weekends.
 
Why?
 
I tend to get bored with hobby projects when the hard pars are solved.
Work projects always move forward.
Also they are fun projects with a nice mix of maths.
Very little crud and no db.
 
Where do I apply?
 
10:18 AM
I wanted to implement optional bounds checking in one of my classes but it's not really bounds checking, so I don't know how to call that :(
 
...So what is it?
 
@fredoverflow Crappy times at the moment, not much hiring now.
OptionalButNotReallyBoundsCheck
easy, next
 
@JohanLarsson JamesBondException
 
Watching a presentation about akka.net
 
@fredoverflow So, a bit of context: I am still working on my sorting library and I have some fixed-size sorting algorithms. However, so that they satisfy the Sorter interface, I have to give them two iterators. However, the last one is unused since we gave the number of elements to the algorithms. So I thought that I could give a policy class to the sorter so that it can optionally check that the number of elements we want to sort actually corresponds to the distance between the iterators.
 
10:21 AM
kaka.net
 
double k is nice
 
@JohanLarsson Oh yeah, don't they have this marketing campaign: "Learn akka, sucker!"
 
not seen it
 
@fred nice. Let me do some more sorts with that :)
 
Knock yourself out :)
 
10:24 AM
what does skorbut mean?
 
> Skorbut is German for scurvy, caused by a deficiency of vitamin C. Funny!
 

Rust

In Rust we trust! Rust is a systems programming language focus...
Gonna try to thaw ^
 
@fredoverflow scheurbuik in Dutch
 
@StackedCrooked Wanna translate the tool to Dutch? ;)
> This room is frozen; new messages cannot be added.
 
user1804599
10:33 AM
I'm going back to Emacs.
 
user1804599
Vimscript sucks and Emacs Lisp is nice.
 
Write your own editor
 
@fredoverflow English should be fine for Dutch people.
 
3 mins ago, by Johan Larsson
Gonna try to thaw ^
 
@JohanLarsson Oh. I stopped reading after "gonna try" :) What does "thaw" mean?
@elyse Why is Batman not a Lisp programmer?
 
10:38 AM
Good morning.
 
@fredoverflow unfreeze something
 
@GregorMcGregor so you, knowing well enough, engaged in an illegal activity, and are now trying to pursue legal action
 
@Nooble Good morning ^_^
 
that's like a gangsta who's going to court to sue other gangsta for robbing him off his coke deal
 
user1804599
@fredoverflow Because orphans don't program in lisps.
 
10:39 AM
@BartekBanachewicz Well I didn't know it was illegal
 
@elyse He has no parens!
 
@Morwenn ^~^
 
@BartekBanachewicz Coke sponsors ganstas?
 
user1804599
@fredoverflow Tools are rarely translated to Dutch, since unlike German, French, Japanese, Russian and Spanish people, Dutch people can actually speak English.
 
user1804599
10:40 AM
@fredoverflow XD
 
@GregorMcGregor this might help slightly
 
user1804599
I always see tools translated into German, French, Japanese, Russian and Spanish. :p
 
Often translated terribly. I think Visual Studio translates "lvalue" as "L-Wert", which of course doesn't make any sense to beginners.
 
user1804599
lol
 
user1804599
links-Wert
 
user1804599
10:42 AM
linkswaarde
 
also ffs how long has tortoiseSVN been around
 
user1804599
@fredoverflow how is "ADL" translated? AAS?
 
dunno
 
user1804599
"Koenig finden"
 
lol (Koenig means King, for those who don't know)
 
user1804599
10:44 AM
sjablooninstantiatie
 
user1804599
functielidsjabloon
 
user1804599
this is silly
 
user1804599
> Andrew R. Koenig (born June 1952) is a former AT&T and Bell Labs researcher and programmer. He is the author of C Traps and Pitfalls
 
user1804599
Ah! So he created all those traps and pitfalls!
 
user1804599
That bastard.
 
10:48 AM
lol
 
Shitty weather over there. It does not motivate to do anything.
 
user1804599
Play Minecraft.
 
ikr
 
user1804599
It's the perfect game to play when the weather outside is frightful.
 
should be summer every day
 
user1804599
10:50 AM
No. Fuck insects.
 
Winter is nice
 
@elyse and when the fire is so delightful
 
user1804599
firefly
 
user1804599
I have firefly-shaped earrings.
 
@BartekBanachewicz longer then ur mom
 
10:51 AM
I call the season that starts after the leafs fall off 'svartmörkret' the black darkness
 
but not wider
 
Ends when snow starts to fall
 
-9
A: Arrays are Pointers?

LearnerFew points of differences : An array name is a pointer to the first element. It is a constant pointer. you can add an integer to a pointer or subtract an integer from pointer, where as in case of array you use subscript operator.

need delete votes
 
user1804599
A man in Switzerland won a price for biggest pumpkin.
 
user1804599
750 kg.
 
10:52 AM
can't delete an accepted answer can you
 
user1804599
Why'd you grow a 750 kg pumpkin.
 
user1804599
It's an SPF.
 
At that weight I'd called it a mumkin
 
@GregorMcGregor Sure you can, I just voted to delete.
 
user1804599
I can't vote for deletion.
 
user1804599
10:53 AM
I don't have the necessary koalafications.
 
done
 
I like sunny Autumn. Not the overly rainy one :(
 
Just got a gold C++ badge :) Yay :)
 
@AndyProwl lol, that makes it the 4th deleted answer for that question :)
 
@TonyTheLion well done!
 
user1804599
10:54 AM
Someone should make a bot that finds C++ answers that advocate new or say arrays are pointers.
 
user1804599
It'd be a nice NLP exercise.
 
@TonyTheLion Don't get too excited. I worked my ass of for 5 years, they sent me some cool stackoverflow stickers, but just a couple of weeks later, they decided to change the logo :(
Now my stickers are practically worthless!
 
awww :(
 
user1804599
grep 'arrays? (is|are) pointer'
 
@elyse Neither do I :(
 
10:57 AM
@TonyTheLion On the bright side, they also sent me StackExchange stickers, Programmers stickers and SuperUser stickers.
 
@TonyTheLion I'll buy it off you.
 
@fredoverflow Nice :)
@Nooble Heheh I doubt it is transferrable
also, morning @Nooble!
 
@TonyTheLion Now all I need is something to stick them on...
 
@fredoverflow your forehead? :P
 
I wouldn't be able to see them there.
 

« first day (1815 days earlier)      last day (3126 days later) »