Re: [9fans] command repetition in sam/acme

2009-03-04 Thread Rudolf Sykora
Sam and Acme use a simple, pure form of regular expressions.  If they had the counting operations, this would be a trivial task, but to add them would open the door to the enormous, ill-conceived complexity of (no longer) regular expressions as the open source community thinks of them. Is it

Re: [9fans] threads vs forks

2009-03-04 Thread Vincent Schut
John Barham wrote: On Tue, Mar 3, 2009 at 3:52 AM, hugo rivera uai...@gmail.com wrote: I have to launch many tasks running in parallel (~5000) in a cluster running linux. Each of the task performs some astronomical calculations and I am not pretty sure if using fork is the best answer here.

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread Rob Pike
Not all the features adapt as easily. -rob

Re: [9fans] threads vs forks

2009-03-04 Thread hugo rivera
Thanks for the advice. Nevertheless I am in no position to decide what pieces of software the cluster will run, I just have to deal with what I have, but anyway I can suggest other possibilities. 2009/3/4, Vincent Schut sc...@sarvision.nl: John Barham wrote: On Tue, Mar 3, 2009 at 3:52 AM,

Re: [9fans] threads vs forks

2009-03-04 Thread Vincent Schut
hugo rivera wrote: Thanks for the advice. Nevertheless I am in no position to decide what pieces of software the cluster will run, I just have to deal with what I have, but anyway I can suggest other possibilities. Well, depends on how you define 'software the cluster will run'. Do you mean

Re: [9fans] threads vs forks

2009-03-04 Thread Vincent Schut
hugo rivera wrote: The cluster has torque installed as the resource manager. I think it runs of top of pbs (an older project). As far as I know now I just have to call a qsub command to submit my jobs on a queue, then the resource manager allocates a processor in the cluster for my process to

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread Rudolf Sykora
2009/3/4 Rob Pike robp...@gmail.com: Not all the features adapt as easily. -rob By counted repetittion I've always meant just the mentioned, i.e. {n} {n,} {,m} {n,m} . What feature do you have on mind? Thanks Ruda

Re: [9fans] threads vs forks

2009-03-04 Thread hugo rivera
you are right. I was totally confused at the beggining. Thanks a lot. 2009/3/4, Vincent Schut sc...@sarvision.nl: hugo rivera wrote: The cluster has torque installed as the resource manager. I think it runs of top of pbs (an older project). As far as I know now I just have to call a qsub

[9fans] acme Put doesn't save

2009-03-04 Thread Rudolf Sykora
Hello I am running p9p acme. I open a directory, so in the tag line I have sth. ending with '/' and in the window I have the list of files in that directory. Now I go to the tag line and append a name, say 'a', to the existing path, i.e. now I have there e.g. '/home/ruda/a'. Then I write Put

Re: [9fans] 8c, 8l, and empty files

2009-03-04 Thread Enrique Soriano
Garbage-in, Garbage-out What does it happen when you try to link an object file that does not have main() defined? And when you try to link a malformed object file? In these cases, there is not any garbage-out for the garbage-in. There is an error, as expected. two things: the linker

Re: [9fans] 8c, 8l, and empty files

2009-03-04 Thread Charles Forsyth
viewing the source code, i suspect it's an oversight rather than essential design.

Re: [9fans] acme Put doesn't save

2009-03-04 Thread yy
2009/3/4 Rudolf Sykora rudolf.syk...@gmail.com: Hello I am running p9p acme. I open a directory, so in the tag line I have sth. ending with '/' and in the window I have the list of files in that directory. Now I go to the tag line and append a name, say 'a', to the existing path, i.e. now I

Re: [9fans] acme Put doesn't save

2009-03-04 Thread roger peppe
i reckon this could be classed as a bug. you can't change a directory window to a file window. 2009/3/4 Rudolf Sykora rudolf.syk...@gmail.com: Hello I am running p9p acme. I open a directory, so in the tag line I have sth. ending with '/' and in the window I have the list of files in that

Re: [9fans] acme Put doesn't save

2009-03-04 Thread Rudolf Sykora
Because at the beginning of the put function in exec.c you have:        if(et==nil || et-w==nil || et-w-isdir)                return; and et-w-isdir is true. But there are workarounds if you want to save the contents of the window. Well, I had some text in in-this-way created window and I

Re: [9fans] acme Put doesn't save

2009-03-04 Thread erik quanstrom
So is there a workaround other than 1) make a new window, 2) copy past the text there 3) save from the new window? 4) New 5) B. - erik

Re: [9fans] threads vs forks

