« first day (1818 days earlier)      last day (3132 days later) » 

5:00 PM
user image
11
 
Nice
 
lol
I'm stealing that
 
7 hours ago, by R. Martinho Fernandes
@Xeo do you know a short 3-corner cycle?
 
Xeo
@R.MartinhoFernandes I actually meant Elyse with that
 
5:01 PM
Oh.
 
user1804599
FOOD
 
STILL I PINGED YOU
 
Xeo
But no, I don't :P
 
user1804599
I'm eating ketchup-flavoured crisps. /cc @sehe
 
Xeo
I still haven't learned the proper OLL & PLL algos...
 
5:02 PM
6 hours ago, by R. Martinho Fernandes
U R U' L' U R' U' L
Gonna go with this.
 
@Mr.kbok yeah saw that
 
@Xeo PLL?
 
U R U' L' U R' U' L, (F B') R2 (F' B) U2, setup moves. All you need to know :D
 
@R.MartinhoFernandes IRTA "Gonna go with tits"
 
Gonna try it on my girlfriend.
3
 
5:03 PM
@xeo PLL
 
obvious starbait taken
 
How to snap a neck... With Robor! happy intro music
 
@R.MartinhoFernandes urulural...?
 
user1804599
I just had the weirdest deja vu.
 
user1804599
5:04 PM
I'm FUCKING SURE that I've seen this thing before.
 
user1804599
fuck you brain
 
Xeo
@R.MartinhoFernandes (U R) (U' L') (U R') (U' L), might be easier to remember as a pair of U and L/R (primes)
 
what thing
 
user1804599
y u race condition
 
@Xeo Yeah, easy to remember is the point, but you can't group like that.
 
Xeo
5:05 PM
:P
 
How do you finger-trick (U R)?
 
user1804599
U R M O M
 
Xeo
@R.MartinhoFernandes with two fingers?
 
Hmm.
How do you hold it?
 
Xeo
thumb on FR, middle finger on BR, index finger on BRU, then flick index finger and after that flick middle finger down?
dunno, don't have my cube next to me right now
but that's how I'm visualising it in my head
 
5:07 PM
But that can't corner cut.
I only group when it amounts to more than just doing the moves in sequence really fast.
 
Xeo
mh
 
U (R U') (L' U) R' U' L is how I'd group it.
But grouping like that breaks the memorization potential, which is the important bit for muggles.
[(F B') R2 (F' B)] is both memorable and freaking awesome, though.
 
I have a training on money laundering
 
wtf.. search for "1582"
me, Bartek and robot will yell at you if you mention the 5th of October 1582
 
Minibartek will as well
 
lol
 
@R.MartinhoFernandes NSFW... sort of :\
 
@thecoshman why... why did you plink him
 
yes, nsfw
 
Ell
@thecoshman lol definitely
 
5:23 PM
Okay so i completed my money laundering assesment with a score of 100%. You can ask me anything now
 
@Mr.kbok o_0 isn't it obvious why I plinked robot there?
 
Ell
okay
 
I am a... money laundering expert
@thecoshman Because those are robots fucking?
 
@Mr.kbok so if I accidentally launder my money with my laundry, how do I get it usable again?
 
5:28 PM
@Mr.kbok well ain't you the clever one.
 
@TonyTheLion Run it through the dryer with the laundry, of course.
 
Ell
my isIsosceles function doesn't work :(
 
@thecoshman well I don't plink you with pirate-fucking gifs :'D
 
@Ell bool isIsosceles() { return true; } - fixed
 
5:29 PM
@TonyTheLion give it to an absent-minded cashier
 
hahahaha
 
@Mr.kbok I'm not angry, just disappointed.
 
Don't worry I'll find some for ya
 
@TonyTheLion Might vary depending on the compiler's feelings about the existential nature of truth.
 
@JerryCoffin compilers have feelings now?
 
5:33 PM
@TonyTheLion On second thought, I'll make your life extra easy: just send the mess to me, and I'll take care of it for you.
 
hahahah :)
 
@TonyTheLion Did you ever doubt it? The whole reason any of my code ever compiles is because I'm nice to the compiler.
 
Hey guys - OT for the site, but I'm looking to get back into C++ with all the latest goodies... not too worried about having an IDE, but if I just do a latest g++ on my linux platform, is that going to work out for me do ya reckon?
 
should do, but remember its C++
 
Use clang++-3.7
or 3.8 if you don't mind using a trunk
 
