Re: [9fans] Go 1.3b1 cmd/pack test takes too long

2014-05-04 Thread Anthony Martin
Skip Tavakkolian once said: > is anyone else seeing similar results for cmd/pack? > > % go test > PASS > ok cmd/pack 172.505s > > this is on an atom (d525 @ 1.8ghz, 4gb). same test on an arm (quad core a9 > @ 1.7ghz, 2gb, linux 3.8) takes much less time: > > % go test > PASS > ok cmd/pac

Re: [9fans] Go 1.3b1 cmd/pack test takes too long

2014-05-05 Thread Anthony Martin
Skip Tavakkolian once said: > thanks; i should have checked that. running it on the fossil+venti server > brings it down a bit. still, it's not stellar. > > bootes% go test > PASS > ok cmd/pack 81.480s > bootes% go test > PASS > ok cmd/pack 79.719s Here's a CL to buffer the writes in TestLar

Re: [9fans] kernel bug

2014-06-02 Thread Anthony Martin
Yoann Padioleau once said: > in the newseg() function there is: > > [...] > > I think it should be > if(mapsize > (SEGMAPSIZE)) > mapsize = SEGMAPSIZE; Yes, you're correct. The code allows the creation of a segment VM map with more than SEGMAPSIZE Ptes. Personally, I'd remove the ch

Re: [9fans] kernel bug

2014-06-04 Thread Anthony Martin
erik quanstrom once said: > i don't know where a history of stuff older than sources (2002) is. /n/sources/extra/9hist Anthony

Re: [9fans] Setting up Mail in Acme on the Raspberry Pi.

2014-10-31 Thread Anthony Martin
Richard Miller <9f...@hamnavoe.com> once said: > - finally, after receiving a "Google Account: sign-in attempt blocked" > email from google, followed their suggestion to: > > "change your settings at > https://www.google.com/settings/security/lesssecureapps so that your > account is no longer

Re: [9fans] GO Programming Environment in Plan 9.

2014-11-30 Thread Anthony Martin
minux once said: > On Nov 30, 2014 3:10 PM, "Mats Olsson" wrote: > > Just googled and found: https://code.google.com/p/go-wiki/wiki/GoArm > > > > So it seems that it's supported. > go on arm only supports Linux, Freebsd, Netbsd, nacl and Darwin > (unofficial). > > plan 9 is not on the list (yet)

Re: [9fans] GO Programming Environment in Plan 9.

2014-11-30 Thread Anthony Martin
erik quanstrom once said: > > We're all just waiting for the tree to open up again. > > i thought that was the promise of dcs -- you don't have to wait. > where did this whole thing fail? Well, I really meant we're waiting for the point in the development schedule that allows new code to be up f

[9fans] Why does pread(2) modify the channel offset?

2015-06-21 Thread Anthony Martin
During the investigation of a failure in the Go test suite, I was led to the following question: Why does pread(2) modify the channel offset? When pread and pwrite were added to the kernel in Feb 2001, neither of them modified the underlying channel offset for a given file descriptor. This was

Re: [9fans] Harvey OS: A new OS inspired heavily by Plan 9

2015-07-26 Thread Anthony Martin
Prof Brucee once said: > i was gonna suggest as per rob's post that chan.c was a good place to check > for gcc introduced code. anyone actually going to diff the code or is it > all going to be speculation? I looked. The diff is basically s/uvlong/uint64_t/; s/MOVL/movl/ and the addition of some

Re: [9fans] Small Plan 9 Platforms

2015-08-08 Thread Anthony Martin
hiro <23h...@gmail.com> once said: > Also, "crazy closed firmware blobs" is a violation of our COC. Some > people here develop firmware blobs and don't want to hear such > insults. It says more about you that you're insulted by something so innocuous. Email me privately if you'd like some real in

Re: [9fans] bug or feature ? --- ip/ping -6

2015-12-28 Thread Anthony Martin
arisawa once said: > is this a feature or a bug? It looks like a bug to me. The code in /sys/src/cmd/ip/ping.c:/^isv4name is too clever for it's own good. Anthony

Re: [9fans] bug or feature ? --- ip/ping -6