2009-03-04 Thread Uriel
What about xcpu? On Wed, Mar 4, 2009 at 12:33 PM, hugo rivera uai...@gmail.com wrote: you are right. I was totally confused at the beggining. Thanks a lot. 2009/3/4, Vincent Schut sc...@sarvision.nl: hugo rivera wrote: The cluster has torque installed as the resource manager. I think it

Re: [9fans] acme Put doesn't save

2009-03-04 Thread yy
2009/3/4 Rudolf Sykora rudolf.syk...@gmail.com: So is there a workaround other than 1) make a new window, 2) copy past the text there 3) save from the new window? The easier solution that comes to my mind now is Edit w filename. I haven't looked into it, but I think you lost the content of

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread Uriel
From earlier in this thread: Sam and Acme use a simple, pure form of regular expressions. If they had the counting operations, this would be a trivial task, but to add them would open the door to the enormous, ill-conceived complexity of (no longer) regular expressions as the open source

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread Rudolf Sykora
Sam and Acme use a simple, pure form of regular expressions. If they had the counting operations, this would be a trivial task, but to add them would open the door to the enormous, ill-conceived complexity of (no longer) regular expressions as the open source community thinks of them. So,

Re: [9fans] acme Put doesn't save

2009-03-04 Thread hugo rivera
While learning some of acme's basic commands I was also shocked by this, and I agree with Ruda that executing a Put with a non-existent file (e.g. '/home/ruda/a' ;-) should save the contents of the window in that file. Probably there are other ways to do it, like Edit w /home/ruda/a, but the ones

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread Rudolf Sykora
this is plan 9.  we don't ask if new feature x would not cause a problem, we ask if x would make plan 9 a better system. well, no-one disputes the claim, if you read twice.  i'm quite sure one would be wrong in assuming that plan 9's designers did not know about repetition.  i think it

Re: [9fans] acme Put doesn't save

2009-03-04 Thread erik quanstrom
On Wed Mar 4 09:12:08 EST 2009, uai...@gmail.com wrote: While learning some of acme's basic commands I was also shocked by this, and I agree with Ruda that executing a Put with a non-existent file (e.g. '/home/ruda/a' ;-) should save the contents of the window in that file. this isn't true.

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread erik quanstrom
The result of this discussion basically has been: neither acme nor sam is suited for the original problem, there is no simple way present in plan9 allowing you to edit such files with long lines, which are quite commonly and with justification present in the world. Only Vim, which was ported

Re: [9fans] threads vs forks

2009-03-04 Thread ron minnich
On Wed, Mar 4, 2009 at 2:30 AM, Vincent Schut sc...@sarvision.nl wrote: hugo rivera wrote: Now I'm not an expert, but I don't think you can do threading/forking from one machine to another (on linux). You can with bproc, but it's not supported past 2.6.21 or so. ron

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread Rudolf Sykora
i disagree with your premise that only vim has the vigor to modify your super special file.  all you need is f and f*. f transforms your source into something easy to edit in acme. f* transforms it back into the original form.  easy peasy. or, you can write a simple program that edits the

Re: [9fans] acme Put doesn't save

2009-03-04 Thread Rudolf Sykora
if on the other hand you try to modify the name of a directory listing frame, the tag line box is not filled.  this is a hint that you're doing something wrong.  also there is no Put option. this is a bigger hint that you're doing something wrong. You may call it a hint. I noticed the 'Put'

Re: [9fans] acme Put doesn't save

2009-03-04 Thread roger peppe
2009/3/4 erik quanstrom quans...@quanstro.net: if on the other hand you try to modify the name of a directory listing frame, the tag line box is not filled.  this is a hint that you're doing something wrong.  also there is no Put option. this is a bigger hint that you're doing something wrong.

Re: [9fans] 8c, 8l, and empty files

2009-03-04 Thread Juan Céspedes
On Wed, Mar 4, 2009 at 12:43 AM, Anthony Sorace ano...@gmail.com wrote: i could see this going either way, but from my perspective the linker did what you told it. The linker has NOT done what it is supposed to do. From the man page: These commands load the named files into executable files

Re: [9fans] threads vs forks

2009-03-04 Thread Roman V Shaposhnik
On Tue, 2009-03-03 at 23:24 -0600, blstu...@bellsouth.net wrote: it's interesting that parallel wasn't cool when chips were getting noticably faster rapidly. perhaps the focus on parallelization is a sign there aren't any other ideas. Gotta do something will all the extra transistors.

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread Steve Simon
Isn't it sad being in plan9?! Things should be simple, but not simpler than that. I am not sad being in plan9 [sic]. I have used it as my main OS for about eight years and I have used sam exclusively for ten. During that time I cannot remember ever needing or wanting repeat counts on regular

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread John Stalker
But I think that anyone not under the influence of psychedelic substances that has suffered PCR, will agree we don't want to move in that direction, and even if small, counting is a step in that direction. Your feelings are understandable, given the horror of pcre, but in this case they are

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread ron minnich
I still don't get the discussion. This is a research system. People want something. So implement that feature and see how it goes! Report when done :-) ron