5:34 PM
and ST3 or vim with YCM
 
@JerryCoffin I did doubt it.
 
@bluefog did that group as ST3 or (vim with YCM) or (ST3 or vim) with YCM?
 
@JonClements You can use the latest clang, but g++ 5.2 will do just fine too.
 
bug free is preferred, and I'm not going to use it for production code - so just an easy installable "toy" I can muck about with is fine
 
What's the platform, btw?
 
5:36 PM
@AnalPhabet either of them with YCM
 
@JonClements I always advise having (at least) two compilers around, so I'd get both Clang and g++.
 
@bluefog gudgud
 
@JonClements bug free doesn't exist. :)
 
@JerryCoffin will I notice anything different between the two that I can't just do with one do you think?
 
@sehe moved Nonius docs to nonius.io. 57% more hipster.
 
5:37 PM
@Mysticial it does in my code - I just comment an entire module out - not only does it run bloody quickly, it never produces errors
 
Ell
@R.MartinhoFernandes your code samples are in a serif font for me btw
(no monospace)
 
@JonClements clang has much better error reporting
 
(well - it never produces anything - but it does it very quickly :p)
 
AFAICT clang is a bit faster, too
 
Brilliant - thanks... appreciate the advice
 
5:40 PM
What platform will that be, btw?
 
