r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Liquid] any questions about liquid dataflow core.

Maxim
6-Mar-2009
[699x2]
it will just fall back to values within bounds, or the the previous 
value otherwise.
and the field, thus gets refreshed since its piped to the value.
Josh
6-Mar-2009
[701]
That's neat!  I will try not to set them to non integers! ;-)   j/k 
   I'll have to see how it all works under the hood, once I get it
Maxim
6-Mar-2009
[702x2]
it will definitely be available tonight.  btw, I found and squashed 
a little but in liquid, so will also release a newer version on rebol.org 
when I release the example.
I am now in the process of adding a skill editor (note, not in any 
way a valid D&D chargen, just a simple example to understand by anyone).
Josh
6-Mar-2009
[704]
Congrats on the bug squashing.  Just save some work for me to do! 
:)
Maxim
6-Mar-2009
[705x2]
hehe it was really minor, but probably something that's caused me 
some headaches in the past.  wouldn't have been possible without 
slim's verbose printing management  :-)
(finding the bug, that is)
Maxim
7-Mar-2009
[707x3]
the example is DONE, it has MANY interconnected plugs which handle 
all maner of data integrity, button style effects, even disabling 
some buttons, when values get out of bounds!

built with VID, latest version of liquid.
currently working on updating the stuff to rebol.org.
will also add a little integrated lib downloader.... to make it extra 
easy to use.
Ammon
7-Mar-2009
[710]
Sweet!  I'll be playing with it this weekend. =D
Maxim
7-Mar-2009
[711x2]
(in example app)
the code isn't intended to be compact... the goal is to help people 
understand.  I added a few comments which explain what/how/why some 
of the things.
Ammon
7-Mar-2009
[713]
How hard do you think it's going to be for you to port Liquid to 
R3?
Maxim
7-Mar-2009
[714x6]
I might also add a doc to explain some of the unobvious technical 
merits of the example.  people can say: "All that code just for that?" 
if they don't understand what is going on.
liquid R3... it could go really well, as it could be a bitch... if 
one little detail in a function breaks up the integrity of the whole.
the beauty of liquid is that broken code doesn't work, the side effect 
is that working code is unbreakable.
you can't "forget" to update something, everything is broken up into 
little systems.  the systems don't grow, you only have more of them, 
which is easier to manage and design, IMHO.
the one lib i can't wait to port is glob.  its like super gob, already 
in R2.
so in R3 its just going to be sooooo much faster.
Ammon
7-Mar-2009
[720]
You have such a strange way of wording things some times.  "broken 
code doesn't work, the side effect is that working code is unbreakable" 
 I'm not really sure what that means...
Maxim
7-Mar-2009
[721]
hehehe... means a system doesn't work at all until it does... and 
from that point on... its almost impossible to mess up.
Josh
7-Mar-2009
[722]
Where is the example?
Ammon
7-Mar-2009
[723x2]
What I've seen working in Liquid really is phenominal but I've never 
really groked it so I was never able to figure out where to start 
when I tried to build things with it.
I'm hoping this example of yours will break the ice for me.
Maxim
7-Mar-2009
[725x2]
you just move on, and forget what has been done so far.  adding stuff 
to a system, doesn't mean patching old code.  it simply means tacking 
new systems to the old, and deciding how they relate.
tacking = adding
Josh
7-Mar-2009
[727]
and apparently I missed the message saying you were uploading it
Maxim
7-Mar-2009
[728x3]
hehe.  I am just doing so... new version of slim just got uploaded 
(minor changes), liquid is almost ready.
the application will be there within the hour (need to build a friendly 
little rebol.org based slim lib D/L interface using VID)
if you can read (and understand) my last sentence... you are less 
tired than I am  ;-)
Ammon
7-Mar-2009
[731]
Interesting...  I'm a heavy prototyper.  I need one statement that 
does something to start with and I often have to see each additional 
statement functional before I can move on to the next.  If I spend 
enough time within a given environment I'll eventually be able to 
rebuild it from scratch but your code has always been deceptively 
simple so I often need an explanation of why you do what you do how 
you do it.
Josh
7-Mar-2009
[732]
I really appreciate you making the example for me.  Hope you didn't 
mind the pestering, but it'll be good to finally see this dataflow 
in action
Maxim
7-Mar-2009
[733x9]
I added such comments throughout the code, it should be a pretty 
easy to grasp example, me thinks  :-)
I'm REALLY happy to do it.  its a great opportunity for me to actually 
get some limelight on liquid  :-)
I'll build a second version which has a skill editor  :-)
note, this application doesn't have the aspect-oriented stuff I was 
talking about... just pure liquid dataflow, all based on the !plug 
directly.
also note that liquid was NEVER optimised, so if you look at its 
code, you might find slow loops and such... I know!  for me, having 
it work without bugs and making it easy to maintain, is more important 
than raw speed... in all apps I've done using it, a single View face 
refresh slowed down the application more than alll liquid nodes combined, 
so the integrated lazy computing does enough optimisation on its 
own to make raw optimisation less of an issue.... but when I decide 
to go v2, I will make a "fast" version of the tool for production 
purposes... indentical in features, but with debugging removed and 
some loops optimised for speed.
the shared class, already speeds up the memory handling of the GC 
by a factor of 20 or 100 based on the size of your application (exponentially 
faster, as the app grows)
wow, just realised, I've been improving liquid for the last FIVE 
years !
Blood v0.1.1 released to rebol.org.


the first ever public demo of how to use liquid.  The application 
itself is very simple for now, but the code is pretty clean, has 
a lot of comments to explain a lot of what is going on.
so anyone got questions.... remarks... comments ?  just curious to 
know... I mean its been downloaded MANY times already  :-)
Sunanda
7-Mar-2009
[742]
I've not had a chance to play with it yet, Max.

I suspect many of the downloads will be bots that like to index new 
content.....Not people passing by to check the scripts. New/changed 
scripts get prominent home page billing, so the bots come flocking 
to feast.
Maxim
7-Mar-2009
[743x2]
btw, the name blood comes from an old campaign manager I had built 
several years ago  :-)  (you can even see the links on the .org ML)
would it be possible to filter out bots based on their IP/traffic 
pattern?
Sunanda
7-Mar-2009
[745]
To some extent, yes. We do record counts of "likely human views" 
vs "likely bot views" -- but the stat you see is the sum of the two. 
And the division is not perfect by any means.

I'll slightly reverse my previous statement......The "download this 
script" link is protected by a HTML attribute "rel=nofollow". That 
should prevent well-behaved bots from following the link. So the 
count of downloads is likely to to human rich.
Maxim
7-Mar-2009
[746]
could be nice to see them separate, maybe by adding a "probable bot 
%" next to the counts   :-)
Josh
7-Mar-2009
[747]
I'm still looking through it.  I will modify some parts of it later 
today or tomorrow, and let you know if I have questions
Maxim
7-Mar-2009
[748]
I have a newer version which has the "ability modifiers" added as 
extra labels to the right of the abilites... it took me 5 minutes 
to do, and it only needs one new simple !plug derivative:

;- !ability-mod
!ability-mod: make !plug [
	valve: make valve [
		type: 'ability-mod
		;-----------------
		;-     process()
		;-----------------
		process: func [
			plug
			data
		][
			vin [{!ability-mod/process()}]
			plug/liquid: 0
			vprobe data
			if integer? data: pick data 1 [
				plug/liquid: to-integer (data - 11 / 2)
			]
			vout
		]
	]
]


and necessary linkage within the !character setup, and appropriate 
faces in the window layout.