Re: [9fans] VCS on Plan9

2024-04-20 Thread Giacomo Tesio
Hi 9fans Il 18 Aprile 2024 22:41:50 CEST, Dan Cross ha scritto: > > Git and Jujitsu are, frankly, superior out of curiosity, to your knowedge, did anyone ever tried to port fossil scm to Plan9 or 9front (even through ape)? Also

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

2022-01-27 Thread Giacomo Tesio
Hi hiro. History is full of counter examples that contraddict your thesis. At least since neolithic, human organization has been determinated by technology. The most recent (and most directly related to informatics) were Gutemberg's movable-type printing press, Meucci's telephone, the general

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

2022-01-27 Thread Giacomo Tesio
Hi raingloom, mycroftiv and 9fans, As you might know I'm pretty heretic in Plan 9 (as much that my for is called Jehanne) and I'm also very sympathetic with SJW victims, mostly because SJW basically try to impose worldwide a US-workplace ethos that is compatible with US-styled corporate

Re: [9fans] p9f licensing question (u9fs)

2021-04-12 Thread Giacomo Tesio
Thanks David, On Sun, 11 Apr 2021 20:55:33 +0200 David du Colombier wrote: > > browsing the 9p.io's sources of plan9 I have noticed that u9fs have > > a specific LICENSE file that is not MIT, while the page header says > > "Distributed under the MIT License". > > > > What's the actual license

[9fans] p9f licensing question (u9fs)

2021-04-11 Thread Giacomo Tesio
Hello 9fans, browsing the 9p.io's sources of plan9 I have noticed that u9fs have a specific LICENSE file that is not MIT, while the page header says "Distributed under the MIT License". What's the actual license under which u9fs is distributed by the Plan 9 Foundation? Giacomo

Re: [9fans] Plan 9 64-bit?

2019-01-30 Thread Giacomo Tesio
Not sure if anybody cares, but Jehanne's kernel derives from a version of Charles https://bitbucket.org/forsyth/plan9-9k cherry picked from 2015. Giacomo

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

2018-11-16 Thread Giacomo Tesio
Il giorno ven 16 nov 2018 alle ore 22:39 Ethan Gardener ha scritto: > Please forgive my laziness in not reading the code, but how do you actually > implement sleep? Does the process read a file guaranteed to block forever, > or what? No problem. Actually sleep is very short:

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

2018-11-15 Thread Giacomo Tesio
Il giorno ven 6 gen 2017 alle ore 10:38 Anthony Martin ha scritto: > I'm interested in reading about your awake system call and the changes > you've made to rendezvous and the variuos locks in libc. Hi Anthony, sorry for the 2 years delay, but I've finally wrote about awake.

Re: [9fans] PDP11 (Was: Re: what heavy negativity!)

2018-10-15 Thread Giacomo Tesio
Il giorno dom 14 ott 2018 alle ore 19:39 Ole-Hjalmar Kristensen ha scritto: > > OK, that makes sense. So it would not stop a client from for example first > read an index block in a B-tree, wait for the result, and then issue read > operations for all the data blocks in parallel. If the client

Re: [9fans] PDP11 (Was: Re: what heavy negativity!)

2018-10-10 Thread Giacomo Tesio
Il giorno mar 9 ott 2018 alle ore 05:33 Lucio De Re ha scritto: > > On 10/9/18, Bakul Shah wrote: > > > > One thing I have mused about is recasting plan9 as a > > microkernel and pushing out a lot of its kernel code into user > > mode code. It is already half way there -- it is basically a > >

Re: [9fans] 9n

2018-05-02 Thread Giacomo Tesio
duce? I can foresee some (eg bind semantics) but maybe I'm missing some of them. > Good luck and have fun. > Thanks! :-) Giacomo > > > On 2 May 2018, at 19:14, Giacomo Tesio <giac...@tesio.it> wrote: > > > > 2013-06-17 21:06 GMT+02:00 Nemo <nemo.m..

Re: [9fans] 9n

2018-05-02 Thread Giacomo Tesio
2013-06-17 21:06 GMT+02:00 Nemo : > You should ask if anyone else did that before doing it, instead of saying > they are un-spined life forms. > Here I am, finally! :-) I'm designing yet another file protocol for my toy/research os (whose kernel is derived from Charles

Re: [9fans] There is no fork

2018-02-12 Thread Giacomo Tesio
2018-02-12 17:13 GMT+01:00 : > 2018-02-12 14:05 GMT+01:00 Ethan Grammatikidis : >> That's the marketing blurb, I've heard it a thousand times before. [...] >> So, for the last 10-12 years, maybe more, mountains of software have been >> produced on the

