« first day (1601 days earlier)      last day (3363 days later) » 

7:00 PM
@melak47 Me need a tiny library for create a task, dedicated a documentation of code.
 
user1804599
CPS is great.
 
@melak47 I can write something mine, but it will be not so interesting for those, who will do my task :)
 
@QueueOverflow could you be any less specific about what this library should do?
 
@melak47 Anything. It will be just live example for following documentation.
 
@QueueOverflow So, "a library with good docs"?
 
user1804599
7:03 PM
Oh, not Boost then.
 
@milleniumbug No, no, no. This library will be documented after.
 
so you want a library without docs?
 
@QueueOverflow You want to write docs for it?
 
user1804599
Great, Google Closure is on Maven Central.
 
user1804599
So I can incorporate it into my compiler.
 
7:06 PM
@R.MartinhoFernandes Python... I like this language, but me need a C++ library
@melak47 I can delete existed docs, so it doesn't matter
 
> Nonius is an open-source framework for benchmarking small snippets of C++ code
 
I... don't understand what you want.
 
Me need beer
 
@R.MartinhoFernandes sounds like he wants a little c++ library and make his students/??? write docs for it :p
 
7:07 PM
@ThePhD Ok <3
 
@melak47 yes, exactly!
 
@melak47 The other word you were looking for is 'slaves'
 
Hello
 
Hello!
 
speaking of slaves
 
7:17 PM
Hello
 
Aparrently, according to some forecast Anne watched, the UK is soon going to be hotter than Spain. I'll stock up on canned goods, bottled water and start on the fallout shelter.
 
The other way to look at it is that Spain is soon going to be colder than the UK.
The point being that our temperature may not change at all...
 
@LightnessRacesinOrbit Man. How bad is it that I knew instantly who this was being replied to?
 
@Rapptz haha :)
I think it just shows a healthy familiarity with your surroundings ;)
 
user1804599
[error]  found   : sexy.rightfold.millc.parse.lex.ParseResult[List[sexy.rightfold.millc.parse.Identifier]]
[error]  required: Seq[sexy.rightfold.millc.parse.Token]
 
user1804599
7:18 PM
My domain name is the best thing I ever bought.
 
> From: pantoona@rightfold.sexy
> Subject: My CV as requested
 
fail
@MartinJames It already feels hotter than Spain.
 
@orlp You're right. Research pays nothing unless you go commercial where it might get you good money.
 
@orlp Before or after tax?
 
@LightnessRacesinOrbit Well thanks. So, do I cancel my Spanish hols in April or no:(
 
7:20 PM
I'm assuming before.
No one really asks "What's your salary after tax?"
It'd be too depressing
 
Sure they do
 
@MartinJames No don't cancel them. Just change the name to mine
@Rapptz Yeah fair enough
makes it a bit of a pointless poll though if the idea is to compare how well we live
since tax is going to vary widely across the responses and isn't accounted for at all
 
@LightnessRacesinOrbit That costs more than just booking a hol yourself.
 
Well if you want to be pedantic where we live matters too.
 
Coliru's output doesn't escape properly: stackoverflow.com/questions/28885876/…
14
 
7:22 PM
Tax money is something I never see so I never include it in anything
 
I like the €1000-€200 option
 
lol
 
BOARDGAMES! SEE YOU LATER.
 
have fun
 
Ok
 
7:23 PM
I was totally gonna stay in tonight and get shit done
But I've had a busy day at work and our server is down and I've worked into the late hours most nights this week so frak it
Some Halo then pub I think
heehee
 
    create view if not exists valid_access_tokens as
    select access_tokens.value,
           access_tokens.account_id,
           access_tokens.generated_at,
           access_tokens.expires_at
    from access_tokens
    where (now() at time zone 'utc') < access_tokens.expires_at
      and access_tokens.valid = true
      and not exists(
        select access_tokens_b.value
        from access_tokens as access_tokens_b
        where access_tokens_b.generated_at > access_tokens.generated_at
      )
lol
I'm so good at this SQL thingy
 
@LightnessRacesinOrbit Yup, without the Halo.
 
I haven't played for days
Very unusual
 
@MooingDuck heh
He couldn't piece 2 and 2 together?
 
user1804599
acceptIf takes a function from Elem to Boolean. My luck: Set[T] is a function from T to Boolean. :)
 
7:27 PM
@MooingDuck looooooooooooool
 
Should probbaly ping @StackedCrooked about it.
 
It's just & that's not escaped
Could be worse
 
It's not too bad. Just chuckle worthy if anything.
 
It's pretty bad. He's only using <pre>
 
user3010322
7:29 PM
AWWW YEAH
 
He's one step away from XSS attacks!
 
user3010322
MY QUIZ IS TO FIND THE NUMBER OF PRIMES LESS THAN A CERTAIN NUMBER
 
