正在加载视频...

视频加载失败

Just opened a 1,000,000-line SQL file. Smooth scroll. Full IntelliSense. Zero lag. Pure Rust 🦀 No Electron. No Tauri. Drops soon with Postgres 👇

50,442 次观看 • 2 个月前 •via X (Twitter)

64 条评论

José Gurruchaga 的头像
José Gurruchaga2 个月前

Gpui is insane, zed doing the lord’s work

Antfroze 的头像
Antfroze2 个月前

YES 🙌

Antfroze 的头像
Antfroze2 个月前

I don't think there is another editor that can do this

Sahith 的头像
Sahith2 个月前

Why the F do you have a 1M line SQL file?

Antfroze 的头像
Antfroze2 个月前

Valid reaction 😂 They do exist somewhere out there

Json 的头像
Json2 个月前

Good to see people use the right technologies for such tools. Great job!

Antfroze 的头像
Antfroze2 个月前

Thank you 🙏 gpui truly is insane

Robert E. Beckner III (Merlin) 的头像
Robert E. Beckner III (Merlin)2 个月前

Legend! Nice moves!!

Antfroze 的头像
Antfroze2 个月前

Thank you 🙏 Much appreciated

Vishnu Dileesh 的头像
Vishnu Dileesh2 个月前

Looks performatively neat

Antfroze 的头像
Antfroze2 个月前

Thank you 🙏

samyak 的头像
samyak2 个月前

@AstraKernel Great work! GPUI definitely is great for such performance usecase. I have a question though, is GPUI better choice than Tauri for software like postman, accounting ?

Antfroze 的头像
Antfroze2 个月前

@AstraKernel Thank you 🙏 If you are up for it, I would recommend using GPUI over Tauri. So many issues came out of Tauri for me, the current version available on the website is built with it

keiko 的头像
keiko2 个月前

why would i switch to this from dbeaver?

Antfroze 的头像
Antfroze2 个月前

DBeaver did this to me after trying to replicate the video

keiko 的头像
keiko2 个月前

try opening in zed

Antfroze 的头像
Antfroze2 个月前

I did, it struggles to keep up with highlighting (because treesitter) and also there is no good autocomplete for SQL anywhere but in SQL Studio & DataGrip. It's not a fair comparison

星川 ✨ StarFlow 的头像
星川 ✨ StarFlow2 个月前

这也太丝滑了,这就去试试

Antfroze 的头像
Antfroze2 个月前

Thank you! The version seen in the video isn't out yet but will be soon :)

law 的头像
law2 个月前

Can feel Zed's UI library from a mile away

Antfroze 的头像
Antfroze2 个月前

GPUI for the win 🏆

Mother Brain ⋈🇵🇹 的头像
Mother Brain ⋈🇵🇹2 个月前

@late4nothing Any GPUI framworks you favor? I've seen a lot come from Zed's, like

Antfroze 的头像
Antfroze2 个月前

@late4nothing I made my own, but if I were to use one I would make sure it is unstyled

Safwan 的头像
Safwan2 个月前

excited for this cuz i look at sql dumps often lol

rusa 的头像
rusa2 个月前

a million lines with intellisense and no lag is the demo that matters. that is exactly where electron editors fall over.

Antfroze 的头像
Antfroze2 个月前

Very true, though most people won't have files this big or bigger - keeping it smooth ensures any workload will be

akshay oppiliappan 的头像
akshay oppiliappan2 个月前

gpui?

Antfroze 的头像
Antfroze2 个月前

Yes 🙌

Buswe 的头像
Buswe2 个月前

Que sea Rust nativo sin webview es justo lo que deja virtualizar el render y mover un millón de líneas sin lag.

Antfroze 的头像
Antfroze2 个月前

Very true in this case 🙌

Vikrant Guleria 的头像
Vikrant Guleria1 个月前

The real test for a SQL editor at this scale isn't rendering, it's whether it can run EXPLAIN ANALYZE on a query against a huge Postgres table and keep the UI responsive while the plan comes back. Curious if streams query results incrementally or waits for the full result set before painting.

Tts 的头像
Tts2 个月前

who has 1M lines sql file?

Antfroze 的头像
Antfroze2 个月前

Me and many others (most likely) 🙌