Re: [9fans] threads vs forks

2009-03-04 Thread J.R. Mauro
On Wed, Mar 4, 2009 at 12:50 AM, erik quanstrom quans...@quanstro.net wrote: Both AMD and Intel are looking at I/O because it is and will be a limiting factor when scaling to higher core counts. i/o starts sucking wind with one core. that's why we differentiate i/o from everything else

Re: [9fans] command repetition in sam/acme

2009-03-04 Thread Russ Cox
Is it really so? R. Cox (Regular Expression Matching Can Be Simple And Fast), I think, shows, that repetition can be first expanded and then used even by the nice (non-backtracking) algorithms, like this: e{3} -- eee e{3,5} -- ?e? e{3,} -- eee+ where would the problem arise? The

Re: [9fans] threads vs forks

2009-03-04 Thread ron minnich
On Wed, Mar 4, 2009 at 8:52 AM, J.R. Mauro jrm8...@gmail.com wrote: Now I haven't tested an SSD for performance, but I know they are better. Well that I don't understand at all. Is this faith-based performance measurement? :-) I have a friend who is doing lots of SSD testing and they're not

Re: [9fans] threads vs forks

2009-03-04 Thread erik quanstrom
That said, I sure would like to have a fusion IO card for venti. From what my friend is telling me the fusion card would be ideal for venti -- as long as we keep only the arenas on it. even better for ken's fs. i would imagine the performance difference between the fusion i/o card and mass

Re: [9fans] netbook ( no cd ) install help

2009-03-04 Thread Ben Calvert
trying now... On Mar 3, 2009, at 8:06 AM, Latchesar Ionkov wrote: You can try /n/sources/contrib/lucho/usbinst9.img.gz. Just dd it to a USB flash drive and try booting from it. Thanks, Lucho On Sun, Mar 1, 2009 at 11:37 PM, Ben Calvert b...@flyingwalrus.net wrote: ya, that would be

Re: [9fans] netbook ( no cd ) install help

2009-03-04 Thread Ben Calvert
ok - this boots and launches into the installer. I need to back track and free up some disk space, I'll report back when i've accomplished that Ben On Mar 4, 2009, at 10:32 AM, Ben Calvert wrote: trying now... On Mar 3, 2009, at 8:06 AM, Latchesar Ionkov wrote: You can try

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread andrey mirtchovski
that's quite interesting, and i suspect you've discovered a bug. actually two bugs, maybe. one has to deal with drawing alpha-blended images, the other with drawing using RGBA32... the simplest way to trigger the second bug, which may or may not be related to the first, is to draw using black,

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread erik quanstrom
it looks fine on a native plan 9 386 terminal. - erikattachment: α.png

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread andrey mirtchovski
but it doesn't: the red is drawn as blue, the green switches to pink in the middle, and blue is drawn as red and cyan... only the white is alpha-blended correctly. On Wed, Mar 4, 2009 at 2:32 PM, erik quanstrom quans...@coraid.com wrote: it looks fine on a native plan 9 386 terminal. - erik

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread andrey mirtchovski
to see how it should look when drawn correctly use type = ARGB32 and RGB24 for black's allocimage(). see attached. the alpha blending still works because when downgrading from ARGB32-RGB24 (for drawing onto black) the library still takes the source color from black without issues. the bugs appear

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread erik quanstrom
i didn't do a hex dump. it must be displayed differently outside of plan 9. - erik

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread andrey mirtchovski
are you saying that you see the correct image but wee see the png differently? can you convert it to gif instead of png? On Wed, Mar 4, 2009 at 2:44 PM, erik quanstrom quans...@coraid.com wrote: i didn't do a hex dump.  it must be displayed differently outside of plan 9. - erik

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread erik quanstrom
this is a picture of what this looks like on my screen. your attached png is 4 stripes of white-blue blue-blue magenta-blue cyan-blue - erikattachment: αpic.jpg

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread andrey mirtchovski
the jpg file you attached doesn't look like a jpg file :( On Wed, Mar 4, 2009 at 2:53 PM, erik quanstrom quans...@coraid.com wrote: this is a picture of what this looks like on my screen. your attached png is 4 stripes of white-blue blue-blue magenta-blue cyan-blue - erik

