« first day (1802 days earlier)      last day (3137 days later) » 

6:01 PM
@elyse lol
 
user1804599
@ElimGarak did you mean confusingforeveryoneandjustme.com?
 
cpx
Especially in a while loop.
Say while (process A is not done && process B is not done)
 
user1804599
Your mother is a while loop. while (true) eat();.
 
I need to find the formula for knowing how many numbers are repeated.
 
user1804599
that makes no sense
 
cpx
6:04 PM
The loops breaks out once the process A is done!
Whereas I expected to break until both are done.
 
@elyse Like, trying to figure out when a decimal will start repeating itself.
 
user1804599
Ask on Mathematics.
 
Pi?
 
@BartekBanachewicz I've started doing stuff on codewars in haskell
 
General case evidently does not exist, since if it did, they'd use it to determine whether pi ever repeats
 
6:10 PM
@TomW Not Pi, I've verified it to be a rational number beforehand that does not terminate but will repeat.
 
I like how I only use list comprehensions for the simple problems and finish everything in one line lol
 
Now I can substitute braced macros, too :3
pcre2 has a neat API, although C
 
@TomW Pi is irrational and irrational numbers don't repeat, so we probably wouldn't use it for that :)
 
All their functions have a consistent naming scheme so I can macro out a lot of stuff
 
@ThePhD So what are you looking for? Given a numerator and denominator, find out what the period is?
 
6:12 PM
@Jeremy Sure. I'm just gonna do long-division that checks the remainder.
 
@ThePhD I don't think there's a better way.
 
list.contains doesn't seem to exist...
Maybe it's list.indexof
 
user1804599
@ThePhD no, it's __contains__
 
user1804599
i.e. 4 in [1, 2, 3].
 
Does it work for pairs?
4 in [{1,2}, {3,4}, {5,6}]
I should try it
 
user1804599
6:20 PM
sure
 
user1804599
that'll be false
 
user1804599
since none of the sets {1, 2}, {3, 4} and {5, 6} are equal to 4.
 
Ah.
Is there a way to compare only one part of it?
Like {whatever, 4} in [{1,2}, {3,4}, {5,6}]
 
user406009
No.
 
@TomW we have already determined that Pi's decimal expansion doesn't repeat: that's what being an irrational number implies.
 
6:22 PM
Maybe I'll just split it into 2 arrays.
 
user1804599
@ThePhD You have to flatten the list of sets first.
 
@elyse could flatten with zip I guess
 
user1804599
4 in itertools.chain(*[{1,2}, {3,4}, {5,6}])
 
Or, uh
Whatever that i - yeah, chain
 
user406009
Or just keep things simple and use filter
 
6:24 PM
@R.MartinhoFernandes huh. I didn't know there was an algebraic proof. I'd assumed that was the scientific basis for computing vast numbers of digits of pi.
 
No. That's essentially masturbation.
 
user3790646
wtf
 
user3790646
I just log in
 
user3790646
and that's what you all are talking about
 
What is?
There are two conversations going on, so I doubt there's one thing we are all talking about.
But good job jumping to conclusions there
 
user3790646
6:25 PM
that was a joke.
 
user3790646
damn ***kers
 
user3790646
just kidding, again.
 
user406009
This room has no defined topic. Other than a love of drama.
 
user1804599
@ThePhD since you're speaking of pairs, you know {1, 2} is a set, right?
 
user1804599
and (1, 2) is a tuple
 
My Google-fu is sharper than yours, sensei.
 
user3790646
damn I don't know basic calculus
 
@elyse Woops, forgot about that difference...
 
6:34 PM
user image
3
I like this. (color coded non-transcendental (algebraic) numbers on the complex plane)
 
user1804599
@ThePhD so in that case ...
 
No no, it's okay!
 
user1804599
4 in (y for x, y in [(1, 2), (3, 4), (5, 6)])
 
I figured it out.
 
user406009
Did you just use filter like a sane person?
 
6:35 PM
No.
I split the array.
 
what should I look for in a motherboard?
 
@Mr.kbok love
Having a socket for your CPU is the first thing
 
USB3 & Bluetooth
 
Herb is now suggesting lifetime annotations for the static analysis thingy he and Bjarne and several other people are working on.
 
6:43 PM
Hello, Rust.
 
Perhaps check that hdd connectors makes sense with your case
 
@набиячлевэлиь Well. I want the loungers' opinion, not tom shard ware's.
 
I did nuthin'!
 
You want Mysticial's
 
@Mysticial halp
 
6:46 PM
TIL DDR4 is the new black
 
@ElimGarak wow
 
whhhhhhhhhhhhhaaaaaaaaaaaat
 
@Mysticial I want the lounge's opinion on what's important in a motherboard.
 
@elyse <rolls eyes/>
 
@Mr.kbok Depends on what you want to do with it. If you want to smash people's heads, then I suggest you get one with as many sharp and pointy heatsinks as possible.
 
6:51 PM
@Mr.kbok What's your use case?
 
> Każdego. Jeśli walnąć prosto w łeb.
Relevant for usecase
 
