Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Jamie Gaskins
@jgaskins
It's a feature we had at my old job for report data, but we used Postgres and it was painful to do. CTEs are hard, I don't understand them, and they're slow on Postgres.
Actually, I believe the author of the neo4j gem gave a lightning talk at RubyConf last year.
Click the link, though. The embed doesn't start at the right time.
I only realized he gave the talk because he was directly after a friend of mine.
Forrest Chang
@fkchang
@jgaskins good preso been a number of years since I last looked at Neo4J
Forrest Chang
@fkchang
@jgaskins did you know about http://www.susi.se/bluesky/ ?
Jamie Gaskins
@jgaskins
Indeed :-) I saw it when GitHub released their dependency graph feature. I wouldn't doubt it's an extraction of some of the patterns they used for https://arkivdigital.se
@fkchang But I didn't realize there was a full-on website for it. Thanks for the heads up there!
Jamie Gaskins
@jgaskins
I just published clearwater-virtual_list, a gem for rendering large lists without putting the entire thing in the DOM.
Colin Gunn
@balmoral
@jgaskins trying to find your code which eliminated uncalled javscript methods - having another go at getting it going.
It requires either Opal 0.11 (I think) or at least has to have opal/opal@07610e0 applied.
Jamie Gaskins
@jgaskins
And it needs to be run against minified code (I tested it against code run through Uglify)
Colin Gunn
@balmoral
@jgaskins thanks
Jamie Gaskins
@jgaskins
:+1:
Jamie Gaskins
@jgaskins
Built a Clearwater component the other day that renders promises, mostly inspired by React Suspense. It uses method chaining to declare what to render up front, at various time delays, and on resolution/rejection of the promise: https://clearwater-rb-playground.herokuapp.com/playgrounds/598a3a3d-b0f7-472d-9f88-aa3c1a1b9ae2
I don't use a lot of promises within components typically, but if I need to, I can't imagine it getting any nicer than this. I certainly like it more than what I've seen of React Suspense.
James Robey
@foucist
is http://jgaskins.org/blog/2016/02/28/turbolinks-vs-the-virtual-dom still a fair article? 8ms for clearwater seems too good to be true
Jamie Gaskins
@jgaskins
@foucist That article is definitely still fair. :-) I just checked the Clearwater app linked in the article and it actually took 6ms from the click event to the final paint.
Screen Shot 2018-09-09 at 2.30.10 AM.png
That's less than the 8ms I measured for that article, but I'm on a newer machine than I was when that article was written, and less than 2ms of that 6ms was spent in JS. The rest was layout/paint. With some reasonable render caching, even large vDOMs can be blazing fast.
Jamie Gaskins
@jgaskins
My favorite Clearwater performance story is from a real-time order dashboard I developed with Clearwater while I was at Groupon. We were getting hammered by data over websockets and even with about 10-15k nodes in the DOM (nearly all of which were managed by the Clearwater app) and we were still hitting 30-60fps renders.
Jamie Gaskins
@jgaskins
Experimenting with building a Clearwater version of React Suspense. Was able to knock it out in 99 lines of Ruby. I'll post it soon.
Forrest Chang
@fkchang
@jgaskins saw the tweets, looks cool, look forward to it