Re: [9fans] There is no fork

2018-02-12 Thread Giacomo Tesio
2018-02-12 14:05 GMT+01:00 Ethan Grammatikidis <eeke...@fastmail.fm>: > On Mon, Feb 12, 2018, at 8:33 AM, Giacomo Tesio wrote: >> 2018-02-12 2:10 GMT+01:00 Ethan Grammatikidis <eeke...@fastmail.fm>: >>> linux-style package managers and bsd-style port trees facil

Re: [9fans] There is no fork

2018-02-12 Thread Giacomo Tesio
2018-02-12 2:10 GMT+01:00 Ethan Grammatikidis : > linux-style package managers and bsd-style port trees facilitate and > enable coupling. > > What a package manager really facilitate is version management. That is when you want to use/update a software at version X that

Re: [9fans] There is no fork

2018-02-11 Thread Giacomo Tesio
2018-02-12 0:48 GMT+01:00 Benjamin Huntsman : > Or, if one wants NIX but to stay a little closer to the original > distribution, are there options, or is Harvey the only way? Out of curiosity, what's your use case for the NIX kernel? @Lyndon:

Re: [9fans] There is no fork

2018-02-11 Thread Giacomo Tesio
To my knowledge this is the set of active projects based on Plan 9: 9atom and 9front are both actively maintained. Both stick strongly to the original Plan 9 from Bell Labs design. AFAIK, 9front introduce more innovations, both in kernel and in user space, but what make it unique is the #cat-v

Re: [9fans] Talk by Charles Forsyth on Feb 1st at Imperial College London, 13:00 -14:00

2018-01-29 Thread Giacomo Tesio
Please share a link here, when ready! Giacomo 2018-01-29 11:36 GMT+01:00 Hugues Evrard : > Yes it should be recorded, and made available online later on (I needed > confirmation before answering here). > Thanks, > Hugues > > > On 24/01/18 09:32, Fran. J Ballesteros

Re: [9fans] Spectre and Meltdown

2018-01-15 Thread Giacomo Tesio
2018-01-10 17:59 GMT+01:00 : > wait and see if all these scrambled together mitigations actually work. Sorry if this is a dumb question, but the descriptions I read of the mitigations taken in Linux for Meltdown (in particular kernel page-table isolation) sound really

[9fans] truly hidden files!

2017-11-02 Thread Giacomo Tesio
Hi, while debugging a 9P2000 file server I realized that it's very easy to hide file or folders in Plan 9: just don't include them in the Rreads of the parent directory. Given the protocol, I know I'm stating the obvious, but the effect still surprises me. Such files/folder would be accessible

Re: [9fans] Backgrounding a task

2017-10-24 Thread Giacomo Tesio
and add a ns/clone command that take a pid and a command to run so that ns/clone 256 rc would start a new rc in a copy of the name space of the process with pid 256. Giacomo 2017-10-24 21:18 GMT+02:00 Giacomo Tesio <giac...@tesio.it>: > 2017-10-24 16:21 GMT+02:00 Alex

Re: [9fans] Backgrounding a task

2017-10-24 Thread Giacomo Tesio
2017-10-24 16:21 GMT+02:00 Alex Musolino : > Creating a child process is something that a process explicitly > controls and the RFNOTEG flag of rfork(2) allows a process to control > whether or not it shares its namespace with its children. Allowing > other, unrelated

Re: [9fans] rc: $* != '/env/*'

2017-10-19 Thread Giacomo Tesio
2017-10-19 6:48 GMT+02:00 Skip Tavakkolian : > i think 'rfork e' in lc will fix this; i'm not sure if it breaks anything > else. Actually 'rfork e' in lc fixes this. I did not even tried because I assumed that /env/* was written at rc startup, before reading the input

Re: [9fans] rc: $* != '/env/*'

2017-10-18 Thread Giacomo Tesio
; > % cat '/env/*' > % LC >/dev/null > % echo $* > > % cat '/env/*' > % > > On Wed, Oct 18, 2017 at 9:02 AM Antons Suspans <an...@ml.lv> wrote: >> >> On Wed, Oct 18, 2017 at 05:31:28PM +0200, Giacomo Tesio wrote: >> > I have been a bit surpri

[9fans] rc: $* != '/env/*'

2017-10-18 Thread Giacomo Tesio
I have been a bit surprised to see that $* does not always contains the same as '/env/*': % echo $* % cat '/env/*' % lc bin/ lib/ tmp/ % echo $* % cat '/env/*' /bin/lc% Not really an issue, but why this happens? Giacomo

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

