Re: [9fans] Announcing Vim for Plan 9

2008-03-13 Thread andrey mirtchovski
you are my hero. now do the same for firefox ;) no, seriously: thanks for the effort!

Re: [9fans] It looks like our GSoC application was rejected

2008-03-18 Thread andrey mirtchovski
interested students should perhaps submit their plan 9 gsoc project proposals to the Hurd. i hear we have a connection there through a certain Thomas Bushnell, BSG ;)

Re: [9fans] bug in echo?

2008-03-26 Thread andrey mirtchovski
values of Δ will give rise to doom! at least get that one right, please?

Re: [9fans] bug in echo?

2008-03-26 Thread andrey mirtchovski
You don't get it, do you? Δ is the symbol for change. Now do you get it? CHANGE --- DOOM despite being quite the little tard, i'll give you a pass. what you quoted incorrectly is this: 9grid% sed -n 88,91p /usr/andrey/unix/V6/usr/source/s2/mv.c if(*--argp1 == '.'){

Re: [9fans] It looks like our GSoC application was rejected

2008-03-27 Thread andrey mirtchovski
in the news: http://www.regdeveloper.co.uk/2008/03/27/google_summer_code_debian_losers/

Re: [9fans] silliness in flight: build a desktop calculator with srv and rio

2008-03-31 Thread andrey mirtchovski
Does that even do anything? try to figure it out. you may be enlightened. if you fail, follow this link: http://9fans.net/archive/2002/05/18

Re: [9fans] OSX Drawterm hangs on close

2008-04-05 Thread andrey mirtchovski
it's a known bug, but i don't think there's a fix for it.

Re: [9fans] OSX Drawterm hangs on close

2008-04-06 Thread andrey mirtchovski
i've lost my notes on this, but basically you need to figure out why the drawterm Carbon event handlers are not being called. it could be a configuration option that we're not setting or something more sinister. i don't know enough osx to be able to say. another manifestation of the same bug

Re: [9fans] OSX Drawterm hangs on close

2008-04-06 Thread andrey mirtchovski
no, they should go to the program, since it's the one that set up the listener, et al. the applescript does the equivalent of opening the terminal and running a program in it, with keyboard and mouse events going directly to the program. besides, i haven't used the script in years, preferring to

Re: [9fans] hot or not

2008-04-06 Thread andrey mirtchovski
plan9 goes to 11, but the counter overflows at 10 :) On Sun, Apr 6, 2008 at 3:18 PM, Micah Stetson [EMAIL PROTECTED] wrote: http://www.ugu.com/sui/ugu/show?I=ugu.hotnotHN=1113RT=10 Shouldn't that be RT=9? Or does your Plan 9 go to 10? Micah

Re: [9fans] FTQ benchmark available

2008-04-10 Thread andrey mirtchovski
the only major difference would be between the respective getticks() and cycles() implementations, i think. On Thu, Apr 10, 2008 at 3:28 PM, [EMAIL PROTECTED] wrote: i wonder if they'll give the same results! yes, the results are very similar (it's not an exact number). top here is

Re: [9fans] going for baroque

2008-04-28 Thread andrey mirtchovski
Rosenthal, David S. H., ''A Simple X11 Client Program,'' in Proceedings of the Winter, 1988 USENIX Conference, pp. 229-235. A version of the ''hello, world'' paper, presenting and comparing the basics of the X library and the X Toolkit. All potential X programmers (Xlib or X toolkit) should

Re: [9fans] A new language for Plan 9

2008-05-01 Thread andrey mirtchovski
Indentation by white space is a very bad idea in my experience. it could just be possible that you're using an editor that is not aware of the particular indentation requirements of said language, no? does it, at least, implement color coding? :D

Re: [9fans] Equis

2008-05-07 Thread andrey mirtchovski
sorry, but I have no idea what you're talking about, what desktop? rotating? those are metacity's window effects. gnome's window manager window manager. don't ask how i know :)

Re: [9fans] Acme and unicode

