« first day (1652 days earlier)      last day (3279 days later) » 

8:00 AM
I wouldn't want to work outside the US anyway because of that double-taxing bullshit.
 
Yeah.
 
@Mysticial That's a short period.
 
@StackedCrooked Yeah it is.
No chance to even go on vacation.
 
@Mysticial poached by whom?
 
Some financial firm.
 
8:03 AM
@Mysticial nice, congrats; hope it will make your life more awesome :)
 
TBH, I'm scared as fuck.
 
Ven
:D
 
But I have to give it a try. There may not be another such opportunity again.
 
well, it's a big change in one's life - twice as much having to move for the position
 
Is it a formal environment?
 
8:13 AM
Definitely more formal than at Google. But not as formal as full Wall Street suits.
Probably more like dress pants with polo shirts.
Based on what I saw at the interview.
 
I see.
HPC seems interesting.
 
user1804599
-5
A: What is tension in string theory?

mansabit is actually a energy that is used to pull up heavy thing,,,

 
user1804599
lol
 
come in sweatpants and sneakers
 
8:29 AM
I thought it was a thing from scary movies.
 
user1804599
 
user1804599
I always thought about ocean waves which are called "golf" in Dutch. :(
 
user1804599
I have earned only two rep on Theoretical Computer Science lol.
 
8:47 AM
I swear I heard some chinese news channel claimed it to be 8.1 in magnitude
cnn said it's within 80 kilometres of the capital Kathmandu, the Chinese news source said it's 200km away
news nowadays is so confusing
 
9:04 AM
Why does this line not trigger? std::getline(std::cin, PlayAgain);
the previous and next lines trigger though
the breakpoint doesnt even fire
 
user1804599
SSCCE.
 
Xeo
@Mysticial oho
where to?
oh wait, I should read on
 
std::string PlayAgain = "no";
std::cout << "Do you want to play again?" << std::endl;
            std::getline(std::cin, PlayAgain);
            if(PlayAgain == "yes") goto PlayAgainLabel;
 
I just got an email:
> Hey cutie, I saw you on a match site sometime last week, i got sum dirtypix for ya..



message my num real quick its 17027146490.



I'm just a 23 year old gal. I'm looking to meet new people and maybe hookup.

message me if you get a min plz.
 
user1804599
Seems legit.
 
9:14 AM
> i got sum dirtypix
Classy.
I just realized classy sounds like Lassie with a K in front of it.
 
Oo I received this yesterday:
Good evening honey!
I am looking for a decent mature man. Don't you know anybody like that? For my part, I am a young Ukrainian young woman. Are you fond of Ukrainian girls? We are not just nice and smart, but very tolerant too. Russian women value family relations and try to be with their boyfriends a great deal of time. It's high time to meet each other! I'll be waiting for you on this site!!!Bye-bye!Bye dear!
CLICK_HERE
VMail.lv AVMail.eu -- Video Mail Services
LoL
Maybe I should sign vlad up for this ...
& no, I am not found of Ukrainian girls, in fact I am not sexually found of any girls at the moment
 
user1804599
Klassig.
 
Hi guys!
quick question: what's better: class template specialization or one class template riddled with std::enable_if's and std::conditionals?
 
whatever is easier for you to maintain.
 
user1804599
Woo, installing GNU APL.
 
user1804599
9:36 AM
@rubenvb static if oh wait hahaha C++
 
Ven
@rightfold you don't even D!
 
user1804599
∇∇∇∇∇∇∇∇∇∇∇∇∇∇∇
 
@JohanLarsson The speaker looks awfully thin. Probably an AR issue. I hate those with a passion.
 
@rubenvb Depends.
 
9:43 AM
@Mysticial Are you moving by train? I hope yours doesn't cross too many switches ;)
@JohanLarsson aspect ratio
 
do you hate thin people?
 
I hate aspect ratio issues.
 
user1804599
Talks about data types by people who like functional programming are always shit.
 
for the people using uBlock: github.com/gorhill/uBlock/wiki/…
 
9:47 AM
@rightfold why?
 
@fredoverflow chicago is only 3000km+ from san francisco, that's nearly half a week on the train. I put my bet on plane
 
> In general, you can often avoid explicit mutation, and so it is preferable in Rust. That said, sometimes, mutation is what you need, so it’s not verboten.
 
what is the simplistic definition of a discrete cosine transform?
 
if there's one thing that's black magic to me
it's signal processing
 
also for FFT...
 
10:05 AM
A fast Fourier transform (FFT) is an algorithm to compute the discrete Fourier transform (DFT) and its inverse. Fourier analysis converts time (or space) to frequency (or wavenumber) and vice versa; an FFT rapidly computes such transformations by factorizing the DFT matrix into a product of sparse (mostly zero) factors. As a result, fast Fourier transforms are widely used for many applications in engineering, science, and mathematics. The basic ideas were popularized in 1965, but some algorithms had been known as early as 1805. In 1994 Gilbert Strang described the fast Fourier transform as "the...
 
Size on disk < Size?
 
@Rapptz compression
 
compression of what?
 
the data
 
That's not answering much.
I'll just google it. Probably more helpful.
 
10:07 AM
NTFS (New Technology File System) is a proprietary file system developed by Microsoft. Starting with Windows NT 3.1, it is the default file system of Windows NT family. NTFS has several technical improvements over FAT and HPFS (High Performance File System), the file systems that it superseded, such as improved support for metadata, and the use of advanced data structures to improve performance, reliability, and disk space utilization, plus additional extensions, such as security access control lists (ACL) and file system journaling. == History == In the mid-1980s, Microsoft and IBM formed a joint...
 
@orlp I already noticed the transfer of ownership. He should have transfered the source to a github organization or something.
@Rapptz hardlinks?
 
@Rapptz NTFS compression?
 
user1804599
"Size" vs "Size on disk" is a good example of a terrible user interface.
 
user1804599
Abort, Retry, Fail?
 
@rightfold I wuv u!!!
$ cowsay "Lounge<C++>" | cowsay -n | cowsay -n
 __________________________________
/  ______________________________  \
| /  _____________               \ |
| | < Lounge<C++> >              | |
| |  -------------               | |
| |         \   ^__^             | |
| |          \  (oo)\_______     | |
| |             (__)\       )\/\ | |
| |                 ||----w |    | |
| \                 ||     ||    / |
|  ------------------------------  |
|         \   ^__^                 |
|          \  (oo)\_______         |
 