Sebastian Buzdugan 的头像
Sebastian Buzdugan2 个月前

million-line rendering is easier than keeping incremental parsing fast after edits

Antfroze 的头像
Antfroze2 个月前

Very true, mine does both 🙌

Arik Chakma 的头像
Arik Chakma2 个月前

did you move to gpui by any chance?

Antfroze 的头像
Antfroze2 个月前

Yep 👍

Arik Chakma 的头像
Arik Chakma2 个月前

crazy 🫡

Rahul Rajaram 的头像
Rahul Rajaram2 个月前

What’s are performance numbers like on the file system (and disk if you’re using HDD)? Naiively, I would think this has the ability to trigger a lot of syscall activity upon frequent abrupt cursor pos changes. Should apply to Sublime Text similarly though.

Antfroze 的头像
Antfroze2 个月前

Cursor moves and typing don't hit disk. The file is already in memory. Disk only comes into play on open/save

nik 的头像
nik2 个月前

gpui?

Antfroze 的头像
Antfroze2 个月前

Yes 🙏

Antfroze 的头像
Antfroze2 个月前

It's too good, had to rewrite in it once I built a nice UI library

आशीष खरे 的头像
आशीष खरे2 个月前

Beautiful

Antfroze 的头像
Antfroze2 个月前

Thank you 🙏

आशीष खरे 的头像
आशीष खरे2 个月前

Been a fan since you put up the very first tweet for with only the email bar. It's the most beautiful UI I've ever used.

Antfroze 的头像
Antfroze2 个月前

Thank you 🙏 it means a lot to me. The new version is completely redesigned and faster in every way. Excited for you to try it :)

Antfroze 的头像
Antfroze2 个月前

By completely redesigned I mean improved btw it keeps the same soul

आशीष खरे 的头像
आशीष खरे2 个月前

I'll update to newer version.

Antfroze 的头像
Antfroze2 个月前

It will be out soon :)

Sora 的头像
Sora2 个月前

1 Million Lines better not be lagging, or you actively do stuff you shouldn't be doing. This is also the absolute bare minimum.

Antfroze 的头像
Antfroze2 个月前

It should be the bare minimum but editors usually can't keep up with this in many ways. Whether that be intelisense, syntax highlighting, or find & replace or all of them combined hahaha

Sora 的头像
Sora2 个月前

Syntax highlighting is not that expensive if you don't need semantic information like in tree-sitter. Intellisense should be done through a fully separate thread anyway and also only has some information about hierarchy...

Droid 的头像
Droid2 个月前

Are there plans for MySQL support?

Antfroze 的头像
Antfroze2 个月前

Yes :)

SyntaxError » CEO of "CEO of..."-names 的头像
SyntaxError » CEO of "CEO of..."-names2 个月前

wdym 1000000 SQL file

Antfroze 的头像
Antfroze2 个月前

1 million lines, smooth and seamless just like 100 or 10 lines

Rajat Kulkarni 的头像
Rajat Kulkarni2 个月前

GPUI I’m assuming? Seems like the new hype! Unfortunately can’t migrate @tryOctarine due to the editor becoming incompatible

Antfroze 的头像
Antfroze2 个月前

@tryOctarine Yep 👍 it was a harsh migration but very worth it for me. Tauri was holding me back too much, once I prototyped with it I knew I had to continue

Aditya 👀 的头像
Aditya 👀2 个月前

Why would you make a million line sql query anyways 😭

Antfroze 的头像
Antfroze2 个月前

SQL dumps / autogenerated migrations, or some other reason. It's good to have an incremental parser / editor that is capable enough to handle any workload

Aditya 👀 的头像
Aditya 👀2 个月前

alright makes sense, I remember digging through a migration in raw sql file once

Andi Liu 的头像
Andi Liu2 个月前

没有AI,我们真的能处理得了1,000,000 行的 SQL 文件吗?如果有了AI,我们真的有必要处理1,000,000 行的 SQL 文件吗?

rusa 的头像
rusa1 个月前

the trick with a million lines isn't rust specifically, it's never touching the whole file at once, virtualized rendering for what's visible plus a rope or piece table for edits. native mostly buys you a small constant factor on top. what's backing the intellisense at that size, incremental parse.

相关视频