[9fans] GSoC 2009

2009-03-04 Thread Anthony Sorace
So, the web site's up, program is announced, and so on. Was anyone planning on doing a Plan 9 application? I'm willing to help, if anyone was planning on it, or lead, if not. In the later case, I'd appreciate help (any of advice, materials, or labor) from people who were involved in our last two

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread andrey mirtchovski
ok, those all exhibit the incorrect blending behaviour, would you not agree? here's a .jpg that shows the correct behaviour and that should render properly on Plan9. I just tried RGB24.png and it indeed renders incorrectly in 9vx the way you're describing it. the jpg should be the benchmark for

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread erik quanstrom
On Wed Mar 4 17:48:12 EST 2009, mirtchov...@gmail.com wrote: Erik, I think you're running in 32bpp mode, right? yes. iirc my nvidia card was not willing to do 24bpp. To have 'png' render RGB24.png correctly make the following change to /sys/src/cmd/jpg/png.c: however it won't fix the

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread andrey mirtchovski
however it won't fix the program that you originally sent. the fix (if you can call sidestepping the problem :a fix) for the original program is to use RGB24 as the channel for black's allocimage(): black = allocimage(display, Rect(0, 0, Dx(screen-r), Dy(screen-r)), RGB24, 0, DBlack);

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread Russ Cox
On Thu, Mar 5, 2009 at 10:31 AM, maht mattmob...@proweb.co.uk wrote: I decided to try some draw(2) exploration and I'm not getting what I expected from alpha blending. If I apply alpha to RGB24 images they change as expected but if I use RGBA32 images and try to apply alpha it's going weird

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread Charles Forsyth
from 32-bit image to a 32-bit display. a 32-bit display? what's the result of cat /dev/draw/new?

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread erik quanstrom
On Wed Mar 4 18:42:46 EST 2009, fors...@terzarima.net wrote: from 32-bit image to a 32-bit display. a 32-bit display? what's the result of cat /dev/draw/new? 1: !cat /dev/draw/new 9 0x8r8g8b8 0 0 0 16001200 0

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread andrey mirtchovski
in the case of 9vx running on Linux it's x8r8g8b8, drawterm on osx is also x8r8g8b8. here's how it breaks down drawing to display: sourcedestination error XRGB32 XRGB32 no XBGR32 XRGB32 no ARGB32 XRGB32 yes (see

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread andrey mirtchovski
just for fun, the attached file should run the whole gamut of allocimage chan options in the 32-bit range (with RGB24 thrown in for good measure) and will create files in /tmp for each possible combination without involving drawing to the screen display (ideally this should be done in memdraw, i

Re: [9fans] Porter-Duff alpha blending

2009-03-04 Thread erik quanstrom
xgbr32 over xgbr32 or xrgb32 looks fine. but xgbr32 over agbr32, for example, results in a fade-to-blue and an extremely slow display time. seems like the channels are getting mixed up. oddly, xrgb32 over argb32 works (but slowly). - erik

Re: [9fans] threads vs forks

2009-03-04 Thread J.R. Mauro
On Wed, Mar 4, 2009 at 12:14 PM, ron minnich rminn...@gmail.com wrote: On Wed, Mar 4, 2009 at 8:52 AM, J.R. Mauro jrm8...@gmail.com wrote: Now I haven't tested an SSD for performance, but I know they are better. Well that I don't understand at all. Is this faith-based performance

Re: [9fans] threads vs forks

2009-03-04 Thread erik quanstrom
On Wed, Mar 04, 2009 at 10:32:55PM -0500, J.R. Mauro wrote: What types of things degrade their performance? I'm interested in seeing other data than the handful of benchmarks I've seen. I imagine writes would be the culprit since you have to erase a whole block first? Being full.

Re: [9fans] mounting plumber from p9p to 9vx

2009-03-04 Thread Tom Lieber
2008/11/24 Russ Cox r...@swtch.com: How do I mount my p9p plumber on to my 9vx session? % ls /mnt/plumb % bind '#Z' /mnt/term % ls /mnt/term/tmp/ns.rsc* /mnt/term/tmp/ns.rsc.wreck/acme /mnt/term/tmp/ns.rsc.wreck/plumb % mount /mnt/term/tmp/ns.rsc.wreck/plumb /mnt/plumb % ls /mnt/plumb

Re: [9fans] GSoC 2009

2009-03-04 Thread hugo rivera
Well, I asked about GSoC 2009 some weeks ago and I got no reply here. I certainly would like to apply as a student, but I am no sure if I qualify (in one hand I am kind of a student, and on the other I probably need to learn a lot more about plan 9). In any case, I would like to see how this