user1804599
 
user1804599
@codinghorror just like flags on stack overflow chat!
 
@chmod711telkitty All aboard the Unicode plane, we're going to Chicago!
 
which one?
the BMP?
because that sounds suspiciously like an explicitly racist party here in the UK
 
omg that's a cow, ffs I really thought it was a horse or maybe a donkey!!!
skinny cow with a twisted tail
 
10:34 AM
You can tell it's a cow by the w char.
 
horses & donkeys have tits there too ~_~
?buy brain
because you don't seem to have one for your own
 
ok
I feel mindless for not understanding FFT.
 
A fast Fourier transform (FFT) is an algorithm to compute the discrete Fourier transform (DFT) and its inverse. Fourier analysis converts time (or space) to frequency (or wavenumber) and vice versa.
 
whether or not that is true merely depends on a function of the quantity and quality of time you have spent trying to understand it.
 
one domain to another domain
different x-axis
 
10:43 AM
I don't understand FFT either but I can safely state that I've spent 0 seconds with 0 teachers or material attempting to understand it.
 
2 different representations of the same thing
 
today I wrote trial division using multiplication
for example to test for the prime 29
t = n*0x34f72c234f72c235ull; if (t <= 0x08d3dcb08d3dcb08ull) { n = t; factors.push_back(29); }
 
factors is a std::vector<unsigned long long>?
 
yes
all variables are uint64_t, and factors is std::vector<uint64_t>
 
> internal compiler error: in create_tmp_var, at gimplify.c:479
Fuck GCC
 
10:50 AM
?
 
-
 
lol and lol
@codinghorror That message should appear on the "flag" button on SO chat. Maybe we would get fewer annoying notifications?
 
user1804599
:D
 
user1804599
I had a great idea for a program.
 
user1804599
Facebook will buy it from me for a billion bucks!
 
10:59 AM
yeah right
 
Facebook Dollars
 
@rightfold A million Euros maybe, that's how worthless it is
 
bitcoins
 