2017-10-17 Thread Giacomo Tesio
2017-10-17 18:00 GMT+02:00 Skip Tavakkolian <skip.tavakkol...@gmail.com>: > On Tue, Oct 17, 2017, 8:05 AM Giacomo Tesio <giac...@tesio.it> wrote: > >> Really? Just aesthetics? :-o >> > > >> This would flips the question a bit: I wonder why the same d

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

2017-10-17 Thread Giacomo Tesio
Also, why NPROC has been left uppercase? :-) Giacomo 2017-10-17 17:45 GMT+02:00 Giacomo Tesio <giac...@tesio.it>: > In *rc* you use quotation marks when you want a syntax character to >> appear in an argument, or an argument that is the empty string, and at no >> other t

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

2017-10-17 Thread Giacomo Tesio
can find are in comparisons of $ifs > to the Bourne shell's $IFS > > On 17 October 2017 at 16:05, Giacomo Tesio <giac...@tesio.it> wrote: > >> Really? Just aesthetics? :-o >> I supposed it had some practical goal I was missing, since for example >> the original Rc pa

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

2017-10-17 Thread Giacomo Tesio
16:39 GMT+02:00 Dan Cross <cro...@gmail.com>: > On Tue, Oct 17, 2017 at 10:38 AM, Giacomo Tesio <giac...@tesio.it> wrote: > > Out of curiosity, do anybody know why Plan9 designers chose lowercase > > variables over uppercase ones? > > > > At first, given the

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

2017-10-17 Thread Giacomo Tesio
Out of curiosity, do anybody know why Plan9 designers chose lowercase variables over uppercase ones? At first, given the different conventions between rc and sh (eg $path is an array, while $PATH is a string), I supposed Plan 9 designers wanted to prevent conflict with unix tools relying to the

Re: [9fans] The Case for Bind

2017-09-15 Thread Giacomo Tesio
2017-09-14 16:58 GMT+02:00 Marshall Conover : > ...but enthusiasm for the concept seems lukewarm, and I'm coming to the > point where I feel I'm going to need to make a strong argument for... > 2017-09-15 2:53 GMT+02:00 Marshall Conover : > It is

[9fans] double lock in proc.c

