On Monday, December 16, 2013 10:20:00 PM UTC+1, Michael Herrmann wrote:
>
> * What is the size impact? (What is the size of an empty TW? What about 
> automatic saving? Will the whole TW be saved if a single tiddler changes as 
> in TWC?)
>

Jeremy and I talked a little bit about code minification in the last 
hangout #25 [1].
In general I'm a big fan of minified code for 3rd party plugins. Latest 
brwosers have the possibility to provide so called "source map" files, that 
let you "lazy load" the source code for debugging. 

On the other hand, if someone includes 1 jpg file into the TW eg: 
100-300kByte (which turns out to be a small one) People tend to include 
3MByte for there avatar, which imo has a lot of optimization potential :) 
All the text minification advantage is gone, with one pic. ....

http://www.youtube.com/watch?feature=player_detailpage&v=tGV5F2Gj_mE#t=4430

So during beta I'm very much in favor for a "source text core", which makes 
learning for potental plugin dev's a lot easier. 
Even with a V 1.x version I think it makes sense to keep the source code. 
... TW is a good tool to learn, all sorts of stuff. So why not make it easy 
to learn how TW works. ...

For 3rd party plugins eg. d3.js, js parsers, ... I think you could also 
include the minified version, because the source code may contain several 
10+ files which makes handling more difficult. 

I did have a look at the code size for [2] 
https://github.com/NeilFraser/JS-Interpreter parser + interpreter are about 
120kByte full text source. So it wouldn't be too bad. 

The sandbox [2] depends on "acorn". With the "acorn" parser, there is some 
synergie with "code mirror" plugin. "acorn" + "codemirror" lead us to 
"tern" [3] http://ternjs.net/doc/demo.html. All done by Marijin Haverbeke. 
If you have a look at the tern demo, you'll see, that it provides some cool 
js text editing features. 

.... So I think, if Jeremy provides a possibility to have "javascript 
filter syntax" ... the sandbox is a must have in the core. 
On the other hand, things like "codemirror" and "tern" can be plugins, 
which can __reuse__ big parts of the core. 

... I like open source!!

have fun!
Mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to