Bartosz Milewski(@BartoszMilewski) 's Twitter Profileg
Bartosz Milewski

@BartoszMilewski

Physicist, programmer, mathematician. Author of Category Theory for Programmers. @[email protected]

ID:17606964

linkhttp://bartoszmilewski.com calendar_today25-11-2008 01:02:11

10,7K Tweets

32,3K Followers

37 Following

Follow People
Matt Binder(@MattBinder) 's Twitter Profile Photo

Sam Bankman-Fried has just been sentenced to 25 years in prison

remember when some supposedly very smart people were so sure he wasn't even going to be investigated

Sam Bankman-Fried has just been sentenced to 25 years in prison remember when some supposedly very smart people were so sure he wasn't even going to be investigated
account_circle
Bartosz Milewski(@BartoszMilewski) 's Twitter Profile Photo

For completeness, a blog post with the categorical view of the pre-lens construction. bartoszmilewski.com/2024/03/24/neu…

account_circle
Bartosz Milewski(@BartoszMilewski) 's Twitter Profile Photo

New blog post on using lenses and profunctors to implement a neural network. bartoszmilewski.com/2024/03/22/neu…

account_circle
Graham Hutton(@haskellhutt) 's Twitter Profile Photo

Interested in learning Haskell? The full set of 16 videos from my introductory course based on the book 'Programming in Haskell' is now freely available on YouTube. Happy Haskelling :-) tinyurl.com/haskell-notts

account_circle
Erik Meijer(@headinthebox) 's Twitter Profile Photo

RIP en.wikipedia.org/wiki/Frans_de_…

(Everyone surely recognizes this emotion: youtube.com/watch?v=meiU6T…)

account_circle
Bartosz Milewski(@BartoszMilewski) 's Twitter Profile Photo

In imperative languages people tend to access data in containers one by one, using loops. So bound-checks in accessors kill performance. The solution is to implement optimized bulk operations: maps/catamorphisms; and discourage loops by making all single accessors bound-checked.

account_circle
Bartosz Milewski(@BartoszMilewski) 's Twitter Profile Photo

I used to laugh at the naivety of sci-fi stories in which future societies are ruled by dictators and engaged in devastating wars. Surely, humanity would have outgrown such follies.

...I'm not laughing any more.

account_circle
Bartosz Milewski(@BartoszMilewski) 's Twitter Profile Photo

Funny thing is that many C++ interview questions ask you to implement things like tree traversals without using recursion. Instead of the call stack, you use a much less efficient hand-crafted stack. All because of ancient processor architectures. stackoverflow.com/questions/5987…

account_circle
Bartosz Milewski(@BartoszMilewski) 's Twitter Profile Photo

Stack overflow error is an abomination and should only happen when you exhaust your computer's memory. It's like saying that your loop cannot iterate more than 1000 times. So much needless work goes towards eliminating recursion for the fear of stack overflow.

account_circle