2017-07-24 Thread Giacomo Tesio
In /sys/src/9/port/proc.c a comment state: /* * Expects that only one process can call wakeup for any given Rendez. * We hold both locks to ensure that r->p and p->r remain consistent. * Richard Miller has a better solution that doesn't require both to * be held simultaneously, but I'm a paranoid

Re: [9fans] Blocking on write

2017-05-17 Thread Giacomo Tesio
In Jehanne, I decided to test both: if the queue is not closed there's no need to check up->errstr. Thanks for your help! Giacomo 2017-05-15 18:12 GMT+02:00 Charles Forsyth <charles.fors...@gmail.com>: > > On 15 May 2017 at 16:46, Giacomo Tesio <giac...@tesio.it>

Re: [9fans] equality sign in Rc

2017-05-16 Thread Giacomo Tesio
Tonight I've tried this little hack, but I do not have a comprehensive test suite (does any exists?) https://github.com/JehanneOS/jehanne/commit/003141901af25f0bb3556be40b7ff963f57ced32 I thought that there's no reason to mimic sh for this since if you need sh to run a script rc won't work

Re: [9fans] equality sign in Rc

2017-05-15 Thread Giacomo Tesio
. Am I missing an obvious use case? Or maybe the changes to rc's code would be too complex? Giacomo Il 15/Mag/2017 18:39, "Charles Forsyth" <charles.fors...@gmail.com> ha scritto: > > On 15 May 2017 at 17:30, Giacomo Tesio <giac...@tesio.it> wrote: > >

Re: [9fans] equality sign in Rc

2017-05-15 Thread Giacomo Tesio
Actually a --fu variable is not that useful in Plan 9: % --fu=bar % echo $--fu rc: null list in concatenation % echo "$--fu" rc: null list in concatenation % ls /env '/env/*' /env/--fu ... So rc can create a variable starting with more than one '-', but can't use it. So I wonder if there is a

Re: [9fans] Blocking on write

2017-05-15 Thread Giacomo Tesio
and still works, as you can see in the attached test. Shouldn't the waserror code check that the queue has been actually closed? Giacomo 2017-05-15 15:36 GMT+02:00 Giacomo Tesio <giac...@tesio.it>: > Thanks Charles! > > > Giacomo > > 2017-05-15 12:32 GMT+02:00 Charles

Re: [9fans] Blocking on write

2017-05-15 Thread Giacomo Tesio
Thanks Charles! Giacomo 2017-05-15 12:32 GMT+02:00 Charles Forsyth <charles.fors...@gmail.com>: > > On 15 May 2017 at 11:05, Giacomo Tesio <giac...@tesio.it> wrote: >> >> Is there any fs/device in Plan9 that can easily provide such behaviour? > > > Bind #

[9fans] Blocking on write

2017-05-15 Thread Giacomo Tesio
Hi, to write a test I'm looking for an easy way to have a write() blocking forever. Is there any fs/device in Plan9 that can easily provide such behaviour? Giacomo

Re: [9fans] Reimplementing Plan 9 in Go (Was: Re: [9front] bio io functions)

2017-05-06 Thread Giacomo Tesio
Il 06/Mag/2017 10:22, "Francisco J Ballesteros" ha scritto: considering as the HW all the machines I use, including their OS as the new “HW”. I'm afraid it's what they are trying to achieve with webassebly. And in a way Inferno was doing the same, wasn't it. I agree that in a

Re: [9fans] Reimplementing Plan 9 in Go (Was: Re: [9front] bio io functions)

2017-05-05 Thread Giacomo Tesio
You might find https://lsub.org/ls/clive.html interesting. Giacomo 2017-05-05 15:25 GMT+02:00 Dave MacFarlane : > On Fri, May 5, 2017 at 6:21 AM, Stanley Lieber wrote: >> >> Plan 9 has not yet been re-implemented in Go. >> >> sl >> > > I started

[9fans] NSAVE/NRSTR use case in libap

2017-05-03 Thread Giacomo Tesio
Reading notify(2) I've noticed that I do not understand POSIX signals enough to grasp the problem NSAVE/NRSTR are designed to solve. Initially I supposed they where supposed to allow nested signals, so that a note occurred during the execution of a signal handler wont need to wait for NCONT.

Re: [9fans] Why getenv replaces \0 with spaces in the returned value?

2017-01-18 Thread Giacomo Tesio
will cope with \0 in a C string, so it's a good > choice as list of string element separator. > > On 18 January 2017 at 19:21, Fran. J Ballesteros <n...@lsub.org> wrote: >> >> rc lists? >> >> > El 18 ene 2017, a las 17:45, Giacomo Tesio <giac...@tesio.it>

[9fans] Why getenv replaces \0 with spaces in the returned value?

2017-01-18 Thread Giacomo Tesio
Hi, last night I noticed this strange post processing in 4th edition's getenv: https://github.com/brho/plan9/blob/master/sys/src/libc/9sys/getenv.c#L34-L41 seek(f, 0, 0); r = read(f, ans, s); if(r >= 0) { ep = ans + s - 1; for(p = ans; p < ep; p++)

Re: [9fans] memory leaks in libmp

2017-01-18 Thread Giacomo Tesio
Oh, well, I'm sorry, I should have clarified the context a bit more. Here it is. The link I provided here are Jehanne issues, not Plan 9 or 9front bug reports. After fixing a few of them I realized that, an year from now, I won't be able to remember why I did the change. Also, coverity could shut

[9fans] memory leaks in libmp

2017-01-17 Thread Giacomo Tesio
Hi, these other two defects identified from Coverity scan that you might find interesting: https://github.com/JehanneOS/jehanne/issues/5 https://github.com/JehanneOS/jehanne/issues/6 NOTE: 9front's guys consider these a false positive, since both mptole(n, nil, 0, nil); and mptobe(n,

[9fans] out of bound access in libsec

2017-01-17 Thread Giacomo Tesio
Hi, running coverity scan on libsec it reported two defects that do not seem false positives: 1. an out of bound access to aesXCBCmac (see https://github.com/JehanneOS/jehanne/issues/3 ) 2. an out of bound access in msgRecv, tlshand.c:1809 (see https://github.com/JehanneOS/jehanne/issues/4 ) I

Re: [9fans] Porting Idris to 9front

2017-01-13 Thread Giacomo Tesio
2017-01-13 15:05 GMT+01:00 Joe M : > > > > Don't you need GHC to compile Idris? > > http://docs.idris-lang.org/en/latest/faq/faq.html#when-will- > idris-be-self-hosting > > I have the posix version of the rts working on 9front. The default C > backend generated code compiled

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

2017-01-06 Thread Giacomo Tesio
2017-01-06 10:34 GMT+01:00 Anthony Martin : > Ciao Giacomo, > Ciao Anthony, ottime domande! :-) Let's start from the easy ones: > Oh, and where are the man pages? /doc/hacking is missing. Man pages in Jehanne will be readable in source form. Cat should be enough to render

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

2017-01-05 Thread Giacomo Tesio
Hi, I've just published a summary of my last year of experiments with Jehanne with a thanks to these communities and to their members: http://jehanne.io/2017/01/06/a-year-with-jehanne.html It's worthless to say that I couldn't have done anything without your code and your help. Thanks.

Re: [9fans] create/create race

2016-11-30 Thread Giacomo Tesio
Thanks Charles! This is exactly the kind of info I was looking for. Giacomo 2016-11-30 22:53 GMT+01:00 Charles Forsyth : > > On 30 November 2016 at 21:51, Charles Forsyth > wrote: > >> that the whole path name is re-evaluated 3 times > > >

Re: [9fans] create/create race

2016-11-30 Thread Giacomo Tesio
2016-11-30 16:08 GMT+01:00 Charles Forsyth <charles.fors...@gmail.com>: > > On 30 November 2016 at 15:02, Giacomo Tesio <giac...@tesio.it> wrote: > >> >> But reading that thread I can't actually see why the OEXCL path has been >> taken instead of eliminating

Re: [9fans] create/create race

2016-11-30 Thread Giacomo Tesio
David it seem you walked my road already... :-) I'm actually on a research project, so I do not care too much about the issues on existing programs. I'm going to change/break them anyway. Also, as far as I can foresee, it should be viable to fix such programs in a partially automated way (eg via

Re: [9fans] create/create race

2016-11-30 Thread Giacomo Tesio
not simply return an error if the file already exists? You might save me a few headache... Thanks for your help! Giacomo 2016-05-24 23:25 GMT+02:00 Giacomo Tesio <giac...@tesio.it>: > I'm pretty curious about the create(2)/create(5) race described in a > comment in namec (see https://git

Re: [9fans] devsegment usage examples

2016-08-31 Thread Giacomo Tesio
Neat, thanks! I wonder if a similar approach could be used to move some device drivers out of kernel... Btw, I did read the sample in segment(3) but I was looking for a real world example. What I'm trying to understand is not *how* to use devsegment, but *when* to use it. Which problems is it

[9fans] devsegment usage examples

2016-08-31 Thread Giacomo Tesio
Hi, I'm looking for an usage example of devsegment. I cannot find anything neither in bhro's plan9 nor in 9front. Can anybody share a real usage world example? Giacomo

Re: [9fans] The Plan 9/"right" way to do Facebook

2016-04-03 Thread Giacomo Tesio
2016-04-03 6:42 GMT+02:00 : > > We are already trained to be suspicious about the truth even when it's > > clearly evident, now we can even start to ignore the information from the > > physical world, while accepting the virtual information that someone else > > feed us. > >

Re: [9fans] The Plan 9/"right" way to do Facebook

2016-04-01 Thread Giacomo Tesio
While funny in it's visionary shape, I'm seriously scared about this matter. Take for example Google's material design: any software that successfully mimic the physical world (paper layers in particular) is going to bland our perception of its "virtuality". Our mind is going to accept it as a

Re: [9fans] Libc locks documentation

2016-03-25 Thread Giacomo Tesio
; which has a few references in it too. There's a little evolutionary > history of them somewhere. > > On 24 March 2016 at 19:56, Giacomo Tesio <giac...@tesio.it> wrote: > >> Hi, I'm a bit ignorant but I cannot recognise the algorithms in qlock.c. >> >> Wher

[9fans] Libc locks documentation

2016-03-24 Thread Giacomo Tesio
Hi, I'm a bit ignorant but I cannot recognise the algorithms in qlock.c. Where I can find more documentation about them? Any paper I can read? For example the rsleep/rwakeup always look a bit magic in its coupling with qlocks. I'd really like to know more about these algorithms, but given their

[9fans] startboot signature

2016-02-17 Thread Giacomo Tesio
Out of curiosity, why the startboot function in port/initcode.c is `void startboot(char *argv0, char **argv)` given the argv0 is ignored? I see that this simplify various main() in init9.s but I wonder why not simply use `void startboot(char **argv)` Giacomo

[9fans] FP register usage in Plan9 assembler

2016-02-01 Thread Giacomo Tesio
I'm studying the 9front's amd64 kernel, and I'm pretty new to assembler programming, so sorry if my question is too dumb... I cannot understand the FP pseudo register usage. The cpuid function, for example, is implemented as /* * The CPUID instruction is always supported on the amd64. */ TEXT

