These are chat archives for ractivejs/ractive

8th
Sep 2017
lazylester
@lazylester
Sep 08 2017 02:01
Now that I can see the full extent of the ractive jsdelivr cdn, I am wondering what is the difference between ractive.js and runtime.js. Which should I be using?
Chris Reeves
@evs-chris
Sep 08 2017 03:11
the runtime can't parse
if you're building everything completely ahead of time with the bin or something similar, you can just use the runtime
lazylester
@lazylester
Sep 08 2017 03:13
got it, thanks, Chris.
Chris Reeves
@evs-chris
Sep 08 2017 03:13
and definitely don't use the unminified build in production :smile:
we have very fluffy code
shooting to shrink the main build to somewhere nearer the runtime size before 1.0
not sure how close I'll get, but it should at least hit < 200k
lazylester
@lazylester
Sep 08 2017 03:16
presumably unminified is ok if I'm minifying myself, right? My backend is rails, and it has its own js precompilation features.
wow 200k is a good number
btw is the runtime/ractive difference (parsing) in the docs somewhere? Or should I make a PR.
Chris Reeves
@evs-chris
Sep 08 2017 03:18
yeah, if uglify hits it, you should get roughly the same result. if your server/client supports gzip, it's something like 60k over the wire (or waves)
we've got docs for days
lazylester
@lazylester
Sep 08 2017 03:20
note to self: RTFM!
Cerem Cem ASLAN
@ceremcem
Sep 08 2017 08:13
@lazylester that note was for me too :smile:
Martin Kolárik
@MartinKolarik
Sep 08 2017 12:49
question of the day: does anyone use Ractive for server-side rendering?
Joseph
@fskreuz
Sep 08 2017 12:50
I played with it a bit, but not using it for anything atm.
Martin Kolárik
@MartinKolarik
Sep 08 2017 14:44
is this intentional or a side-effect of some other change in 0.9? https://jsfiddle.net/4cLtuk81/1/
I couldn't find anything that seemed related in the change log but it seems all Ractive methods are now available as data?
Chris Reeves
@evs-chris
Sep 08 2017 15:07
That was a mistake. If you
turn resolveInstanceMembers off globally, it does less surprising things.
it will be defaulted to off in 1.0
Martin Kolárik
@MartinKolarik
Sep 08 2017 15:17
oh thanks! that's very good to hear
Chris Reeves
@evs-chris
Sep 08 2017 15:20
I've also done a bit of SSR. The only thing that really gets weird is if you use decorators heavily because they don't SSR without DOM rendering.
Martin Kolárik
@MartinKolarik
Sep 08 2017 15:25
yeah luckily I never needed many decorators
but I'll need to create some generic tools for routing and maybe also fetching data with the same API in browser and on the server because currently it requires duplicated code
Chris Reeves
@evs-chris
Sep 08 2017 15:32
that's a topic I've been trying to work through for a while
all of the abstractions I've come up with thus far have been way too leaky
I keep hearing good things about rill.js but haven't had time to poke at it in-depth
Martin Kolárik
@MartinKolarik
Sep 08 2017 15:36
will check that some time
for routing, I'm now testing a simple config format which gets translated to koa-router on server and ractive-route in browser
in theory that should be the most universal approach but the routing implementations need to have similar-enough APIs
Chris Reeves
@evs-chris
Sep 08 2017 21:11
@MartinKolarik windows?
Martin Kolárik
@MartinKolarik
Sep 08 2017 21:11
yeah
Chris Reeves
@evs-chris
Sep 08 2017 21:11
Ah
Martin Kolárik
@MartinKolarik
Sep 08 2017 21:11
downloading to Ubuntu right now
Chris Reeves
@evs-chris
Sep 08 2017 21:11
I haven't tried on Windows in quite a while
Martin Kolárik
@MartinKolarik
Sep 08 2017 21:12
ah, I thought you were using windows yourself
Chris Reeves
@evs-chris
Sep 08 2017 21:14
nah, I'm a linux native
Martin Kolárik
@MartinKolarik
Sep 08 2017 21:14
of course on Ubuntu it works
Chris Reeves
@evs-chris
Sep 08 2017 21:14
I only break out windows when I have to do .net stuff for the day job
I'll poke at the build next time I'm there though
gobble is not aging well
we'll probably need to transition to something else at some point
Martin Kolárik
@MartinKolarik
Sep 08 2017 21:18
what's the coolest build tool these days? I completely dropped the build process for my recent projects, so no idea
Joseph
@fskreuz
Sep 08 2017 21:19
I still use gobble for the quick and dirty stuff. :D
Ractive could use vanilla rollup, except it has some file movement stuff (sandbox, qunit, etc.)
Everyone's leaning towards webpack, but I have this aversion to it. It looks like a fancy version Grunt .
Chris Reeves
@evs-chris
Sep 08 2017 21:21
I mostly just use scripts from the package file, but I don't have cross platform worries
webpack is pretty good for front-end builds
I wouldn't want to use it for anything else
rollup has a built-in watcher, and I think that's what Rich mostly uses now
Joseph
@fskreuz
Sep 08 2017 21:24
I also work with traditional web setups (Spring, Drupal), so whatever concats+minifies with the least config and overhead, and gets served by tomcat/apache wins. It's usually Gulp. :D
Martin Kolárik
@MartinKolarik
Sep 08 2017 21:27
yeah Gulp is good for simple stuff but setting it to be as smart as gobble isn't exactly easy
Joseph
@fskreuz
Sep 08 2017 22:14
That's when I turn to Gobble :P
Martin Kolárik
@MartinKolarik
Sep 08 2017 22:58
@evs-chris if you thought jsDelivr search was fast... try now
Martin Kolárik
@MartinKolarik
Sep 08 2017 23:04
currently the bottleneck is Ractive rendering :D
Chris Reeves
@evs-chris
Sep 08 2017 23:06
that's pretty much local-data-fast
Martin Kolárik
@MartinKolarik
Sep 08 2017 23:09
yeah it takes < 50ms which would be impressive even for a static resource, and they're searching half a milion records
Chris Reeves
@evs-chris
Sep 08 2017 23:11
having ractive render as a bottleneck for 10 records is darned impressive