2008-05-14 Thread andrey mirtchovski
http://swtch.com/plan9port/man/man7/keyboard.html On Wed, May 14, 2008 at 8:44 AM, hugo rivera [EMAIL PROTECTED] wrote: Hi guys: I hope this is not a very silly question, but I do not remember how to write unicode characters in Acme. I am using plan 9 from user space on FreeBSD. As far

Re: [9fans] /dev/audio format (was: read/write offset hack)

2008-05-30 Thread andrey mirtchovski
BU is the Business Unit. the reason we're not using Plan 9 and Inferno instead of Linux and Java ;)

Re: [9fans] evoluent mouse review

2008-06-24 Thread andrey mirtchovski
can you cat /dev/mouse and see if button 4/5 events are generated by the mouse? it may be that they give you something else than the usual down/up event that everybody is used to (large value deltas, for example). they may also be generating button 6 and up events instead, in which case you'll

Re: [9fans] 9vx

2008-06-27 Thread andrey mirtchovski
confirmed for 10.5.3. On Fri, Jun 27, 2008 at 8:32 AM, Francisco J Ballesteros [EMAIL PROTECTED] wrote: MacOSX 10.5, running it with -t works fine here, including GUI.

Re: [9fans] 9vx - os x fix

2008-06-27 Thread andrey mirtchovski
On Fri, Jun 27, 2008 at 10:34 AM, David Leimbach [EMAIL PROTECTED] wrote: Funny! Chording works great for me! (I'm suspecting my X11 is borked though, it may be completely unrelated to this project). button 2/3 emulation with option and apple keys works, but i'm using button1+option+apple to

Re: [9fans] 9vx - os x fix

2008-06-27 Thread andrey mirtchovski
trying to answer my own question about high cpu load, it looks like 9vx is busy switching all the time. if anyone knows these tracing facilities better, please step up :) dappprof (profiles execution, elapsed time is in nanoseconds): CALL

Re: [9fans] 9vx - os x fix

2008-06-27 Thread andrey mirtchovski
make 9vx/9vx on 10.5.3 that fails with: gcc -g -O3 -MD -std=gnu99 -I. -I. -I9vx -I9vx/a -Wall -Wno-missing-braces -c -o 9vx/main.o 9vx/main.c 9vx/main.c: In function 'sigsegv': 9vx/main.c:491: error: 'struct __darwin_mcontext32' has no member named 'es' 9vx/main.c:492: error: 'struct

Re: [9fans] 9vx

2008-06-30 Thread andrey mirtchovski
now that you've explained the cs issue things are much clearer. i can confirm that I have successfully booted a 9vx terminal off a remote plan9 server using a small modification to factotum. the original boot process failed with: password: ! authentication failed (auth_proxy rpc write: bootes:

Re: [9fans] 9vx

2008-06-30 Thread andrey mirtchovski
now compile 8.factotum and copy it as 9vx/src/9vx/factotum.9 and recompile 9vx. err, make that vx32/src/9vx/factotum.9. i'm compiling against the latest mercurial, but there's not reason why it shouldn't just work with .11 and .10

Re: [9fans] 9vx

2008-06-30 Thread andrey mirtchovski
Does it work to set csremoved=1 in src/9vx/devip.c instead? I can confirm that this works, with the benefit of using secstore instead of prompting for my password.

Re: [9fans] sad commentary

2008-07-02 Thread andrey mirtchovski
Mozilla didn't create the web. The web created Mozilla. just change Mozilla to Mosaic and see how P→Q suddenly becomes Q→P

Re: [9fans] 9vx.OSX bug: resize on second display causes window to go wrong

2008-07-03 Thread andrey mirtchovski
I think the problem comes from 9vx picking up the main display's dimensions as the preallocation for full screen. Drawterm has a fix for that which loops through all the currently attached displays and picks up the one with the largest size to decide what the maximum dimensions should be. here's

Re: [9fans] 9vx.OSX bug: resize on second display causes window to go wrong

2008-07-03 Thread andrey mirtchovski
Is there any way we could solve the current state of affairs if that's the royal we you're using then sure, there is a way: simply download the latest versions of all programs that you're interested in unifying (p9p, drawterm, 9vx, acme-sac, inferno), merge the osx drawing code (using the best