Re: [9fans] FP register usage in Plan9 assembler

2016-02-01 Thread Giacomo Tesio
Thanks for the explainations! I did read in the Pike's paper about the syntax name+offset(FP), but I did understood that name had to be a symbol already defined, and I was looking for it in the c code. Sorry for the noise! This led me to another question, however: I've read before that the plan9

Re: [9fans] FP register usage in Plan9 assembler

2016-02-01 Thread Giacomo Tesio
GMT+01:00 Charles Forsyth <charles.fors...@gmail.com>: > > On 1 February 2016 at 23:34, Giacomo Tesio <giac...@tesio.it> wrote: > >> >> Is it correct to say that this means that the Plan9 compiler suite >> *never* follows the sysV calling convention documente

[9fans] segbrk(2) vs friends

2015-12-07 Thread Giacomo Tesio
I'm trying to understand the reason behind the introduction of segbrk(2). I cannot find a use case in the codebase. The manual page states that: The segbrk system call may go away or be re-implemented to give more general segment control, sub- suming the

Re: [9fans] Compiling ken-cc on Linux

2015-11-27 Thread Giacomo Tesio
2015-11-27 13:42 GMT+01:00 <tlaro...@polynum.com>: > On Fri, Nov 27, 2015 at 09:13:20AM +0100, Giacomo Tesio wrote: > > > > I know nothing about compilers, but actually gcc and clang dimension and > > complexity is astonishing. > > It's not astonishing:

Re: [9fans] Compiling ken-cc on Linux

2015-11-27 Thread Giacomo Tesio
2015-11-27 0:21 GMT+01:00 Charles Forsyth : > > On 26 November 2015 at 23:08, Ryan Gonzalez wrote: > >> Holy crap, that's crazy. I built it in debug mode on Linux, but I don't >> think it used that much. I only have 6 GB right now! > > > You have to

Re: [9fans] off topic - a good Git reference

2015-10-12 Thread Giacomo Tesio
2015-10-12 19:00 GMT+02:00 Charles Forsyth : > > On 12 October 2015 at 17:49, Álvaro Jurado wrote: > >> what ensures sha key is in fs. > > > The reason many of us are a little sceptical about it being fsync as such > preventing the data appearing

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-06 Thread Giacomo Tesio
2015-09-05 20:47 GMT+02:00 erik quanstrom : > > May be my problem is that p is global in my case? > > global variables are in the bss, and thus shared. p will have > the same value in each thread, but *p should point into the > stack, and thus the same virtual address will

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-05 Thread Giacomo Tesio
... and given getpid(2) implementation, a pid based table could be quite expensive, since MyStruct is accessed very very often. 2015-09-05 16:03 GMT+02:00 Giacomo Tesio <giac...@tesio.it>: > 2011-05-20 3:30 GMT+02:00 erik quanstrom <quans...@quanstro.net>: > >> one note

