Ken Chiu(@kjw_chiu) 's Twitter Profileg
Ken Chiu

@kjw_chiu

Ass. Prof. of Comp Sci at Binghamton U. Parallel computing, applied ML, science groupie. I reply/tweet haphazardly and eclectically. @kjw-chiu.bsky.social

ID:1218655829697748992

calendar_today18-01-2020 22:07:24

6,0K Tweets

881 Followers

1,8K Following

Chris Green(@ChrisGr93091552) 's Twitter Profile Photo

Here's my entry:
char grade( int score )
{
int nIdx = floor(((score - -2.0) *
0.045283969041293934) -
(cos(cos(score * 0.03114100715856666) *
1.5790931375763757) * 1.98522506643194));
return 'FDCBA'[nIdx];
}

godbolt.org/z/77sfs1f8q

account_circle
fmap :: (a →b) → f a → f b(@indofunctor) 's Twitter Profile Photo

the other answers are all wrong because they don't use enough category theory; the grades reveal an elegant semigroup structure with F as the identity element thus making them monoidal. also, grade ranges are clearly monadic

the other answers are all wrong because they don't use enough category theory; the grades reveal an elegant semigroup structure with F as the identity element thus making them monoidal. also, grade ranges are clearly monadic
account_circle
Ken Chiu(@kjw_chiu) 's Twitter Profile Photo

That means that:
def f(l = []):
print(l)
l.append('another')
f()
f()
prints out ['another'] in the second call to f().

account_circle
Ken Chiu(@kjw_chiu) 's Twitter Profile Photo

Given a seq. of ints from a PRNG, is there a good test of how much knowing n_i helps in predicting n_{i+1}? I guess like auto-corr. but more model-free? Maybe cond. entropy? It's okay if it's compute intensive. Can you tell I have stuff due tomorrow?
Sam Power Daniel Litt

account_circle
Ken Chiu(@kjw_chiu) 's Twitter Profile Photo

Pseudo-random number generation is hard. From a titan in computer science, Donald Knuth, a 'super-random' generator:😂

Pseudo-random number generation is hard. From a titan in computer science, Donald Knuth, a 'super-random' generator:😂
account_circle
xuan (ɕɥɛn / sh-yen)(@xuanalogue) 's Twitter Profile Photo

The neat thing about the prevalence of the pentatonic scale is that it's often possible to combine tunes across musical cultures pretty seamlessly!

Growing up I often thought Dvorak's 'New World Symphony' was a Chinese melody, just because it's pentatonic.

account_circle
Jay Cummings(@LongFormMath) 's Twitter Profile Photo

When you are first shown a function that is continuous at every irrational number but discontinuous at at rational number

When you are first shown a function that is continuous at every irrational number but discontinuous at at rational number
account_circle