user1804599
@orlp y u no std::unordered_multiset. :[
 
but by the rate the bitcoins is going, you would soon not be able to afford a loaf of bread with your one billion bitcoins
 
11:00 AM
@rightfold cuz it bad
 
lol unordered_multiset.
why would you do that?
 
user1804599
Because last time I checked the order of prime factors was irrelevant.
 
even if you want to keep track of the counts of each factor, unordered_map<factor, count> would be fine.
 
user1804599
No.
 
@rightfold why would I?
 
user1804599
11:01 AM
That doesn't delete the key when the count reaches zero.
 
you could just delete it yourself.
 
does a number ever magically get less factors?
 
also why would you delete factors?
you only add them as you find them.
 
user1804599
Also, different iteration semantics.
 
yes, unordered_map has way more useful iteration semantics in this case.
 
user1804599
11:02 AM
What is, exactly, the problem with unordered_multiset?
 
^true
 
it pointlessly duplicates the factor over and over again?
 
@rightfold Have you ever written, say, a divisor count function?
 
user1804599
Why is that a problem?
 
You need the exponent.
 
user1804599
11:03 AM
Also, vector does that too.
 
And counting it everytime is idiotic.
 
because it's unnecessary duplication.
@rightfold I didn't suggest using a vector in this case.
 
user1804599
I never said you did.
 
it's a waste of work and exposes semantics you don't want or need and removes guarantees you do want.
 
user1804599
Yummy, a sausage roll.
 
11:04 AM
in the unordered_map case the information you want is expressed directly and accurately with no redundancy or waste and it's easy to access.
with an unordered_multiset to iterate over all factors and their counts you'd have to count the factors again
 
user1804599
@i_akari_daisuki
Twitter API + Google Images + ImageMagick. Inspired by @akari_daisuki
32.7k tweets, 10.3k followers, following 9.9k users
 
user1804599
what is this :(
 
So...do I update to 15.04 or do I not? That is the question.
 
@wilx Maybe you should try with v2.45
 
@Jefffrey I mean Ubuntu/Xubuntu. :)
 
11:16 AM
welp
time to get cleaning.
 
Hmm, why isn't there an implicit conversion between lambda and std::function?
 
There isn't?
 
@StackedCrooked thanks for the online compiler.
 
Thanks for saying thanks :P
 
11:22 AM
Thanks for coliru buddy
 
I still think the best feature is the yellow.
 
Xeo
Time for Pathfinder
 
@StackedCrooked What yellow?
 
11:43 AM
@R.MartinhoFernandes They told me to ping you for this. <3
 
user1804599
OMG.
 
user1804599
trait UserStore {
    type Query // abstract type alias :D
    def findUsers(query: Query): Seq[User]
}
 
@Jefffrey Even if there was, it wouldn't help you there.
 
std::vector<double> output(std::istream_iterator<double>(ss), std::istream_iterator<double>());
std::cout << output.size();
error: request for member ‘size’ in ‘output’, which is of non-class type ‘std::vector<double>(std::istream_iterator<double>, std::istream_iterator<double> (*)())’
lol stupid MVP
 
This is likely the most common occurence of MVP in C++.
 
11:57 AM
Is this how you fix it in C++98?
0
A: What is wrong with this code? I need to convert string into float

fredoverflow I need to convert each element in the array so that I can store them to make operations Okay so how about you use a string stream to extract the numbers from the string into a vector? #include <iostream> #include <iterator> #include <sstream> #include <vector> int main() { std::string ...

 
This is one way to do it, yes.
 
What other ways are there?
 
Extra parens (instead of A x(B(z), B()), you do A x((B(z)), B())), but that's very unclear for people not knowing every corner of the language.
 
Do compilers understand that? :)
 
Yet another is A x = A(B(z), B())
@fredoverflow They have to. Users, not so much.
 
user1804599
12:10 PM
I don't know what to do.
 
@rightfold Design a Programming Language
 
user1804599
Why the title case?
 
That's the book I want you to write.
 
@rightfold Develop that web application idea you had
 
@Jefffrey In special cases, you can deduce functors' argument types, but I don't recommend this.
 
user1804599
12:11 PM
@Jefffrey With which tools?
 
The most suited for that idea.
 
user1804599
Mill isn't ready yet.
 
Mill will never be "ready" for that idea. Maybe for the next generation of ideas.
 
user1804599
Monad stacks are so so bad.
 
user1804599
12:16 PM
You need so much boilerplate.
 
12:35 PM
anyone here knows anything about sync & async calls in android?
 
user1804599
authenticate :: Monad m => (String -> m (Maybe User)) -> String -> String -> m (Maybe User)
authenticate findUserByEmailAddress emailAddress password =
    findUserByEmailAddress >>= \maybeUser >>= \user ->
        if verifyPassword (userPasswordHash user) password
        then Just user
        else Nothing
 
