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

World: r3wp

[!REBOL3]

Maxim
26-Oct-2010
[5886]
ok then... rename to none should be supported by LOAD-MODULE  ;-0
BrianH
26-Oct-2010
[5887]
For one thing, renaming something already imported is an error. And 
a lot of the time IMPORT is just giving you access to stuff you already 
imported earlier with Needs.
Maxim
27-Oct-2010
[5888x2]
though the stated default reaction in your CC ticket is the best 
course of action
(for import)
BrianH
27-Oct-2010
[5890x3]
If you want the reloading, use DO. DO works on scripts and modules 
both, and does them every time. It even tries to import the module 
after it is created. This is everything that you were requesting 
out of reloads. What it won't do is override a loaded module in the 
module list that is the same version or newer, but you can import 
those directly using IMPORT options.
The override rules in the system module list are sacrosanct though. 
You can load and use modules, but you can't override modules in the 
system list without following the rules.
You don't have to import to the system list for modules to be useful 
though. Look at IMPORT's /no-lib refinement. (After a110 comes out 
and it is fixed)
Maxim
27-Oct-2010
[5893x2]
well the idea of supporting none is that they are not put into the 
system list to begin with, whatever their name or path.
so I guess that is what /no-lib does?
BrianH
27-Oct-2010
[5895]
IMPORT/no-lib does that.
Maxim
27-Oct-2010
[5896]
ok so I'll shut up now   ;-D
BrianH
27-Oct-2010
[5897x2]
What /no-lib does is converts a module to a private module. It does 
a full import directly into the user context instead of importing 
through lib. It doesn't even go into the system modules list as a 
reusable prebuilt module, which named private modules otherwise do.
Which reminds me, I need to add that last bit to the tests.
Cyphre
27-Oct-2010
[5899]
R3 win console: Thanks for everyone who tested. So it looks it works 
for you, cool. Note that the character output should be correct but 
the default console font doesn't support all the chars. You might 
try to use Lucida Console font in the console properties which should 
give you more(but not all) valid characters or get some other unicode 
capable console font from the net...
Sunanda
27-Oct-2010
[5900]
Fork.... earlier discussion of INF is here:

   http://www.rebol.org/aga-display-posts.r?offset=0&post=r3wp771x5711

As Brian says, best place for any proposals for Carl to consider 
is here:
    http://www.curecode.org/rebol3/ticket.rsp?id=1717&cursor=1


The range of possible approaches extend from INF always throws an 
error to INF is a first class value. Somwhere in the middle is INF 
acting like UNSET! -- something you can use, but must be handled 
with great care.
Ladislav
27-Oct-2010
[5901]
...approaches extend from INF always throws an error to INF is a 
first class value. Somwhere in the middle is INF acting like UNSET!...

 - I do not think this describes the situation. I see it differently, 
 thinking, that there are only two consistent alternatives (the current 
 state is inconsistent, as everybody agrees with):


1) inifinities are not REBOL values (this state existed before FP 
pairs were introduced). I am pretty sure, that the description "INF 
always throws an error" is misleading, exactly because such a value 
does not even exist in REBOL


2) infinities exist in REBOL. In this case, they have to be "first 
class values", but, of course, they are not handleable by all functions, 
since e.g. +INF + -INF is not defined
Sunanda
27-Oct-2010
[5902]
Infinities seem to exist only by accident right now: the two known 
methods of generating an INF could be declared by Carl as bugs, and 
all INFs banished.
Or they could be fully REBOLised in ways that we find useful.
Ladislav
27-Oct-2010
[5903x3]
It would be interesting to know:


- what is the popular demand, i.e. which variant is preferred by 
the majority
- what are the reason for such preference
As far as I am concerned, I slightly prefer 1), just since I already 
got used to it in R2.
(I have no large objections to introduce infinities to the decimal! 
datatype, though)
Maxim
27-Oct-2010
[5906x2]
I really dislike having to support infinity.  it might be sexy for 
scientific stuff, but rebol doesn't have the scientific or statistical 
math muscle to make that any more viable than trying to support complex 
& imaginary numbers as first-class types.
supporting infinity opens up a can of worms IMHO.  if one really 
needs to do heavy math stuff, its probably better to use C and professional 
math libraries via an extension.
Henrik
27-Oct-2010
[5908]
I almost agree with Maxim here. I think there should be a clear definition 
of REBOL 3 math *can* and *cannot* do. Leave the complex numbers, 
symbolic math and infinity to modules and extensions.
Ladislav
27-Oct-2010
[5909x3]
Actually, infinities, are not that much "scientific stuff" as it 
may look at the first sight. Anything you can do with infinities 
is not hard to do withouth them as well.
Nevertheless, since infinities are supported by IEEE754, it is actually 
(IMO) easier to have them in the language than not.
I mean "easier for the implementor of the interpreter", not more 
user-friendly, of course.
Pekr
27-Oct-2010
[5912x2]
Cyphre - I re-tested with all possible special czech alphabet chars, 
and even with default font in console, it worked OK. Or was I just 
lucky, and your note was more general, e.g. that such a font can't 
support all possible chars in different than czech language?
BrianH: I just looked into Delayed extension note is CC - cool guru 
stuff :-) btw - do I understand it correctly, that unnamed modules 
will be named in module list, according to the filename? But what 
if there is unnamed module, which is not loaded from file?
Cyphre
27-Oct-2010
[5914]
Pekr, yes you are lucky because czech chars are present in the default 
font. Chars of other languages can have problems so they need the 
Lucida COnsole font or even better one.
The current situation of the win console is:

-we can have core.exe as 'console app' which will work as the 'prototype' 
I released for testing

-we can have view.exe as 'GUI app' which will always open own console 
window (even from cmd.exe)


(If we make the view.exe as 'console app' there will be always quick 
console window blink during execution where only GUI window is shown 
initially)
Pekr
27-Oct-2010
[5915x2]
I don't like blinks :-)
Couldn't we just have view.exe, which is basically core with delayed 
View extension? That would not probably work, right?
Andreas
27-Oct-2010
[5917x4]
same difference
first: it does not really matter for the graphics if the binary is 
compiled as console or gui app. keep that in mind
if, however, the binary is compiled as console app, a console will 
_always_ pop up (if if only for a very short blink).
so when you start view.exe by dropping a script which displays a 
rebol gui on it, you'll have a short blink of a win32 console before 
the rebol stuff launches. which is probably undesirable.
Pekr
27-Oct-2010
[5921]
I don't understand the issue sufficiently. What I simply want is 
- messing with just one exe. Being able to either use it in SSH session, 
or from icon, including GUI :-) I know I tend to require too much 
:-)
Andreas
27-Oct-2010
[5922x2]
way around this: compile view.exe as gui app :)
you can have that exe, but it'll blink
Pekr
27-Oct-2010
[5924]
no blinks ... is MS so stupid to not allow that? Or is that behaviour 
identical to other platforms too?
Andreas
27-Oct-2010
[5925]
nope, that's windows for you.
Pekr
27-Oct-2010
[5926]
No secret switch for the console app to actually hide the console? 
:-)
Andreas
27-Oct-2010
[5927x2]
if that switch exists, people spending way more time on this haven't 
found it :)
people within microsoft :)
Pekr
27-Oct-2010
[5929]
This guy is somehow reusing dos console in GUI app, but maybe it 
is a different matter - it seems he is just redirecting the console 
to give it a GUI look? 
http://www.codeproject.com/KB/threads/consolepipe.aspx
Andreas
27-Oct-2010
[5930]
read the comment timed "12:17 PM" below, that explains the situation 
clearly.
Pekr
27-Oct-2010
[5931x2]
there's no 12:17
What about this?


It seems the problem goes away if I add on these two lines before 
ShowWindow(wcon, SW_HIDE)..
for(int i=0 ; !IsWindowVisible(wcon) 
&& i < 100 ; i++)
Sleep(10);
Andreas
27-Oct-2010
[5933x2]
(ah sorry, fron post)
(wrong post!)
BrianH
27-Oct-2010
[5935]
Pekr, unnamed modules stay unnamed, unless you load them by (word) 
name, not filename. They can occasionally have interesting unique 
properties.