Re: [9fans] vx32 and 9vx performance, and on x86-64

2008-07-03 Thread andrey mirtchovski
why can only one thread run vx32? i think i found part of the answer just now. see the comment above 9vx/main.c:^setsigsegv

Re: [9fans] cloud computing

2008-07-07 Thread andrey mirtchovski
is your app export-controlled? On Mon, Jul 7, 2008 at 12:04 PM, ron minnich [EMAIL PROTECTED] wrote: I have an application for 10,000 machines. One option is to buy them and run them, yuck!

Re: [9fans] char encoding problem

2008-07-11 Thread andrey mirtchovski
you can try using tcs to convert the email to utf, but the man page doesn't say whether tcs speaks 8859-15, but the p9p program says it does (tcs -lv): http://swtch.com/plan9port/man/man1/tcs.html On Fri, Jul 11, 2008 at 9:55 AM, Mathieu Lonjaret [EMAIL PROTECTED] wrote: Hello 9fans, I have a

Re: [9fans] 8 cores

2008-07-15 Thread andrey mirtchovski
add this one to the list: http://9fans.net/archive/2003/12/182

[9fans] current state of thread programming

2008-07-28 Thread andrey mirtchovski
found this snippet today and decided to share it with the list. every once in a while a look at how the rest of the world does things is beneficial :) I don't know about you, but every time I have to program with threads and shared resources, I want to remove my face incrementally with a salad

Re: [9fans] current state of thread programming

2008-07-30 Thread andrey mirtchovski
Is the human thought process parallel? For _my capacities_, I have the impression that I'm more multitask than parallel. And context switch is expensive because there is not only explicit data, but also implicit and I'm not able, if I'm really doing something involved, to restore the previous

Re: [9fans] current state of thread programming

2008-07-30 Thread andrey mirtchovski
I disagree on philosophical grounds ;-) It's been one of the major engineering follies to always approach design from a just follow the nature standpoint. No wonder that before the Wright brothers everybody thought the best way to fly is to flap some kind of wings. off topic, but to note:

Re: [9fans] VirtualBox

2008-07-31 Thread andrey mirtchovski
I was going to try it until i saw this: http://forums.virtualbox.org/viewtopic.php?t=2991 looks like others have got plan9 going on it. On Wed, Jul 30, 2008 at 11:10 PM, William K. Josephson [EMAIL PROTECTED] wrote: Has anyone in these parts experimented recently with VirtualBox?

Re: [9fans] plan9.ini

2008-08-07 Thread andrey mirtchovski
see boot(8). you need to wait 15 seconds for the default to be picked up: Method and address are prompted for first. The prompt lists all valid methods, with the default in brackets, for example: root is from (tcp, local!#S/sdC0/fs)[tcp]: A newline picks the default. Other possible

Re: [9fans] (no subject)

2008-08-14 Thread andrey mirtchovski
I haven't used either of those in a long time. If you send me changes I'd be glad to put them on sources. If you want to take over maintaining them we can easily arrange that :) andrey On Thu, Aug 14, 2008 at 1:09 PM, [EMAIL PROTECTED] wrote: Subject 'Irc' client program at Andrey's Contrib

Re: [9fans] Using the Acme Editor

2008-08-19 Thread andrey mirtchovski
Ms. Discordia, if you don't like it here why do you stay? therapy? here is the scary.devil.monastery of old systems programmers, after all. :)

Re: [9fans] killing 'none'

2008-09-08 Thread andrey mirtchovski
try Kill instead of kill On Mon, Sep 8, 2008 at 11:17 AM, Antonin Vecera [EMAIL PROTECTED] wrote: Hello all, I run on my terminal a process, which switches user id to 'none' (f.e. tftpd). I can't kill that process. ps | grep none none 132 0:00 0:00 140K Open tftpd echo

Re: [9fans] Teleporting Mouse in VMWare Fusion 1.1.3