[9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-05 Thread Giacomo Tesio
2011-05-20 3:30 GMT+02:00 erik quanstrom : > one note is that while i'm aware of privalloc(2), i didn't use it. the > implementation doesn't appear correct for shared-memory procs. > i think there are two issues > - locking is unnecessary. the only preemptable unit of

Re: [9fans] Privalloc(2) and rfork(RFPROC|RFMEM) (was: a pair nec bugs)

2015-09-05 Thread Giacomo Tesio
Nice example thanks. May be my problem is that p is global in my case? Giacomo Il 05/Set/2015 18:50, "erik quanstrom" ha scritto: > by the way, the following program runs without asserting for me > with or without the waits. > > - erik > > --- > > #include > #include >

Re: [9fans] u9fs sources

2015-09-02 Thread Giacomo Tesio
2015-09-02 6:38 GMT+02:00 : > > I don't think it is currently maintained, but Plan 9 ships with a copy > > of it under /sys/src/cmd/unix. I used that as the basis of the OpenBSD > > port. > > I have it on my list of urgent tasks to fix u9fs. The more recent > copy (details

Re: [9fans] pthreads

2015-09-01 Thread Giacomo Tesio
2008-12-16 23:16 GMT+01:00 Steve Simon : > I have a distant memory that somone implemented some of POSIX pthreads > on plan9, i.e. I want to compile programs that use pthreads under APE. > > anyone got any pointers? > Hi Steve, did you find anything (even incomplete) back

[9fans] u9fs sources

2015-09-01 Thread Giacomo Tesio
Hi, anybody knows where the u9fs sources are currently maintained? I have just found https://bitbucket.org/plan9-from-bell-labs/u9fs but it's only linked by an old googlecode repo: I was unable to find any official link in the bell labs pages. Giacomo

Re: [9fans] read9pmsg usage

2015-08-12 Thread Giacomo Tesio
2015-08-12 9:25 GMT+02:00 David du Colombier 0in...@gmail.com: This comment is indeed pretty old. It was already present in the Second Edition. So that check is based on pre 9p2000 code? If so, Charles have probably explained it: 2015-08-10 17:40 GMT+02:00 Charles Forsyth

Re: [9fans] read9pmsg usage

2015-08-11 Thread Giacomo Tesio
2015-08-11 17:48 GMT+02:00 Charles Forsyth charles.fors...@gmail.com: On 10 August 2015 at 15:11, Giacomo Tesio giac...@tesio.it wrote: /* * reading from a pipe or a network device * will give an error after a few eof reads. * however, we cannot tell the difference * between a zero

Re: [9fans] read9pmsg usage

2015-08-10 Thread Giacomo Tesio
2015-08-10 16:54 GMT+02:00 Charles Forsyth charles.fors...@gmail.com: Zero conventionally means end-of-file, but record boundaries are preserved on capable streams, so if a writer writes zero, the reader reads zero. However this two requirements do not seem reconcilable. Zero can either mean

[9fans] read9pmsg usage

2015-08-10 Thread Giacomo Tesio
Hi, I've a probably naive question that I can't figure out. I've just noticed that fcall(2) states Read9pmsg calls read(2) multiple times, if necessary, to read an entire 9P message into buf. The return value is 0 for end of file, or -1 for error; it does not return partial messages. but

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

2015-07-27 Thread Giacomo Tesio
Il 27/Lug/2015 23:47, Skip Tavakkolian 9...@9netics.com ha scritto: you are aware of the 9fans' fetish for movies and rabbits ...and feticists. ;-)

Re: [9fans] small VFD display

2015-06-10 Thread Giacomo Tesio
2015-06-09 20:34 GMT+02:00 Ethan Grammatikidis eeke...@fastmail.fm: search the web for EWD898. it's a good read; fascinating how little has really changed. I know it's off-topic, but it's funny to compare that Dijkstra's paper with this video https://www.youtube.com/watch?v=qlRTbl_IB-s (and

Re: [9fans] using git

2015-03-30 Thread Giacomo Tesio
, shittorefactortomorrow and so on). Giacomo 2015-03-30 11:48 GMT+02:00 Giacomo Tesio giac...@tesio.it: As I use both git and hg, I really miss the feature-branching in hg (obviously, you can, if you try hard enough, use feature branching with hg too, but git makes it so easy that it became my default process

Re: [9fans] using git

2015-03-30 Thread Giacomo Tesio
As I use both git and hg, I really miss the feature-branching in hg (obviously, you can, if you try hard enough, use feature branching with hg too, but git makes it so easy that it became my default process whenever I can use git for development, even on solo projects): Suppose you have a team of

Re: [9fans] using git

2015-03-30 Thread Giacomo Tesio
+02:00 Jeff Sickel j...@corpus-callosum.com: On Mar 30, 2015, at 4:55 AM, Giacomo Tesio giac...@tesio.it wrote: Ah, a small addendum: obviously we also use tags a lot to give a specific commit (and related history) a name. This is done automatically by build servers for the official tags

Re: [9fans] jas' cpython

2015-03-25 Thread Giacomo Tesio
Thanks David! 2015-03-25 12:12 GMT+01:00 David du Colombier 0in...@gmail.com: How should I extract files from an .arch archive? disk/mkext -d / cpython-src.arch -- David du Colombier

[9fans] jas' cpython

2015-03-25 Thread Giacomo Tesio
I feel a bit dumb, but I can't grasp how to extracts file from http://plan9.bell-labs.com/sources/contrib/jas/cpython-src.arch.bz2 and http://plan9.bell-labs.com/sources/contrib/jas/hg-src.arch.bz2 tar(1), gzip(1) and ar(1) did not helped. How should I extract files from an .arch archive?

Re: [9fans] Very old bug in db(1)

2015-03-19 Thread Giacomo Tesio
I could be wrong, but looks like nobody cares about such small fixes. A few days ago, I've found some very old small errors (one in the 2c(1) man page and one in col(1) that affects man pages' visualization in variable width fonts) but had no feedback. I guess that the most effective way to cope

Re: [9fans] Very old bug in db(1)

2015-03-19 Thread Giacomo Tesio
Oh, I completely missed patch(1). And actually it was just when one should look up for at first... man pages. Sorry. Thanks for the tip! It's a fragmented small community and that is just sad. It is not likely that things will get better in the foreseeable future, so pick your side :-) To

Re: [9fans] 2c(2) error

2015-03-10 Thread Giacomo Tesio
Ehm... obviously I was talking about 2c(1)... Too much coffe, today... :-D 2015-03-10 16:53 GMT+01:00 Giacomo Tesio giac...@tesio.it: 2c(2) states: Array initializers can specify the indices of the array in square brackets, as int a[] = { [3] 1, [10] 5 }; which initializes

[9fans] 2c(2) error

2015-03-10 Thread Giacomo Tesio
2c(2) states: Array initializers can specify the indices of the array in square brackets, as int a[] = { [3] 1, [10] 5 }; which initializes the third and tenth elements of the eleven-element array a. This is somewhat confusing: the third and the tenth element should have index 2

[9fans] col.c: one line fix for variable-width font

2015-03-06 Thread Giacomo Tesio
I gave a look at col.c and found a better fix for the tabs issue. We simply need that col check for the previous char being a space, before adding any tab. That is, at /sys/src/cmd/col.c:251 replace if ((++ncp 7) == 0 !xflag) { with if ((++ncp 7) == 0 !xflag *(p-2) == ' ') { This is a

Re: [9fans] col.c: one line fix for variable-width font

2015-03-06 Thread Giacomo Tesio
Actually I'm using drawterm, as a sort of remote desktop connection. But I can't see the problem you are talking about. The clients (either windows or linux) don't have the font installed, but still it seem working pretty well (except for the spacing issues in man pages). I don't have a real

Re: [9fans] col.c: one line fix for variable-width font

2015-03-06 Thread Giacomo Tesio
ehm... well... actually I could try with vnc... :-) Giacomo 2015-03-06 18:22 GMT+01:00 Giacomo Tesio giac...@tesio.it: Actually I'm using drawterm, as a sort of remote desktop connection. But I can't see the problem you are talking about. The clients (either windows or linux) don't have

Re: [9fans] unexpected tabs in man pages after font change

2015-03-05 Thread Giacomo Tesio
Which font are you using? With all mono-spaced (fixed-width) fonts everything works fine. The problem occurs just with variable spaced fonts. Btw I noted that the fix is not perfect: the table at the end of man(1) is misaligned, with or without the fix. Even without calling col at all. This

[9fans] unexpected tabs in man pages after font change

2015-03-04 Thread Giacomo Tesio
Hi, I've just installed a compact sans font (from http://input.fontbureau.com/ ) and manual pages started to look broken. As you can see in the screenshot (man 2 control), there are white spaces that looks like tabs in the middle of the text with apparently no reason. Even in the troff source

Re: [9fans] unexpected tabs in man pages after font change

2015-03-04 Thread Giacomo Tesio
to inform troff about the glyphs sizes... but how? Giacomo 2015-03-04 17:13 GMT+01:00 Giacomo Tesio giac...@tesio.it: Hi, I've just installed a compact sans font (from http://input.fontbureau.com/ ) and manual pages started to look broken. As you can see in the screenshot (man 2 control

Re: [9fans] unexpected tabs in man pages after font change

2015-03-04 Thread Giacomo Tesio
+01:00 Aram Hăvărneanu ara...@mgk.ro: On Wed, Mar 4, 2015 at 5:13 PM, Giacomo Tesio giac...@tesio.it wrote: why the hell we still use troff for manual pages? What do you propose we use instead? -- Aram Hăvărneanu

Re: [9fans] unexpected tabs in man pages after font change

2015-03-04 Thread Giacomo Tesio
2015-03-05 0:56 GMT+01:00 s...@9front.org: And btw, programs don't write man pages... yet. Are you familiar with the conventions that power godoc? No, but I know quite well it's predecessors (Docstrings, Javadoc etc...). They are great for API, but IMHO not every unix man page can be

Re: [9fans] unexpected tabs in man pages after font change

2015-03-04 Thread Giacomo Tesio
Well, while a bit offtopic... what do you mean by programmatically. And btw, programs don't write man pages... yet. Giacomo 2015-03-04 23:39 GMT+01:00 Stanley Lieber s...@9front.org: troff is great. easy to maintain programmatically. sl

Re: [9fans] drawterm sources

2015-03-02 Thread Giacomo Tesio
Thanks a lot! :-D Giacomo 2015-03-02 11:55 GMT+01:00 yy yiyu@gmail.com: On 2 March 2015 at 11:06, Giacomo Tesio giac...@tesio.it wrote: - where I can find the most updated sources of drawterm? (links from http://swtch.com/drawterm/ seem to be broken) https://bitbucket.org/rsc/drawterm

  1   2   >