2016-01-04 Thread Anthony Martin
erik quanstrom once said: > unfortunately, the simlification removes the code that solves an important > use case. it's important to be able to specify the protocol or network stack, > such as in > > ip/ping /net.alt/icmp!someaddress Most commands use an -x option and setnetmtpt(2) to arr

Re: [9fans] Namespace inheritance between processes

2016-05-21 Thread Anthony Martin
Casey Rodarmor once said: > > Let's say I have a process A which forks a child process B with the > > RFNAMEG so it receives a copy of A's namespace. > > > > If process A then makes a change to its namespace, will process B see > > that change? Or does B receive a distinct copy that A then can't >

Re: [9fans] Namespace inheritance between processes

2016-05-21 Thread Anthony Martin
Anthony Martin once said: > Casey Rodarmor once said: > > Also, whatever the answer is, how can I test this for myself? I was > > struggling to come up with a combination of commands, short of writing > > some C programs, which would let me have two interactive rc shells

Re: [9fans] A heartfelt thanks... :-)

2017-01-06 Thread Anthony Martin
Ciao Giacomo, Why did you choose to create devself? Everything it does seems better suited to devproc. If I was going that route, I'd instead create a QTDIR file in devproc called #p/self that is just another view into #p/$pid. Then brk and chdir would be control messages written to #p/self/ctl. S

Re: [9fans] Why Plan 9 uses $ifs instead of $IFS?

2017-10-17 Thread Anthony Martin
Note that variables in the Mashey shell were single letters in lower-case. $p was similar to $PATH in the Bourne shell. Maybe Tom just split the difference. Have you asked him? :) Anthony

Re: [9fans] Plan 9 C compiler for RISC-V by Richard Miller

2018-10-30 Thread Anthony Martin
Charles Forsyth once said: > I had a chart somewhere with the available non-unicode letters. I made one a few years ago. It's at http://pbrane.org/comp.html I just updated it with a suggestion for the RISC-V letters. Anthony

Re: [9fans] Plan 9 C compiler for RISC-V by Richard Miller

2018-10-30 Thread Anthony Martin
Richard Miller <9f...@hamnavoe.com> once said: > How about i for rIscv32 and j for riscv64 (one more than i)? Or even e for riscv since it's the fifth letter in the alphabet. :) Let me know what you decide and I'll update my table. > I used n for nios2. na and aux/na commands are distinct, and >

Re: [9fans] rc scripts, how to get spaces in array elements generated by command output?

2019-01-05 Thread Anthony Martin
Mack Wallace once said: > My question: Is there a way to take the string output of a command that > contains spaces and make it a single element of an array in rc script? > > [...] > > However, if I am receiving output from sed that contains spaces from > the following script line > > string_var

Re: [9fans] How does one read a file line by line in an rc script?

