Slava Egorov

27.4K posts

Slava Egorov banner
Slava Egorov

Slava Egorov

@mraleph

👋compiling compilers @Google // overall tech lead for the @dart_lang programming language @[email protected]

Aarhus Katılım Temmuz 2009
605 Takip Edilen11.6K Takipçiler
Sabitlenmiş Tweet
Slava Egorov
Slava Egorov@mraleph·
me developing software (2022 edition)
Slava Egorov tweet media
English
4
8
94
0
Felipe Morschel
Felipe Morschel@fmorschel_dev·
@mraleph should the performance tracking work for `flutter analyze` too (since it opens a DAS)? Or is it intended behaviour for all calls to show as unknown when I profile it?
English
1
0
0
114
RenderBox Overflow
RenderBox Overflow@EmeraldApps_io·
The insane bullshit in question is keeping multi billion dollar companies afloat. The reason its often being applied to small projects is potential scalability, so just because you dont understand something and are not willing to put in the time to grasp it and instead choose to just use whatever AI spits out, it doesnt mean its bad…
English
2
0
0
268
Slava Egorov
Slava Egorov@mraleph·
@m_feinstein @mahersafadii Because it's two different VMs. Or turn this around: if it was the same level of interop with two VMs then why even bother compiling to one VM (DEX)?
English
1
0
1
53
mFeinstein
mFeinstein@m_feinstein·
@mraleph @mahersafadii Why it won't get the same level of interop? Would it be an actual limitation, or is it just a performance issue? Like direct memory access VS boxing values into representations?
English
1
0
0
55
Maher Safadi
Maher Safadi@mahersafadii·
what are the actual downsides of Dart compiling to the os (jvm/LLVM) instead of directly to machine code, like we saw all the advantages that Kmp has because of this, dead easy native interop, are there any major downsides to doing it this way? cc @mraleph
English
1
0
11
3.1K
Slava Egorov
Slava Egorov@mraleph·
@m_feinstein @mahersafadii Because debug mode will have to use the same target as release - DEX bytecode, otherwise you dont get the same level of interop. (It's fair to say that you don't truly lose hotreload but it becomes very hard to implement because you don't have as much control over runtime)
English
1
0
1
59
mFeinstein
mFeinstein@m_feinstein·
@mraleph @mahersafadii Why would we lose hot reload? Hot reload could still exist in a "debug" compilation, with bad performance and all other bad things... And for a "release" compilation we get the best ever possible binary (whatever that means)... I only suppose that it increases complexity
English
1
0
1
52
Slava Egorov
Slava Egorov@mraleph·
@ulusoyapps @mahersafadii Poorly? Compose hot reload uses a fork of OpenJDK and does not work on Android. With enough effort you can make hot reload work on any platform, but the question is: why build house of cards when you already have a pretty good one made out of bricks.
English
0
0
4
71
Slava Egorov
Slava Egorov@mraleph·
@mahersafadii If it was a no-brainer we would have done it. It's unfortunately is not no-brainer.
English
2
0
2
118
Maher Safadi
Maher Safadi@mahersafadii·
@mraleph I used to follow the discussions that you used to have with jim, you did mention that it comes at a performance cost, but how big is it actually, because the trade off being dead easy and low cost interop sounds good
English
2
0
2
437
Slava Egorov
Slava Egorov@mraleph·
@mahersafadii we have built compiler to Java bytecode several years ago - and IIRC even had a simple Flutter app running on it, but in the end tradeoffs are so complicated and unclear that adding yet another target just did not feel right at that point. so we never shipped it.
English
1
0
5
208
Slava Egorov
Slava Egorov@mraleph·
@mahersafadii the simplest example is: you want to do hot reload, now you need to figure out how to do that hot reload on ART. (good luck)
English
2
0
7
978
Slava Egorov
Slava Egorov@mraleph·
@bunopus все, что нужно знать о Уелче, описано в книге The Man Who Broke Capitalism
1
0
2
164
Slava Egorov
Slava Egorov@mraleph·
@fmorschel_dev if you have any place where you can upload it - we could try to figure out ways to slice/analyze them in batch mode rather then to try viewing them in UI.
English
1
0
2
75
Felipe Morschel
Felipe Morschel@fmorschel_dev·
@mraleph, I have a big private project I would like to make DAS startup faster. The problem with using the perf command is that the files get huge (~18 min = ~1,5GB) and viewing them is hard. Any ideas on what could we do?
English
1
0
2
121
Slava Egorov
Slava Egorov@mraleph·
you ain't fooling me mr. I-use-slop-generator-to-make-what-I-think-are-useful-and-thoughtful-comments
Slava Egorov tweet media
English
3
0
19
2.3K
Slava Egorov
Slava Egorov@mraleph·
@HarrySild well, this is at least the type of work I would like LLM do, so there is some hope, so I will keep on trying. Though from the look of it - still takes longer than doing it by hand and you get questionable outcome, so might still be a waste of time rather than an acceleration.
English
4
0
2
204
Harry Sild
Harry Sild@HarrySild·
@mraleph Funnily enough Elixir author had the same vibe post not long ago and the community superstars managed to get better results. Not saying skill issue, but there definitely is more to getting stuff out of AI than just asking for the hard problems. x.com/i/status/20198…
José Valim@josevalim

@chris_mccord @pmarreck @pmarreck How the heck did you get Claude to find bugs twice, on Chris' commit and mine, while mine just spinned in circles?! Was it running a debugger? Did it just look angrily at the code?

English
2
0
1
273
Slava Egorov
Slava Egorov@mraleph·
I really wish I was in living in the same parallel universe as AI slop wankers and could just spawn a freaking agent per item of my backlog... And not have to rm -rf the produced garbage later.
English
13
2
79
11.9K
Slava Egorov
Slava Egorov@mraleph·
@kevmoo Some datacenter somewhere burned all those watts and all you got out is a fairly trivial mechanical refactoring - very far away from what I would describe as a true slog. I am sorry to be a bearer of bad news.
English
1
0
12
497
kevmoo
kevmoo@kevmoo·
github.com/dart-lang/sdk/… this is one of my favorite examples. At the start doing this refactoring didn't make a lot of sense. Then eventually we had a bunch of boilerplate and copied code. You could have done this refactoring by hand but it would have been a slog.
English
2
0
5
1.2K
kevmoo
kevmoo@kevmoo·
Slava, I think you're neglecting all of the toil that most engineers live in everyday. You work at the most complex levels of a complex system. I am not surprised you find very little benefit in the AI generated bits. (Although I am curious about any experiments you've done.)
Slava Egorov@mraleph

I really wish I was in living in the same parallel universe as AI slop wankers and could just spawn a freaking agent per item of my backlog... And not have to rm -rf the produced garbage later.

English
3
0
28
5.8K