« first day (1400 days earlier)      last day (2380 days later) » 

12:19 AM
posted on August 30, 2014 by Peter Wood

This is a test message.

posted on August 30, 2014 by Peter Wood

This is a test message.

posted on August 30, 2014 by Peter Wood

Test message 3

 
12:45 AM
posted on August 30, 2014 by Peter Wood

I apologise for the recent flurry of test messages. A "bot" is being used by a member of the group to automatically repost messages in this group on Stack Overflow Chat. Another member of the group has requested that the re-posting of comments be discontinued. Please let me know if you feel the cro

 
1:03 AM
posted on August 30, 2014 by fj

Hi PeterTanks a lotYou will find glfw binding here : https://github.com/ldci/glfw-redThanks for testing Envoyé depuis mon appareil mobile Samsung. -------- Message d'origine -------- De : Peter W A Wood Date :31/08/2014 01:38 (GMT+01:00) À : red-...@googlegroups.com Objet : R

 
 
2 hours later…
2:39 AM
posted on August 30, 2014 by Graham

It's not a bot, it's an automatic room feed provided by stackoverflow.If someone objects to seeing this feed, that person can hide messages from the feeds so that they don't see them.  It's a chat.stackoverflow option. On Sunday, August 31, 2014 12:40:15 PM UTC+12, Peter Wood wrote:I apologise for

 
 
10 hours later…
12:44 PM
As far as I can tell, the majority of our feed content is gathered from platforms that provide re-publishable syndicated content. Content gathered from AltME is under the community agreed-upon 'Web-Public' groups. If you object to the open nature of Google Groups or the AltME 'Web-Public' tag, then don't post there.
In monitoring the @Feeds entries since the last complaint, I see very few instances where such entries have disrupted conversation. On the contrary, they stimulate conversation during otherwise quiet periods.
I'm still not sure why there is such cringe that we show public Rebol/Red activity in this Rebol/Red forum. It brings together living sources and commentary like no other platform we've yet used.
 
1:41 PM
@HostileFork I know, right? I knew that was a fake mouth right away.
 
posted on August 31, 2014 by fj

Hi ArnoldThanks for your helpYou will find glfw binding here : https://github.com/ldci/glfw-redRegards Le samedi 30 août 2014 20:55:22 UTC+2, iArnold a écrit :Hi Francois, I have no idea what your import file is or does. Perhaps a workflow with working Red 0.4.1 (and output printscreen) and simila

 
 
2 hours later…
3:36 PM
posted on August 31, 2014 by Peter Wood