@ElimGarak Photoshop, mostly. I'll be doing programming on it but it's not really demanding considering what I'm doing.
 
@Mr.kbok Lotsa RAM
 
user406009
@Griwes I think someone in here also has a lifetime annotation proposal.
 
@набиячлевэлиь In a motherboard?
 
6:53 PM
@Mr.kbok Yes
(shut up; I'm an idiot :G)
 
user406009
@Griwes ah yes, it was Potatoswatter.
 
Also apparently if you have foo * bar(baz * buzz, ...);, it assumes that the lifetime of the return value is related to lifetime of buzz...
 
user406009
That's the default in Rust as well.
 
@Lalaland A what?
 
6:55 PM
Is it? Hmm.
(Bear with me, I'm no expert on Rust.)
(Especially on Rust lifetime annotations ;_;)
 
user406009
A proposal for adding lifetime annotation sytax to C++. The idea is basically to relate the lifetime of a return type with the input types.
 
IRTA "mr fuck".
 
user406009
Like how the result of string.c_str is tied to the lifetime of the string.
 
@Lalaland that's basically what Herb talks about
 
@Lalaland How would that annotation work?
 
user406009
6:58 PM
@ʎǝɹɟɟɟǝſ look at Rust's lifetime annotation sytax.
 
template<Iter> void insert(Iter begin, [[lifetime(begin)]] Iter end); is mostly how the thing Herb's showing looks like.
 
user406009
You can also read @Potatoswatter's proposal.
 
@AndyProwl Is that the one Herb was playing? That looked like a true 2.10m+ grand (old as hell, but still)
 
@sehe Dunno, I will post a pic. Haven't tried it yet
 
this pattern matching thing in haskell is like in prolog except you can do even more interesting things with it
 
7:01 PM
@AlexM. s/interesting/fucked up/
 
user1804599
@ʎǝɹɟɟɟǝſ RIP 0x10c
 
user406009
 
user406009
Not as powerful, but still useful.
 
user3790646
programmer's quote of the day
 
user3790646
 
user406009
7:04 PM
I think that sort of logic is toxic.
 
I seriously hope that the pope doesn't read the comments to his tweets
 
user406009
You don't expect other professions to be "devoted"
 
cpx
I am one of them most but I am not good!
 
@ScottW mr fuck?
 
user3790646
but you're going to be one of the good ones"
 
user3790646
7:06 PM
just like me, someday
 
user406009
I would rather have the cash.
 
cpx
@AndreyErick Do you mean you will be good at it someday and I will be like you?
 
user3790646
no
 
user3790646
you're going to be good at it someday
 
user3790646
and I'm going to aswell
 
user3790646
the hell is that
 
cpx
Depends if I keep on doing otherwise never.
 
@Lalaland Does that work if you call it with templated functions?
 
@Morwenn check ewt oot ^
 
@ScottW what did you mean?
 
user406009
7:13 PM
@ThePhD don't know off hand.
 
@ScottW not before marriage
@ScottW ok
 
@ThePhD Pi terminates at two digits (in base Pi).
 
@JerryCoffin q_q
So my algorithm works
... Except when there's leading digits in front of the number.
So I'm missing a delicate case here... ... or five.
 
@Lalaland D'you have a link to that?
 
user1804599
imagine fools
 
user1804599
7:22 PM
imagine, fools
 
Ell
@Lalaland I agree
 
@elyse Go to SO. No imagination needed.
 
Ell
I'm sure good HR managers don't enjoy firing people (or is that a contradiction in terms?)
 
user1804599
@JerryCoffin :D
 
@Ell no, but deep inside they think this
Can you feel ze Schadenfreude??
 
7:28 PM
I... I must be losing it.
When you do long divison, you can detect if a variable is going to be repeating by looking at the current carry-down you're going to be dividing.
If it's similar to one you say previously, than you know you're going to repeat the carry-down process all over again... right?
 
@ThePhD Losing? Sorry, too late for that.
 
what do you mean by "detect if a variable is going to be repeating" ?
the digit of the quotient?
 
Oops. If the quotient, yeah.
Like
1/11 is like 0.09999
 
@ThePhD You can detect when it repeats, yes. That can get impractical if it doesn't repeat until after, say, 2e17 or so digits though.
 
@JerryCoffin I was trying to use primes and fancy math before to detect it, but it proved too difficult and apparently has corner cases.
 
7:31 PM
@sehe looks like this:
 
user3790646
:3
 
user3790646
I love the catface
 
:-) 3
Boobs
 
I suppose Jerry is right. It can be done but it will be hard to do if it repeats after a certain number of digits
 
I'm trying to collect all the repeating digits at the moment.
 
7:33 PM
are you doing this in binary?
 
No, base10
 
long division gets easier if you just shiFt things up
 
My algorithm BALKS miserably when it comes into contact with things like 1/11, because of the leading 0.
 
damn I forgot that F
I could have mistyped any letter.. ANY.. but I mistyped that F and totally missed it
 
When I encounter more than just 1 carry, I multiply by 10 to get an extra 0 slot. If I do this more than once, then I use the yield statement to drop a 0 in the output of the decimal digits.
 
7:35 PM
@JerryCoffin The repeat cycle can never be longer than denominator - 1. But that's still pretty large.
 
What I don't know how to do is account for that properly in the algorithm that accumulates the repeating section.
 
What are you trying to do?
 
@ScottW excuse me?
 
@Mysticial 1/n, when you detect it begins to repeat, just vomit out the repeating section and then stop.
 
user1804599
 
user3790646
7:37 PM
hello Cicada
 
I've got it to work on everything that doesn't carry more than once (e.g. borrows another 0 to keep the long division going).
 
You might need to keep a lookup table of all the residuals that have shown up. Once you hit one for the second time, the portion between that digit and the first time you hit it is the repeating sequence.
 
whoa hyper threading looks really great
 
ahaha
 
Why not just stop after a certain number of digits / decimals?
 
7:41 PM
Because that's not correct.
 
What are you gonna do for stuff that has extremely long repeating sequences?
Since it's potentially denominator - 1. If n is on the other of a billion, have fun.
 
user3790646
wtf can't fucking drag and drop items on Visual Studio's UML diagram editor
 
user3790646
 
@Mysticial Tell the Professor to enjoy their new space heater.
 
Ell
I'd like to make some personal accounting software
 
7:43 PM
Have any of you tried this cross-platform library?
 
Ell
@Mr.kbok looks better than e
 
I wonder if I should by a crappy processor now to upgrade later
@Ell e?
 
What are you trying to get?
 
i3 4160 for 120e
 
I'm mostly impressed so far.
Probably the most impressive part is that I can get the same GUI to compile and show up on both Windows and Android.
 
Ell
7:44 PM
@Mr.kbok ecstasy
 
user1804599
@Ell do it in COBOL.
 
@Mr.kbok Go Skylake.
 
And, based on what I've seen (although I haven't done it yet), I could do the same for OSX, Linux, and iOS.
What is it with you and COBOL, @elyse ?
 