2019-01-05 Thread Anthony Martin
Mack Wallace once said: > Another, probably more stupid question - How does one read a text file > line by line in an rc script. You should really read the rc(1) man page. It will answer your questions. Here the functions foo and bar are equivalent: fn foo { <$1 while(l

Re: [9fans] Don't Plan 9 C compiler initialize the rest of member of a?struct?

2019-04-02 Thread Anthony Martin
Charles Forsyth once said: > I didn't look at the code closely enough earlier, but remembered something > from years ago this morning. It's a bug. It isn't platform specific. > There is an existing fix in 9front (I think it came from there) but it's > horrible. Still, better a horrible fix than bu

[9fans] nCUBE, Transit, and Plan 9

2019-04-07 Thread Anthony Martin
mycrof...@sphericalharmony.com once said: > Most recently, I have been pursing historical investigation and > recreation of systems based on the hypercubic computers which rose to > prominence in the late 1980s. Most interesting (to me) are the > systems from nCUBE, which transitioned during the 1

Re: [9fans] bug in echo?

2008-03-26 Thread Anthony Martin
The UNIX Programming Environment, p.78

[9fans] dc(1) questions

2008-04-15 Thread Anthony Martin
1. Bc(1) has the idea that the last function letter is 'z', corresponding to decimal 26 in dc(1)'s stable[]. However, dc only gives an error for undefined functions up to LASTFUN ... _octal_ 026. Which is correct? My bets are with bc. 2. Why is there no mention of register notation

Re: [9fans] x86 segment register

2008-05-16 Thread Anthony Martin
Heh, cool. If you put a seek() in your test code (before the write) you'll get a better panic. But there's actually two bugs here. The one not related to setregisters() is in devproc.c:/^procwrite. For the case of Qregs or Qfpregs, there needs to be a poperror() before the return 0.

[9fans] 9vx frogs

2008-06-27 Thread Anthony Martin
Trying to exec a filename with frogs in it causes the first validnamedup() in sysexec to throw an error. The waserror branch then tries to free(file) causing an invalid pointer in munmap_chunk. I can provide a trace if necessary but I think it's just a matter of not trying to free "file" before it

[9fans] 9vx fork problem

2008-06-29 Thread Anthony Martin
On 9vx, iostats suicides: term% iostats echo iostats 128: suicide: sys: trap: page fault pc=0xb21c Apparently, after a fork, a child retains it's parent's pid in _tos->pid. It isn't updated until the next syscall finishes with kexit. This is a problem if the child's first function call i

Re: [9fans] 9vx fork problem

2008-06-29 Thread Anthony Martin
> Thank you for the detailed reports. > It makes it very easy to fix the bugs! It really is my pleasure. Hunting bugs is one of my favorite pastimes. Well, that's not completely true: hunting bugs is usually only fun when dealing with code of a certain quality. Plan 9 makes the cut, as does all of

Re: [9fans] 9vx

2008-06-30 Thread Anthony Martin
> I added devsd and wrote an sd loopback yesterday afternoon. > It worked pretty well except that when I ran fdisk, > /dev/sd00/data disappeared. I was going to debug that > before saying anything. Here's the fix for the fdisk problem: /sys/src/cmd/disk/prep/edit.c:503,508 - edit.c:503,509

Re: [9fans] naive 9vx/fossil question

2008-07-02 Thread Anthony Martin
> I have a plan9/linux dual boot on my machine. Is there any way I can > access (i.e: read and/or write) the fossil partition of my plan9 > install from 9vx on linux? > Actually, is there any way at all I can access that partition from > linux? Russ added a loopback device to devsd a couple days a

Re: [9fans] USB keyboard error

2008-07-13 Thread Anthony Martin
term% cat /dev/drivers | grep kbin # kbin(3)

Re: [9fans] USB keyboard error

2008-07-13 Thread Anthony Martin
> term% cat /dev/drivers | grep kbin # kbin(3) Sorry about the terseness. I meant to also say that you'll have to add the kbin device to your kernel configuration and recompile. I don't think it's in the default. Anthony

Re: [9fans] Plan 9 on MacBook?

2008-07-17 Thread Anthony Martin
> I now have a more-or-less unused MacBook. I'm > considering spending some time trying to get Plan 9 > working on it. Has anyone gotten beyond confirming > that it won't work out of the box? I have Plan 9 booting on an Intel Macbook. When I was first testing it out, there were problems with the S

Re: [9fans] Plan 9 C compiler for Xtensa CPUs

2019-07-27 Thread Anthony Martin
Charles Forsyth once said: > I'd need a letter or number and thought about reusing x (xa/xc/xl) since > the AT&T DSP is long gone https://github.com/0intro/plan9-mips/tree/master/sys/src/cmd/4c https://github.com/0intro/plan9-mips/blob/master/rc/bin/xc I think I sent this to the list once before

Re: [9fans] Plan 9 C compiler for Xtensa CPUs

2019-07-27 Thread Anthony Martin
Richard Miller <9f...@hamnavoe.com> once said: > I see the above list uses .e and .j for riscv and riscv64 - > are these just reserved or are there actual compilers somewhere? No, it was just a suggestion on my part. If I remember correctly, I thought it was mildly clever that 'e' is the fifth let

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

2019-10-14 Thread Anthony Martin
Russ Cox once said: > 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. This is missing the dozen or so messages from the beginning

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

2019-10-14 Thread Anthony Martin
hiro <23h...@gmail.com> once said: > there's also a plaintext version of this, adding 5 lines to every > email. all this seems quite redundent if you ask me. And it's all in duplicated in the headers. Can it be turned off? Anthony -- 9fans: 9fans Permali

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

2019-10-14 Thread Anthony Martin
Anthony Martin once said: > This is missing the dozen or so messages from the beginning of the > mailing list in April 1993. I have them in mbox format if you are > interested in adding them to your archive. Also, the following messages in the Topicbox archive are duplicates. They are

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

2019-10-23 Thread Anthony Martin
Ethan Gardener once said: > As for the footer, I'm sure I'll be glad to have the permalink in every > email, and it's not in the headers. > > [...] > > Permalink: > https://9fans.topicbox.com/groups/9fans/T73a7388a716e3644-M377ada983df012733fe78595 It is in the headers: Archived-At:

Re: [9fans] Gmail vs upas

2019-12-03 Thread Anthony Martin
o...@eigenstate.org once said: > Unrelatedly, would there be interest in adding the `$split{cmd} syntax > from 9atom to 9legacy? I think it's currently the only reason that > git9 doesn't work out of the box there, and it's very nice syntax. I'm not a fan of the `word{...} syntax. It's odd to all

[9fans] Re: Jim McKie

2020-06-25 Thread Anthony Martin
echo farewell | uux - mcvax!rmail jim -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Td73b359f9dc68c15-Ma03ae3c659754b5ea2bebdb8 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[9fans] Re: which programs use dynld(2)?

2020-07-10 Thread Anthony Martin
It's used to load kernel modules in Inferno. Anthony -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tbca49dda768294c8-M772b5be61791472285ed70f5 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[9fans] Acme fonts

2020-07-21 Thread Anthony Martin
[cc -golang-nuts, +9fans] > io/fs draft design > - Video: https://golang.org/s/draft-iofs-video Russ, what did you do to that poor little Acme?! ☺ Did you take the less daunting route using - a combined font file with shapes for normal, italic, bold, etc. and - a filter to offset runes into

[9fans] Re: /proc/n/status's memory field

2020-08-14 Thread Anthony Martin
Kyohei Kadota once said: > I'm reading proc(3). It describes the status file: > > > the amount of memory used by the process, except its stack, in units of > > 1024 bytes > > In /sys/src/9/pc/port/proc.c, it seems to me that procread sums all > segment's size for that. > Is the above statement

Re: [9fans] Arm Thumb compiler for Cortex-M

2020-11-07 Thread Anthony Martin
While we're asking questions, how does utils/tl differ from utils/5l? Anthony -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc22ac8ae61456f10-M2563a68e7482ebdc4221b9cc Delivery options: https://9fans.topicbox.com/groups/9fans/subscri

[9fans] brazil ip stack source code

2021-01-09 Thread Anthony Martin
Does anyone have a copy of the alef source code for the user mode ip stack that was in brazil? Maybe you could leave it hanging off the back of your truck? Or swap it for beer? Cheers, Anthony -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups

[9fans] Re: cfs

2021-01-20 Thread Anthony Martin
Steve Simon once said: > The error occurs on the first write to /srv/boot. > > I can mount /srv/boot with mount(1) without problems. > > What have I missed? The kernel doesn't allow you to explicitly read from or write to a channel that the mount driver is using. Cheers, Anthony -

[9fans] Re: Plan 9 Foundation

2021-02-10 Thread Anthony Martin
Anthony Sorace once said: > Collier Can *I* buy a vowel? Not this one but another, Here and on the site. Cheers, Anthony -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T973ff41a99053355-M99db8eabd2cbcc95399a1d53 Delivery options: ht

Re: [9fans] patches from 9front

2021-02-12 Thread Anthony Martin
Lucio De Re once said: > the fact that we have different objectives needs to be addressed at a > philosophical level. How else are we going to select from conflicting > alternatives? Let a hundred flowers blossom. Anthony -- 9fans: 9fans Permalink: htt

[9fans] Re: 9p(2) and walk1

2021-02-15 Thread Anthony Martin
pouya+lists.9f...@nohup.io once said: > Are these subtle differences (the two in the man page and the third in > code) intentional? It's my first time implementing a 9P file system > so apologies if I'm missing something basic. It's actually just a case of forgetting to update the man page. In e

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

2021-03-09 Thread Anthony Martin
nicolagi via 9fans <9fans@9fans.net> once said: > The only question that still stands is the last in my original post: > What happens and what should happen when a dir entry is larger than > msize-24? Possibly written from a connection with a large msize, and to > be read from a connection with a s

Re: [9fans] Foundation new releases question

2021-04-05 Thread Anthony Martin
Ethan Gardener once said: > the later breaking change to 9p auth Which change was that? Anthony -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc472e4a0c0b6f084-M5a6466d3fd80eaa026b0f9dc Delivery options: https://9fans.topicbox.com/

[9fans] Re: What's a mounted channel?

2021-05-29 Thread Anthony Martin
Anonymous AWK fan via 9fans <9fans@9fans.net> once said: > The comments on the #define lines and a commented out section of > stat(2) say (DM|QT)MOUNT indicates a mounted channel, what is this? > > Also, why does exportfs fork and the kernel not send write on closed > pipe notes for mounted channel

[9fans] Re: rc: <{command} and > mess with exit status

2021-06-16 Thread Anthony Martin
adr via 9fans <9fans@9fans.net> once said: > ; if(grep a <{echo a} >/tmp/1) echo true > ; > > Is this expected? This was fixed a few years ago in 9front: http://git.9front.org/plan9front/plan9front/2839760066e578e449ebc8b3d71297b9f79a8c99/commit.html Cheers, Anthony --

Re: [9fans] non-interruptible temporary: why do we care?

2021-06-16 Thread Anthony Martin
un...@cpan.org once said: > Quoth o...@eigenstate.org: > > Why do we warn about non-interruptible > > temporaries? What issues am I missing? > > Silence to this question means no one knows, right? There is nothing new under the sun. Date: Mon, 4 Apr 2005 14:10:20 -0400 From: Russ

[9fans] spim syscall stack adjustment

2023-01-26 Thread Anthony Martin
Does anyone know why the libc system call functions for spim add four to the stack pointer (R29) before issuing the SYSCALL instruction? /sys/src/libc/9syscall/mkfile:/spim It was introduced in the third edition but there were never any spim kernels released so I wasn't able to compare th

Re: [9fans] [PATCH] fossil: fix a deadlock in the caching logic

2023-04-04 Thread Anthony Martin
Charles Forsyth once said: > It's funny that usually "it wasn't me" is used when breaking things. here > it's fixing them, but I'm fairly sure "it wasn't me" that fixed it. It was Richard Miller in 2012. https://9p.io/sources/patch/applied/fossil-snap-deadlock/ https://9p.io/sour

Re: [9fans] Adjust Thinkpad Screen Brightness

2023-05-28 Thread Anthony Martin
o...@eigenstate.org once said: > not nicely integrated. Depending on your card, something like > this may work: > > [...] > > You'll have to figure out where the backlight PWM register is > on your model of video card if this doesn't just work out of > the box. Konstantinn wrote a version of your

Re: [9fans] Adjust Thinkpad Screen Brightness

2023-06-07 Thread Anthony Martin
un...@cpan.org once said: > I reviewed the data sheet and the scripts should > work, but does not. The above scripts can work for some Intel cards but probably not for all of them. I wrote a program fifteen years ago to adjust the brightness on an Intel MacBook from Linux. There was a bit of expe

[9fans] Re: Pipes staying after sending note

2023-07-08 Thread Anthony Martin
Philip Silva via 9fans <9fans@9fans.net> once said: > if ((cpid = fork()) != 0) { > close(infd[1]); > close(outfd[1]); > > n = write(infd[0], "test", 4); > printf("check process: wrote %d bytes\n", n); > > sendn

[9fans] troll paper

2024-04-12 Thread Anthony Martin
"Do we really have to have our own kernel? What are the benefits?" ... The IWP9 paper titled "centre, left and right" looks like a complete troll. Was it generated by an LLM? I read the whole thing and it was a waste of time. Zero stars, would not recommend. Institutional Academy of the Academic

[9fans] Re: finding root blocks in a venti server

2024-07-06 Thread Anthony Martin
ashley once said: > is it possible to find the scores for all root blocks in a venti server? /sys/src/cmd/venti/words/dumpvacroots Cheers, Anthony -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf81f9125de5510db-M349a6119ba48f492793

Re: [9fans] rfork and nerrlab - I am confused

2010-11-01 Thread Anthony Martin
That code path is for the proc that called rfork(). The new child proc returns through forkchild().

Re: [9fans] plan9 go output faults on 9vx but ok on cpu

2011-01-11 Thread Anthony Martin
Pavel Zholkover once said: > I'm typing from my phone so I don't have go sources in front of me, > but 0xdfffefc0 looks like the address I used for per thread G and M > structs - just bellow struct Tos. > > Andrey and I also tried running on a 32-bit 9vx with the same effect. > > Is 9vx using a

Re: [9fans] plan9 go output faults on 9vx but ok on cpu

2011-01-11 Thread Anthony Martin
Anthony Martin once said: > The Tos structure is bigger on 64-bit 9vx so the references > to GS will need a different offset. You'll have to change > both src/8l/pass.c:/^patch and the runtime. I forgot to mention that on 9vx, USTKTOP is at 0x1000. Anthony

Re: [9fans] plan9 go output faults on 9vx but ok on cpu

2011-01-12 Thread Anthony Martin
ron minnich once said: > are you saying change 8l so that it creates code that works on 9vx in > the special case that it runs on a 64-bit system? Then we're going to > need to make 8l aware of way too much stuff. I'm talking about Go's linker. In the Go runtime, the G and M pointers need to be i

Re: [9fans] plan9 go output faults on 9vx but ok on cpu

2011-01-14 Thread Anthony Martin
Pavel Zholkover once said: > I have no idea what is causing it to die, I've tried adding a bunch of > INT $3 to see how far in the flow I can get, but all I get this: > > 9vx panic: unknown trap/intr: 0x203 > aborting, to dump core. > > for an INT $3 just before > CALL SI // fn() This hap

Re: [9fans] ohci funny on sb850

2011-01-14 Thread Anthony Martin
lu...@proxima.alt.za once said: > I wonder how that happened? Every hardware problem I have diagnosed > and occasionally fixed in the last few years, from motherboards to CRT > monitors to external power supplies (mains voltage converters) has > boiled down to one or more 10μF electrolytics packin

Re: [9fans] another kernel implementation question

2011-01-27 Thread Anthony Martin
Waserror increments up->nerrlab before setting up the next label on the error stack which means the poperror in question returns it to zero. Anthony

Re: [9fans] another kernel implementation question

2011-01-27 Thread Anthony Martin
Steve Simon once said: > The difference comes from the fact that sleep is deep inside its > stack/errlab hierarchy when it receives a note. This causes it > to jump to the notify function (still in the users context), > the notify function then calls back into the kernel (noted()). > > this is wh

Re: [9fans] UDP echo server sample code

2011-01-31 Thread Anthony Martin
Lucio De Re once said: > On Mon, Jan 31, 2011 at 09:45:44AM +, ish wrote: > > > >afd = announce("udp!*!1234", adir); > > > >and?? > > ... > while (read (afd, ...) > 0) { > write (afd, ...); > } > > ... sort of thing? This works if you write "headers" to the control file after

Re: [9fans] 9vx on OpenBSD

2011-02-15 Thread Anthony Martin
>> % 9vx panic: vxproc_run: Function not implemented This sounds like a problem setting up the LDT. Are you on amd64 or i386? Also, you should run ktrace with the -d flag so we can see a trace of the child procs. Anthony

Re: [9fans] 9vx on OpenBSD

2011-02-15 Thread Anthony Martin
> % ktrace -d ./9vx -r /n/plan9 -u glenda -g -S > namec #/ > namec #e/terminal > namec #e/cputype > namec #e/rootdir > namec #e/service > namec #e/user > namec #e/sysname > namec #Zplan9/ > namec / > namec #p >

[9fans] off by one in the pc kaddr

2011-03-18 Thread Anthony Martin
I've read through the MMU code more than a few times and never noticed this. Who reads past tmpunmap anyways? ;) Anthony diff -c /sys/src/9/pc/mmu.c /tmp/mmu.c /sys/src/9/pc/mmu.c:934,940 - /tmp/mmu.c:934,940 void* kaddr(ulong pa) { - if(pa > (ulong)-KZERO) + if(pa >= (ulong)

Re: [9fans] Go Plan 9

2011-04-03 Thread Anthony Martin
andrey mirtchovski once said: > cross-compilation (GOOS=plan9, GOARCH=386, link with -s), but there > are a few issues -- the build fails at crypto, so fmt is not compiled. > for a hello world you need to manually make install pkg/strconv and > pkg/reflect and pkg/fmt. Everything works fine for m

Re: [9fans] Go Plan 9

2011-04-03 Thread Anthony Martin
Anthony Martin once said: > Right now, if you want to run Go binaries on Plan 9, you have to > apply the patch at the bottom of this message. In the future we > should probably have the runtime use the segment(3) device. That should have been '9vx' instead of 'Plan 9'. Sorry. Anthony

Re: [9fans] Go Plan 9

2011-04-03 Thread Anthony Martin
Pavel Zholkover once said: > I'm not sure I understand the reason 9vx will fail to reserve 768mb > with brk() while my Plan 9 install on kvm+qemu with 128mb or ram works > fine, as long as it is not written to. The reason is because 9vx gives user processes a virtual address space of only 256mb.

Re: [9fans] Go Plan 9

2011-04-05 Thread Anthony Martin
Anthony Martin once said: > -#define MaxArena32 (2U<<30) > +#define MaxArena32 (240U<<20) I forgot to mention this earlier but for the curious, I used 240mb here because that is USTKTOP-USTKSIZE in 9vx. Anthony P.S. Has anyone ran into the SEGMAPSIZE limit on native Pl

Re: [9fans] /dev/draw and c, rc, ruby, python, go

2011-04-10 Thread Anthony Martin
Sergey Kish once said: > Today I've implemented same on go. It also falls but it may be my > fault > > error: read /dev/draw/new: unknown id for draw image You're giving bad data to devdraw. The Go code on the gist is sending long(id) 'n' long(id) byte(namelen) string(name) but th

Re: [9fans] /dev/draw and c, rc, ruby, python, go

2011-04-10 Thread Anthony Martin
Another thing to check would be any encoding of the data passed to a write, i.e., try opening the data file in binary mode. Anthony

Re: [9fans] Different results for the same rc script when using listen1

2011-04-24 Thread Anthony Martin
> This is really weird. I don't even know what could I check. 'listen1' > source code is pretty clean, and it calls command and args with a simple > 'exec' call. The only thing that was also unusual is that the 'net' > variable, which is supposed to be set to a directory, is always blank, > but the

Re: [9fans] nm "L symbols"

2011-05-04 Thread Anthony Martin
Greg Comeau once said: > man nm shows a symbol type of L that is possible denoting it as > a "leaf function text segment symbol". Often a leaf function > is distinguished by being at the end of a call hierarchy and > can sometimes yield difference in code generation regarding > stack space and s

[9fans] Two bugs in ar

2011-05-05 Thread Anthony Martin
I was investigating a bug in the Go toolchain's fork of ar(1), called gopack, and I discovered two similar bugs in native ar. 1. With a __.SYMDEF file of size (2*n)+1 bytes, the size given in the header will incorrectly include the padding byte. 2. When writing an archive member file to dis

Re: [9fans] Easy stating of newer files on Plan9

2011-05-14 Thread Anthony Martin
tlaro...@polynum.com once said: > There is one utility used by MetaPost scripts: a binary "newer" using > POSIX (sys/stat.h) mainly because if on POSIX compliant systems one can > use find(1) with "-cnewer", Plan9 has not find(1). > > [...] > > What would be the prefered way using utilities availa

Re: [9fans] nanosleep()?

2011-10-28 Thread Anthony Martin
ron minnich once said: > For a first pass, you could create a nanosleep for plan 9 > that rounds to milliseconds and then use sleep() Yup. This is the right thing to do. The prof command in the Go distribution has a minimum sampling interval of one millisecond so you don't even need nanosleep.

Re: [9fans] all you yacc experts

2011-11-15 Thread Anthony Martin
Attached is a modified version of p9p yacc that supports the Go grammar. I'll be sending a version of Plan 9 yacc later today. The following is a description of the changes. 1. The %error-verbose directive is ignored. 2. A description of the final grammar is printed before the state de

Re: [9fans] 9vx instability

2011-11-21 Thread Anthony Martin
Anton once said: > However, as it won't work on my laptop natively, i'm > forced to use 9vx (running in kvm is too slow). It has > one magor drawback - it is freezing my entire system > after some random time. Symptoms are - no reaction on > input (mouse/keyboard), no changes in output (screen is

Re: [9fans] 9vx instability

2011-11-27 Thread Anthony Martin
cinap_len...@gmx.de once said: > /lib/mainkampf is part of an ongoing project to make > venti sha-1 hashes easy to remember by translating > them into hitler-speeches. Well now that it's gone, how about using excerpts from Industrial Society and its Future? I can send a patch to add /lib/kaczynsk

[9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
A few people were asking about this so I wrote up a tutorial. I also uploaded a copy to http://apm.sdf.org/go/NOTES for anyone who has trouble with attachments. Cheers, Anthony # Building Go on Plan 9 # Anthony Martin # al...@pbrane.org # This document will guide you through the process # of

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
John Floren once said: > How many different Go porting efforts do we now > have for Plan 9? There's apparently yours, Ron's, > Lucio's, and I think the 9front guys have/had > something cooking too. That's it as far as I know. > Which ones can actually be updated with "hg pull"? None yet. I h

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
ts. Cheers, Anthony # Building Go on Plan 9 # Anthony Martin # al...@pbrane.org # This document will guide you through the process # of compiling the commands and packages in the Go # source code distribution. # # Before we get started you should make sure you # have GNU Make installed. The

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
Charles Forsyth once said: > modified library headers? % ls (386 sys)^/include/go 386/include/go/u.h 386/include/go/ureg_amd64.h 386/include/go/ureg_arm.h 386/include/go/ureg_x86.h sys/include/go/ar.h sys/include/go/bio.h sys/include/go/bootexec.h sys/include/go/goenv.h sys/include/go/libc.h sys/

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
erik quanstrom once said: > > 386/include/go/ureg_arm.h > > 386/include/go/ureg_x86.h > > surely that's the wrong place. You would think so but that's how where the headers are expected to be for Go's libmach. % gg 'include.*ureg' src/cmd/cov/main.c:14: #include src/cmd/prof/main.c:12:

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
Anthony Martin once said: > You would think so but that's how > where the headers are expected to > be for Go's libmach. "how where"? I shouldn't type when tired. Anthony

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
Lyndon Nerenberg once said: > I stopped at gmake. What can't mk do that demands gmake? There's nothing wrong with mk. It's just that I highly doubt we could get a separate set of mkfiles included in the Go distribution. I've tried to get things going with the smallest set of changes to both Pl

Re: [9fans] Building Go on Plan 9

2011-12-02 Thread Anthony Martin
Lucio De Re once said: > > Have you tried? It's a non-invasive change, and once they are set > > up it's unlikely they will need to be updated often. > > I think Anthony is on the right path on this point, in that I've had > to update a couple of mkfiles in the recent past because I had > overlo

Re: [9fans] Building Go on Plan 9

2011-12-02 Thread Anthony Martin
Pavel Zholkover once said: > Is the builder going to be based on the native > build or will it be cross-compiled ? It will be native. Anthony

Re: [9fans] Building Go on Plan 9

2011-12-02 Thread Anthony Martin
erik quanstrom once said: > > IMO using anything other than Make to build > > the Go distribution is a fool's errand and > > simply too much of a maintenance burden. > > We would have to carefully watch upstream > > changes to any of the many Makefiles. > > > > Using make isn't as bad as some mak

Re: [9fans] C compiler error?

2011-12-13 Thread Anthony Martin
Lucio De Re once said: > New features in Go require a new function in the reflect.c module > (src/cmd/gc/reflect.c). The C compiler (8c, in this case) reports an > error which does not seem to apply: > > 8c -I/go/include -I/go/386/include -FTVw ../gc/reflect.c > ../gc/reflect.c:987 switch expres

Re: [9fans] C compiler error?

2011-12-14 Thread Anthony Martin
Charles Forsyth once said: I abandoned my old CL and sent another that allows 64-bit switch expressions for all of the Go compilers. A patch for [5678kqv]c will be hitting sources soon. Stay tuned. Anthony

  1   2   >