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

World: r3wp

[!REBOL3-OLD1]

BrianH
3-Jun-2009
[15094]
Since objects are the basis of all datatypes where words can be bound, 
we are focusing on the design of those other datatypes first so we 
get a better idea of the requirements for objects. Other datatypes 
like modules and tasks, for example.
Steeve
3-Jun-2009
[15095]
as-is!
(which mean nothing or all)
BrianH
3-Jun-2009
[15096]
?
Steeve
3-Jun-2009
[15097x2]
I was answering to Sunanda, a new name to replace money!
exact!
BrianH
3-Jun-2009
[15099x4]
Maxim's suggestion might work syntactically, but we would lose the 
money! syntax, which is the ISO standard syntax for currency. If 
we added a unit! type with Maxim's syntax we could use the same implementation 
internally for both money! and unit!.
They would just differ in syntax.
However, remember that there are limits to the number of possible 
distinct units loaded at once. The value doesn't have more than 1 
byte available to refer to a unit, which means 255 possible units 
in use when you subtract the unspecified unit.
Carl had a blog about this related to money! ...
Steeve
3-Jun-2009
[15103]
well, in some time, the dollar wil disappear, so we'll got one more 
unit free
BrianH
3-Jun-2009
[15104x2]
I'm just using money! and unit! as placeholder names for the two 
datatypes though. Final names should be decided. The money! name 
is a good one for the current money! syntax because the syntax matches 
the international currency syntax standard.
The $ is part of the ISO standard, as is the limit of 3 alphabetic 
characters preceeding it.
Maxim
3-Jun-2009
[15106]
quoting brian " the syntax matches the international currency syntax 
standard" well... to me that's resoved then .... lets call it currency! 
  :-)
BrianH
3-Jun-2009
[15107]
money! means the same thing and is shorter :)
Maxim
3-Jun-2009
[15108x2]
I've just looked up the terms in the dictionnary ... and money actually 
encompasses currency, so it actually is the more precise term here... 
 funny, I had the two words inversed in my head.
funny no one noticed the big lexical change proposed in my example 
unit-conversion example  ... or no one spotted it   ;-)
BrianH
3-Jun-2009
[15110]
I just translated the function to a more efficient method in my head. 
What is the lexical change you mention, aside from the unit syntax?
Maxim
3-Jun-2009
[15111x2]
I meant to say:  "no one argued about the .... "
note how inches are represented lexically... ;-)
BrianH
3-Jun-2009
[15113]
Oh, the unit syntax. There would be limits to what you could do, 
but the principle is sound. You probably wouldn't be able to do 1".
Maxim
3-Jun-2009
[15114]
hehe actually we could, but I understand that it woul make the lexical 
analyser that much more complex than it is already with the "" vs 
{} handling inside/outside of each other... adding the " to word 
would really make it complex. so I don't expect or specifically "want" 
it, just was wondering if some of you would react to it  ;-)
BrianH
3-Jun-2009
[15115]
The lexical analyzer has syntax priorities - some characters are 
delimiters, " being one of those.
Maarten
3-Jun-2009
[15116x2]
You need first-class functions to have continuations.
But, if you want them to have reasonable speed... some native support 
helps...
BrianH
3-Jun-2009
[15118x2]
If you want continuations supported well you need to build on a continuation-passing-style 
runtime. As far as I know, the only practical one with good performance 
is Parrot.
That is, unless you switch to a compiled language.
Janko
3-Jun-2009
[15120]
brian, you seem to really know what's happening at various languages 
scene.. cool .. I was just looking a talk (video) about parrot VM 
where it presented these things few weeks back where a woman was 
presenting these features (and I consider myself a language nutcase 
;) )
BrianH
3-Jun-2009
[15121x3]
I haven't really followed Parrot for a couple years - lost interest. 
Suppose I should take another look.
I'm not sure what model Stackless Python uses - in theory if could 
use CPS, but I haven't checked yet.
Strangely enough, the intermediate codes of many compiled dynamic 
languages are switching to SSE, which is procedural CPS.
Janko
3-Jun-2009
[15124]
CPS is cont. passing system... what is SSE ? :)
BrianH
3-Jun-2009
[15125x2]
Static Single Assignment.
CPS = Continuation-Passing Style.
Janko
3-Jun-2009
[15127]
aha.. like in functional languages?
BrianH
3-Jun-2009
[15128x2]
Sorry, SSA
The functional language equivaalent is CPS. SSA is for languages 
with assignment and/or modification.
Janko
3-Jun-2009
[15130]
sorry, my lack of proper CS education shows here :)
BrianH
3-Jun-2009
[15131]
Well, the equivalency of SSA and CPS had not yet been demonstrated 
when I had my CS education (years ago).
Maarten
3-Jun-2009
[15132]
Stackless moved away from CPS towards coroutines. I think Gambit-Scheme 
(even without compiling) does a decent job. 


I don't want to go the CPS route, but I find it intriguing that the 
Elephant in the room of re-entrant data blocks is .... an ELEPHANT. 
The fact that a problem is hard is no reason not to solve it.
BrianH
3-Jun-2009
[15133x6]
It's not that it's hard, it's *why* it's hard. And that why is why 
R2 was so much faster than R1. Making the system resumable slows 
it down by orders of magnitude unless you design the semantics of 
the language around it.
And we're talking about reentrant code blocks. You don't exit data 
blocks.
It's not the AT series path request that's the problem.
Sorry, the code-vs-data distinction I made above isn't really a code-vs-data 
distinction, it's a path-vs-stack-referencing one. Janko and I have 
been talking about something other than your AT series path request.
Oldes: "How stable is the R3 networking? For example what is the 
cause of HTTP issues?"


R3's low-level networking is pretty stable, but the HTTP scheme is 
only partially done. And no other high-level schemes are there.
The HTTP scheme currently doesn't handle network errors very well 
- that includes server issues.
Oldes
3-Jun-2009
[15139x2]
And what is the best place with info where to start?
http://www.rebol.net/wiki/Ports?
BrianH
3-Jun-2009
[15141]
Yup, and read the source.
Pekr
4-Jun-2009
[15142]
Oldes - don't forget to study the link in above article, especially 
- http://www.rebol.net/wiki/Port_Examples
Pekr
5-Jun-2009
[15143]
BrianH: what will be the equivalent for read/lines in R3? I kind 
of can't live without that function :-) Should I create mezzanine 
for it?