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

World: r3wp

[SDK]

Benjamin
10-Oct-2005
[157x2]
unsiged integers can safely be casted to integers, you sould know 
that some dll's wont work just because the need special arguments 
like pointers to certain data etc... nay whay why do you need to 
write a file using windows API can't you use rebol ?
btw lpOverlapped  is a pointer to a structure OVELAPPED you can pass 
a structure pointer from rebol using, lpOverlapped [struct! [(OVERLAPPED)]]
the scructure looks like this 
OVERLAPPED: make struct! [
	Internal		[integer!]
	InternalHigh		[integer!]
	Offset			[integer!]
	OffsetHigh		[integer!]
	hEvent			[integer!]
] none
again this still may not work ....
Henrik
13-Oct-2005
[159]
how small a Rebol executable can you build with the SDK? if you take 
away everything? just curious...
Graham
13-Oct-2005
[160]
300k from memory.
Henrik
13-Oct-2005
[161]
thanks
Gregg
14-Oct-2005
[162]
Base is a little smaller (~250K), but that's close enough. If you 
need GUI stuff, it will be around ~550K minimum (using rebface) or 
~650K using all of view and VID..
Allen
15-Oct-2005
[163]
If space is an issue, you can save a lot of space by removing protocols 
that aren't required. I got a few with full VID based but with only 
http protocol supported.. 506kb, 

I'm sure I could drop another 80-100 if I switched to using rebface.
Henrik
1-Nov-2005
[164]
Good place to discuss a remote encapping service? The idea would 
be for RT to provide a service that would allow you to encap source 
code without the SDK. RT encaps your files and provides you with 
an executable that works for 5 minutes. If you pay a fee (5$?), you'll 
get no time limitation.


This could be for people who can't afford the SDK, want to use the 
encap facility to see what it's all about or simply only need to 
encap a single application.
Gabriele
1-Nov-2005
[165]
an encap service as been discussed many times in the past. there 
are a number of problems in doing it.
Henrik
1-Nov-2005
[166x2]
there could be further limitations, such as only allow up to 50 kB 
of source code, or only to a specific platform.
ok...
Gabriele
1-Nov-2005
[168]
the problem is mainly that the process cannot be automated, because 
anyone going to encap a submission must verify that it complies with 
the encap licensing terms.
Henrik
1-Nov-2005
[169]
which basically would mean a rewrite of /encap?
Rebolek
1-Nov-2005
[170]
I think it would mean rewrite of licensing.
Gabriele
1-Nov-2005
[171x2]
no, it's not the code that's the problem. the encap process in itself 
can easily be automated (see the detective builder); but, the licensing 
terms don't make this possible.
i.e. if you allow anyone to encap anything for $5, you get /Command 
for $5.
Henrik
1-Nov-2005
[173x2]
well, it shouldn't be anything. there should be limits to the size 
of the source you could encap, plus isn't it possible to encap with 
only ordinary REBOL/View capabilities?
if it were possible to encap stuff with /command abilites, you'd 
already own /command to test your source prior to encapping...
Pekr
1-Nov-2005
[175]
DocKimbel once told me, that with his R#, encapping is so trivial, 
that he even hesitates to call it a product ;-)
Gabriele
1-Nov-2005
[176x4]
henrik, if you only get normal /View, there is no point in the encap 
service. i.e. it wouldn't help the com interface project at all.
also, it's not true that you would need to have command already.
you just encap a script like:   forever [do ask ">> "]
and you got /Command for $5.
Pekr
1-Nov-2005
[180x3]
:-) nice tip :-)
but licence forbids to expose rebol interpreter, so it would be against 
it ...
I just wonder, if SDK is really so expensive fro ppl? I am from CZ, 
we have bad salary to USD/EU ratio, yet I afforded to buy myself 
an SDK ....
Gabriele
1-Nov-2005
[183]
petr: exactly, licensing forbids it, and that why you can't have 
an automatic encap service where anyone can submit a script and you 
hand back an exe.
Henrik
1-Nov-2005
[184]
well, that's not really what I would want... all I would need would 
be proper encapping of my small Rebol/View scripts so that friends 
can run them with a single click, which is one of the major gripes 
I have when I need to distribute hobby scripts. They don't want to 
mess with the console or the viewtop (believe me, I tried).


If I were to use functions in my scripts that are /command only, 
the service should not allow encapping of source that contains /command 
functions. This way you'd need to own /command and/or the SDK to 
make /command capable exe's.
Pekr
1-Nov-2005
[185x2]
IIRC someone posted to ml kind of free encapper :-) It was based 
upon generating of zip archive, containing View interpreter, which 
is free to distribute, plus packed scripts ... that could be an alternative 
way for ppl, no?
Henrik - there are two versions of SDK - /Command and "normal" (without 
command features, just pro ones available), which is cheaper ...
Henrik
1-Nov-2005
[187]
pekr, I thought the difference was /Command and /Pro functions...
Pekr
1-Nov-2005
[188]
yes, that is the difference ...
Henrik
1-Nov-2005
[189]
but you don't get /Command functions for free. that would be the 
trick to get you to buy the SDK as opposed to using an encapping 
service
Pekr
1-Nov-2005
[190x2]
...and I agree with you, that sometimes ppl don't want to install 
something ... the worst thing is, that in many cases, ppl are behind 
the firewall/proxy, and rebol fails here - blocking like mad....
do you need /Command functions?
Gabriele
1-Nov-2005
[192]
if you're just distributing a script to friends, then what about 
just a zip file with view, the script, and a windows link that starts 
view with the script?
Pekr
1-Nov-2005
[193x2]
inability to freely encap ppl's work (and /Pro key is for nothing 
- you can develop features non pro users can't use ;-) is big obstacle 
imo. That is why I think plug-in might be important product - it 
is about deployment - with plug-in aproach ppl just think that things 
work in one click :-)
yes Gabriele, that might be the way - in fact, someone posted such 
"encapper" link to ml, so that work was already done .... noone responded 
IIRC ....
Henrik
1-Nov-2005
[195]
gabriele, too messy :-) "Do I really need that big R icon on my desktop?" 
It has to be one click to run. Grandma style.
Gabriele
1-Nov-2005
[196]
henrik, you don't get any R icon on the desktop the way i described. 
and, as petr says, there are programs around that make the process 
of unzipping and running automatic, so the user only sees one exe.
Henrik
1-Nov-2005
[197]
so you link to an exe file within the zip file? is it not necessary 
to unpack the zip file?
Gabriele
1-Nov-2005
[198x2]
using any of the programs petr talked about, yes. with just a zip, 
you unzip then click on the link.
(i wish Windows had bundles, like OSX :)
Pekr
1-Nov-2005
[200]
Henrik - most of the free utils of archivers allow you to generate 
so called "autoextracting archive"
Henrik
1-Nov-2005
[201]
It HAS to be one click exe to run. No zip files. ah well, I give 
up :-) going back to work :-)
Pekr
1-Nov-2005
[202x2]
not sure if you can point it then to run some exe inside though ...
I wonder, anyway, how will you send it to your friends? ;-) Most 
of email servers will refuse it because of internal security policy 
- we don't allow to send .exes directly, not even inside .zip archives 
;-)
Henrik
1-Nov-2005
[204]
downloads from webpages...
Gabriele
1-Nov-2005
[205x2]
try this:
http://motoko.rebol.it/test.exe