@JonClements Depending on what you do, maybe. Probably also worth mentioning that you can use either/both on coliru.stacked-crooked.com, so depending on how much fiddling with it you want to do, you may not need to install either (or can pretty easily install only one, and use his for a second opinion when/if you want, as long as you're dealing with small amounts of code).
 
@AnalPhabet want to play with it on a linux system
 
Ell
must remember the term: heronian triangle
 
@JonClements which one
 
@R.MartinhoFernandes mmm. only 53% in my browser. I guess I'll need to upgrade for the remaining percents
 
5:46 PM
@AnalPhabet does it matter that much? Err... just a 15.04 ubuntu server
 
It doesn't matter "that much", bieduntu is good
 
@Ell looks fine here
@AnalPhabet edu+medi buntu?
 
@sehe Huh?
It's a pun that works in Polish
 
obvious puns. I fail
 
@AnalPhabet heheh
 
5:52 PM
See? It's even funny
 
I have a perfect english equiv
bumbuntu
 
kek
I was going for "bieda" with "bied-", but sure
 
@AnalPhabet I know.
But "bum" as in "homeless" fits the trend
 
Sure does
 
Ell
I must be blind or sommat
 
5:55 PM
You are blind? Poor you
 
user3790646
@AnalPhabet I always knew I was not Cicada!
 
ffs I so regret visiting Twitch
 
Ell
I wonder how upgrading my gentoo to 5.2 will work since it's ABI breaking.
 
now when I type "twit" in address bar it opens that instead of Twitter
fucking shit
 
user3790646
@BartekBanachewicz just clear the browser cache
 
user3790646
5:56 PM
that should fix it
 
user3790646
yes, that will also make you lose all your online flash games savefiles
 
uh
I need to add a browser keyword alias
no idea if safari supports it
but I'll stop using safari soon I think
 
user3790646
are you like, on mac?
 
yes?
why else would I be using Safari
 
Xeo
lolz.
 
user3790646
5:59 PM
@BartekBanachewicz Cool. I've never seen a mac in my entire life lol, it's very uncommon in Brazil
 
Xeo
MacOS sends scroll events with positive and negative values when scrolling in one direction with the Magic Mouse
 
what is a "life lol"?
 
Xeo
That totally fucks over UE's scroll handling
 
@Xeo fuck magic mouse
 
@Xeo sounds horribly broken
 
Xeo
6:02 PM
@AnalPhabet It seems like an increadible pain in the ass for games to deal with
 
@Mr.kbok hahaha
 
casual @sehe on his way to work
 
six toes?
 
for faster typing
 
five, had to zoom in
@sehe do everyone who use Vim have six fingers on each hand?
 
6:07 PM
also explains the piano skills
 
how do I make a beautiful UI
oh, sorry. this isn't google.
 
@ʎǝɹɟɟɟǝſ imagine a library that rewrites data Record = Record { x :: Int } into modifyX, getX and setX
should be trivial right
 
I wonder how you'd compose
assuming
getX :: R -> Int
setX :: Int -> R -> R
modifyX :: (Int -> Int) -> R -> R
if you had a nested record S with a field x inside called s in record R
 
6:18 PM
then modifyS (modifyX (+1)) myR
to combine modifiers you'd need combine mA mB fn r = mA (mB fn) r
the sig is, uh, combine :: ((b -> b) -> (c->c)) -> ((a -> a) -> (b -> b)) -> (c -> c) -> (a -> a)
 
@Mr.kbok I fell for it lol
 
then combine modifyS modifyX (+1) myR
uh shitty.
fucking hell. Lens is too clever.
 
I'm writing a tutorial to write a bubble_sorter compatible with my library.
It feels a bit dumb, but at least it allows to see some interesting parts of the design of the library and how to use its full potential. And at least, the bubble sort is easy enough to understand.
 
6:33 PM
bubblel sort
 
blublel sort
 
user3790646
Weird... There's a brazillian/portuguese room on chat.stackexchange.com lol
 
user3790646
I didn't know there we many brazillians out here
 
user1804599
Bublé sort.
 
wwmbd? would he bubble sort?
 
6:44 PM
Wait. El Roboto Grande has a girlfriend now?
 
you don't?
 
@EtiennedeMartel since 2 months ago
 
So I'm reading Effective Modern C++, and I've learned that an std::shared_ptr can allocate not only the object but also the control block (where to store shared count and weak count).
Good.
 
AWW YEAH
 
I've also learned that the weak count is used for std::weak_ptr inspection.
But it says that as long as the weak count is > 0, both the control block and the object are not destroyed. This makes no sense to me.
Is it true or am I reading it wrong?
If that's true then std::weak_ptrs do contribute to the object's lifetime.
 
6:47 PM
> Here are some people we think you might like to follow:
Edward Snowden
no ty
 
user1804599
I think shared pointers act as weak pointers themselves.
 
user1804599
In terms of weak count increment and decrement.
 
According to the book shared pointers have a different counter.
The weak counter makes sense because the control block for the allocated object must be accessible as long as there are std::weak_ptrs around.
Otherwise if the last std::shared_ptrs is destructed and the control block freed, all next accesses to it via std::weak_ptr will cause undefined behaviour.
 
user1804599
shared_ptr is a wart in C++ anyway
 
user1804599
don't pay for what you don't use my ass
 
6:50 PM
But I don't understand why the object cannot be freed immediately after the last std::shared_ptr is destroyed.
 
user1804599
intrinsic atomicity and dynamic deleter selection is moronic
 
you know
this never occurred to me before
but German players have a huge advantage with Sending.
@ʎǝɹɟɟɟǝſ The memory is not freed; but the object must be destroyed.
 
user1804599
@ʎǝɹɟɟɟǝſ the object is destroyed (i.e. its dtor is called) when the last shared_ptr is destroyed.
 
user1804599
but its memory isn't deallocated necessarily
 
user1804599
@ʎǝɹɟɟɟǝſ see make_shared: it does a single allocation for both the pointee and the control block. you can't free half an allocation
 
6:51 PM
@elyse I see
@elyse So it basically just calls the destructor on the object?
 
@elyse You more-or-less get dynamic deleter selection for free when you already have a control block, and non-atomic shared_ptr would be basically useless.
 
Why does std::make_shared do a single allocation?
 
because why make two allocations when you can make one?
 
@ʎǝɹɟɟɟǝſ because its more performant than two allocations
 
so Facebook like is not a like anymore
soon youll be able to respond with Reactions
 
6:54 PM
But then you have this problem that the memory for the object is not freed when the last std::shared_ptr goes out of scope.
 
I still don't quite understand how WKWYL opt. works
 
@ʎǝɹɟɟɟǝſ That's not a problem.
 
the "only dtor, no deallocation" case is only when there are weak_ptr instances left. else the deallocation is done as well
 
It might be
 
if you really give a shit about it, then shared_ptr<unique_ptr<T>>.
or just don't use weak_ptr.
 
6:55 PM
eh
 
user1804599
 
Time to make a clean install of El Capitan
I hope I remembered everything I had to backup
Factorio and minecraft saves are there, music, videos and photos too. Code is backupped on github and bitbucket; ebooks are backupped on dropbox.
Vim settings and configurations have been backupped.
 
user1804599
Put everything on GitHub.
 
> This freelancer has already demonstrated strong performance but doesn’t have enough work history to earn a Job Success score.
nice.
@ʎǝɹɟɟɟǝſ why clean install?
 
user406009
@BartekBanachewicz What's that from?
 
6:59 PM
@BartekBanachewicz where dat from
 
@BartekBanachewicz It's a tradition of mine. I have a shitton of shit I don't care anymore as well, and it's harder to find all that shit than to abandon ship with the things I care.
 
@Lalaland @AlexM. UpWork
 
I say you reply with UpYours and then do sth else
 
It also makes me feel clean.
Like if I had taken a shower.
 
@AlexM. wut
 
7:00 PM
wut
is that not a message aimed at you
 
'[DCC Error] ASAtransWriter.pas(189): E2130 Cannot read a write-only property' - I thought that 'write-only memory' was just a joke until today:(
 
@Martin it's nice to see you again
on a related note, FUCK OFF FOR MAKING US WORRY :D
 
@AndyProwl Like I care, (I still have plenty beer and vodka:).
 
@MartinJames Who doesn't? :p
 
7:04 PM
shamefully enough, at the moment I don't have any beer in my house
 
Alright, wish me luck
 
user1804599
> moronic
adj. having a mental age of between seven and twelve years
 
good luck jeff
 
user1804599
My neighbour's son is a moron!
 
what for btw
 
7:05 PM
Beer, rum and wine available here
 
I think I'm becoming quite good at writing documentation and related stuff: github.com/Morwenn/cpp-sort/blob/master/doc/…
 
auto bubble_sort(/*...*/) -> void
 
looks like a nice tutorial
 
Fuck regular return types :D
 
yep
extra points for name-first syntax
 
7:08 PM
mm 137 rep so far today
 
By the way, the cleanest implementations of a bubble sort I found weren't actually performing a bubble sort. I've no idea what it is they did. It was related, but not a bubble sort.
 
blublel sort
 
user1804599
@AndyProwl how did the presentation go?
 
@elyse I think very well, thanks
 
your face
that's how it went
 
7:10 PM
« bubble » after one iteration is « bbbleu ».
@AndyProwl Thanks ^_^
 
@Morwenn link
 
I think I'm gonna buy Wind Waker HD. There's a hard mode in it.
 
OTOH yesterday I was training this new employee who had troubles understanding why taking an abstract type by value is a problem
rip
 
Bubble sort is supposed to compare pairs of adjacent elements. Also, the last value is supposed to be sorted after the first inner loop iteration. So clearly the algorithm isn't a bubble sort.
 
7:12 PM
uuh fuck my crapmail provider
@AndyProwl wut
 
@Morwenn They all look to me like trivial changes on the obvious implementation.
 
@Puppy I'm not sure these implementations are stable while a bubble sort is a stable sort.
 
I remember first time implementing sort in Pascal
n^3 :)
never ever did I implement a sorting algorithm since that day
 
@BartekBanachewicz How? o_o
 
@BartekBanachewicz (context: C++) there was this abstract interface (say T) and the guy had to define another class that stored a reference to T. T was meant to be passed at construction. He was taking T by value and had problems understanding why it's not ok
 
7:15 PM
@Morwenn Bartek Magic - nobody else has that skill.
 
Even stooge sort isn't O(n^3).
 
@Morwenn for every element, compare it with other elements. For every element's index, put the number of "won" comparisons into the array. Then for every number in comparisons array, put the element from the same index of the old array to the index in the new array equal to number of won comparisons
maybe it was n^2 actually
w/e
 
seems n^2 to me
 
really implementing sort isn't something I'm even slightly interested in
 
Title of the day:
-12
Q: Java Help!! I cant

Diego Paul CRonaldoDesign a clas named Person and its two subclasses, Student and Employee. Make Faculty and Staff subclasses of Employee. A Person object has a name , address, phone number, and email address (all Strings ). A Student has a class status (freshman, sophomore, junior, or senior). Define the sta...

 
7:17 PM
Yeah, seems like n^2 + n, which is still n^2.
 
maybe there was an outer loop that repeated the same sorting thing N times
that'd make it n^3
 
> Installed lens-4.13
let's roll
 
@BartekBanachewicz I agree- std::sort job done
 
@BartekBanachewicz I wasn't either. I just wanted to make a clean library and stole algorithms everywhere, but I ended up optimizing some and writing others.
 
user1804599
Ada is so cool.
 
user1804599
7:19 PM
Such nice consistent syntax.
 
@AndyProwl It reminds me that one of my fixed-size sorting algorithms was slower than it should be an I didn't understand why. It turns out that I had simply copy-pasted the code twice instead of once.
Now I need to implement a parallel sorting algorithm to make sure that my comparison counter doesn't scale and dies horribly because of data races.
 
user1804599
this programming language Bracmat
 
user1804599
  & (   !table:? (!country.?len) ?
      & :?N
      & ( @( !arg
           :   ?
               ( %@?c ?
               & ( !c:#
                 |   !c:~<A:~>Z
                   & asc$!c+-1*asc$A+10:?c
                   & 1+!len:?len
                 | !c:" "&:?c
                 |
                 )
               & !N !c:?N
               & ~
 
user1804599
beats Perl in terms of line noise
 
they turned a salt mine here into an amusement park
it looks pretty badass
 
7:30 PM
@elyse quicker than your mom
 
this one looks like fucking moria static2.businessinsider.com/image/…
 
@AlexM. Reminds me of the Myst series.
 
'thunk' is not a word in regular English?
I mean, is it only a CS term?
@AlexM. is that a videogame or a real world picture?
 
@AndyProwl I don't even know the term
 
real world
 
7:35 PM
I guess videogames have become quite realistic nowadays if I have to ask that question
 
user1804599
Verb: thunk
  1. (humorous, nonstandard) past participle of think
  2. Who would have thunk those guys would have a problem with a little lie?
  3. thunk ‎(third-person singular simple present thunks, present participle thunking, simple past and past participle thunked)
Interjection: thunk
  1. Representing the dull sound of the impact of a heavy object striking another and coming to an immediate standstill, with neither object being broken by the impact.
Noun: Wikipedia
  1. thunk ‎(plural thunks)
 
@Nican That's the first thing that came to mind as well. Jnanin from Myst III Exile.
 
it's really
all those Lens hating posts are so dumb
> let's replace Lens with something simpler that works using magic
 
SO RUDE OMG
I never used lenses
 
but heck haskell records do need a fucking revamp
@AlexM. that means you've never used records
 
7:40 PM
yes
 
user3790646
> Knows that C++ runs natively, has performance, portability across many platforms, uses C#.
 
records without lenses are absolutely useless in Haskell
 
Only if it was not in the middle of nowhere. ;-;
https://www.google.com/maps/place/Salina+Turda/@47.0845442,22.9613458,5.65z/data=!4m2!3m1!1s0x474968b385bfc665:0xd47e573765edc10c
 
> middle of nowhere
> 30 minutes of driving away from transylvania's capital
k
@Borgleader u ready for the new witcher 3 da wildehoont expansion
 
> You know what's the biggest problem? People like you who don't promote healthy conversion, they shun all around you, You're the exact problem SO has. Sure I didn't have to whine, but then I started the conversion about something that should be fixed even if I didn't have the solution, you ended it.
IOW "I have 6 answers on SO therefore I am going to discuss the site's problem"
god so tired of those people
also in the topic of "answers which get score but ffs"
94
A: Fastest way to reset every value of std::vector<int> to 0

Cat Plus Plusstd::fill(v.begin(), v.end(), 0);

cc @sehe @GregorMcGregor
 
7:53 PM
Well it clearly is the best answer
Nothing ffsy 'boot it
 
Bartek do you mind if I spam you this sunday or so with haskell code to look at
it's the interpreter thing
I don't think I can use Parsec so I'm just doing it by hand
I'll use this opportunity to learn about recursive data structures and stuff
 
@AlexM. define "can use"
 
I don't think CodeWars allows it
 
Parsec is easier than writing it by hand
@AlexM. uh
 
I don't see anyone ever mentioning using it
 
7:55 PM
 
@AlexM. that's a massive pile of wank
 
> Could not find module `Text.Parsec.Prim'
tried to import sth random
 
it's Text.ParserCombinators.Parsec
but it's not ther
 
stuff like that is disabled on demand by creators
 
@AlexM. you know what's shitty? this:
 
7:57 PM
I think
 
 Perhaps you meant
      Text.ParserCombinators.Poly (from polyparse-1.11)
      Text.ParserCombinators.ReadPrec (from base)
      Text.ParserCombinators.Poly.Parser (from polyparse-1.11)
 
e.g. for interpreters they disable the eval function for obv reasons
in JS I mean
@BartekBanachewicz why's shitty?
 
@AlexM. because they have one particular lib and not the other (which I like :))
@AlexM. anyway sure. Dunno about my availability on sunday but yeah
 

« first day (1818 days earlier)      last day (3132 days later) »