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

World: r3wp

[!REBOL3-OLD1]

Henrik
9-Apr-2009
[12992]
PeterWood, I get a different crash from what you had before now. 
"N" when you are guest, right after starting chat.
PeterWood
9-Apr-2009
[12993x2]
Try this:

chat
3415
more 3365
..when you are logged in,
Henrik
9-Apr-2009
[12995]
Will test in a minute. I haven't found out how to return to Guest 
state again.
shadwolf
9-Apr-2009
[12996x5]
ok i just remember i recieve a mail with the damn password
that what u want ?
3365 ?
shadwolf:R3/OS-Targets/OSX>> more 3365

** Script error: submit-of? does not allow none! for its fid argument

** Where: case all submit-of? case what-file? more-file parse try 
either either
forever command-loop make context do catch applier do try chat
** Near: case [
    is-submit? msg [msg]
    is-name? msg [submit-of?...

--- Note: unexpected error logged to error-log.txt
is that good ?
PeterWood
9-Apr-2009
[13001]
It's the same error that I get. 

Now try the same command from the top level

>Top
>More 3365
shadwolf
9-Apr-2009
[13002x2]
more works but the  display buffer of my consol is to tiny to get 
the whole script
so i imagine get will do it ?
Sunanda
9-Apr-2009
[13004]
shadwolf: <ok so hash! is gone perfect no one used it anyway>

A quick search on REBOL.org shows 25 scripts using hash! and/or to-hash

That's not many. But it is not zero. And it is not perfect for those 
with applications that depend on those scripts.

Clearlt, retaining hash! is not a priority for RT, and that argument 
has been and gone.

It is not a decision I am happy with .... which indicates my priorities 
are not completely aligned with RT's. That puts me in the same position 
as most REBOL developers :-(
Henrik
9-Apr-2009
[13005]
yes
shadwolf
9-Apr-2009
[13006]
http://shadwolf.free.fr/port-http.r
PeterWood
9-Apr-2009
[13007]
Henrik: yes to what?
Henrik
9-Apr-2009
[13008]
yes to using "get" to get the file. it was shadwolf's question.
shadwolf
9-Apr-2009
[13009x3]
sunanda ... yeah 25 over how much in total + all the script not in
rebol.org ...
25 script is like nothing hash! exists since the very begining no 
one use it ...
Henrik
9-Apr-2009
[13012]
I've been using hash! for a bit, but there are too few advantages 
for it to be directly useful. The main advantage is supposed to be 
speed, but usually when you need to do real work with a hash! you 
need to convert it to a block!, which slows the whole script down 
more than if you just used block! correctly from the beginning.
Sunanda
9-Apr-2009
[13013]
It's about 2% of one public corpus of REBOL scripts. That's indicative 
of the general usage of hash!
shadwolf
9-Apr-2009
[13014]
I mean rebol exists since 10 years now and having only 25 scripts 
using hash! just proove that's not used
Henrik
9-Apr-2009
[13015]
shadwolf, it could be, because it's not well documented. I didn't 
learn of its existance until after a few years of REBOL usage.
shadwolf
9-Apr-2009
[13016]
Henrik it could be because it's not doing what ppl used to code their 
own hash table in C expects from a hash! table  any way it's GONE 
farewell :P
Sunanda
9-Apr-2009
[13017]
No, it proves it is used. It is seen in about 2% of REBOL scripts 
on REBOL.org.
If 2% = 0% then we can prove that  no one ever uses REBOL.
shadwolf
9-Apr-2009
[13018]
what you want a farewell party for hash! with champaign and etc.. 
?
Janko
9-Apr-2009
[13019]
but my understanding is that hash functions different than hashtables 
or dictionaries in other languages? and map will work that way.. 
or did you need the specific way how hash worked? If I used hash 
I used in as a hashtable (because I wasn't aware of the difference) 
and I could have gotten nasty errors because of it
shadwolf
9-Apr-2009
[13020]
earing from the few in teh God's secret map! is much better even 
if it's not fully done. I'm a morron so the only thing left to me 
is to believe them  ^^
PeterWood
9-Apr-2009
[13021]
I used hash! to build a long list of de-duplicated words. It was 
by far the fastest way in R2.


I was pleasantly surprised when I found that using map! and storing 
every associated value as #[none] was quicker in R3 than hash! in 
R2. It just seems wrong to be wasting all that memory storing all 
those unnecessary ones.
Henrik
9-Apr-2009
[13022]
PeterWood, I get the crash you had just now.
PeterWood
9-Apr-2009
[13023]
I hope it will be that fast once all the bugs are fixed.
shadwolf
9-Apr-2009
[13024]
http://shadwolf.free.fr/port-http.r
PeterWood
9-Apr-2009
[13025]
ones -> nones
shadwolf
9-Apr-2009
[13026]
http://shadwolf.free.fr/port-http.r->> that's teh 3365 script
PeterWood
9-Apr-2009
[13027x2]
ERREUR 404 - Document non trouvŽ
Don't worry, we all have the script. It is the error in the Rebol 
chat program we are discussing.
shadwolf
9-Apr-2009
[13029]
http://shadwolf.free.fr/prot-http.r
PeterWood
9-Apr-2009
[13030]
:-)
Henrik
9-Apr-2009
[13031]
hmm... here's a fun one: decompress read http://www.rebol.com/r3/chat.r

Gobbles up memory and just hangs.
shadwolf
9-Apr-2009
[13032]
i want to post in server admin to remove shadw0lf  user how do i 
do it ?
Henrik
9-Apr-2009
[13033]
I guess this is due to the new method for COMPRESS to allocate memory 
prior to decompressing, but if that is possible, then it's simple 
to DoS a rebol server that relies on compressed input, just by sending 
a malformed binary.
shadwolf
9-Apr-2009
[13034]
i'm in server admin group
Henrik
9-Apr-2009
[13035]
shadwolf, not sure that is possible.
shadwolf
9-Apr-2009
[13036]
ok never mind
Pekr
9-Apr-2009
[13037]
Henrik - under Windows I get "Not enough memory" message. But the 
script is 24KB. There has to be serious bug in there, no? :-)
Henrik
9-Apr-2009
[13038x2]
Pekr, I remember Carl mentioning this a long time ago: DECOMPRESS 
reads first how long the item to decompress is, then allocates memory 
and then attempts decompression, so it's a deliberate design choice 
for memory limited embedded devices.
So if you have a 2 kb compressed binary but the header of that binary 
states that its 10 GB in size, you will get that error.
Graham
9-Apr-2009
[13040]
I used hash! for my Bayes based spam filtering program.
Pekr
9-Apr-2009
[13041]
Wasn't map supposed to be a hash! replacement plus/minus few differences 
in behaviour?