Загрузка видео...

Не удалось загрузить видео

На главную

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.

Похожие видео