[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: 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); > >

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

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] [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/

[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

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

[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

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:

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

[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

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:

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

[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] 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:

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:

[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

[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: 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] 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

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

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:

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

[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

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

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

[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

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

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

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

Re: [9fans] Namespace inheritance between processes

2016-05-21 Thread Anthony Martin
Anthony Martin <al...@pbrane.org> once said: > Casey Rodarmor <ca...@rodarmor.com> 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 prog

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

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

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] 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 insults.

[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] GO Programming Environment in Plan 9.

2014-11-30 Thread Anthony Martin
minux minux...@gmail.com once said: On Nov 30, 2014 3:10 PM, Mats Olsson plan9@gmail.com 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

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

2014-11-30 Thread Anthony Martin
erik quanstrom quans...@quanstro.net 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

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 protected

Re: [9fans] kernel bug

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

Re: [9fans] kernel bug

2014-06-03 Thread Anthony Martin
Yoann Padioleau p...@fb.com 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

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

2014-05-05 Thread Anthony Martin
Skip Tavakkolian skip.tavakkol...@gmail.com 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

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

2014-05-04 Thread Anthony Martin
Skip Tavakkolian skip.tavakkol...@gmail.com 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

Re: [9fans] imagereclaim()

2014-03-02 Thread Anthony Martin
Charles Forsyth charles.fors...@gmail.com once said: I also ripped out all the swap stuff. Either I'm on a machine with at last a Gb or two of RAM, or it's embedded and there's no paging disk, or both. What do you do when you're out of memory? Panic? Do you still have something like the

Re: [9fans] 9front sleep interrupted in kproc?

2013-12-30 Thread Anthony Martin
erik quanstrom quans...@quanstro.net once said: since kprocs don't get notes (it's an error to write to the note file), sleep in a kproc can't get interrupted. this code will never fire. It looks like they can on 9front. The following is from pc/vgavesa.c:/^vesaproc /* *

Re: [9fans] 9front sleep interrupted in kproc?

2013-12-30 Thread Anthony Martin
Anthony Martin al...@pbrane.org once said: erik quanstrom quans...@quanstro.net once said: since kprocs don't get notes (it's an error to write to the note file), sleep in a kproc can't get interrupted. this code will never fire. It looks like they can on 9front. Actually, this isn't

Re: [9fans] Go and 21-bit runes (and a bit of Go status)

2013-12-02 Thread Anthony Martin
Skip Tavakkolian skip.tavakkol...@gmail.com once said: is this the patch set you're referring to? https://codereview.appspot.com/download/issue9796043_58001.diff if so, is there a diff set for go1.2? Hi Skip, There were a few problems with that CL that I'm just now starting to iron out so I

Re: [9fans] Go and 21-bit runes (and a bit of Go status)

2013-12-02 Thread Anthony Martin
erik quanstrom quans...@labs.coraid.com once said: On Mon Dec 2 10:01:48 EST 2013, lu...@proxima.alt.za wrote: is the threat standing? that is, if the plan 9 port is broken again when 1.5 rolls around in just a few more months, does the plan 9 port get booted then, too? The threat

Re: [9fans] Go and 21-bit runes (and a bit of Go status)

2013-12-02 Thread Anthony Martin
Steve Simon st...@quintile.net once said: Whne I looked at Go - maybe 2 years ago, I could not see why plan9 would not adopt go's 8c/8l and libbio. obviously others disagree as they have not been back-ported, but why not? - I'am not trolling, genuine question. We couldn't adopt the Go

Re: [9fans] Go and 21-bit runes (and a bit of Go status)

2013-12-02 Thread Anthony Martin
erik quanstrom quans...@quanstro.net once said: 2. Use of Go's libbio, rather than Plan 9's. Alternatively libbio on Plan 9 can be changed. It's not clear to me why this would be a bad thing. i object to the macros they have been adding. they haven't been included in p9p, either. adding

Re: [9fans] Building Go/386

2013-09-07 Thread Anthony Martin
erik quanstrom quans...@quanstro.net once said: since even ghostscript doesn't get into this state, i'd be interested in the line of code (and types of the variables) that hits this fatal condition. I posted a small piece of code that triggers this on golang-dev. Here it is: % cat x.c

Re: [9fans] Go and 21-bit runes (and a bit of Go status)

2013-06-02 Thread Anthony Martin
cinap_len...@gmx.de once said: or GO could just stop using *OMG-OPTIMIZED* SSE memmove() in the note handler. This is exactly what I did in my patch. This was just a regression. Someone changed memmove a few weeks ago. Nothing to see here. Anthony

Re: [9fans] 21-bit runes

2013-05-01 Thread Anthony Martin
Thank you. I very much appreciate the work that went into this. And thanks to Erik for his previous set of patches. Anthony

Re: [9fans] open file in awk script?

2013-04-08 Thread Anthony Martin
dexen deVries dexen.devr...@gmail.com once said: trying to create a standalone awk script (#!/usr/local/plan9/bin/awk -f). how to open a file in BEGIN pattern section and set it as next input file? not helped so far: FILENAME=foo.txt nor ARGV[1]=foo.txt; nextfile; ARGV[ARGC++] = foo.txt

Re: [9fans] going too far?

2013-02-19 Thread Anthony Martin
lu...@proxima.alt.za once said: I think the Go tool does cover C programs and even (somebody will correct me if I'm wrong, I hope) assembler ones. It would be silly if it didn't, or at least hard to use for things like the runtime. One of Go's weak spots is that a lot of unconventional

Re: [9fans] ASCII character conversion program in assembler

2013-02-07 Thread Anthony Martin
I have a few suggestions and corrections. 1. You have to actually allocate space for your local variables. This means either calculating how much space you'll need and annotating the TEXT pseudo-instruction or decrementing the SP as you go. 2. Calls into the kernel must look like normal

Re: [9fans] Go: CGO and Plan 9

2013-02-02 Thread Anthony Martin
Aram Hăvărneanu ara...@mgk.ro once said: ?c and ?g use the same calling convention, and segmented stacks are implemented by the linker. You don't need cgo in order to call C code from Go. Why do you want cgo? This isn't true. Most of the Plan 9 compilers will pass the first function argument

[9fans] maxround and stack frame sizes

2013-01-22 Thread Anthony Martin
I'm curious about the origins of the maxround function in the compilers. Specifically, why is 5c different from all the others? It seems the common implementation gives rise to unnecessarily large stack frames. For convenience: /sys/src/cmd/6c/swt.c:/^maxround

Re: [9fans] 9atom-nix

2013-01-09 Thread Anthony Martin
This is really great. Thanks for all your work, Erik. Anthony

[9fans] what is the frequency, kenneth?

2012-12-11 Thread Anthony Martin
What's the story behind the curious reference to this phrase in the code for timesync(8)? Who wrote this code? presotto? It's rather funny. Anthony

Re: [9fans] 9vx and Go

2012-12-10 Thread Anthony Martin
lu...@proxima.alt.za once said: Yes, the tsemacquire syscall is not currently implemented in 9vx. The ticks field is also not present in the mach structure, so adding tsemacquire isn't trivial. I was hoping to get away with just adding the field, but if the comment is correct, I need at

Re: [9fans] why is /dev/mousein exclusive use?

2012-12-10 Thread Anthony Martin
Richard Miller 9f...@hamnavoe.com once said: Is there a good reason to forbid multiple processes to open the mousein device? I can't think what trouble it could cause (writes have to be atomic anyway because the driver will only parse a complete input), and it makes it awkward to debug a new

Re: [9fans] 9vx and Go

2012-12-10 Thread Anthony Martin
Charles Forsyth charles.fors...@gmail.com once said: MOVQ isn't a 32-bit instruction. It is if you're using MMX registers. Anthony

Re: [9fans] 9vx and Go

2012-12-10 Thread Anthony Martin
erik quanstrom quans...@quanstro.net once said: On Mon Dec 10 19:11:39 EST 2012, al...@pbrane.org wrote: Charles Forsyth charles.fors...@gmail.com once said: MOVQ isn't a 32-bit instruction. It is if you're using MMX registers. does 8g default to using mmx? No. They're written using

Re: [9fans] 9vx and Go

2012-12-10 Thread Anthony Martin
erik quanstrom quans...@quanstro.net once said: No. They're written using BYTE instructions where needed. Currently 8g will only generate 387 style fp code but the is to eventually use SSE. See http://golang.org/issue/3912. that's not what i read. i read that it's going to be a

Re: [9fans] go forth and ulong no more!

2012-11-22 Thread Anthony Martin
Charles Forsyth charles.fors...@gmail.com once said: On 22 November 2012 03:44, Bruce Ellis bruce.el...@gmail.com wrote: uintptr in all over the go packages because it is right. I hadn't noticed that particularly, but having grep'd the source, I see it's also used for variables that are

Re: [9fans] go forth and ulong no more!

2012-11-22 Thread Anthony Martin
Charles Forsyth charles.fors...@gmail.com once said: this is just a sample, but there were other likely candidates: Ah. I thought we were talking about Go code not C. Carry on. Anthony

Re: [9fans] Kernel panic when compiling Go on native Plan 9

2012-11-02 Thread Anthony Martin
Pavel Klinkovsky pavel.klinkov...@gmail.com once said: I made another test. I compared compilation of exp/locale/collate of the Go build 14738 and 14739 (and later). Compilation of 14738 does not consume RAM a lot. Compilation of 14739 (and later) consume a huge amount of RAM (involving

Re: [9fans] Kernel panic when compiling Go on native Plan 9

2012-11-02 Thread Anthony Martin
erik quanstrom quans...@quanstro.net once said: On Fri Nov 2 09:44:43 EDT 2012, pavel.klinkov...@gmail.com wrote: How much memory does your system have? - 512 MB RAM - 512 MB swap Changeset 14739 grew the Unicode collation tables in the exp/locale/collate package by a

Re: [9fans] 9grid?

2012-10-24 Thread Anthony Martin
John Floren j...@jfloren.net once said: Write a basic http server for Plan 9 (in C) and run Apache Benchmark against it. Somewhere around 100 concurrent connections, I tend to get failure. There's code in /sys/src/9/ip that has a hard limit on the # of concurrent connections IIRC. What

Re: [9fans] empty *

2012-06-14 Thread Anthony Martin
% sed -n 20,32p /sys/src/cmd/grep/grep.y prog: /* empty */ { yyerror(empty pattern); } | expr newlines { $$.beg = ral(Tend); $$.end = $$.beg; $$ = re2cat(re2star(re2or(re2char(0x00, '\n'-1),

Re: [9fans] Governance question???

2012-05-15 Thread Anthony Martin
Christoph Lohmann 2...@r-36.net once said: All mentioned words are part of the eternal fight between DP9IK and SP9SSS. As we all know is DP9IK winning. We mustn't fight each other! Surely we should be united against the common enemy! Anthony

Re: [9fans] Potential BoF in San Francisco

2012-04-28 Thread Anthony Martin
Peter A. Cejchan tyap...@gmail.com once said: BTW, what is the current status of 9Go ... I still use 60.2 I just noticed this mail. Sorry. To build the current Go codebase you need four patches. Two should be applied to the Plan 9 tree: /n/sources/patch/kernel-tsemacquire

[9fans] Potential BoF in San Francisco

2012-04-17 Thread Anthony Martin
The first GoSF meetup¹ will be this Wednesday, April 18th, and I'll be there if anyone wants to talk about the port of Go to Plan 9 (or about Plan 9 in general). Cheers, Anthony 1. http://www.meetup.com/golangsf/events/49802152/

Re: [9fans] discrepency between plan9 and ixpc

2012-01-21 Thread Anthony Martin
Eli Cohen echol...@gmail.com once said: % echo b115200 /dev/eiaU0/eiaUctl % mount -ncC /dev/eiaU0/eiaU /n/anything % ls /n/anything anything the output of ls is just whatever directory i mount it in, though accessing arductl and ardudata works fine despite their absence from the directory

Re: [9fans] C compiler error?

2011-12-14 Thread Anthony Martin
Charles Forsyth charles.fors...@gmail.com 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

Re: [9fans] C compiler error?

2011-12-13 Thread Anthony Martin
Lucio De Re lu...@proxima.alt.za 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

Re: [9fans] Building Go on Plan 9

2011-12-02 Thread Anthony Martin
Lucio De Re lu...@proxima.alt.za 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

Re: [9fans] Building Go on Plan 9

2011-12-02 Thread Anthony Martin
Pavel Zholkover paulz...@gmail.com 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 quans...@quanstro.net 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

[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

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
John Floren j...@jfloren.net 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

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
with attachments. 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

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
Charles Forsyth charles.fors...@gmail.com 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

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
erik quanstrom quans...@quanstro.net 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 ureg_x86.h

Re: [9fans] Building Go on Plan 9

2011-12-01 Thread Anthony Martin
Anthony Martin al...@pbrane.org 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 lyn...@orthanc.ca 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

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/kaczynski.

Re: [9fans] 9vx instability

2011-11-21 Thread Anthony Martin
Anton fluffyl...@gmail.com 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

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

Re: [9fans] nanosleep()?

2011-10-28 Thread Anthony Martin
ron minnich rminn...@gmail.com 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

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

[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

Re: [9fans] nm L symbols

2011-05-04 Thread Anthony Martin
Greg Comeau com...@panix.com 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

  1   2   >