pretty sure he already knows
 
user3010322
TIME TO WHIP OUT THAT PROJECTEULER
 
All HTML entities should be escaped in the output
 
7:30 PM
lol projecteuler
 
@ThePhD pfft that shit
 
projectwasteoftime
 
@LightnessRacesinOrbit Oh I just noticed.
 
@ThePhD brute force it
always works
 
I agree with Cat.
 
7:30 PM
@CatPlusPlus practice for shitty interview nonsense tho :/
 
I disagree with you both.
 
user3010322
@AlexM. I can, but the problem is he actually states on the assignment that it has to be ~~performant~~
 
user3010322
I have to do it for numbers up to 10million
 
Run it on 100 nodes
 
user3010322
Lmao
 
user3010322
7:31 PM
I should make it a multithreaded program
 
user3010322
That fires 10 threads
 
In C?
 
For speedup you need concurrency
 
@ThePhD Brute-force it by micro-optimizing every instruction.
 
@ThePhD vOv ask o_0 mental block... what's his name here who does that prime cruncher thing...
 
7:33 PM
@Mysticial probably
 
user3010322
@Rapptz This is for CS 110: Java, so it has to be in Java.
 
user3010322
I'm sure there's some thread-pool-y thing for Java.
 
user3010322
fast++.java
 
mysticial and it's a pi cruncher.
 
@ThePhD brute force it
 
7:33 PM
Oh wait.
 
in assembly
 
System.Primes.Count.UpTo.Max.Generate
 
Your quiz is just a sieve.
 
on a more serious note
 
7:34 PM
I just noticed that the starboard is full of sexism
 
the sieve of erathostenes is not very difficult to implement
 
@ThePhD Java 8 (or even 7?) has thread pools built-in.
 
the things you miss when you're actually working.
 
In mathematics, the sieve of Eratosthenes (Greek: κόσκινον Ἐρατοσθένους), one of a number of prime number sieves, is a simple, ancient algorithm for finding all prime numbers up to any given limit. It does so by iteratively marking as composite (i.e., not prime) the multiples of each prime, starting with the multiples of 2. The multiples of a given prime are generated as a sequence of numbers starting from that prime, with constant difference between them that is equal to that prime. This is the sieve's key distinction from using trial division to sequentially test each candidate number for...
 
user3010322
7:34 PM
Wait
 
user3010322
I thought a Sieve got the prime factors of something?
 
no
 
no?
 
user3010322
Oh.
 
the sieve finds out prime numbers within a range
 
7:34 PM
@Rapptz dat gif
 
user3010322
It says it right there.
 
or infinitely if you do lazy eval
 
user3010322
Herpaderp.
 
or something like that dunno FP crap
 
it's literally a sieve lol
 
7:35 PM
ASK BARTEK OKAY
 
user3010322
@Rapptz Can I thread my sieve? >_>
 
you don't need to
 
Sieve of Eratosthenes is fast enough
 
it's fast enough
 
and that's the most basic sieve out there
 
user3010322
7:36 PM
Hm.
 
if your prof asked for this
then it's the sieve that he wants
 
it's the 100% default didactic solution
 
i'd have to look it up to remember how to do it
fuck interviews
 
what interview
 
7:37 PM
I thought LRiO never went to interviews
 
any hypothetical interview
 
what interview would ask for a sieve
 
that asks for this shit
 
