Edward Kmett⏏️ Profile Banner
Edward Kmett⏏️ Profile
Edward Kmett⏏️

@kmett

Followers
14,807
Following
797
Media
643
Statuses
12,682

Founder/CTO @Positron_AI Helping @ToposInstitute I talk about Haskell, category theory, AI, and safety.

Here, Now
Joined October 2008
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@kmett
Edward Kmett⏏️
7 years
Given a choice between two things, I always try to do the one that nobody will believe me about later.
8
35
303
@kmett
Edward Kmett⏏️
1 year
Tweet media one
21
277
3K
@kmett
Edward Kmett⏏️
5 years
Berkeley is a strange and sometimes wondrous place. I just had the 𝙥𝙞𝙯𝙯𝙖 𝙙𝙚𝙡𝙞𝙫𝙚𝙧𝙮 𝙜𝙪𝙮 recognize me and ask a bunch of Haskell questions as we sat on the deck and ate said pizza. 😆🍕🤭 10/10 will order again
19
197
2K
@kmett
Edward Kmett⏏️
2 years
Tweet media one
22
176
2K
@kmett
Edward Kmett⏏️
1 month
@zetalyrae Clearly there are several layers of fluid in there with different specific gravities, like a layered unmixed cocktail. Given the specific gravity of a human body is generally in the range 0.916 to 1.049. If you start with something heavier than that and top-off with something
16
5
686
@kmett
Edward Kmett⏏️
3 years
This should make for some over the top zoom calls once it is all set up.
Tweet media one
19
44
650
@kmett
Edward Kmett⏏️
4 years
does a great job breaking down what is in the Pfizer vaccine.
15
248
630
@kmett
Edward Kmett⏏️
29 days
@SHL0MS Which one? I have no idea how much current I can draw through that. It is somewhere from 2.5W - 240W, 500mA - 5A. Both extremes exist. 5V only? 5/9/15/20V? 28/36/48V? I have no idea how much data I can draw through that, or if I can even draw data at all. Is it USB2? USB3.2?
Tweet media one
43
20
602
@kmett
Edward Kmett⏏️
2 years
Haskell, though not perfect, is of a quality that is several orders of magnitude higher than Java — Edsger W. Dijkstra
Tweet media one
18
79
489
@kmett
Edward Kmett⏏️
9 years
Springer has made a lot of my favorite math books available online, for free! Everything that is 10 years old. o_O
11
361
482
@kmett
Edward Kmett⏏️
1 year
@ZeitgeistSchool @bastard_brian His name was based on Nevada Smith. Renamed to Indiana because of Lucas' dog name, then Jones because Spielberg hated the name Smith.
1
0
362
@kmett
Edward Kmett⏏️
4 years
My white friends, at least those who couldn't stock up or actually have to work outside, are all cranking out masks like this is Halloween meets Burning Man, while my black friends from back in Detroit are all "You want me to put a bandanna on my face and walk into a store?!"
1
50
331
@kmett
Edward Kmett⏏️
5 years
People keep saying learning programming languages makes you a better programmer. It really doesn't. It makes you [better] up to a point. Then it makes you bitter and dissatisfied because you'll never be able to port those ideas to your day job -- @deech
9
63
324
@kmett
Edward Kmett⏏️
5 years
Things I do prefer about Rust over C/C++ * an actual package manager! * traits means no SFINAE silently eating half your codebase * macros trump templates for code gen * borrow checking is kinda cool and all * but most importantly std::mem::size_of::<()>() = 0 as God intended.
4
28
285
@kmett
Edward Kmett⏏️
4 years
Liquid Haskell becoming a GHC plugin took it from being a mostly-academic toy to an amazing power tool overnight. Wow! I lack words to express how happy this makes me. Now to integrate it into my current project. Kudos to @RanjitJhala and @welltyped .
0
71
271
@kmett
Edward Kmett⏏️
4 years
Can an anti-anti-armchair (epidemiologist, economist, constitutional scholar...) movement start already? I'm sick of the narrative that displaying any competence or interpreting data outside your pigeon-holed niche is bad. I've literally built my career on doing just that.
15
27
246
@kmett
Edward Kmett⏏️
6 years
My new t-shirt:
Tweet media one
6
53
246
@kmett
Edward Kmett⏏️
4 years
A good one stop explainer on the state of COVID-19 for friends/family: Not much new, unless you've been stuck in a bubble (ICU?) for the last 2 weeks, except impact of even a day of delayed social distancing, but it tracks with the best models I've seen.
5
153
241
@kmett
Edward Kmett⏏️
9 months
@crazyiIIusions brie, oil, stir. Apparently this is the year i learn to cook?
1
0
235
@kmett
Edward Kmett⏏️
4 years
@BenSassiAladin We have backups, right?
0
5
224
@kmett
Edward Kmett⏏️
5 years
Good luck, Simon! I'm always gobsmacked at what you get up to, and I can't think of anyone more suited to the role.
@MicrosoftUK
Microsoft UK
5 years
#Microsoft researcher Simon Peyton Jones appointed first chair of National Centre for Computing Education ( @WeAreComputing ):
Tweet media one
3
92
269
0
31
214
@kmett
Edward Kmett⏏️
4 years
@ReinH I always figured, in light of the fact that Slack itself wouldn't let its employees use it for remote work, that Slack isn't for remote work at all, but rather for laundering internal communications by ensuring they aren't retained more than ~2 weeks unlike email.
6
17
211
@kmett
Edward Kmett⏏️
4 years
Support: Have you tried turning society off, waiting 4 weeks, and then turning it back on again?
4
50
212
@kmett
Edward Kmett⏏️
6 years
hosted its inaugural (unrecorded) test live-coding stream last night and everything worked smoothly. The transformation of my home office into a movie studio is almost complete! A schedule will be forthcoming and future streams will be recorded.
Tweet media one
Tweet media two
Tweet media three
7
49
205
@kmett
Edward Kmett⏏️
4 years
The lengths some will go to to avoid monads.
@mattn_jp
mattn
4 years
Go の if err != nil { ... } を入力してくれるボタンを作りました。 #raspberrypipico
3
77
448
6
32
195
@kmett
Edward Kmett⏏️
6 years
This talk by Barbara Liskov is a great look back at the birth of abstract data types, object oriented programming, generics, her substitution principle, etc. It is so hard to imagine a world without these things.
0
43
190
@kmett
Edward Kmett⏏️
4 years
Everyone likes to talk about Dijkstra's great handwriting, but I've never seen anyone comment on Grothendieck's consummate artistic talent.
Tweet media one
2
32
188
@kmett
Edward Kmett⏏️
3 years
I'm trying to learn Haskell, but the type errors I'm getting are pretty confusing.
Tweet media one
16
20
179
@kmett
Edward Kmett⏏️
11 months
"You go into your toolchest and you select, I don't know, that sad excuse for a Scala effect system, for instance, because you're trying to tell the world that you take yourself too seriously to care about monad tutorials or abstract category-theory. [...] And you're also
@tangled_zans
Zanzi Tangle, now at Monoidal Cafe
11 months
we need an FP version of this meme "You think you don't care about monads? I think it was in 2007 that Peyton Jones and Wadler wrote the paper on comprehensions. And that influenced the development of CEs in F#. Which then trickled down to some tragic tutorial you no doubt read"
8
7
92
4
36
178
@kmett
Edward Kmett⏏️
3 years
Freenode has now unilaterally taken over #haskell . Fuck everything about this.
7
40
179
@kmett
Edward Kmett⏏️
2 years
Signed distance fields, MCMC sampling. All my favorite things thrown into a blender and then.. thrown at PDEs? Wat? It is practically a Rosetta stone for bridging graphics tricks to the PDE world! Mind blown. I _adore_ this talk. So many great ideas.
5
34
177
@kmett
Edward Kmett⏏️
9 years
Tsurezuregusa 150, written by a Japanese monk around 1330, remains deeply relevant advice to this day (via @nushio )
Tweet media one
Tweet media two
5
115
173
@kmett
Edward Kmett⏏️
5 years
Over the last couple months, David Turner's Miranda source code has been released! Miranda first tried the cookies 'n cream combo that is type inference and laziness, and shaped Haskell. For those interested in compiling to combinators, it's a goldmine.
5
60
168
@kmett
Edward Kmett⏏️
5 years
This talk on Differentiable Programming by @headinthebox hits so many of the talking points I've been using lately that it is positively eerie. It is well worth your time.
2
25
166
@kmett
Edward Kmett⏏️
5 years
This clip from @Jonathan_Blow provides incredibly actionable advice about how to tackle hard problems in large programming projects. I'm as guilty as anyone living of the "going deep into the weeds to crush sub-problems" approach that he calls out here.
2
40
166
@kmett
Edward Kmett⏏️
5 years
@ShriramKMurthi It was way less socially awkward to rip the top off the box to use as plates and offer him some while we chatted than to either stand around with my pizza getting cold, or to scarf it down in front of him. Screw the social contract. Service industry folks are people too.
2
1
164
@kmett
Edward Kmett⏏️
1 year
Google finally got around to discovering -- and maybe starting to use -- Taylor models, which have been in use elsewhere since... er.. 1998. Martin Berz, Kyoko Makino. You can find a hundred or so papers here. Hell, I have decade plus old work on this myself in Haskell.
@GoogleAI
Google AI
1 year
A new generalization of automatic differentiation lets researchers compute upper and lower bounds on functions, instead of just derivatives, leading toward more principled learning rate selection during #ML model training. Learn more:
Tweet media one
29
170
871
7
16
163
@kmett
Edward Kmett⏏️
1 year
Simon Peyton Jones? I mean, he hasn't let all that power over GHC go to his head. It's not like he's going off and change education or cram FP, non-determinism and logic programming down the throats of the masses who just want to learn to program games or something...
@NathanpmYoung
Nathan 🔍
1 year
I don't know anyone who is universally liked, universally known and powerful. If people have power there will be disagreements on how they use it, unless just no one knows who they are. I think if you seek to be powerful, you should have realistic expectations.
6
0
11
9
9
159
@kmett
Edward Kmett⏏️
6 years
Haskell Live Coding on Twitch with Edward Kmett, Session 1 Sunday at Noon (EDT) Event Link: Let's play around with commutative applicative functors.
1
48
158
@kmett
Edward Kmett⏏️
6 years
Marvel: "Infinity War is the most ambitious crossover event in history." Me: Nah, bra.
1
62
156
@kmett
Edward Kmett⏏️
6 years
I've uploaded the first version of `unpacked-containers` to hackage. It uses backpack to give a ~15-45% performance improvement vs. code using `Data.Set` and `` for unpackable key types. Feedback welcome!
3
53
158
@kmett
Edward Kmett⏏️
7 years
I am pleased to announce that I have accepted a new job over at Digital Asset ( @digitalassetcom ). Let's put functional programming to work.
14
16
156
@kmett
Edward Kmett⏏️
6 years
Lenses are everywhere it seems...
3
28
157
@kmett
Edward Kmett⏏️
1 year
Left side of mouth: "We're totally going to keep this lonely engineer in a box and only ask it questions of monumental import that we can check in excruciating exactitude." Right side of mouth: "Here's my github and AWS credentials, go nuts."
2
10
156
@kmett
Edward Kmett⏏️
9 years
ಠ_ಠ Version numbers are not strings, Oracle. http://t.co/jw4WbQbHEG
Tweet media one
7
164
150
@kmett
Edward Kmett⏏️
6 years
Knuth's Christmas lecture this year just gave me a bunch of new ways to think about constraint satisfaction problems. I'd already twigged to the idea of making cheaply backtrackable structures, but he really puts the one he has there to work!
1
35
154
@kmett
Edward Kmett⏏️
2 months
@ChShersh @MarisaVeryMoe Ask yourself why B-trees exist and are _provably optimal_ for so many applications if the asymptotics you claim here can also exist. Replace B-trees with cache oblivious b-trees if you want to work in worlds with caches you don't know. Don't want to think about the IO mode? A
1
18
154
@kmett
Edward Kmett⏏️
4 years
Light fields are huge 5D functions, (x,y,z,θ,φ)->color; 4D if you limit yourself to a manifold. Never considered just throwing a neural network at them. The result is stunning and fuses together so many of my favorite things. /cc @TwoMinutePapers
4
42
149
@kmett
Edward Kmett⏏️
5 years
Now that the cat is out of the bag, I should add that I'm also participating in trying to help @david_i_spivak and Brendan realize their vision for the Topos Institute, in my case as a board member. Let's put category theory to work.
7
25
145
@kmett
Edward Kmett⏏️
3 years
I built a thing. With linear types and the right notion of an arrow, we can build full intuitionistic linear logic by riffing off of a paper by Mike Shulman that derived affine logic in a more normal setting. Top, Bot, Void, (). Requires GHC 9.0.1
8
26
139
@kmett
Edward Kmett⏏️
6 years
The best thing about this reply is that as far as it goes, it is actually correct.
@hmemcpy
Igal Tabachnik
6 years
Hello, I would like to hear a Haskell joke.
Tweet media one
18
353
786
2
28
141
@kmett
Edward Kmett⏏️
4 years
Fox News may have finally changed its tune on COVID-19, but much of the damage is done. Many will die for no reason. When we tried to convince my mother in law to take any precautions, she just spouted 10 minutes of old Fox talking points.🤬 Talk to your conservative relatives.
8
16
137
@kmett
Edward Kmett⏏️
4 years
This chart shows just how much work is left to do to flatten the curve as well as anything. (Every once in a while it is worth taking off the log-scale blinders.) Anyone who can look at this chart and say to your face that NOW is the time to throw open the economy has an agenda.
Tweet media one
6
53
139
@kmett
Edward Kmett⏏️
5 years
Category theory going mainstream? Psh. I was into category theory before it was cool. Oh crap. I feel the hipster transformation starting. But I don't _want_ to drink craft beers, wear a man bun... tattoo sleeves... and what would I do with all that flannel? Help!
16
17
136
@kmett
Edward Kmett⏏️
5 years
I've had my disagreements with @jdegoes in the past, but the gross inconsistency in pushing to bury John (and @emi1lypi by association) under @typelevel 's COC whilst seemingly ignoring @travisbrown 's excesses has pretty bad optics.
6
25
136
@kmett
Edward Kmett⏏️
4 years
Another great article by @tomaspueyo on the course of COVID-19, now incorporating the advice from the Imperial College (and later criticisms thereof). Get this in front of folks who think this is no big deal.
3
45
88
@kmett
Edward Kmett⏏️
26 days
@Sosowski @cbrzeszczot The hell for apple is they give you an API like they'll accelerate anything and everything but it only works for a very rigid stride pattern that you just have to psychically know in advance to invoke with.
2
0
134
@kmett
Edward Kmett⏏️
4 years
GPT-3 providing an _almost_ coherent explanation of category theory:
10
25
133
@kmett
Edward Kmett⏏️
7 years
Congratulations, Simon!
@UniKent
University of Kent
7 years
We are delighted to award an honorary degree to Professor Simon Peyton Jones alongside our @UniKentSPS @UniKentComp #KentGrads
Tweet media one
1
42
160
2
24
134
@kmett
Edward Kmett⏏️
11 months
@TylerGlaiel Well, sure, but I have like 1000 games on steam that I'm totally going to get around to some day.
3
0
130
@kmett
Edward Kmett⏏️
4 years
This made my day. Audrey has been a huge influence on me. Her work on pugs taught me how effective just trusting people to do good work and being radically inclusive of committers could be. So good to see her ideas at work in an even more important space!
2
30
129
@kmett
Edward Kmett⏏️
3 years
You know category theory has gone mainstream when NASA is singing its praises for _Systems Engineering_.
@cbarrett
Colin Barrett (NEET arc)
3 years
NASA says Category Theory is the “Mathematical Basis of Systems Engineering.”
13
130
574
2
12
129
@kmett
Edward Kmett⏏️
6 years
Stream 1 results: We had 150-170 people stick around for the 4 hour stream. 3.5 hours of code, 1/2 hour of general Q&A. 60% old hands, 40% new. After that we "raided" @puffnfresh and about half of the audience stayed to watch him stream even more Haskell!
5
17
125
@kmett
Edward Kmett⏏️
1 year
(
@littmath
Daniel Litt
1 year
you will never be able to close this parethesis)
42
13
539
6
2
126
@kmett
Edward Kmett⏏️
5 years
Woke up to find this.
@impurepics
Impure Pics
5 years
@kmett vs. The World. Remake of the classic talk
Tweet media one
3
6
72
4
14
116
@kmett
Edward Kmett⏏️
4 months
made my day
4
21
123
@kmett
Edward Kmett⏏️
4 years
I am very concerned that Apple Silicon will have the same sort of concurrency concerns that their PowerPC systems used to have due to the relaxed memory model of ARM relative to X86. There's a ton of desktop software written assuming TSO. So many bugs; so many missing fences.
13
20
122
@kmett
Edward Kmett⏏️
2 years
She follows the GNU/Testament.
@gabsmashh
gabsmashh
2 years
i have questions.
Tweet media one
332
503
4K
6
10
118
@kmett
Edward Kmett⏏️
5 years
I finally figured out how to properly use a macbook pro stand. Once mounted upside down and tricked into rotating the built in display, I don’t have to waste desktop space on the useless touchbar’d keyboard and can still use the screen to fill my field of view with tiny pixels.
Tweet media one
5
26
121
@kmett
Edward Kmett⏏️
4 years
Need to dig out an analog oscilloscope. It seems all the “modern” digital ones don’t support a proper XYZ mode. How am I supposed to pick up the “pen” like this. Hrmmph.
5
13
117
@kmett
Edward Kmett⏏️
6 years
This talk by @edwinbrady on the state of Blodwen is definitely worth watching: Throughout his talk, the benefits of linear types for program synthesis are made quite painfully obvious.
0
23
119
@kmett
Edward Kmett⏏️
2 years
Tweet media one
4
2
118
@kmett
Edward Kmett⏏️
4 years
These @pigworker paper titles keep getting harder and harder to parse.
Tweet media one
4
14
115
@kmett
Edward Kmett⏏️
4 years
I don't think this protest is constructive.
@logicians
Philosophical Logic
6 years
It came from the internet.
Tweet media one
9
69
272
2
14
115
@kmett
Edward Kmett⏏️
3 months
@p1xelHer0 @TheEduardoRFS Yes. Ubiquitious laziness is one of my primary reasons for using Haskell. Recovering amortized analysis for a language that promotes working with immutable values. Okasaki basically identified the problem and wrote the book on this and said 90% of what there is to say, but the
6
30
115
@kmett
Edward Kmett⏏️
1 month
I like trees. I even just this week went out of my way to plant about as many trees as I reasonably could in my backyard. Did I do any real good for the planet or just arrange for a nice place to hang a hammock or two in a couple of decades? If you successfully planted -- and
@treylorswift
Treylorswift
1 month
@TimSweeneyEpic Why is Bill Gates so dismissive of planting trees?
0
0
0
4
22
113
@kmett
Edward Kmett⏏️
3 years
@TrishPutnam @nataliesurely @kazweida @KHNews I took my (uninsured) nephew to get his first vaccination shot. They called and hounded him to get his non-existent insurance information for _days_. He tried wiggling out of getting the second shot to avoid dealing with that crap again. The deterrent effect is quite real.
1
13
106
@kmett
Edward Kmett⏏️
6 years
On my most recent twitch stream, we built a little library for authenticated computations in Haskell working out several approaches to the problem: backpack, fundeps, type/data families, quantified constraints... Recording: Code:
0
16
109
@kmett
Edward Kmett⏏️
2 years
Readily composable and _nicely_ type-inferred lenses are possible in Rust, and they compile quite nicely! The trick is to use a constant complement encoding and think hard about what implies what re: constraints to pick between args and associated types.
3
17
110
@kmett
Edward Kmett⏏️
3 years
"As a functional programmer, I wish we could introduce lambda to the general population." MONKEY'S PAW: [curls]
4
18
108
@kmett
Edward Kmett⏏️
1 year
@thechosenberg Clearly all the major characters are HAM radio operators or truckers using CBs, or are really close by and use walkie-talkies, or never leave their homes and just use IRC all the time to talk to folks. (The last one was me in 93.) Bonus points for blending all four where
1
0
109
@kmett
Edward Kmett⏏️
3 years
It looks like the software industry can continue to exist, so that's nice.
@NPR
NPR
3 years
Just in: The U.S. Supreme Court, in a 6-2 opinion, found that Google’s use of Oracle's lines of code when creating its Android operating system constituted “fair use” under the copyright laws.
40
357
1K
1
14
108
@kmett
Edward Kmett⏏️
9 years
This remains, by far, the best GHC bug ever found:
11
81
105
@kmett
Edward Kmett⏏️
2 months
i feel seen
@RyanEls4
Ryan Els
2 months
An artist's work is never done 🤫
Tweet media one
16
363
4K
1
2
106
@kmett
Edward Kmett⏏️
2 months
Social cues are not really my forte.
Tweet media one
7
10
107
@kmett
Edward Kmett⏏️
5 years
Data.ByteString doesn't need to store an offset! ForeignPtr addresses are disconnected from the contents they manage, and the machinery to implement this has been available to us since GHC 7.0. This should save one word per ByteString when merged.
3
14
106
@kmett
Edward Kmett⏏️
3 years
There is little more depressing than rummaging though hackage to find multiple copies of code I wrote with other people, across a dozen years, now w/ fresh copyrights, new licenses and no reference to the original authors, as if it sprang forth fully formed from the brow of Zeus.
9
8
106
@kmett
Edward Kmett⏏️
3 years
I try to find new platforms to talk to users through on a regular basis. Conferences? IRC? Stack Overflow? Facebook? Twitter? Discord? Twitch? Clubhouse? Quora? Check. With that in mind, it is time to finally open an OnlyFans account.
7
5
101
@kmett
Edward Kmett⏏️
5 years
Slides from my Yow! LambdaJam 2019 talk on "Guanxi (關係), Logic Programming à la Carte" are now online: #YLJ19 . It provides a bit of a whirlwind tour of what I've been up to for the past several months.
2
26
105
@kmett
Edward Kmett⏏️
3 years
When I was a kid I wrote a little program that took over the 1541 and drove the printer to print a file while the computer was completely turned off. I thought it was clever and a great way to show off. This demo exceeds that by a pretty wide margin.
1
31
105
@kmett
Edward Kmett⏏️
1 year
_Every_ time I try the Russ Cox sparse-dense trick for using uninitialized memory I screw up and forget to use unsigned ints and then spend the next hour debugging. (It isn't technically his, but the easiest article to find on it is, so it is easier to just give him
3
13
104
@kmett
Edward Kmett⏏️
1 month
@zetalyrae Before anyone goes to actually er.. try this. You should almost assuredly cut the glycerin with at least 50% water to avoid skin issues. That would leave you with a mixture on the bottom with a refractive index of ~1.4, while most clear oils land in the 1.46-1.48 range. Mineral
3
0
106
@kmett
Edward Kmett⏏️
5 years
When I first met Csongor ( @Lowert ) and he tried to pitch me on this idea, I was appalled. He managed to win me over, once he got it past my knee-jerk reaction. I hope he can do the same for you: So many "bad category theory in Haskell" applications!
2
19
103
@kmett
Edward Kmett⏏️
5 years
I get terribly jealous every time I look at makepad. @rikarends ' baby leans in so hard to the benefits of Rust. The whole immediate mode GUI, the shaders, everything are all cleanly written directly in Rust. My imgui fumblings in Haskell will never be so cleanly done. Kudos.
@rikarends
Rik Arends
5 years
Today we launch an early alpha version of Makepad basic! Play with Rust+Wasm live. Compile and run the makepad desktop application for mac/win/linux yourself with Rust:
28
271
1K
2
13
103