正在加载视频...

视频加载失败

Ironed out the last performance issues with my full 2.5m line codebase explorer. 120hz awesomeness. Can only upload 60fps video tho. Much nicer uncompressed

1,147,471 次观看 • 4 天前 •via X (Twitter)

44 条评论

ddwr 的头像
ddwr4 天前

This is really cool! Have you considered using quadtrees to render only whats visible under viewport? That would reduce struct size and give you a cache friendly layout of lookups for nearby tiles. Also, if you dont mind, what is the 21 GB alloc holding?

Rik Arends 的头像
Rik Arends4 天前

I think its just holding on to too many tilechaches. But without that i think it used 10gb ram so. Still not something i'd chuck in a browser.

ddwr 的头像
ddwr4 天前

Ahh gotcha, and i can see the phase where the text is loaded in after a certain threshold. Pretty neat! Hope you find a DS or some way to reduce the storage, though. Would still use for sure

Rik Arends 的头像
Rik Arends4 天前

I think it parses/caches the entire codebase into ram at startup. That takes a few seconds, like 10 or so on my mac.

HSVSphere 的头像
HSVSphere4 天前

Wow

tryingEveryThing 的头像
tryingEveryThing4 天前

wow, this looks so nice! But 21 gb is quite heavy.

Rik Arends 的头像
Rik Arends4 天前

yea its probably tile cache i can be a bit stricter about.

Rik Arends 的头像
Rik Arends4 天前

or set some kind of tighter budget for

Doug Lance 的头像
Doug Lance4 天前

/goal profile this system. Must check full zoom, clicking each component, and loading or closing new filebases. Iterate and reduce memory usage without changing features.

Not aToaster 的头像
Not aToaster4 天前

This is awesome. A 2.5M line codebase rendered like a city map beats folder diving any day. 120hz makes it feel instant. What's powering the renderer? 🔥 #DevTools

Rik Arends 的头像
Rik Arends4 天前

It's just built on makepad my Rust gpu accel UI stack.

Tomasz Dłuski 的头像
Tomasz Dłuski4 天前

finally we can feel like in 1995

andrw_x86 的头像
andrw_x864 天前

Factorio

Neil Chudleigh 的头像
Neil Chudleigh4 天前

Very very interesting but the memory usage is insane haha

Filip Aničić 的头像
Filip Aničić4 天前

You could scan the codebase once to get the structure and any metadata, then only have a file loaded/streamed and code contents render, when the camera zooms in to a certain level. Should not require so much RAM to do, even with millions of lines

Rik Arends 的头像
Rik Arends4 天前

No you can definitely optimise it. I mostly posted it as a 'im not sure if Web will be in range for this one'. It's just what it is now, but there are many many ways to reduce that.

Lucas Meijer 的头像
Lucas Meijer4 天前

Very cool!

Rik Arends 的头像
Rik Arends4 天前

Its actually 3.4M lines of code. But it is of course doing every single render trick LOD, tilecache (realtime tho) to keep this smooth.

Nick Dobos 的头像
Nick Dobos4 天前

I thought this was a chip design at first Wow. so cool.

Sleepy Panda 的头像
Sleepy Panda4 天前

this is amoozing

Travis Fischer 的头像
Travis Fischer4 天前

this is so cyberpunk, i love it 💪

shtrdl 的头像
shtrdl4 天前

this is awsome

sjosh 的头像
sjosh4 天前

Can you see the changes real time? If for example, many agents are deleting files, making changes in several areas?

NoFate Technology - Luis V. Penados 的头像
NoFate Technology - Luis V. Penados4 天前

awesome and useful 👍

Jon Kakaley 的头像
Jon Kakaley4 天前

Very cool

0x505badc0de 的头像
0x505badc0de4 天前

wtf, why

Aa 的头像
Aa4 天前

oh hell no

Clifford Richardson 的头像
Clifford Richardson4 天前

This is very nice. Great presentation.

Hanan Beer 的头像
Hanan Beer4 天前

NEED. NOW 😦

Jerome Mukindia 的头像
Jerome Mukindia4 天前

This is genuinely impressive 😎

Akgames01 的头像
Akgames014 天前

when I first looked at it, it looked like a logic diagram for a GPU or a CPU. amazing work

Steve Acomb 的头像
Steve Acomb4 天前

Cool! is there a public repo for this?

Rik Arends 的头像
Rik Arends4 天前

It uses 21gb of ram currently. Hence why web is so far out of range its not even funny. Might be able to slim that down a bit but not all that much.

Tim Trussner 的头像
Tim Trussner4 天前

I would love to work in an IDE that looks like this with smooth movements from one part of the codebase to another. I think you would develop a better cognitive map of the structure. Just like holding a book is more effective than e reader. Spatial component.

HMI 的头像
HMI4 天前

cool

Luden 的头像
Luden4 天前

awesome

Kiaran Ritchie 的头像
Kiaran Ritchie4 天前

It's be cool if you could select files and see a heat map overlay of related files.

Rik Arends 的头像
Rik Arends4 天前

Yea thats all quite possible. It shows search results now as a layer on top of the texture tiles. The 2D tile is really fast. As long as you dont relayout the whole thing in realtime (it can't do that) you can visualise quite niceyl.

saurabh kaul 的头像
saurabh kaul4 天前

Looks like a fun onboarding tool

Rik Arends 的头像
Rik Arends4 天前

Its definitely a nice way to get a lay of the land of the codebase for sure.

supercollider 的头像
supercollider4 天前

wowww, so cool. crazy how it looks like a computer chip or circuit board can you glean patterns from this?

Aaron M Harris 的头像
Aaron M Harris4 天前

I love the 3D view! This reminds me of "Space Sniffer" but for code! 😊 Any chance of a Github upload soon? 🙏

Bilal 的头像
Bilal4 天前

Is this makepad studio ? how can I use it?

cutekernel 的头像
cutekernel4 天前

No.

相关视频