user1804599
Meh, this is ugly.
 
I need to use profile tools to find out which function calls I need to re-write as async so they don't hold the GUI unresponsive
I have a good idea, but there are grey areas
 
@orlp oh bloody hell nerd kids
 
user1804599
This is nicer:
 
user1804599
12:42 PM
butOnlyWhen m p = m >>= \x -> if p x then m else Nothing
authenticate findUserByEmailAddress emailAddress password =
    findUserByEmailAddress emailAddress >>= (`butOnlyWhen` \user -> verifyPassword (userPasswordHash user) password)
 
@LightningRacisinObrit more so than lobster or cat?
 
user1804599
Also needs return.
 
user1804599
<&> ftw.
 
user1804599
Screw monads.
 
@chmod711telkitty in this case I think even yes
 
user1804599
12:53 PM
 
user1804599
lemme guess SPJ chose that font ¬_¬
 
user1804599
oh god cabal is really slow
 
> I do like this game, it just doesn't meet the standards which it should have
Pros
- Female Protagonist
...
lmao, nice way to start a review
and a less than nice thing to lay my eyes upon after waking up
time to switch to mexican food and see what I'm gonna order
 
1:09 PM
Can't there be some medium option for std::async?
Or perhaps some scheduler?
 
user1804599
Could not deduce (Functor m) arising from a use of ‘fmap’
from the context (Monad m)
 
user1804599
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
@rightfold Have you implemented async in Mill yet?
 
user1804599
@Cinch what is async?
 
@rightfold it's being worked on alright...
 
1:16 PM
@rightfold as in std::async and std::future
 
user1804599
Lol, no. I'm not an idiot.
 
user1804599
Just spawn threads and communicate with channels.
 
Channels?
 
user1804599
Yes, channels.
 
What are channels? Is this a Mill thing? Signals? messages
 
user1804599
1:17 PM
Bounded thread-safe queues.
 
user1804599
So if you want to do some work asynchronously and get the result later, you can do this:
 
user1804599
let result = newChannel Int
spawn(proc() {
    outln("Hello, world!")
    result <- 42
})
outln(sprintf("Got result: %d", <-result))
 
user1804599
But I have not yet implemented channels. Threads work fine, though.
 
That sounds an awful like future and async
 
user1804599
And you can spawn thousands of them without problems, so you don't need async APIs as an optimisation like you do in inferior environments such as .NET, Java and Node.js.
 
1:20 PM
> Crispy chicken burger
ooh this looks good
 
user1804599
cf. Erlang, Go, GHC
 
I hope it won't take 3 hours to get here
 
@rightfold I had an idea similar to std::promise
 
user1804599
No, I'm not going to include such abominations.
 
user1804599
Channels fulfill that job just fine.
 
user1804599
1:23 PM
And are much more flexible.
 
@rightfold I just thought this made more sense in a register-based language
 
user1804599
For example, you can do something with the first channel operation that succeeds, without affecting the other channels:
 
user1804599
select {
    case let x = <-chanA => x
    case chanB <- y => 0
    case <-time.timeout(time.second) => -1
}
 
I don't understand what these operators mean
 
user1804599
Good.
 
1:26 PM
What is 'y'
 
user1804599
That's a variable.
 
user1804599
chanB <- y sends the value y over channel chanB.
 
user1804599
<-chanA receives a value from chanA.
 
I get that
 
Ven
this reads so poorly it's incredible
 
user1804599
1:27 PM
select runs the case that belongs to the first channel operation that succeeds.
 
Ven
even elixir changed their infix "!" to send() eventually
and perl6 totally removed their prefix "=" (or "iterate")
 
user1804599
The other channels are unaffected, making select a complete hell to implement correctly. :D
 
user1804599
But it will be fun!
 
Why not just implement using a register? That was my point
 
user1804599
This seems to work fine:
 