Hi François Is you binding for glfw2 or glfw3? (I'd like to use Homebrew to install glfw and it has both). Regards Peter On 31 Aug 2014, at 09:00, fjephe wrote: Hi PeterTanks a lotYou will find glfw binding here : https://github.com/ldci/glfw-redThanks for testing Envoyé depuis m

 
 
2 hours later…
5:52 PM
@HappySpoon That is not enough for me, I just do not want my posts to the mailing list to be reposted here anymore.
 
posted on August 31, 2014 by fj

Hi Peter and Arnold All is perfectly running now.I've changed nothing in the glfw.reds and I suspect a problem with the UFT encodings in red 042 versionUnicode support in file header raises an compiler error:  from since 042 version I had to change Red/System [ Title: "GLFW Binding" Author: "Françoi

 
6:25 PM
posted on August 31, 2014 by fj

OK I've found : my stupid text editor was not on on UFT-8 but on Mac-Roman encoding!Really sorry for the inconvenience  :) Le dimanche 31 août 2014 03:00:41 UTC+2, fj a écrit :Hi PeterTanks a lotYou will find glfw binding here : https://github.com/ldci/glfw-redThanks for testing Envoyé depuis mon

 
7:01 PM
posted on August 31, 2014 by iArnold

!!!!!!!!!!!!! If you read this message on SO chat !!!!!!!!!!!!!!!!!! !!!!!!!!!!!!! You need to subscribe to the !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!! Red mailing list !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!! https://groups.google.com/forum/?hl=en#!forum/red-lang !!!!!

 
7:14 PM
Well that works! Feel free to cut&paste those lines before your reply to the mailinglist.
 
 
1 hour later…
8:15 PM
I want to read a big text file one line at time (not as a block of lines - waste of memory!). Any hint?
PS: with R3
read/lines/part file 1 gives me only 1 char
 
@giuliolunati what's the maximum size of a line?
>> help read
 
8:31 PM
; Brought to you by: try.rebol.nl
USAGE:
    READ source /part length /seek index /string /lines

DESCRIPTION:
    Read from a file, URL, or other port.
    READ is an action value.

ARGUMENTS:
    source (port! file! url! block!)

REFINEMENTS:
    /part -- Partial read a given number of units (source relative)
        length (number!)
    /seek -- Read from a specific position (source relative)
        index (number!)
    /string -- Convert UTF and line terminators to standard text string
 
so, you can use read/seek
@rgchris Unfortunately not everyone can be pleased
 
@HappySpoon - Say 4096 chars. But don't understand how to use read/seek to read 1 line at time.
 
@giuliolunati you can read in 4096 increments, and find where the line breaks are.
so read/part/seek handle 4096 next-part
 
But other languages seems more smarter than so!
 
8:58 PM
@giuliolunati what do you mean?
 
posted on August 31, 2014 by Matt Gushee

I agree with Arnold. Since I'm not a regular or committed participant, you don't need to consider this comment a "vote," but take it for whatever it's worth: Personally, I'm not so worried about statements I make in one public forum being reposted in another - though I agree that lack of context c

 
9:15 PM
@happyspoon - For example in python:
for l in file: <do anything with line l>
 
@giuliolunati you just need to wrap the smarts into another function. Most languages only have access to the same IO functionality as provided by the OS.
 
But seems not so easy... one must take care of buffers, incomplete reads and so on ...
 
@giuliolunati Unfortunately, we don't have something iterator/generator-like easily available at the moment. So we'll for now always need slightly more code (or at least an inversion of control).
However, for the immediate problem we could try to get the combination of READ with the /lines and /part refinements working.
 
posted on August 31, 2014 by Graham

I suspect when people start meta-posting, it indicates that the subject itself has become less interesting to discuss. On Monday, September 1, 2014 8:58:49 AM UTC+12, Matt Gushee wrote:I agree with Arnold. Since I'm not a regular or committed participant, you don't need to consider this comment a

 
Then you could so something like:
file: open %file.txt
while [line: read/lines/part file 1] [
    ...
]
 
9:21 PM
@earl tried but fails for me :(
 
Yeah, as mentioned above, READ/lines/part doesn't (currently) work in this combination.
So that'd need a fix to get working first.
 
gives forever the first char
A bug?
 
I think the bug based on the current design would be to not raise an error when using this combination of refinements.
But we could adjust the design to say that /lines and /part should work in combination as well, and that the /part then refers to the number of lines.
Ah, sorry, some further trials prove me wrong.
The current /lines/part design works the other way round: read as many bytes as indicated by /part, and then split the result up into lines.
 
ok - not very well...
 
@RebolBot do
write/lines %foo.txt ["foo" "bar" "baz"]
read/lines/part %foo.txt 8
 
9:26 PM
posted on August 31, 2014 by Matt Gushee

Hi, Graham-- On Sun, Aug 31, 2014 at 3:13 PM, Graham wrote: > I suspect when people start meta-posting, it indicates that the subject > itself has become less interesting to discuss. If by "the subject" itself you mean the Red language ... I can only speak for myself, but I am

 
read-1-line seems a subtopic of parse-on-port
I'd like work on that ... if PR's would be accepted - or rejected ... :-/
 
9:44 PM
@earl you will still need to read/skip won't you if Mbs file
 
@HappySpoon Ah, the above was just meant to illustrate how the two refinements in read/lines/part currently combine. The above example will give you a block of ["foo" "bar"] as a result. First /part limits the amount of data to read, then /lines is applied to split this blob of data into lines.
 
So, read/part/lines/seek ?
 
10:05 PM
@HappySpoon Yes, but it won't give you line by line, but block by block split up into lines.
Also, you only need /seek if for whatever reason you don't want to keep a stateful port around.
Instead of /seek, you can also do f: open ..., then repeatedly read/part f ..., and finally close f.
;; For example, given a file containing three lines:
>> read/lines %foo.txt
== [
    "foo"
    "bar"
    "baz"
]
;; OPEN, repeated READ, CLOSE:
>> f: open %foo.txt
>> to-string read/part f 4
== "foo^/"
>> to-string read/part f 4
== "bar^/"
>> to-string read/part f 4
== "baz^/"
>> to-string read/part f 4
== ""
>> close f
 
11:08 PM
posted on August 31, 2014 by Peter Wood

Hi Francois On Monday, 1 September 2014, fj wrote: OK I've found : my stupid text editor was not on on UFT-8 but on Mac-Roman encoding!Really sorry for the inconvenience  :) No problem. I'm just happy that it wasn't a bug in Red/System. Regards Peter

 

« first day (1400 days earlier)      last day (2380 days later) »