[9fans] plan9port mac mouse clicks in qemu

2025-03-22 Thread Russ Cox
Hi all, I have been working on Plan 9 mainly under qemu on my Mac. I missed the ability to use acme on the Mac trackpad, so I ported the plan9port click modifier code to the Plan 9 kernel. The old "shift swaps middle and right button" is still in effect, but now "option+click is button2, command+c

Re: [9fans] 9k amd64 kernel and floating point

2025-03-22 Thread Russ Cox
On Sat, Mar 15, 2025 at 12:58 PM Alyssa M via 9fans <9fans@9fans.net> wrote: > (I have to admit I'm still wondering what on Earth people are doing with > floating point in note handlers.) > Are you saying I shouldn't be writing my note handlers in Javascript?

[9fans] ndb suffix-specific dns changes

2025-03-22 Thread Russ Cox
Hi all, Sometimes private networks want you to use a specific DNS server for a specific domain suffix but still use your regular DNS server for all other names. I've added support for this to my plan9 tree, and David du Colombier has applied it to 9legacy. It might be worth adding to 9front as wel

[9fans] monotonic time and randomness on Plan 9

2025-03-11 Thread Russ Cox
Hi all, Cinap said out in the other thread that nsec had been added and then abandoned because it wasn't right. That turns out only to be half wrong - it's not true today but it probably should be true in the future. We do need a time-related special system call, but not that one. I just saw a Go

Re: [9fans] monotonic time and randomness on Plan 9

2025-03-11 Thread Russ Cox
As far as the top-of-stack info, it gets complicated. You have to hard-code an algorithm that must be implemented in every user binary, and then it's a pain to change. This is why in Go we've backed away from reading that info on Mac and why we call into the VDSO on Linux instead of recreating that

Re: [9fans] 9k amd64 kernel and floating point

2025-03-11 Thread Russ Cox
Hi again, I'd forgotten about libthread and stack space for Uregs. That's unfortunate, especially because Intel keeps growing the size of the FP regs. I'd rather not hard-code the expected size in binaries and then have to deal with it growing again. It is starting to sound like a notefpregs file

Re: [9fans] monotonic time and randomness on Plan 9

2025-03-11 Thread Russ Cox
Thanks for the feedback so far. Correcting cinap's email address on this reply. I don't believe having a #c/magicfds file is a net win. Certainly if it is writable / configurable, then much of the benefit is lost. The benefit is not having to do set up like opening files and holding an fd open at

Re: [9fans] 9k amd64 kernel and floating point

2025-03-07 Thread Russ Cox
Hi Cinap, I see what you are saying about wanting /proc/n/fpregs for both debuggers vs note handlers themselves. I think debuggers are more likely, so fpregs should be the current FP registers (if you're in a note handler, it's the handler's registers). I would suggest /proc/n/notefpregs for the f

Re: [9fans] 9k amd64 kernel and floating point

2025-03-05 Thread Russ Cox
What I thought was a floating-point problem turned out to be an integer problem: noted(NCONT) was smashing a few of the integer registers on its way back to the original note context. Nothing to do with floats at all. https://github.com/rsc/plan9/commit/aa00f938f6b3c6a5b4502c25605666f479a22c16 On

[9fans] 9k amd64 kernel and floating point

2025-03-02 Thread Russ Cox
Hi all, Is anyone running the 9k amd64 kernel? I wrote a simple floating point test program and would very much like to know if it works for you. The program is at https://swtch.com/tmp/fpnote2.c. 6c fpnote2.c 6l fpnote2.6 6.out Successful output ends by printing 499501 499501.

[9fans] plan9port changes to rc and acme

2024-09-30 Thread Russ Cox
Hi all, In plan9port, back in 2020, I wrote a new parser in rc to clean up a few things, most notably that = signs are now allowed in command arguments. This makes rc much nicer for using programs with -foo=bar flag syntax. It was pointed out to me that I may not have announced it here, so I'm bel

Re: [9fans] Sponsoring a new Intro book by the Flan 9 Poundation

2022-01-24 Thread Russ Cox
This thread has stopped being respectful and productive. Let's stop here. Thanks. Best, Russ -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T627a29a7babaf29e-M2fadb81457247fe9381aac9f Delivery options: https://9fans.topicbox.com/groups/

[9fans] sam and samterm in Go

2021-04-16 Thread Russ Cox
Hi all, I have been playing off and on with converting some of the Plan 9 tools from C to Go, for both better portability and better maintainability. I just published 9fans.net/go/cmd/sam and 9fans.net/go/cmd/samterm. They seem to work well enough for simple use but I haven't really hammered hard

Re: [9fans] 9P reading directories client/server behavior

2021-04-09 Thread Russ Cox
On March 9, 2021, Plan 9 from Bell Labs <9fans@9fans.net> wrote: > I was trying to use 9fans/go/plan9/client.Fid.Dirreadall > [https://github.com/9fans/go/blob/master/plan9/client/fid.go#L54-L60] > and found that it returned fewer entries than a single Dirread. The > reason is that Dirreadall uses

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread Russ Cox
On March 29, 2021, arn...@skeeve.com wrote: > OK - wasn't kenc ported to Linux for bootstrapping the early > Go compilers? Is that version general, or not worth my trying to use? The early Go compilers, written in C, were compiled with gcc or clang. The Plan 9 C compiler was used for the Go runti

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread Russ Cox
Hi Arnold, The hard part is not so much the compiling but the linking against system libraries. Honestly once you have both gcc and clang happy (with no warnings), I doubt very much that using the Plan 9 C compilers will bring much additional benefit for finding bugs (except bugs in the compiler!)

Re: [9fans] Transfer of Plan 9 to the Plan 9 Foundation

2021-03-24 Thread Russ Cox
On March 23, 2021, Russ Cox wrote: > Once I have had time to go through the details on my end, > I will update Plan 9 from User Space (plan9port) to match. I've updated both plan9port and the Plan 9-derived Go libraries at 9fans.net/go to use the MIT license text. The Unix ports

Re: [9fans] Transfer of Plan 9 to the Plan 9 Foundation

2021-03-23 Thread Russ Cox
Congratulations, and thank you for the effort this took! Plan 9 under such a simple license is a day I never thought I would see. Once I have had time to go through the details on my end, I will update Plan 9 from User Space (plan9port) to match. Best, Russ -

Re: [9fans] Whats the default font in Acme?

2021-02-20 Thread Russ Cox
For what it's worth, you don't need to mount fontsrv anywhere. You can just use 'fontsrv -p .' to list the fonts, and then refer to them as /mnt/font/Name/SIZEa/font. For example: /usr/local/plan9/bin/acme \     -f /mnt/font/LucidaGrande/12a/font \     -F /mnt/font/SourceCodePro-Regular/12a/font

[9fans] Re: moving 9fans to new server, but still 9fans@9fans.net

2019-10-11 Thread Russ Cox
By all appearances, 9fans mail is flowing through Topicbox now. The 9fans archives now hosted at Topicbox contain all the messages formerly at 9fans.net/archive (before that machine went down), dating all the way back to July 1993. For fun, here's my first

[9fans] Re: moving 9fans to new server, but still 9fans@9fans.net

2019-10-11 Thread Russ Cox
This mail should come through Topicbox. We will see. :-) On Fri, Oct 11, 2019 at 12:57 PM Russ Cox wrote: > As you may know from the thread back in August, we've been running 9fans > on a self-hosted Mailman on a VM instance, with a spam blocking service in > front. > > I&

[9fans] moving 9fans to new server, but still 9fans@9fans.net

2019-10-11 Thread Russ Cox
As you may know from the thread back in August, we've been running 9fans on a self-hosted Mailman on a VM instance, with a spam blocking service in front. I've been working with Calvin Morrison of Fastmail on moving 9fans over to Fastmail's hosted mailing list service, Topicbox. The list address

Re: [9fans] MailRoute: Past Due Invoice for 9fans.net

2019-08-09 Thread Russ Cox
On Fri, Aug 9, 2019 at 2:02 PM Skip Tavakkolian wrote: > May I ask what the monthly cost of mailroute-ing 9fans is? I can't decipher > the pricing from their site. Nothing but good things to say about Mailroute. They're mostly aimed at businesses with individual users. When I contacted them wa

Re: [9fans] MailRoute: Past Due Invoice for 9fans.net

2019-08-09 Thread Russ Cox
ts are not the cool thing anymore, I guess. So we muddle on with mailroute and self-hosted mailman. Would be happy to hear about alternatives, though. Best, Russ On Thu, Aug 8, 2019 at 11:00 PM Skip Tavakkolian wrote: > > Anti-Spam-as-a-Service or ASaaS > > > On Thu, Aug 8, 2019, 2:03

Re: [9fans] MailRoute: Past Due Invoice for 9fans.net

2019-08-08 Thread Russ Cox
Hi Christiane, I received your voicemail and just updated my credit card information at billing.mailroute.net. Apologies for not noticing these emails earlier. I've updated my mail filters to highlight them better. Please let me know if you need anything more from me. Best, Russ On Thu, Aug 8,

Re: [9fans] thoughs about venti+fossil

2015-04-21 Thread Russ Cox
On Tue, Apr 21, 2015 at 2:30 PM, wrote: > Does this mean, that Plan9 by default supposes that A=B if hash(A)=hash(B)? > Yes. > That this was not the default before, but it is now? > Yes. > That I still have the possibility of a "full check" of A=B (and not > supposing > it after checking ha

[9fans] github.com/9fans + plan9port on git

2014-11-16 Thread Russ Cox
i have moved the plan9port sources from mercurial to git. the instructions at http://swtch.com/plan9port/man/man1/install.html are up-to-date: you can still install by downloading a .tgz, or you can use git clone. it's entirely possible i've missed some things. let me know on plan9port-dev or send

Re: [9fans] shell functions

2014-09-29 Thread Russ Cox
On Fri, Sep 26, 2014 at 12:32 PM, Kurt H Maier wrote: > Quoting Russ Cox : > > The right fix is to eliminate all possible interaction between (1) and >> (2). >> The first public fix focused instead on making (1) more robust, and guess >> what, it wasn't good e

Re: [9fans] shell functions

2014-09-26 Thread Russ Cox
+9fans, since a few people have asked On Thu, Sep 25, 2014 at 6:15 PM, Scott Schwartz wrote: > Reading about the latest bash bug, I tried this with rc. > Is it a bug? Feature? Other? > > bash$ env 'fn#foo'='{true} > date > ' rc > Thu Sep 25 15:07:16 PDT 2014 > % whatis foo > fn foo {true} > I

Re: [9fans] sam for Windows?

2014-08-27 Thread Russ Cox
On Fri, Jul 18, 2014 at 7:13 PM, <6o205z...@sneakemail.com> wrote: > There are 5 downloads at https://bitbucket.org/knieriem/pf9/downloads. > Which one(s) did you use? > Sorry, I missed this mail when it came in. I used sam20110504 and pf9bin and they both seemed fine. Russ

Re: [9fans] sam for Windows?

2014-07-10 Thread Russ Cox
On Thu, Jul 3, 2014 at 1:39 AM, <6o205z...@sneakemail.com> wrote: > On 6/27/2014 4:38 PM, Russ Cox rsc-at-swtch.com |9fans| wrote: > >> However, Steve Simon buried the lede in his reply: https://bitbucket.org/ >> knieriem/pf9/downloads has a working sam, acme, plumber,

Re: [9fans] sam for Windows?

2014-06-27 Thread Russ Cox
On Mon, Jun 2, 2014 at 7:19 PM, Lee Fallat wrote: > I just checked on a friend's laptop (AMD64 Windows install)- it works. > What doesn't work is this: > > http://plan9.bell-labs.com/netlib/research/sam.exe > > ...because it is a 32-bit installer. > > The link in my previous email though, contain

Re: [9fans] p9p on Retina Macs

2013-09-05 Thread Russ Cox
What Marius wrote is mostly accurate. If you set devdrawretina=1 you get tinier pixels; acme, sam, and 9term know to draw thicker lines in response; other programs do not. If you want fonts that look somewhat like the Plan 9 bitmaps, I use this with acme: #!/bin/bash export devdrawretina=1 /usr/l

Re: [9fans] Go tip build fails

2013-05-01 Thread Russ Cox
Are you all using 386 or amd64 systems? Russ

[9fans] for the mercurial users

2012-06-02 Thread Russ Cox
plumb mercurial 12-hexdigit hash from directory inside mercurial repository. type is text data matches '[a-zA-Z0-9¡-�_\-./]+' data matches '[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]' plumb start rc -c 'cd '''$wdir'''; root=`{hg root}; rev='''

Re: [9fans] Lucient Ornico PC24E-H-FC-WIFI

2012-05-17 Thread Russ Cox
On Thu, May 17, 2012 at 9:42 AM, wrote: > Since there has been no systematic attempt to track working > hardware, each purchase is a crapshoot. I own one "Lucent > WaveLAN" PC24E-H-FC that works and just bought one "IBM" > PC24E-H-FC that does not work. They're old cards, and the > non-working on

Re: [9fans] Starting a blog on plan 9

2012-05-09 Thread Russ Cox
On Wed, May 9, 2012 at 8:09 AM, erik quanstrom wrote: >> Sam is enough for the new user, and learning it without the mouse >> seems like a really good idea. I agree with you sam -d is not an entry I think it's much easier to learn sam _with_ the mouse, and only then move on to sam -d for times wh

Re: [9fans] AMD64 system

2012-04-25 Thread Russ Cox
On Wed, Apr 25, 2012 at 4:13 PM, Strake wrote: > What the hell? This is a waste and a fault. long at least ought to be > at least a machine word. Use vlong. Why does it matter what it's called? > The main one is this: I have a 64-bit machine, and I'll be damned if > my programs won't use every

Re: [9fans] git and (p9p) acme

2012-04-25 Thread Russ Cox
On Wed, Apr 25, 2012 at 5:35 PM, Mathieu Lonjaret wrote: > So, are you saying E just works out of the box for you as the $EDITOR > for git/hg? Yes. Note that E waits for the file to change by running ls -l on the file in a loop. If for some reason doing the Put does not change the ls -l output

Re: [9fans] git and (p9p) acme

2012-04-25 Thread Russ Cox
> It doesn't load the file for the user to edit. You must be running a different sam than I am. I would make a video and post it on YouTube but I am too lazy. Russ

Re: [9fans] git and (p9p) acme

2012-04-25 Thread Russ Cox
On Wed, Apr 25, 2012 at 4:59 PM, Lyndon Nerenberg wrote: > But none of those commands will block until the file is saved, and that's the > issue. Are you sure you are running 'sam foo' and not 'sam foo &'? Sam 'blocks' until you quit out of it, just like acme or vi or ed. Russ

Re: [9fans] what am i missing

2012-04-25 Thread Russ Cox
On Wed, Apr 25, 2012 at 4:37 PM, erik quanstrom wrote: > On Wed Apr 25 16:15:27 EDT 2012, r...@swtch.com wrote: >> This is not Linux.  Each individual proc (thread) has its own >> set of children, so the only wait message that should arrive > > and yet the threadwaitchan() is shared among all thre

Re: [9fans] git and (p9p) acme

2012-04-25 Thread Russ Cox
On Wed, Apr 25, 2012 at 4:57 PM, Lyndon Nerenberg wrote: > A lack of expectation.  I.e. I expect 'sam foo' to, well, edit 'foo'.  'acme > foo' does that, as does 'ed foo.'  From a UI perspective, the 'sam foo' > behaviour is as non-intuitive as it gets. > > If 'sam foo' (i.e. with a single filen

Re: [9fans] git and (p9p) acme

2012-04-25 Thread Russ Cox
On Wed, Apr 25, 2012 at 4:46 PM, Lyndon Nerenberg wrote: > Plugging 'sam file' into a script does not launch the editor with the > specified file in a window for the user to edit, and then save out. Sure it does. And so does 'acme file', if you are on Plan 9 or if you are on plan9port and don't

Re: [9fans] git and (p9p) acme

2012-04-25 Thread Russ Cox
On Wed, Apr 25, 2012 at 4:30 PM, Lyndon Nerenberg wrote: > If 'sam file' did the obvious thing this would be much less of a problem. What is not obvious about what 'sam file' does?

Re: [9fans] git and (p9p) acme

2012-04-25 Thread Russ Cox
I guess it depends on what you expect to break. I like using the E script because (once you learn not to click Put, which doesn't take too long) after I click Put the window is still there with my work in it in case the tool I just sent it to chooses to blow up and discard my efforts. Russ

Re: [9fans] what am i missing

2012-04-25 Thread Russ Cox
On Wed, Apr 25, 2012 at 4:06 PM, erik quanstrom wrote: > good point.  procrfork() does nowait.  but then how do i get > a wait message.  i'm really hoping the answer is not "you don't". I don't believe you have looked at the context here. This is only used by procexec, which is trying to simulat

Re: [9fans] what am i missing

2012-04-25 Thread Russ Cox
On Wed, Apr 25, 2012 at 3:46 PM, erik quanstrom wrote: > i think that if you're asynchronously procexecing() and > waiting for wait messages, some could have been lost. why would they be delivered to the proc running procexec? russ

Re: [9fans] could not write super block; waiting 10 seconds

2012-03-26 Thread Russ Cox
On Mon, Mar 26, 2012 at 6:18 AM, Richard Miller <9f...@hamnavoe.com> wrote: > (1) When taking a snapshot, blockWrite in cache.c is called to write > an updated super block S, which has a pointer to the root block R > for the new epoch.  To maintain consistency on the disk, R must be > written befor

Re: [9fans] Regarding 9p based "protocols" message framing

2012-03-16 Thread Russ Cox
On Fri, Mar 16, 2012 at 7:40 AM, Ciprian Dorin Craciun wrote: >  Why was I puzzled: because as a non Plan9 user / developer, I > usually think of the underlaying transport technology (be it sockets > or 9p) as a stream of bytes without explicit framing. Even outside Plan 9, this is not always the

Re: [9fans] sealed arena modified by venti??

2012-02-28 Thread Russ Cox
Try running verifyarena on both.

Re: [9fans] evoluent mouse review

2012-02-21 Thread Russ Cox
On Tue, Feb 21, 2012 at 10:03 AM, Quico Moya wrote: > I'm unable to simulate three buttons on my Magic Mouse.  Is there > something I have to do to turn this feature on? Thanks! There was at one point code in plan9port that simulated three buttons along the top of the magic mouse; it read out whe

Re: [9fans] Plan 9/plan9port coding conventions

2012-01-11 Thread Russ Cox
Style is style; it is not defensible on its own. If I were contributing to smiley's projects, I would make the code look the way the rest of his code does. It's not that one way is necessarily better, but one way is definitely least distracting in a given context. Russ

Re: [9fans] Plan 9/plan9port coding conventions

2012-01-11 Thread Russ Cox
In any project, the polite thing to do is to make your code look like the surrounding code. You have identified many ways in which your code does not look like the surrounding code. That's always the first step. Russ

Re: [9fans] Killing venti

2012-01-05 Thread Russ Cox
On Thu, Jan 5, 2012 at 12:35 PM, wrote: >> run venti/sync. > > Ah.  Cool.  Gotta love those undocumented commands.  :) While probing > the distal edges of Venti's documented functionality, I also came across > the following, which have similar (but not identical) effect: > > hget http://$vthost:$

Re: [9fans] venti and "contrib": RFC

2012-01-05 Thread Russ Cox
On Thu, Jan 5, 2012 at 10:15 AM, wrote: > But perhaps the other users are smart enough to have understood all this > at installation time, but when I first installed Plan9, that was not for > the archival features. And I spent my time on Plan9 looking for the > distributed system, the namespace a

Re: [9fans] Killing venti

2012-01-03 Thread Russ Cox
run venti/sync. then kill it. russ

Re: [9fans] C compiler error?

2011-12-13 Thread Russ Cox
On Tue, Dec 13, 2011 at 11:05 PM, Lucio De Re wrote: > What is the expected status?  Is Anthony's CL to be abandoned in > favour of the change to the Plan 9 C compiler (give or take the other > nit of a "static" definition)?  I don't have a problem with minor > unofficial changes to the Plan 9 dis

Re: [9fans] C compiler error?

2011-12-13 Thread Russ Cox
On Tue, Dec 13, 2011 at 5:38 PM, Charles Forsyth wrote: > it's reasonable to use any integer type in a switch, although the compilers > don't currently support it. > it's compatible with the standard, which allows any integer type. i'd cancel > the change request and work round it (add a cast) unt

[9fans] spam on 9fans

2011-11-30 Thread Russ Cox
There has been a lot of spam passing through 9fans, enough that, for example, my own subscription tends to auto-disable every few months due to the many bounced spam messages that the list server could not deliver. I have shuffled things around a bit, and it should reduce the amount of spam gettin

Re: [9fans] 6a bug

2011-11-17 Thread Russ Cox
On Wed, Nov 16, 2011 at 7:50 PM, erik quanstrom wrote: > well my example is slightly booged then.  i just needed a label. > the point still stands that 6l is not liking the *value*.  this actually > comes from _start64v, and i wanted to simplify it.  if you replace > the given value with $10, it 6

Re: [9fans] 6a bug

2011-11-16 Thread Russ Cox
I'm a little surprised 6a accepts the ull suffix. Russ

Re: [9fans] FS for sharing between Linux and Plan 9

2011-11-04 Thread Russ Cox
On Fri, Nov 4, 2011 at 4:50 PM, wrote: > Hm.  It looks like I might have been wrong about that.  Digging a little > deeper, it seems like plan9port doesn't have any fdisk, prep, or fossil. > Is that correct?  (And if so, why?)  I know that Linux doesn't have any > kernel-level support for Plan 9

Re: [9fans] how to burn iso

2011-10-24 Thread Russ Cox
On Mon, Oct 24, 2011 at 9:41 AM, Rudolf Sykora wrote: > My current understanding is that I need as if 3 different views on a CD: > -- if audio CD is to be written, I need to follow some structure in > which audio tracks should be written, so that other audio readers > understand it, > -- if data f

Re: [9fans] plumb(1) in ansi C

2011-10-18 Thread Russ Cox
On Oct 18, 2011 at 06:24, Steve Simon wrote: > Anyone written plumb(1) in ansi c for a non-plan9 OS, > > By this I don't mean the plumber as such, but a command which > writes correctly formatted messages into /.../mnt/plumb/send. There is one in plan9port, as usual. You would have to tweak libpl

[9fans] plan9port on lion

2011-10-13 Thread Russ Cox
It looks like Apple pushed Xcode 4.2 to the App Store recently. That, combined with some recent changes to plan9port, means that plan9port finally compiles 'out of the box' on Lion. Many thanks to David Jeannot for his heroic struggles with Cocoa and Objective C. Russ

Re: [9fans] ext2srv understands only 7bit ASCII file names?

2011-10-13 Thread Russ Cox
> example of whitespace handling etc in trfs.c and recompile. Now, where > is the latin-1 code table again... latin-1 bytes 00-FF turn into unicode runes 00-FF.

Re: [9fans] ext2srv understands only 7bit ASCII file names?

2011-10-13 Thread Russ Cox
On Oct 13, 2011 at 07:16, slash wrote: > I have some files on an external ext2 drive that have whitespace and > umlauts (ä, ö) in them. trfs took care of the whitespace. But ext2srv > presents umlauts as a question mark symbol (�) and won't let me access > the file (error: file does not exist). >

Re: [9fans] tcl, 9p

2011-10-08 Thread Russ Cox
On Sat, Oct 8, 2011 at 8:02 PM, L N wrote: > Anyone know the state of the art of writing 9p clients/servers in tcl? I believe the state of the art is not to use tcl. :-) I'm having fun writing 9p clients in Go. Russ

Re: [9fans] copying over 9P using plan9port

2011-10-04 Thread Russ Cox
To answer my question: the error message comes from 9pfuse. The extra bits are O_NOFOLLOW and O_LARGEFILE, both of which seem harmless in this context. Try this: diff -r 6db8fc2588f6 src/cmd/9pfuse/main.c --- a/src/cmd/9pfuse/main.c Mon Oct 03 18:16:09 2011 -0400 +++ b/src/cmd/9pfuse/main.c

Re: [9fans] copying over 9P using plan9port

2011-10-04 Thread Russ Cox
What does 'mount' (not 9 mount, just mount) say after you mount the file system? That will tell you whether the '9 mount' used v9fs (Linux 9P driver) or 9pfuse (user-space 9P-to-FUSE translator). Neither gets much use, so it is easy to believe that there is a bug. Russ

Re: [9fans] namec() dislikes #M - why?

2011-10-04 Thread Russ Cox
#M is not a nameable device. It is a pseudo-device representing mounted connections. Instead of writing bind -b #M123 /dev You are supposed to write mount -b /srv/whatever /dev My memory is that the name space files use the latter form unless the original name is gone. Russ

Re: [9fans] circular fonctions: precision?

2011-10-03 Thread Russ Cox
On Mon, Oct 3, 2011 at 11:34 AM, Bakul Shah wrote: > I don't get it. Surely go has a FFI? Or Are you planning to reimplement many > libraries in go? Using FFI for square root is overkill. Russ

Re: [9fans] circular fonctions: precision?

2011-10-03 Thread Russ Cox
On Mon, Oct 3, 2011 at 10:44 AM, Bakul Shah wrote: > Why not just use sun/FreeBSD functions in C? Because we are writing in Go. Russ

Re: [9fans] circular fonctions: precision?

2011-10-03 Thread Russ Cox
On Sun, Oct 2, 2011 at 12:38 PM, wrote: > Is there some documentation about the precision of the circular (i.e > trigonometric) fonctions, depending on the (plan9) implementation and > the hardware? They are not terribly accurate. If you need accurate versions, the best I know are the ones that

Re: [9fans] cocoa devdraw

2011-09-26 Thread Russ Cox
On Mon, Sep 26, 2011 at 4:10 PM, David Leimbach wrote: > Ucontext stuff was being deprecated in Leopard was my understanding and that > support for it would be shoddy. > > Time to roll our own?  Didn't you already do this? I did for many systems, and even did for Lion, but then I tried the syste

Re: [9fans] cocoa devdraw

2011-09-26 Thread Russ Cox
On Mon, Sep 26, 2011 at 3:23 PM, Anthony Sorace wrote: > Do you have reason to believe this is a Lion issue? I'm running > Xcode 4.1 on Snow Leopard and libthread is buggered for me, > as well (I don't currently have a Lion system to confirm it's > buggered in the same way). No, I believe it is a

[9fans] cocoa devdraw

2011-09-26 Thread Russ Cox
Thanks to heroic effort by David Jeannot, there is a new Cocoa-based OS X devdraw that seems to work well enough that I made it the default even on Snow Leopard. If you do the usual hg pull -u; ./INSTALL you'll get it. I think the only pending Lion issue now is that people using Xcode 4.1 don't h

Re: [9fans] toff fonts

2011-09-18 Thread Russ Cox
On Sun, Sep 18, 2011 at 11:22 AM, wrote: > i was just wondering because all these special unicode > characters work with the LucidaSans font. and the > /sys/lib/postscript/troff/R file *suggested* to me that > it should fall back to the Lucida font for special > characters... > > how are the trof

Re: [9fans] toff fonts

2011-09-18 Thread Russ Cox
Honestly, the easiest thing to do is run the input through sed. Or use Heirloom troff, which has much better support for Unicode and modern fonts. Russ

Re: [9fans] toff fonts

2011-09-18 Thread Russ Cox
why are you trying to render U+2019? the usual way to do that is to write U+0027. russ

Re: [9fans] venerable software - 9wm

2011-09-16 Thread Russ Cox
On Fri, Sep 16, 2011 at 10:22 AM, Steve Simon wrote: > anyone updated dhog's 9wm so it looks more rio-listic > rather than 8½ styled. yes - it is called rio in plan9port. russ

Re: [9fans] Plan 9 stack limit?

2011-09-07 Thread Russ Cox
On Wed, Sep 7, 2011 at 9:18 PM, Comeau At9Fans wrote: > Threw a lot more at it and it seemed ok, until just now.  This time, for the > first time (with this problem) the app did not crash but 9vx.OSX crashed and > gave: >   libvx32/emu.c:1668: failed assertion `(void*)extra < (void*)codetab' > > A

Re: [9fans] Plan 9 stack limit?

2011-09-07 Thread Russ Cox
On Wed, Sep 7, 2011 at 9:43 AM, Comeau At9Fans wrote: > The app.  9vx will continue to run after it.  It give a little dump thing on > the screen with "1476 The.App fault 0x4 no segment" send to the shell > account 9vx was started from.  Running acid on the app does not appear to > bring up a line

Re: [9fans] Plan 9 stack limit?

2011-09-06 Thread Russ Cox
On 9vx the entire address space for a running process is 256 MB. The heap grows up and the stack grows down. It is easy to believe you could have blown out the stack. Is it just the program you ran that crashed or is it all of 9vx? The fact that you said '9vx.OSX' makes me think you might be run

Re: [9fans] plan9port: cocoa programmer needed

2011-09-06 Thread Russ Cox
I am using Xcode 4.2 on Lion without problems. Can you try updating to the newer Xcode? Russ

Re: [9fans] plan9port: cocoa programmer needed

2011-09-06 Thread Russ Cox
Try adding # HA HA HA. Apple broke things again. [ "$SYSNAME" != "Darwin" ] || ranlib $2 to the bottom of $PLAN9/bin/9ar

Re: [9fans] plan9port: cocoa programmer needed

2011-09-06 Thread Russ Cox
David's new Cocoa devdraw is in the plan9port tree now, but not built by default. There are still some rough edges to work out. If you want to play and maybe find and fix bugs, you can use cd $PLAN9/src/cmd/devdraw mk cocoa export DEVDRAW=$PLAN9/src/cmd/devdraw/cocoa colors acme sam whatever Ru

Re: [9fans] libmach x86 botch

2011-09-04 Thread Russ Cox
asm(stackaddress) is bogus not because of libmach but because asm is defined to disassemble from the text file, not from memory. Run 'whatis asm' in acid and notice that it says @addr++ not *addr++.

Re: [9fans] another acme/Mail question

2011-08-28 Thread Russ Cox
> when I was playing with reading gmail with acme/Mail I sent a simple > e-mail to my gmail acount (from some webish outlook program, if that's > important), but then I saw this in the body of email as shown in acme > > 9p read mail/mbox/1375/body > //a > > can anybody tell me what it is? acme mai

Re: [9fans] plan9port: cocoa programmer needed

2011-08-27 Thread Russ Cox
> According to my quick tests on Linux, the following > seems to work: > >        /usr/local/plan9/src/cmd/acme/text.c:754 >                case Kcmd+'c':  /* %C: copy */ >                        typecommit(t); >                        cut(t, t, nil, TRUE, FALSE, nil, 0); >                        r

Re: [9fans] plan9port: cocoa programmer needed

2011-08-26 Thread Russ Cox
On Thu, Aug 25, 2011 at 2:33 PM, david jeannot wrote: >> It is possible that we just need to tweak the >> headers to get Carbon to build again, but Cocoa is >> obviously the right long term plan. > > I have a "working" Cocoa version of Devdraw for > OS X Lion: I'm using it with Acme to write this

Re: [9fans] plan9port: cocoa programmer needed

2011-08-25 Thread Russ Cox
wow, thanks!

Re: [9fans] get the last write offset in p9p acme

2011-08-24 Thread Russ Cox
Seems fine to me. You can shorten to w.Addr(",")

Re: [9fans] edit a huge file

2011-08-24 Thread Russ Cox
>> that's not true.  it's still useful even with the temporary copy. >> and the temporary copy makes sure things aren't changing >> out from under acme's feet. > > i'm not sure what statement you're refuting. "you'd have to convince it to not read the entire file preemptively to make this a useful

Re: [9fans] edit a huge file

2011-08-24 Thread Russ Cox
> no, but the whole file is read.  additionally, many 32-bit offsets are used. > > (cf. Range, Block, Disk, Buffer.cqi Elog, File.ntext, Text, Expand, in > acme/dat.h) > > i don't think it would be that hard to modify acme to handle large files, > but you'd have to convince it to not read the enti

Re: [9fans] edit a huge file

2011-08-24 Thread Russ Cox
> I needed to edit/look through a cca 7 GB log (text) file. > Now I use p9p. > Acme failed with a segmentation fault, was killed. > Sam did not seg-faulted, but didn't work either. > I finally used ed/sed. > > So does acme/sam need to load the whole file into memory? neither loads the file into me

Re: [9fans] simple venti demo:

2011-08-12 Thread Russ Cox
i call this 'ventino'. it's a tiny venti that keeps the whole index in memory, backed by a text file. i have not used it in a while (the file is dated may 25, 2009) but hey, it's a working venti server in 329 lines of code. #include #include #include #include #include #include #include ty

Re: [9fans] (no subject)

2011-08-09 Thread Russ Cox
Yes, rfork N is very nearly useless in rc. In a C program it is more useful, because you can open file descriptors you need before and make system calls afterward. Russ

Re: [9fans] plan9port: cocoa programmer needed

2011-08-03 Thread Russ Cox
On Wed, Aug 3, 2011 at 12:25 AM, David Leimbach wrote: > I was with you till the "very easy" part.  Been following the updates today > and noted that (earlier) the portion of INSTALL that detects the > architecture on Darwin was not working.  Had a patch for that and > regrettably blew it away (ac

  1   2   3   4   5   6   7   8   9   >