2008-09-23 Thread andrey mirtchovski
if you moved the mouse during rio startup you may cause rio to be out of sync with the values from the mouse driver. there is a reset command in the driver which causes this behaviour to stop. if you have a window open echo reset /dev/mousectl sometimes helps. rebooting and keeping the hands off

Re: [9fans] ape/psh can't exec in 9vx

2008-09-24 Thread andrey mirtchovski
I threw caution to the wind and ran the rebuild inside rio, and didn't have anything unusual happen. I'll keep an eye out for those panics though, incase I find a way to get them repeatably. I was serving the 9vx window from a fairly remote Linux box, that may have contributed. Does that

Re: [9fans] environment + functions

2008-10-07 Thread andrey mirtchovski
this is a consequence of how environment variables are treated by the shell and what appears in /env. there is a disconnect between the file server and the shell (in essence the shell doesn't consult /env upon each reference. for example if you simply create a file in /env your current shell won't

Re: [9fans] window -hide rc -c 'label a_name; tail -f some_file'

2008-10-08 Thread andrey mirtchovski
see the window(1) man page regarding the -m option passed to the command and what it does in this case. not to repeat everything here, but it suffices to say that window -m -hide rc -c 'label a_name; tail -f /sys/log/telnet' works as expected. note that -m must appear first in the argument

Re: [9fans] window -hide rc -c 'label a_name; tail -f some_file'

2008-10-08 Thread andrey mirtchovski
scratch my previous explanation. it is incorrect. looking through rio's source code it appears that the cause is the supplied rc -c argument to 'window'. the window command assumes that everything after the switches is a command to be executed and actually prepends 'rc -c' in front of your command

Re: [9fans] bug in rio: unhiding deleted windows

2008-10-10 Thread andrey mirtchovski
(btw. can I do sth. else??! -- in linux one can usually kill X with alt-ctrl-backspace. Is there anything like that? I hope the underlining system is just working) you can log in to the node if it allows that and reboot it. i crashed quite a few drawterm sessions to the same node to make sure

Re: [9fans] bug in rio: unhiding deleted windows

2008-10-10 Thread andrey mirtchovski
you can log in to the node if it allows that and reboot it. i crashed quite a few drawterm sessions to the same node to make sure it's repeatable. i think i meant kill and restart rio here, not reboot the node.

Re: [9fans] How to get the diagnostics of fs(3)

2008-10-15 Thread andrey mirtchovski
back when i had mirroring via devfs (some three years ago now) i used 'cmp' to verify that the disks were being correctly written to and that no errors have occurred. i ran cmp from the nigtly log at least couple of times a week.

Re: [9fans] MacOS X drawterm doesn't toggle

2008-10-17 Thread andrey mirtchovski
funny, looking in the archive it was exactly a year ago that i sent a patch to fix this. the patch doesn't seem to have been applied. it does two things: does ctrl+F for both full screen and full-screen-less and fixes a bug when if one is using two unequal displays (larger secondary) then drawterm

Re: [9fans] MacOS X drawterm doesn't toggle

2008-10-18 Thread andrey mirtchovski
this http://9fans.net/archive/2007/01/301 ? Russ fixed it and I believe I helped with the testing and contributed a small change to allow UTF characters to be pasted correctly. On Sat, Oct 18, 2008 at 2:48 AM, Steve Simon [EMAIL PROTECTED] wrote: Did you (or anyone else) find the bug in osd

[9fans] has anyone used xmonad?

2008-10-20 Thread andrey mirtchovski
i stumbled upon this the other day. xmonad is a tiling window manager written in haskell that looks similar to acme, although it can be completely keyboard-driven. if anyone has used it please comment on it. andrey

Re: [9fans] Multi-domain authentication?

2008-10-20 Thread andrey mirtchovski
is there something else you are looking for? say i have a plan9 compute cluster on which i want to allow tip9ug's users to run jobs. i shouldn't have to add all their passwords to my auth server, but i should still be able to say i trust tip9ug's auth server and will allow users from it to log

Re: [9fans] Multi-domain authentication?

2008-10-20 Thread andrey mirtchovski
what kind of access would you give such users to the fileserver? in this specific example perhaps some minimal scratch space, but one can quickly conceive cases where the complete file system semantics are used, for example when you want to provide a data replication service between sites

Re: [9fans] success with 9vx from a terminal

2008-10-22 Thread andrey mirtchovski
This has one or two complications. There is no way to interrupt or kill the foreground process. Instead, ctrl-c interrupts 9vx itself. chris, one of the nice things about the Plan 9 graphics system is that rio is in no way different than any other graphical program. it reads and writes files

Re: [9fans] success with 9vx from a terminal

2008-10-22 Thread andrey mirtchovski
I was playing around with the modified win program and I realized it's not going to work due to the propensity of acme to redirect standard error to a separate window. This environment has no way of notifying anyone that a new window has opened without being requested except visually. A better

Re: [9fans] @{cd ...} breaks completion with ctrl-f/ins; help needed

2008-10-28 Thread andrey mirtchovski
the bug is within rio, which keeps track of changed directories but doesn't know that some of them are changed on a stack for a child process. the actual code is in xfid.c:^xfidwrite, the Qwdir case. what is happening is that it catches the 'cd /lib' correctly and sets w-dir accordingly, however

Re: [9fans] mmap and shared libraries

2008-11-05 Thread andrey mirtchovski
Eris, did you just post the following to slashdot? s/OpenBSD/Plan 9/;s/Theo/9whacko/ and we've got your entire posting history on this mailing list. the similarity is uncanny. Yeah. I'd really like to like OpenBSD. Technically, it's superb. It's smooth, polished, well documented --- it's got a

Re: [9fans] mmap and shared libraries

2008-11-05 Thread andrey mirtchovski
On Wed, Nov 5, 2008 at 5:53 PM, Eris Discordia [EMAIL PROTECTED] wrote: Please forgive the repeated messages. It didn't appear in my mail client's Sent view after I hit send. Thought it might have been lost so I re-wrote it. i expect you to start littering the web forums and mailing lists

Re: [9fans] success with 9vx from a terminal

2008-11-10 Thread andrey mirtchovski
... would you really honestly say that rolling out your own notes forwarder is a *neat* trick? As opposed to be able to use basic system's FS functionality? ok, how would you implement it, then? how would you deliver a note to a process that's running on a remote machine? would you be

Re: [9fans] success with 9vx from a terminal

2008-11-10 Thread andrey mirtchovski
I would like to be able to import the /proc (or similar) filesystem from the remote machine and bind it over the files that my local kernel uses to send notes to the proxy process. That's how my ideal world model would work. Observe how that was also the first suggestion on the notes thief

Re: [9fans] 9grid

2008-11-13 Thread andrey mirtchovski
could it be that the equals sign (=) you typed in /lib/ndb/auth is not the normal equals sign (ascii 3d) but the equal sign of another encoding? that could be the reason why your /lib/ndb/auth can't be pasted properly in an email and can't be parsed correctly by tokenize().

Re: [9fans] An Observation

2008-11-14 Thread andrey mirtchovski
and then there are those who eat too much :D

Re: [9fans] Stupid question...

2008-11-15 Thread andrey mirtchovski
Given that you weren't running the auth server, how was logging in as bootes working? both factotums already contained the auth keys for the user bootes so the authentication code probably short-circuited the auth process. i'm away from a plan9 installation so i can't verify with actual code.

[9fans] plan9 now officially not the OS with the ugliest GUI anymore

2008-11-19 Thread andrey mirtchovski
i don't want to hear anyone complain about the plan9 gui anymore, lest they be cast into the world of LoseThos: http://www.losethos.com/ from the website: The LoseThos IBM PC Operating System x86_64, open source, free, public domain [...] PROMISES: 1) LoseThos will always run everything in

Re: [9fans] plan9 now officially not the OS with the ugliest GUI anymore

2008-11-19 Thread andrey mirtchovski
d00dz, you're getting too caught-up in this whole gui thing and failing to see the forest for the tree. take a look around on that site. watch one or two of the demo videos, check the documentation out... i guarantee you, you've never seen anything like this before (except for the part where grep

Re: [9fans] What about Haskell? [was: How can I use alef?]

2008-11-20 Thread andrey mirtchovski
I think that with a bit more work, porting the Ocaml native compiler to Plan 9 would give you a bigger benefit than GHC (which is unwieldy) or an interpreter such as Hugs. Having a higher-level language in which to write native applications will, perhaps, give more people a viable reason to

Re: [9fans] image/memimage speed

2008-11-30 Thread andrey mirtchovski
can you report timings on the xscreensaver hacks (link at bottom)? they have a benchmarking option -b S which lets you see how many fps they're doing: mk all; for (i in 8.*) { echo -n $i^': '; $i -b 5 } would run each hack for 5 seconds and let you know what their fps is. i used to get

Re: [9fans] standalone netkey

2008-12-02 Thread andrey mirtchovski
i have Charles's version here: http://mirtchovski.com/p9/netkey.tgz On Tue, Dec 2, 2008 at 5:09 PM, erik quanstrom [EMAIL PROTECTED] wrote: i'm sorry for what should be an obvious question. does anyone know of a standalone netkey for unix, mac or windows? - erik

Re: [9fans] MacOS X drawterm doesn't toggle

2008-12-09 Thread andrey mirtchovski
i'll send you the latest i have in private.

Re: [9fans] acer aspire one

2008-12-12 Thread andrey mirtchovski
is the keyboard horrendous? it is. both the aspire and the Asus Eee PC make my chubby fingers suffer. monitor is also tiny (especially on the Eee). i'm sticking with the macbook as the smallest still usable for programming laptop, especially since i can stick an sufficiently large SSD drive in

Re: [9fans] 9vx il has slight speed advantage

2008-12-23 Thread andrey mirtchovski
i have a slightly unrelated question: what do you get if you use 'fcp' instead of 'cp' for the same file over tcp and il? thanks

Re: [9fans] user login / plan9 terminal on plan9

2008-12-24 Thread andrey mirtchovski
cpu -h $sysname -u vdharani

Re: [9fans] Changelogs Patches?

2009-01-04 Thread andrey mirtchovski
Well, I guess I really got spoiled by ZFS's ability to do things like $ zfs snapshot pool/projects/f...@yourtextgoeshere at the console type snap. if you're allowing snaps to be mounted on the local fs then the equivalent would be mkdir /YourTextGoesHere; bind /n/dump/... /

Re: [9fans] Changelogs Patches?

2009-01-06 Thread andrey mirtchovski
i'm using zfs right now for a project storing a few terabytes worth of data and vm images. i have two zfs servers and about 10 pools of different sizes with several hundred different zfs filesystems and volumes of raw disk exported via iscsi. clones play a vital part in the whole set up (they

Re: [9fans] Changelogs Patches?

2009-01-20 Thread andrey mirtchovski
Is it how it was from the get go, or did you use venti-based solutions before? it's how i found it. i have two zfs servers and about 10 pools of different sizes with several hundred different zfs filesystems and volumes of raw disk exported via iscsi. What kind of clients are on the other

Re: [9fans] file creation time

2009-01-22 Thread andrey mirtchovski
On Thu, Jan 22, 2009 at 10:50 AM, lu...@proxima.alt.za wrote: use the dump, luke. ☺ If there was an easy, foolproof way to scan the dump by filename, I presume I could search for the earliest instance and consider that the time of creation. Not entirely viable, is it? history(1)

Re: [9fans] p9 file server (npfs) w/ authentication from heterogenous systems

2009-01-25 Thread andrey mirtchovski
A quick look at npfs and spfs suggests that neither support p9sk1 auth? Am I misreading? one user-level 9p server/client which supports p9sk1 is Tim's python 9P library.

Re: [9fans] for all you people writing Plan 9 papers ...

2009-01-29 Thread andrey mirtchovski
I AM OUTRAGED AT YOUR IGNORANCE! yes, we do. On Thu, Jan 29, 2009 at 9:25 AM, Akshat Kumar aku...@mail.nanosouffle.net wrote: I plan to outrage with ignorance... Do we have TeX native to Plan 9? ak

Re: [9fans] sed crash

2009-02-04 Thread andrey mirtchovski
also, can you please remove debugging output from 9fans?

Re: [9fans] source browsing via http is back

2009-02-12 Thread andrey mirtchovski
On the first hand again, given the occasional reports of replica hosed me I'm not terribly keen on trusting given the occasional reports of software X hosed me (for any and all X), i don't think we should be terribly keen on using computers at all.

Re: [9fans] why sources and the plan 9 web server have been up and down lately

2009-02-12 Thread andrey mirtchovski
you're taking all the fun out of complaining :(

Re: [9fans] clarification needed

2009-02-19 Thread andrey mirtchovski
On Thu, Feb 19, 2009 at 10:28 PM, Andrew Simmons kod...@gmail.com wrote: Is this exchange part of the script for the forthcoming reality TV show Harold and Kumar go to Murray Hill ? your horrible joke gave me an idea to photochop jmk and brucee in this pic:

Re: [9fans] Visual font viewer

2009-02-27 Thread andrey mirtchovski
'page'. font files are just bitmaps. some alpha-blended, but still bitmaps. cd /lib/font and look around. On Fri, Feb 27, 2009 at 7:06 PM, John Barham jbar...@gmail.com wrote: Is there a program that will render some subset of a font file so that you get a quick feel for what it looks like?

Re: [9fans] Visual font viewer

2009-02-27 Thread andrey mirtchovski
On Fri, Feb 27, 2009 at 7:10 PM, andrey mirtchovski mirtchov...@gmail.com wrote: 'page'. font files are just bitmaps. some alpha-blended, but still bitmaps. cd /lib/font and look around. err, by 'font files' i mean the files referenced by .font files, not the .font files themselves, which

Re: [9fans] Visual font viewer

2009-02-27 Thread andrey mirtchovski
there's bdf2subf from Skip's collection: http://www.9netics.com/who/fst/ and then ttf2subf came around. i don't know who created it, i don't think it was me. i fixed some bugs and host it on my site, but the originator is not credited (or i missed to credit them).

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

2009-03-03 Thread andrey mirtchovski
if nobody replies to your email, would you report an error? or, if you prefer: if a linker has nothing to link (in the forest), should everybody hear about it? :)

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

2009-03-03 Thread andrey mirtchovski
Does it have any sense to create a 0 byte executable file? Success or failure? Can you execute it? Garbage-in, Garbage-out

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

2009-03-03 Thread andrey mirtchovski
Or perhaps, since the user went to trouble of making sure the file didn't exist and then creating the empty file, the compiler and linker felt it would be rude if they didn't do something with it? you can call Plan 9 whatever you'd like, but don't call it impolite :)

