正在加载视频...

视频加载失败

today's experiment: silky smooth fixed-height virtual table, rendered with canvas tested with 10^50+ rows of dynamic data

93,573 次观看 • 1 年前 •via X (Twitter)

50 条评论

f1shy-dev 的头像
f1shy-dev1 年前

try it → this was inspired by @Antfroze's sql studio (beautiful), @itseieio's everyuuid (fun!), and ideas from @4rcherhume! the bit i like the most is that the scrollbars are real DOM scrollbars, not fake ones :d

Cheikh Fiteni 的头像
Cheikh Fiteni1 年前

very cool. if you mapped each uuid to a oklch and then did a gradual gradient with looping for set (perception is like ~10^6 even ignoring screen gamuts) I think the effect feels even more insane also would your virtualization break if we toggle scroll speed with hotkeys. hmm

f1shy-dev 的头像
f1shy-dev1 年前

> would your virtualization break i don't think so, that's a good idea let me try this oklch idea

Cheikh Fiteni 的头像
Cheikh Fiteni1 年前

Yeah if you don’t get it done by tomorrow would be down to PR this weekend just busy tn

zeno 的头像
zeno1 年前

made something with virtual tables too - infinitely scrollable bar chart

f1shy-dev 的头像
f1shy-dev1 年前

very nice! bonus brownie points for oppenheimer soundtrack

Archer 的头像
Archer1 年前

when resizable columns though 👀

Maze 的头像
Maze1 年前

this is honestly amazing, better than v0 could've ever done

rank 的头像
rank1 年前

table rendering with canvas ?

f1shy-dev 的头像
f1shy-dev1 年前

yes

rank 的头像
rank1 年前

interested in implementation, cool

Stephen Haney 的头像
Stephen Haney1 年前

aww yeah

Alexis Paques 的头像
Alexis Paques1 年前

So JS libraries are so bloated nowadays we are now going back to just drawing our interfaces in a canvas. Amazing demo!

Rahul Narsingipyta 的头像
Rahul Narsingipyta1 年前

well, I found a beautiful csv reader

Rajat Kulkarni 的头像
Rajat Kulkarni1 年前

Maybe I'm dumb, but why does a single scroll tick make it go to some random number that is 100s of millions rows ahead? Or is it not supposed to show me 40-70 on scroll?

jian 的头像
jian1 年前

been there, done that

f1shy-dev 的头像
f1shy-dev1 年前

damn

jian 的头像
jian1 年前

hahaha did not mean anything else! seriously every front end engineers could build this as a test of skills

f1shy-dev 的头像
f1shy-dev1 年前

new interview question just dropped...

Iza 的头像
Iza1 年前

give it to me

Iza 的头像
Iza1 年前

i want dah saource kode

f1shy-dev 的头像
f1shy-dev1 年前

github button at the bottom right

Iza 的头像
Iza1 年前

ur so mean to me

f1shy-dev 的头像
f1shy-dev1 年前

i’m sorry🙁

Iza 的头像
Iza1 年前

i dont want it anymore </3

Sam Texas 的头像
Sam Texas1 年前

very cool. kudos! how does this work for accessibility? Or do screen-readers just default back to OCR?

f1shy-dev 的头像
f1shy-dev1 年前

yeah hm right now there isn't much consideration for accessibility if one were to make it like a proper spreadsheet (e.g editing rows), you might have to put a dom element of some sort behind every visible cell in the virtualisation frame, at which point you could have the text for screenreaders copied into the dom in parallel, maybe throttled updates etc to avoid slowing the scroll/jumping down

scoliosis queen 的头像
scoliosis queen1 年前

now go down row by row

Maga - turbotable.ai ▴ 的头像
Maga - turbotable.ai ▴1 年前

Cool! I have heard that canvas rendered tables are really performant. But the features you need to implement to be useful for real-world scenarios are enormous. I have tried to optimize @tan_stack Table with complex cells using memo tricks and @tan_stack Virtual. It was nice.

Lexis N 的头像
Lexis N1 年前

The next thing everyone wants is for it to be interactive

Alex 的头像
Alex1 年前

Ohhh you tried Jupiter notebooks way of rendering

Zibx 的头像
Zibx1 年前

Next step would be rows with dynamic height. Solved similar task in 2012 with pure dom. It also supported filter, sorting, and grouping. I could write some details related to implementation of any of that features. But it was not canvas and we tested it on 500k rows in ie6

Chau Giang 的头像
Chau Giang1 年前

Amazing! Just curious, do other spreadsheet apps like Google Sheets or Microsoft Excel use something like this?

Himanshu Kumar 的头像
Himanshu Kumar1 年前

Impressive scale. I wonder about the practical limits of canvas rendering for such large datasets though. Performance must be a challenge.

Noah 的头像
Noah1 年前

Dayum

Hackerdude 的头像
Hackerdude1 年前

I was wondering when someone would make a smooth version, this is sick

ian.tsx 的头像
ian.tsx1 年前

Check out @glideapps's grid!

Matthew Ary 🇺🇦 的头像
Matthew Ary 🇺🇦1 年前

It gets very intense when you don't get fixed width.

Alex 的头像
Alex1 年前

We use Glide Data Grid for this it’s great

Saïd Aitmbarek 的头像
Saïd Aitmbarek1 年前

based performance mate

Alex 的头像
Alex1 年前

You need to stop Sir! if everything renders in Canvas,my ancient html skills will become absolete😢

Pao Ramen 的头像
Pao Ramen1 年前

is this open source?

f1shy-dev 的头像
f1shy-dev1 年前

of course! →

softyoda 的头像
softyoda1 年前

Wow, what O(1) lookup in 1 yottabyte feels like.

Shafil Alam 的头像
Shafil Alam1 年前

can we replace the whole ui with a canvas render

Jason Kwok 的头像
Jason Kwok1 年前

is variable height solved? been trying to find a good library but i've always ended up just needing to implement it myself

Péter Szarvas 的头像
Péter Szarvas1 年前

bro dont leak my uuid

f1shy-dev 的头像
f1shy-dev1 年前

it’s our uuid now.

giovanni 的头像
giovanni1 年前

cool

NiceDay 的头像
NiceDay1 年前

variable row height?

相关视频