user1804599
1:29 PM
authenticate :: (Functor m, Monad m) => (EmailAddress -> m (Maybe User)) -> EmailAddress -> Password -> m (Maybe User)
authenticate findUserByEmailAddress emailAddress password =
    (>>= authenticate') `fmap` findUserByEmailAddress emailAddress
    where authenticate' :: User -> Maybe User
          authenticate' user =
              if checkPassword (userPasswordHash user) password
              then Just user
              else Nothing
 
user1804599
Awesome.
 
I don't understand
Still don't
 
Ven
@rightfold ew
 
user1804599
@Ven why? :(
 
Ven
why are you passing findUserByEmailAddress as an argument?
 
user1804599
1:31 PM
What else?
 
Ven
why do you declare authenticate' 's type?
 
I just don't get monads as implicit syntax
 
user1804599
Because the code is otherwise completely obscure and confusing.
 
user1804599
I always declare types in where clauses.
 
I still don't get how monads should be used
 
Ven
1:32 PM
why would it be obscure
 
user1804599
Because of (>>= authenticate') `fmap`.
 
Ven
it's not like the types could vary. here, if you change authenticate's signatures, you have to change authenticate' 's also
 
Like -> (input -> transform -> output)
Oh. I should use that.
@rightfold If this is a part of Mill I'm not ready for Mill
 
Ven
I don't think Haskell will make it into Mill :P
 
user1804599
@Cinch No, it's Haskell.
 
1:35 PM
...I think monads should be renamed to "process template" or "process form"
Has much more implicit meaning
 
Ven
not for the mathematicians :)
 
I know.
 
user1804599
F# calls them "builders".
 
But it shouldn't take higher math to program
 
Ven
computational expressions are something else, tbh...
 
1:37 PM
@Ven right? Right.
 
user1804599
Computation expressions are do notation but better.
 
Ven
it's not "better" just because you have more operations to overload
@rightfold write a t -> Bool -> Maybe t
 
user1804599
findUserByEmailAddress :: Connection -> EmailAddress -> IO (Maybe User). :D
 
user1804599
And then: authenticate (findUserByEmailAddress connection) emailAddress password!!111
 
Ven
Connection monad instead?
 
1:38 PM
Ugh Haskell can sometimes be too esoteric
 
Ven
findUserByEmailAddress shouldn't return IO t
 
user1804599
Why not?
 
user1804599
It's in the User.PostgreSQL module.
 
user1804599
It clearly does I/O.
 
Ven
Because it should only be allowed to use Connection operations, not anything that can happen inside the IO monad :)
My point wasn't that it did no I/O, just that you should probably abstract over IO
 
user1804599
1:40 PM
Meh.
 
Ven
"IO" doesn't tell me enough
 
Also, aren't closures just non-pure functions?
 
user1804599
If findUserByEmailAddress and Connection don't either, you are terrible at software development.
 
user1804599
@Cinch Closures can be pure just fine.
 
user1804599
Here, a pure closure in C++: unsigned x = 0; auto pureClosure = [=] (unsigned y) { return x + y; };.
 
1:43 PM
Oh. I thought... pure functions were in a black box
And couldn't touch external state besides what is defined to ir
 
user1804599
Using unsigned since signed addition can result in UB which could render the function impure.
 
Well closure = function object?
 
user1804599
A closure if a function that makes use of free variables.
 
...Sounds like a member function to me
So closure = member function, got it
Even if the parent is not necessarily an object
 
@Cinch lol no
In programming languages, closures (also lexical closures or function closures) are a technique for implementing lexically scoped name binding in languages with first-class functions. Operationally, a closure is a data structure storing a function together with an environment: a mapping associating each free variable of the function (variables that are used locally, but defined in an enclosing scope) with the value or storage location the name was bound to at the time the closure was created. A closure—unlike a plain function—allows the function to access those captured variables through the closure...
> Operationally, a closure is a data structure storing a function together with an environment
This is probably the parts that makes most immediate sense.
 
1:50 PM
it took me a night of sleep to realize that CS GO might have dumped some info on that crash yesterday :O
welp at least now I know why it crashed
> The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
doesn't help but hey
volvo pls fix your code :(
 
Ahhh so closures are environment shiftable functions or operations
We bind variables to functions to make them different, I guess
 
..I don't
...Closures are structurally function objects, to me right now
 
Not to go all "social media celebrity hype" or anything but some of the Yank reactions to Bruce Jenner's interview are sickening. How can a supposedly "new world" country be so stuck in the Middle Ages?
 
example?
 
1:57 PM
though it's suddenly not loading them -.-
then there's this from the stepdaughter's ex-husband
Man, I'm glad I got out when I did. #Gottadoyou
I mean, just, what?
Fuckwit.
 
...I feel sad for transgender people
 
I'm not saying it's all roses on this side of the pond but in general I'm sure there's far more acceptance of "alternative lifestyles" and recognition that nobody's born perfect.
 

« first day (1652 days earlier)      last day (3279 days later) »