user3790646
My i7 blinks in the dark laughing loudly
 
user1804599
It's well-suited for Ell's problem.
 
7:46 PM
@Mysticial skylake?
 
@Mysticial I never noticed it, do you have any proof for that?
 
@caps She's making a COBOL cimpoler in TypeScript
 
@набиячлевэлиь Yeah, uh... why? That's my question. I've seen rightfold talk about COBOL before, so I'm just curious about what the draw is.
 
user3790646
damn dollar is 4,04 reais
 
user1804599
COBOL is fascinating.
 
user3790646
7:47 PM
near the value of euro
 
user1804599
And easy to brag about.
 
Does TypeScript have infix funciton calls?
 
@MarcoA. The remainder of a division is a state after each digit. And it's the only input that affects the next digits. The remainder can only be in the range [0, n). If it's zero, it terminates so that doesn't apply. So you have a total of n - 1 states which you cycle through.
 
@Mr.kbok It'd look even better if it were a couple years younger and wearing a tighter dress. ;-)
 
> JUCE is led by Jules Storer, a professional C++ coder for 20 years, who has studied all the available C++ guru literature.
urgh
 
7:49 PM
1/7 is an example where you cycle through all states 0 - 6.
 
wait, you're talking about its possible values, not the length of a repeating subsequence right?
 
@Mysticial To be more precise, it can be arbitrarily large.
 
@MarcoA. They are the same. Think of a long division, as a finite state machine. After each digit, you have a new remainder.
Each time you do an extra digit, you hop to a new state. The moment you revisit a state which you've been to before, you will enter a cycle.
The cycle cannot be longer the # of possible states.
 
@JerryCoffin You know what else can be arbitrarily large ( ͡~ ͜ʖ ͡°)
2
 
I see your point, makes sense
 
user1804599
7:52 PM
@набиячлевэлиь YOUR COCK
 
an arbitrary but satisfactory number of decimals at which point you stop.
 
@elyse Well, wasn't that fast
 
@набиячлевэлиь As GUI libraries go it actually hews pretty well to good coding practices.
 
user1804599
I want a {boy,girl}friend.
 
@Mysticial wondering what's the difference with irrational numbers (e.g. pi)
 
7:54 PM
@MarcoA. Irrational numbers can't be represented as fractions.
 
there's an approximation of pi I suppose
but that goes on forever
 
@набиячлевэлиь juce.com/learn/coding-standards
 
In essence, the state machine view is proof that all fractions (consisting of integers) will either terminate or repeat.
With period no greater than denominator -1.
 
user3790646
seems creepy
 
user3790646
 
user3790646
7:56 PM
wait, only if you read it as a brazillian
 
user3790646
nevermind...
 
why are you using me for your perversions?
 
user3790646
I do that to my friends, sometimes
 
@MarcoA. There are infinitely many approximations of pi, to essentially any arbitrary level of accuracy you care to choose. But, without using a base that's itself irrational (well, not just irrational, but transcendental) you can never represent it perfectly.
 
Roughly speaking, any decimal (with magnitude near 1) with 2N digits can be approximated using a fraction with an N-digit numerator and N-digit denominator.
 

« first day (1802 days earlier)      last day (3137 days later) »