AltME groups: search
Help · search scripts · search articles · search mailing listresults summary
world | hits |
r4wp | 5907 |
r3wp | 58701 |
total: | 64608 |
results window for this page: [start: 39301 end: 39400]
world-name: r3wp
Group: Core ... Discuss core issues [web-public] | ||
[unknown: 5]: 26-Jan-2009 | I'm not complaining Brian. I always do the same. Which is why it is always best to present mezz type of functions ot the community for scrutiny before they go into any builds. Just a wise way of doing things. | |
[unknown: 5]: 26-Jan-2009 | Yeah, I would think we would want to change that then in R3 so that a mezzanine is not performing faster than native code. | |
Gabriele: 27-Jan-2009 | BTW DideC, if you use now/precise instead of now/time/precise and use difference instead of - then you don't have a problem around midnight. | |
Will: 27-Jan-2009 | about my problem (a couple of messages above) I can confirm that the problem doesn't exist with 2.7.5. 2.7.6, supposedly fixed [call] but did it introduce a new bug? has it maybe to do with hevy cpu, timing, rebol dns helper process? | |
Will: 27-Jan-2009 | I'm having a hard time producing code that reproduce the bug, if anyone can provide a piece of code that could stresstest [call] I'd be gratefull! 8) | |
Will: 27-Jan-2009 | or a problem with the GC upon quit when there are many words ? | |
[unknown: 5]: 28-Jan-2009 | I posted a new function in the mezzanine thread at the Tretbase REBOL forum http://www.tretbase.com/forum/viewtopic.php?f=8&t=30&p=130#p130 | |
Josh: 30-Jan-2009 | Is there a simple way to convert a char number to the actual integer? (i.e. to-integer #"5" giving 5 as a result) | |
Henrik: 31-Jan-2009 | >> to-integer form #"5" == 5 Saves a couple of chars :-) (but profile it, it might be slower) | |
Steeve: 31-Jan-2009 | >> 0 + #"5" ==53 Usually, i use the the following tricks: you can add several chars with integers in that way. If the first value is an integer! it's returning an integer! If the first value is a char! it's returning a char! >> 0 + #"5" - #" " == 21 >> #" " + 21 == #"5" | |
Josh: 31-Jan-2009 | Someone had played around with doing huge integers in REBOL a while back, right? | |
Gregg: 1-Feb-2009 | I have a partial string-math library. Not all ops, but no size limits. | |
Tomc: 1-Feb-2009 | I have a 24 bit math implementation to do RSA but never converted to or from other bases. It is from before Holgar did encryption with thebignum library nativly in core/view which renders mine moot | |
Dockimbel: 1-Feb-2009 | I've just hit a serious issue in 2.7.6 on UNIX platforms today. Briefly: CLOSE on TCP ports doesn't work anymore if CALL is used before CLOSE, in a AWAKE handler. To reproduce this bug, get the tests scripts here : write %server.r read http://softinnov.org/tmp/server.r write %client.r read http://softinnov.org/tmp/client.r write %foo.r read http://softinnov.org/tmp/foo.r Then, read the comment section in %server.r and launch it to see by yourself : do %server.r Notes: o Windows is not affected by this issue. o I consider this a major issue for all REBOL server applications working in async mode and spawning processes. o I'm posting first here before RAMBO, so that people can test and point out any possible bad interpretation from me. | |
Dockimbel: 1-Feb-2009 | If a few ppl can confirm this rapidly, I'll post a ticket in RAMBO and will knock on Carl's door to fix that asap. | |
Maarten: 1-Feb-2009 | Doc, iirc there was a same sort of isseu with system ports in pre-2.7.6 and TCP and Gabriele got around it in the Detetcive project. He also wrapped up the async-call and made it available for linux then. I have it, he has it, but I suspect Gabriele can fill you in on the details. Let me know if (and how) you want it. | |
Maarten: 1-Feb-2009 | Are you in Qtask REBOL SIG? Then I'll post a link to the file there | |
Dockimbel: 1-Feb-2009 | Well, I thought about that for a few seconds... | |
btiffin: 1-Feb-2009 | I made a post about 2.7.6 being near the end of life of the REBOL 2 line. I was told by Carl that I was mistaken ... completely. That was oh, 8 months ago or so. At that time; REBOL 2 is still very much an RT supported product line and there are no plans to change that stance. | |
Oldes: 1-Feb-2009 | Does anybody has a script which for example prints out all REBOL actions or natives? | |
Anton: 2-Feb-2009 | Sorry, that was a bit large. | |
BrianH: 2-Feb-2009 | Doc: "The only support I expect is R2 C-level bugs fixing." Don't forget mezzanine bug fixing and the backports, which are community support. No new C-level features are likely, except for backported tweaks to the natives. New mezzanine-level features we can add ourselves, but remember that R2 is in compatibility mode right now. We shouldn't break the existing R2-compatible code if we can avoid it, since that compaatibility is the main advantage of supporting R2. Future releases of R2 will have even more backported functions from R3, but these will be in a separate file of the source. It is likely that this separate file will need to be loaded if you want to use its functions, so there will be no new predefined words by default. You can load the file if you want to make your code more R3 compatible. This is likely the best way to ensure compatibility. | |
Dockimbel: 2-Feb-2009 | Brian: I should have precised "from Carl". Obviously having mezz backported from R3 is a good thing to make the transition smoother. But it's not like R3 will become really usable in a month or two. We're talking about years before reaching 3.0. In the meantime, R2 C bugs (not new C feature) have to be fixed one way or another in order to support those that use REBOL to run businesses since years. | |
eFishAnt: 5-Feb-2009 | Anyone know what a decompress script Error problem -3 means? >> decompress to-binary data ** Script Error: Invalid compressed data - problem: -3 | |
eFishAnt: 5-Feb-2009 | like, where do I look for a "problem -3" meaning? (maybe it means a bad compressed crc, or maybe data out of range or ???) | |
eFishAnt: 5-Feb-2009 | It is gzip data, and the to-binary was a hack. It doesn't work either way. I thought the REBOL script in the library, gunzip.r might work for me, but it is a rather crazy script that I don't quite understand, but the GUN in GUNzip.r shot me in the foot. | |
eFishAnt: 5-Feb-2009 | decompress wants a string, and binary is a string, so that's what made me think to do to-binary... | |
eFishAnt: 6-Feb-2009 | Thanks, some very insightful info there. This is one of those times for me to build a little script before putting it into the huge one...;-) | |
Janko: 8-Feb-2009 | Hi, I have 2 questions that I have been wondering for a while... if they would be true it would mean that rebol can *also* easily mimic the 2 models of some specific languages that offer then .. | |
Janko: 8-Feb-2009 | With all the retrospection going on, can I somehow get whole current namespace/memory image/state of rebol interpreter as a block and save it to a file for example? | |
Janko: 8-Feb-2009 | ot at least all "user-namespace" , for example I define dew functions, and few variables, then I run app for a while, can I at some point get values of all my words ("variables" + functions) and "export" them | |
[unknown: 5]: 8-Feb-2009 | Janko, what a lot of us do when we build a script is create one large object and build our functions and values off of it. | |
Janko: 8-Feb-2009 | ok, so I get list of words .. but can I export (write to file) sources/definitions of functions ? >> source somefunc<< prints it but I would need to get a string | |
Janko: 8-Feb-2009 | yes, I agree... I am asking because if this could be done then you could use rebol in a same way as smalltalk and factor are which are "image based" languages ... this brings some interesting usages.. | |
Janko: 8-Feb-2009 | for example a server that can replicate itself... or save it's state and then run from exactly same state, or in games, editing them without restarting... editing "live image" which should be possible because you can redefine words in rebol, but then you need to save whole current state. | |
Janko: 8-Feb-2009 | I will experiment a little with this when I find time, thanks all | |
[unknown: 5]: 8-Feb-2009 | Janko, I had left to shower and eat lunch. Sorry, but you need to check the status on the left. Often times we just disappear. That is kinda what is nice about Altme in a sense is that you know when someone is available or here now by the status. | |
Henrik: 9-Feb-2009 | He means rebol bindings. This is a good read on bindings: http://www.fm.tul.cz/~ladislav/rebol/contexts.html | |
Janko: 12-Feb-2009 | usage example: >> codes: [ [ a: 12 + 23 b: a + 100 c: b * a ] [ t: join "aaa" join "bbb" "ccc" find t "b" ] ] >> para-do codes 35 aaabbbccc 135 bbbccc 4725 == [4725 "bbbccc"] (it collects results of all blocks when done and returns them) | |
Steeve: 12-Feb-2009 | clearly, it could be faster but i'm not sure of the interest of such thing. If i want a small granularity in a process, i build tiny functions and push them in a to-do stack | |
Tomc: 13-Feb-2009 | I want to partition a block in place ,that is wohout copy.. e.g. blk: [ red green blue plum apple orange ] partition blk 3 >> [ [red green blue] [ plum apple orange ] ] | |
BrianH: 13-Feb-2009 | Put that in a function. | |
Steeve: 13-Feb-2009 | unless [empty? blk: change/part blk copy/part blk span span] (unless is a litlle faster than while) | |
Tomc: 13-Feb-2009 | on large datasets a copyless repartitioning would be more efficent more like adding pointers to delimiters within the block | |
BrianH: 13-Feb-2009 | Tomc, you can't do copyless and get subseries, but you can build a block of before and after references. | |
Tomc: 13-Feb-2009 | brian yes that is what bugs me if it was in a file or an un loaded string I could insert brackets to my hearts content . but not once i start useing it. | |
BrianH: 13-Feb-2009 | The resluting block will be pairs of references to the beginning and end of his subseries. He can then get any subseries he needs by referencing it using the beginning and references with the /part option of COPY or INSERT, though using CHANGE or REMOVE will mess up the offsets of any subsequent references unless he is referring to a list! type. | |
Tomc: 13-Feb-2009 | a rose by any name .... new and block both end up with the data so it is still copying | |
BrianH: 13-Feb-2009 | The new block is really an index (in the database sense). You can sort and manipulate the index, then use the result to build a new version of the data if you like. | |
Steeve: 13-Feb-2009 | the only thing you can't do is a mold or a form of this index :) | |
BrianH: 13-Feb-2009 | TYPES-OF - it's a nasty one to implement. | |
Tomc: 13-Feb-2009 | what are the costs when a (sub)block is reordered ? | |
Steeve: 13-Feb-2009 | skiping a block has no cost (no data modified), sorting has cost (data modified) | |
BrianH: 13-Feb-2009 | SORT with a custom compare function would be fast to use here. | |
Tomc: 13-Feb-2009 | but reordering should not change a length | |
Steeve: 13-Feb-2009 | but if the sort on the default data block is applied with a skip size equal to your span, then positions are not messed up, is that what you mean ? | |
Steeve: 13-Feb-2009 | but not if he's sorting data with a skip size equal to the span | |
Tomc: 13-Feb-2009 | as this is building a tree, structure later operations always occur strictly within earlier operation boundaries | |
TomBon: 19-Feb-2009 | how can this avoided? does a object! defined within a object! (embedded) breaks with the clone/ingherit rule? calling a function within a object! which e.g. changing a value within the embedded object! changing the parent AND the child object!. template: make object! [ obj-in-obj: make object! [a: make integer! 0] b: make integer! 0 c: func [val] [ obj-in-obj/a: val b: val ] ] wcopy: make template [] probe template probe wcopy wcopy/c 1000 probe template probe wcopy what I am doing wrong here? and is there any easy way to clear a object at once without resetting every single variable in the object | |
TomBon: 19-Feb-2009 | I have a big loop (20.000+) which fills many objects with datas. the objects contains also functions writing and calculating data within other objects (all within a global context/object). each loop is a new run, so I need a new or cleared set of objects for every loop. looks like cloning doesn't work for me (see above). I could reset every single value, but this will cost me a day minimum. do I overseen some simple solution here? | |
[unknown: 5]: 19-Feb-2009 | Not sure what your trying to do but in your function change the object reference to self such as: self/obj-in-obj/a: see if that makes a difference | |
sqlab: 19-Feb-2009 | Why you do not make your template just an unevaluated block and then you always generate a new object or you never change your template, just the descendants ? | |
DideC: 19-Feb-2009 | You need a 'make-deep function that (recursively ?) digg into the copied object and copy each subobject it find. I'm sure people arround have one in their HD (not me). | |
TomBon: 19-Feb-2009 | paul, makes no difference..sqlab, wrap the object into a unevaluated block? | |
TomBon: 19-Feb-2009 | a copy/deep second or third object! doesn't work either. | |
[unknown: 5]: 19-Feb-2009 | Have you considered using a construct? | |
TomBon: 19-Feb-2009 | will take a look into the docs about it... | |
Graham: 19-Feb-2009 | does this work? create-template: func [ d [integer!] ] [ make object! [ obj-in-obj: make object! [a: make integer! d] b: make integer! 0 c: func [val] [ obj-in-obj/a: val b: val ] ] ] a: create-template 0 b: create-template 1000 probe a probe b b/c 3000 probe a probe b | |
[unknown: 5]: 19-Feb-2009 | TomBon, here is the purpose of a construct: >> ct: construct [int: (1 + 1)] >> ct/int == (1 + 1) >> do ct/int == 2 >> Notice that it doesn't automatically evaluate /int as an object would do. | |
TomBon: 19-Feb-2009 | YES! thx a lot graham and paul. it works. | |
TomBon: 19-Feb-2009 | yepp, just made a check with real data. works fine. again thx for help... | |
TomBon: 19-Feb-2009 | :-)) well sounds thrustfull to built a comercial software on that ;-) | |
Graham: 19-Feb-2009 | You still can't clone from the objects it creates ... ie. e: make a [] has the same problems | |
TomBon: 19-Feb-2009 | the object! will be a central part for the lib I am currently building. | |
[unknown: 5]: 19-Feb-2009 | >> blk: [a: 1 b: 2] == [a: 1 b: 2] >> obj: context blk >> obj/a == 1 >> obj/b == 2 | |
[unknown: 5]: 21-Feb-2009 | What part of this is a bug: >> val: 'blah == blah >> type? val == word! >> lit-word? val == false >> help val VAL is a word of value: blah >> val: to-lit-word val == 'blah >> type? val == word! >> lit-word? val == false >> help val VAL is a lit-word of value: 'blah | |
[unknown: 5]: 21-Feb-2009 | Consider the following: >> a: 'test == test >> lit-word? :a == false >> a: to-lit-word 'test == 'test >> lit-word? :a == true | |
Izkata: 21-Feb-2009 | The way I see it: In your second post, 'test is a lit-word! being evaulated to a word! before assignment to 'a, in the first part In the second part, the lit-word! 'test is being evaluated to a word!, passed into the function to-lit-word, then the lit-word is assigned to 'a In the first post, why "type? val" returns word! on a lit-word!, I see as the same as this - the type is a subset: >> X: %One == %One >> type? X == file! >> series? X == true | |
[unknown: 5]: 21-Feb-2009 | Also consider this: >> a: first ['test] == 'test >> lit-word? :a == true >> | |
Izkata: 21-Feb-2009 | It's always felt consistent to me - the context is being evaluated, and lit-word!s reduce to word!s, word!s reduce to functions and values, while other datatypes reduce to themselves: >> X: [{One} 'Two] == ["One" 'Two] >> ? X/1 ? X/2 X/1 is a string of value: "One" X/2 is a lit-word of value: 'Two >> X: reduce X ;Here is where typing it in on the terminal evaluates to == ["One" Two] >> ? X/1 ? X/2 X/1 is a string of value: "One" X/2 is a word of value: Two >> X: reduce X ** Script Error: Two has no value ** Near: Two ...and the reasoning behind lit-word!/word! acting differently is that those are special datatypes where other values can be bound to them | |
[unknown: 5]: 21-Feb-2009 | My point is that I don't see why the to-lit-word isn't implied when performing assignment. Such as a: 'test | |
[unknown: 5]: 21-Feb-2009 | BTW, it is more efficient to assign a lit-word with a: first ['test] then it is to use a: to-lit-word 'test. | |
Janko: 21-Feb-2009 | Paul: I think Brian or Henrik told that time that 'word is "active" something and rebol reduces it when encounters it in the same way as it would auto-reduce function a: get-two not assign it to a (at least that was my compilation of it that time :) ) | |
Rebolek: 21-Feb-2009 | Paul, it is consinstent: read first word - it's >lit-word?< evaluate it - it's a function that takes one argument read second word (first and only argument for that function) - it's >'test< evaluate it - lit-word! evaulates to word! pass it to the function - word! is passed, not lit-word! | |
Janko: 21-Feb-2009 | Paul: maybe you have a different usage pattern for them, so this behaviour that goes on looks odd/wrong when used that way? | |
[unknown: 5]: 21-Feb-2009 | But you guys tell me that 'test is not a lit-word value. | |
Janko: 21-Feb-2009 | is make-two a function ? it is but when you write it it gets evaled to 2 and if you write >>function? make-two<< you get false , same here it is but it get's evaled to word | |
[unknown: 5]: 21-Feb-2009 | But 'test is a value - not a function. It is the end value as I call it. In other words it doesn't evaluate. | |
Rebolek: 21-Feb-2009 | But this is purpose of lit-word! With your behaviour, >> reduce ['a] ; would return == ['a] | |
[unknown: 5]: 21-Feb-2009 | That is why I say that it is only half true to say that it evaluates to a lit-word. | |
Rebolek: 21-Feb-2009 | Paul, with your behaviour, how would you write this code?: >> a: 3 == 3 >> reduce ['a a] == [a 3] | |
[unknown: 5]: 21-Feb-2009 | to me it should be ['a 3] | |
Janko: 21-Feb-2009 | but then 'a would be very similar to just string "a" in behaviour... don't lit words exist exactly for the behaviour that they have? | |
[unknown: 5]: 21-Feb-2009 | And REBOL does see 'test as a lit-word. A trace shows this: >> string? 'test Trace: string? (word) Trace: 'test (lit-word) Result: false (logic) == false | |
[unknown: 5]: 21-Feb-2009 | Yes it is Janko, a TRACE shows that my argument is a lit-word. | |
[unknown: 5]: 21-Feb-2009 | If you were correct Janko then how would Trace know to classify my argument as a lit-word? | |
Izkata: 21-Feb-2009 | Trace shows what the rebol interpreter first finds, not what a datatype evaluates to: >> type? 'test Trace: type? (word) Trace: 'test (lit-word) Result: (datatype) == word! | |
[unknown: 5]: 21-Feb-2009 | Yes Izkata, it finds that 'test is a lit-word. | |
Izkata: 21-Feb-2009 | And the interpreter converts it to a word! before passing it to 'lit-word? | |
Izkata: 21-Feb-2009 | so lit-word? never sees a lit-word! |
39301 / 64608 | 1 | 2 | 3 | 4 | 5 | ... | 392 | 393 | [394] | 395 | 396 | ... | 643 | 644 | 645 | 646 | 647 |