user3010322
Looks like a
std::vector<bool> items( n );
foreach ( bool b in items ) {
if ( !b )
     continue;
foreach( multiple of  current ) {
mark off as non-prime
}
 
mine didn't
 
7:37 PM
mine barely asked me anything
but real ones with algorithm challenges and shit
 
user3010322
I think I'm missing a brace.
 
user3010322
NOW I JUST NEED TO CONVERT THAT TO JAVA \o/
 
user3010322
I'll use BigInteger
 
instead I was asked for some combination of greedy shit on crap where you had to do A*
 
I have a C++ implementation
 
7:38 PM
I was given the whole day tho :P
 
user3010322
Even though 10million fits in an int32, why not get FANCY with it.
 
I have also programmed A* before.
 
but it's not really a sieve of eratosthenes
 
@Rapptz I'd say that for low values of N (like sub 1000) that a teacher is likely to test, even a bad '1->N try divide by 1->current' would be 'fast enough;
@ThePhD trivial
 
user3010322
@Puppy I havne't yet, but I heard @TonyTheLion did for work one day.
 
7:38 PM
Sieve of Erapptzthenes
 
@thecoshman he needs 10 mil or sth
 
@thecoshman N = 1000 will be done so fast.
The Sieve of Eratosthenes is fast enough for N = 10m
 
@Rapptz that's my point
 
then it gets kinda slow
 
also they're gonna look at the code
speed isn't the point. efficiency is the point.
 
7:40 PM
embed assembly in that crap
and make it ultra fast
fast enough to wake erathostenes up to sit in awe at your creation
 
7 mins ago, by ThePhD
@Rapptz This is for CS 110: Java, so it has to be in Java.
@AlexM. "surprise, motherfucker!"
 
@LightnessRacesinOrbit crap
JNI?
 
user1804599
@Rapptz make it a stateful function so one can use std::generate.
 
7:41 PM
actually that's an idea write it in C++ and use JNI to call it lol
 
user3010322
I can't think of a way to multithread this algorithm.
 
user3010322
Since it's fairly dependent on the previous step...
 
there's a rule for solving dilemmas like that
 
multithreading won't help you here
 
you could set each multiple as nonprime in parallel.
 
7:43 PM
@Puppy The Jalf Effect™
 
if isCollegeAssignment(crap)
   dontWorkMoreThanNecessary()
 
@ThePhD maybe with a parallel pipeline?
 
there was this sorting algorithm that was completely parallelizable
because it split the array it had to sort in two independent chunks
 
@AlexM. or in C++ and compile with clang using -O3
 
that could be sorted individually
I forgot the name
 
anyway, in practice it was almost as slow as bubble sort
its only advantage was parallelization
 
@AlexM. Merge sort.
 
@Puppy nah it was not recursive, it looked somewhat like this
 
I believe that most recursive sorts, including quicksort, can be parallelised.
 
7:46 PM
@Rapptz heh
> Male Victoria's Secret worker here. Though single, I am straight. I have to remind friends quite a bit.
ahaha
> There are a ton of girls in the STEM fields at my college.
> Not many of them though.
 
some loop here, not sure about type
{
	some condition and operation with arr[i] and arr[i+2]
        some condition and operation with arr[i+1] and arr[i + 3]
}
it looked vaguely like this
 
the idea is that those two things happening there never overlapped
so you could run two identical loops on different starting indices in parallel
on the same data structure
 
Hmm. I still haven't been to the bank to get a new card.
 
@R.MartinhoFernandes inb4 my appointment was last week
 
7:49 PM
well keep us informed
 
I sold the book where I read about it, gah
 
I'm running out of cash now. I'll starve soon.
If I die, I want my possessions identified.
 
user1804599
@FredOverflow repo isn't empty anymore!
 
user3010322
Oh god
 
user3010322
Why did I choose BigInteger again
 
user3010322
7:50 PM
I can't use <, >, ==, ||, anything
 
user3010322
HALP
 
It's not the size that matters.
 
there are functions for this..
 
@R.MartinhoFernandes All knifes are cursed
Also you get to bank to get the card? I get mine via mail
 
user3010322
There's no InfiniteBitSet for BigInteger either. ;~;
 
7:52 PM
I need to ask for it.
 
time to go home
 
user3010322
Blargh. I'll stick with int32 then.
 
see ya guys
 
user3010322
@Rapptz Biii!
 
I don't think I can request one by phone.
Especially since my address is not up to date.
Pretty sure changing address has to be done in person. At least I hope so.
 
user3010322
7:53 PM
It does.
 
user3010322
(For American banks, anyhow.)
 
user3010322
(At least all the ones I've dealt with.)
 
VS Y U NO deduce types :(
 
Cause it suxxorz.
 
lol you expect easy life with VS
 
7:55 PM
@ScarletAmaranth It doesn't?
oh wait you don't mean the VC compiler
 
@AndyProwl I do
 
user3010322
@ScarletAmaranth Get Visual Studio 2015 Preview (CTP 6), pray to the gods you're not using INVOKE semantics.
 
@CatPlusPlus Visual Studio is basically hard mode.
 
@ThePhD I AM USING it
 
Don't get CTP for production use god
 
7:56 PM
lol
 
Well, more like Nintendo Hard.
 
user3010322
@ScarletAmaranth You're fucked! \o/
 
@ScarletAmaranth What is the issue with then?
 
@AndyProwl invoke semantics!
 
7:59 PM
found it!
In computing, an odd–even sort or odd–even transposition sort (also known as brick sort) is a relatively simple sorting algorithm, developed originally for use on parallel processors with local interconnections. It is a comparison sort related to bubble sort, with which it shares many characteristics. It functions by comparing all (odd, even)-indexed pairs of adjacent elements in the list and, if a pair is in the wrong order (the first is larger than the second) the elements are switched. The next step repeats this for (even, odd)-indexed pairs (of adjacent elements). Then it alternates between...
this one I was talking about /cc @Puppy
 
@ScarletAmaranth passing arguments to std::thread's constructor or something?
 

« first day (1601 days earlier)      last day (3363 days later) »