Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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 görüntüleme • 2 ay önce •via X (Twitter)

64 Yorum

José Gurruchaga profil fotoğrafı
José Gurruchaga2 ay önce

Gpui is insane, zed doing the lord’s work

Antfroze profil fotoğrafı
Antfroze2 ay önce

YES 🙌

Antfroze profil fotoğrafı
Antfroze2 ay önce

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

Sahith profil fotoğrafı
Sahith2 ay önce

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

Antfroze profil fotoğrafı
Antfroze2 ay önce

Valid reaction 😂 They do exist somewhere out there

Json profil fotoğrafı
Json2 ay önce

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

Antfroze profil fotoğrafı
Antfroze2 ay önce

Thank you 🙏 gpui truly is insane

Robert E. Beckner III (Merlin) profil fotoğrafı
Robert E. Beckner III (Merlin)2 ay önce

Legend! Nice moves!!

Antfroze profil fotoğrafı
Antfroze2 ay önce

Thank you 🙏 Much appreciated

Vishnu Dileesh profil fotoğrafı
Vishnu Dileesh2 ay önce

Looks performatively neat

Antfroze profil fotoğrafı
Antfroze2 ay önce

Thank you 🙏

samyak profil fotoğrafı
samyak2 ay önce

@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 profil fotoğrafı
Antfroze2 ay önce

@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 profil fotoğrafı
keiko2 ay önce

why would i switch to this from dbeaver?

Antfroze profil fotoğrafı
Antfroze2 ay önce

DBeaver did this to me after trying to replicate the video

keiko profil fotoğrafı
keiko2 ay önce

try opening in zed

Antfroze profil fotoğrafı
Antfroze2 ay önce

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 profil fotoğrafı
星川 ✨ StarFlow2 ay önce

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

Antfroze profil fotoğrafı
Antfroze2 ay önce

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

law profil fotoğrafı
law2 ay önce

Can feel Zed's UI library from a mile away

Antfroze profil fotoğrafı
Antfroze2 ay önce

GPUI for the win 🏆

Mother Brain ⋈🇵🇹 profil fotoğrafı
Mother Brain ⋈🇵🇹2 ay önce

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

Antfroze profil fotoğrafı
Antfroze2 ay önce

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

Safwan profil fotoğrafı
Safwan2 ay önce

excited for this cuz i look at sql dumps often lol

rusa profil fotoğrafı
rusa2 ay önce

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

Antfroze profil fotoğrafı
Antfroze2 ay önce

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

akshay oppiliappan profil fotoğrafı
akshay oppiliappan2 ay önce

gpui?

Antfroze profil fotoğrafı
Antfroze2 ay önce

Yes 🙌

Buswe profil fotoğrafı
Buswe2 ay önce

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 profil fotoğrafı
Antfroze2 ay önce

Very true in this case 🙌

Vikrant Guleria profil fotoğrafı
Vikrant Guleria1 ay önce

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 profil fotoğrafı
Tts2 ay önce

who has 1M lines sql file?

Antfroze profil fotoğrafı
Antfroze2 ay önce

Me and many others (most likely) 🙌

Sebastian Buzdugan profil fotoğrafı
Sebastian Buzdugan2 ay önce

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

Antfroze profil fotoğrafı
Antfroze2 ay önce

Very true, mine does both 🙌

Arik Chakma profil fotoğrafı
Arik Chakma2 ay önce

did you move to gpui by any chance?

Antfroze profil fotoğrafı
Antfroze2 ay önce

Yep 👍

Arik Chakma profil fotoğrafı
Arik Chakma2 ay önce

crazy 🫡

Rahul Rajaram profil fotoğrafı
Rahul Rajaram2 ay önce

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 profil fotoğrafı
Antfroze2 ay önce

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

nik profil fotoğrafı
nik2 ay önce

gpui?

Antfroze profil fotoğrafı
Antfroze2 ay önce

Yes 🙏

Antfroze profil fotoğrafı
Antfroze2 ay önce

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

आशीष खरे profil fotoğrafı
आशीष खरे2 ay önce

Beautiful

Antfroze profil fotoğrafı
Antfroze2 ay önce

Thank you 🙏

आशीष खरे profil fotoğrafı
आशीष खरे2 ay önce

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 profil fotoğrafı
Antfroze2 ay önce

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 profil fotoğrafı
Antfroze2 ay önce

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

आशीष खरे profil fotoğrafı
आशीष खरे2 ay önce

I'll update to newer version.

Antfroze profil fotoğrafı
Antfroze2 ay önce

It will be out soon :)

Sora profil fotoğrafı
Sora2 ay önce

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 profil fotoğrafı
Antfroze2 ay önce

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 profil fotoğrafı
Sora2 ay önce

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 profil fotoğrafı
Droid2 ay önce

Are there plans for MySQL support?

Antfroze profil fotoğrafı
Antfroze2 ay önce

Yes :)

SyntaxError » CEO of "CEO of..."-names profil fotoğrafı
SyntaxError » CEO of "CEO of..."-names2 ay önce

wdym 1000000 SQL file

Antfroze profil fotoğrafı
Antfroze2 ay önce

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

Rajat Kulkarni profil fotoğrafı
Rajat Kulkarni2 ay önce

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

Antfroze profil fotoğrafı
Antfroze2 ay önce

@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 👀 profil fotoğrafı
Aditya 👀2 ay önce

Why would you make a million line sql query anyways 😭

Antfroze profil fotoğrafı
Antfroze2 ay önce

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 👀 profil fotoğrafı
Aditya 👀2 ay önce

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

Andi Liu profil fotoğrafı
Andi Liu2 ay önce

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

rusa profil fotoğrafı
rusa1 ay önce

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.

Benzer Videolar

Your agents can't keep up with real-time data. Especially when it's scattered across dozens of sources. Most teams waste weeks building custom connectors for every database, API, and data warehouse. Then they build ETL pipelines to sync everything. By the time your agent retrieves the data, it's already outdated. Picture this: Your Postgres database updated 5 minutes ago. Your MongoDB collection changed 2 minutes ago. Your agent is still pulling from yesterday's snapshot. This is why most production RAG systems fail. There's a better approach: MindsDB is an open-source AI platform with a federated data engine that lets you query multiple data sources in real-time using SQL - without moving any data. Here's what makes it different: ↳ Your data stays in place. No ETL pipelines or data duplication ↳ Query Postgres, MongoDB, REST APIs, and more using consistent SQL ↳ JOIN across different sources in real-time with a unified interface ↳ Works with both structured and un-structured data And here's the best part: You don't even need to write SQL. Just describe what you want in plain English, and MindsDB converts it to SQL automatically. The system does all the heavy lifting. The breakthrough for AI agents is simple: When data updates at the source, your agent gets fresh results immediately. No sync delays. No stale embeddings. No custom code for each integration. You can literally write a SQL query that joins a Postgres table with a MongoDB collection and gets live results. This is what production AI applications need but rarely get. In this video, I give you a complete walkthrough of what we just discussed and how to actually do it. Make sure you watch this till the end. I've shared the link to MindsDB's GitHub repo in the next tweet!

Akshay 🚀

65,672 görüntüleme • 11 ay önce