Re: [9fans] threads vs forks

2009-03-03 Thread andrey mirtchovski
the ssd drives we've (coraid) tested have been spectacular --- reading at 200mb/s. you know, i've read all the reviews and seen all the windows benchmarks. but this info, coming from somebody on this list, is much more assuring than all the slashdot articles. the tests didn't involve plan9 by

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 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 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 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

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 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 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-05 Thread andrey mirtchovski
ok, i think i am close, but i can go no further. here's what i did: - view all images through ppm instead of png. what that means is that i can do toppm $i $i.ppm in 9vx and then see them on the hosting Linux. since ppm is rather simple (doesn't do any draw ops but just dumps the bytes) it is

Re: [9fans] Porter-Duff alpha blending

2009-03-06 Thread andrey mirtchovski
Bug #3: MUL0123 is enabled whenever the src and dst both have 32-bit pixel width, but there is no check that the sub-channels are in the same order. You don't say what the image chans were in your test, but this: src rFF g00 b00 αFF mask kFF αFF dst r00 g00 b00 αFF dst after calc

Re: [9fans] python csp

2009-03-12 Thread andrey mirtchovski
coming up: another port of the 9 code. maybe i'm hidebound, but i hate to do concurrent programming without channels! me too. sign me up for alpha/beta testing.

  1   2   3   4   >