Re: [9fans] zero copy & 9p (was Re: PDP11 (Was: Re: what heavy negativity!)

2018-10-10 Thread Bakul Shah
On Wed, 10 Oct 2018 20:56:20 -0400 Dan Cross wrote: > > On Wed, Oct 10, 2018 at 7:58 PM wrote: > > > > Fundamentally zero-copy requires that the kernel and user process > > > share the same virtual address space mapped for the given operation. > > > > and it is. this doesnt make your point

[9fans] zero copy & 9p (was Re: PDP11 (Was: Re: what heavy negativity!)

2018-10-10 Thread Bakul Shah
Excellent response! Just what I was hoping for! On Oct 10, 2018, at 2:54 PM, Steven Stallion wrote: > > As the guy who wrote the majority of the code that pushed those 1M 4K > random IOPS erik mentioned, this thread annoys the shit out of me. You > don't get an award for writing a driver. In

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

2018-10-10 Thread Bakul Shah
On Oct 9, 2018, at 3:06 PM, erik quanstrom wrote: > > with meltdown/Spectre mitigations in place, I would like to see evidence that > flip is faster than copy. If your system is well balanced, you should be able to stream data as fast as memory allows[1]. In such a system copying things N

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

2018-10-09 Thread Bakul Shah
On Tue, 09 Oct 2018 10:45:37 -0700 Lyndon Nerenberg wrote: Lyndon Nerenberg writes: > Bakul Shah writes: > > > 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

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

2018-10-09 Thread Bakul Shah
> On Oct 9, 2018, at 2:45 AM, Ethan Gardener wrote: > > One day, Uriel met a man who explained very > convincingly that the Plan 9 kernel is a microkernel. > On another day, Uriel met a man who explained very > convincingly that the Plan 9 kernel is a macrokernel. > Uriel was enlightened.

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

2018-10-08 Thread Bakul Shah
On Mon, 08 Oct 2018 19:03:49 -0400 Dan Cross wrote: > > plan9 is breathtakingly elegant, but this is in no small part because as a > research system it had the luxury of simply ignoring many thorny problems > that would have marred that beauty but that the developers chose not to > tackle. Some

Re: [9fans] plan9port : complete system : kernel : freebsd || linux ?

2018-10-04 Thread Bakul Shah
On Oct 3, 2018, at 8:44 PM, Mayuresh Kathe wrote: > > aram, by a complete, installable system for plan9port, i meant a > distribution running the linux kernel, bionic, plan9port, minimal xorg. > that distribution would be bootable off a usb disk and can be installed > to your harddisk like any

Re: [9fans] plan9port : complete system : kernel : freebsd || linux ?

2018-10-02 Thread Bakul Shah
> On Oct 2, 2018, at 7:41 AM, Dave MacFarlane wrote: > > see how far you can take the per process > namespaces of Linux > to make it feel like Plan 9. (AFAIK, that wouldn't be possible with > NetBSD or FreeBSD, but > I might be mistaken..) Adding per process namespaces to *BSD would be a

Re: [9fans] APL for Plan 9?

2018-09-07 Thread Bakul Shah
On Fri, 07 Sep 2018 08:35:23 +0200 Rudolf Sykora wrote: > I also note that there now exists a GPL'd version of the K language, > Kona. That one was straightforward to build on OpenBSD. Kona uses mmap so not so easy to port. If you are used to normal C style, kona code style will be very hard to

Re: [9fans] APL for Plan 9?

2018-09-06 Thread Bakul Shah
On Sep 6, 2018, at 6:41 AM, Ethan Gardener wrote: > > Is there an implementation of APL or a related language for Plan 9? http://t3x.org/klong/ Though it is not as nice as k or kona. Rob Pike’s ivy may compile on plan9, it being implemented in go.

Re: [9fans] Is Plan 9 C "Less Dangerous?"

2018-09-05 Thread Bakul Shah
On Wed, 05 Sep 2018 07:42:52 -0400 Chris McGee wrote: > > It could be, but after having looked briefly at the size of the design for > RISC-V Rocket and especially BOOM I wonder if it's all overly complicated. > They even built their own high level hardware language (Chisel) that > generates

Re: [9fans] 9P or better file services for multiple platforms

2018-09-02 Thread Bakul Shah
> On Sep 2, 2018, at 2:25 AM, Lucio De Re wrote: > > (GIT is the main reason for my begging here: I "pull" the latest Go to > my workstation, then "archive" to Plan 9 (fossil). But fossil is slow, > too slow to compete even with cross-compiling to plan9_386. Part of > the problem is needing

Re: [9fans] Static ip configuration for a standalone cpu server in qemu on Linux

2018-08-25 Thread Bakul Shah
On Sat, 25 Aug 2018 22:17:16 +0300 Alexander Kapshuk wrote: > 22:13:25.356189 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has > 10.0.0.2 tell 10.0.0.1, length 28 As Hiro mentioned it is strange that both sides have the same mac addr as that will confuse them both. Pick a different one for

Re: [9fans] Static ip configuration for a standalone cpu server in qemu on Linux

2018-08-25 Thread Bakul Shah
On Sat, 25 Aug 2018 14:20:44 +0300 Alexander Kapshuk wrote: > I am trying to follow the instructions given here: > > http://fqa.9front.org/fqa3.html#3.3.1.4.4 > 3.3.1.4.4 - Linux TAP > > Here's what I've done so far: > (1). Set up a tap0 device as user root: > ip tuntap add dev tap0 mode tap

Re: [9fans] A compiler bug

2018-08-01 Thread Bakul Shah
On Aug 1, 2018, at 4:35 PM, Charles Forsyth wrote: > even so, the format and intention of the example seems practical (with the > correct cast to uintptr) and "An implementation may accept other forms of > constant expressions". > it should be fairly easy to add as an extension with consistent

[9fans] A compiler bug

2018-08-01 Thread Bakul Shah
Consider: % cat x.c #include uintptr foo[3]; uintptr bar=[2]; % 8c -c x.c # this works. % 5c -c x.c # this fails x.c:3 initializer is not a constant: bar If I change the last line to uintptr* bar=[2]; Both compilers compile it fine. But if I change the last line to uintptr

Re: [9fans] What are you using Plan 9 for?

2018-06-28 Thread Bakul Shah
On Jun 28, 2018, at 12:22 AM, Mart Zirnask wrote: > > Regarding Forth systems, this might also be of interest: > http://cosy.com People may find articles on k, joy etc. on Stevan Apter's website to be interesting: http://nsl.com/ In particular Stevan Apter's conversation with Manfred von Thun

Re: [9fans] What are you using Plan 9 for?

2018-06-26 Thread Bakul Shah
On Jun 25, 2018, at 2:33 AM, Ethan A. Gardener wrote: > > On Thu, Jun 21, 2018, at 7:03 PM, Bakul Shah wrote: >> On Jun 21, 2018, at 8:23 AM, Ethan A. Gardener wrote: >>> >>> Thanks! I don't know APL at all, beyond the fact that its need for a >>> graphi

Re: [9fans] What are you using Plan 9 for?

2018-06-21 Thread Bakul Shah
On Jun 21, 2018, at 8:23 AM, Ethan A. Gardener wrote: > > Thanks! I don't know APL at all, beyond the fact that its need for a > graphical (or at least sophisticated) display held it back in the past. I > should probably look into it now, I'm sure it would save me from making some > mistakes

Re: [9fans] What are you using Plan 9 for?

2018-06-20 Thread Bakul Shah
On Thu, 21 Jun 2018 05:58:42 +0200 Lucio De Re wrote: Lucio De Re writes: > On 6/20/18, Ethan A. Gardener wrote: > > [ ... ] Most of it is going into game scripting at the moment, but on the b > ack > > burner is a Forth-based project; a sort of operating system where the > > primary interface

Re: [9fans] booting plan9 under bhyve

2018-05-05 Thread Bakul Shah
On Sat, 05 May 2018 12:49:34 -0700 Lyndon Nerenberg wrote: > Has anyone has managed to boot any of the plan9 variants under FreeBSD's > bhyve hypervisor? Just curious to hear about any success/fail > experiences. Matthew Veety on 9fans on 27-Jan-2016: > I have a 9front cpu

Re: [9fans] gVisor - user space kernel in Go

2018-05-03 Thread Bakul Shah
On Wed, 02 May 2018 19:19:43 - Skip Tavakkolian wrote: > > Just saw this today; might be of interest to some 9fans. Apache open source > from Google: > > https://github.com/google/gvisor Unix emulation on microkernels looks a bit like this. Quick comparison:

Re: [9fans] Plan9 on Pi 3B+

2018-04-05 Thread Bakul Shah
The higher number seems to be from the netperf benchmark. See https://www.phoronix.com/scan.php?page=article=raspberrypi-3-bplus=3 > On Apr 5, 2018, at 10:02 AM, Steve Simon wrote: > > > hi, > > great work richard, i hope to try this soon. the network performance is the

Re: [9fans] SCMs

2018-02-13 Thread Bakul Shah
On Tue, 13 Feb 2018 15:13:36 -0800 Lyndon Nerenberg wrote: > > +100 on DVCS and needless complexity. cvs or sccs provides all the > functionality I've ever needed in an SCM system. Although I confess I > have been seduced by git's ability to instantly create and switch

Re: [9fans] There is no fork

2018-02-13 Thread Bakul Shah
On Tue, 13 Feb 2018 18:16:02 + Steve Simon wrote: Steve Simon writes: > > > > I can't build 9front on a Pi (well, not in productive amounts of time) > > depends what you mean by productive. my pi3 will build a kernel in about 30 > secs (i am not by it so this is from

Re: [9fans] ReMarkable!

2018-02-12 Thread Bakul Shah
On Feb 12, 2018, at 5:44 AM, hiro <23h...@gmail.com> wrote: > > i might even run acme > for a day for you. but with mouse and keyboard, i would never replace > them with touch input. Ah, but where’s the challenge in that?! Some ideas to give a sense of what I’m thinking: drawing a line across

[9fans] ReMarkable!

2018-02-12 Thread Bakul Shah
https://gizmodo.com/the-remarkable-e-ink-tablet-is-way-too-good-for-its-sof-1822612517 People like writing on its plastic screen much better than on iPadPro with its glass screen. Even with a thin plastic protector screen on the iPad, it does not fell like writing on paper - the screen doesn’t

Re: [9fans] Is fossil/venti file system a good choice for SSD?

2018-02-04 Thread Bakul Shah
On Sun, 04 Feb 2018 11:02:57 +0100 hiro <23h...@gmail.com> wrote: hiro writes: > For home use a ZFS intent log and caches on a good 2,5" SSD in a > battery-backed thinkpad seems like an easy, silent, fast and stable > (even against data loss from power outage) basis, even if you only > connect

Re: [9fans] RasPi why?

2018-02-04 Thread Bakul Shah
On Sun, 04 Feb 2018 09:45:51 + Ethan Grammatikidis <eeke...@fastmail.fm> wrote: Ethan Grammatikidis writes: > On Sat, Feb 3, 2018, at 11:46 PM, Bakul Shah wrote: > > > > Not to mention The RasPis are poor at > > reliability. Even a xenon flash or near a RasPi co

Re: [9fans] SMART: Silly Marketing Acronym, Rebuts Truth

2018-02-03 Thread Bakul Shah
On Feb 3, 2018, at 3:59 PM, Lyndon Nerenberg wrote: >> The interesting thing (for me) was that >> the SMART data from the drive gave it an all clear right to the end. But >> unlike the SSDs, there was plenty of behavioural warning to remind me to >> have the backups up to date

Re: [9fans] Is fossil/venti file system a good choice for SSD?

2018-02-03 Thread Bakul Shah
On Sat, 03 Feb 2018 21:46:42 + "Digby R.S. Tarvin" wrote: Digby R.S. Tarvin writes: > > Thats why I described my use case - to make the MTBF figures meaningful. As > I said, I have my system configured so that most heavy write accesses go to > rotating media. I

Re: [9fans] Is fossil/venti file system a good choice for SSD?

2018-02-03 Thread Bakul Shah
On Sat, 03 Feb 2018 18:49:50 + "Digby R.S. Tarvin" wrote: Digby R.S. Tarvin writes: > > My experience of running normal (read mostly) Linux filesystems on solid > state media is that SSD is more robust but far less reliable than rotating > media. > > MTBF for rotating

Re: [9fans] RPI faq in words of one syllable?

2018-01-11 Thread Bakul Shah
On Thu, 11 Jan 2018 03:27:47 -0700 arn...@skeeve.com wrote: arn...@skeeve.com writes: > Hi. > > Is there a document somewhere that describes how to bring up an RPI > with Plan 9, that assumes the reader knows absolutely nothing? > E.g., where to buy it, what case and power supply to buy, what

Re: [9fans] Spectre and Meltdown

2018-01-10 Thread Bakul Shah
On Wed, 10 Jan 2018 23:46:47 + Richard Miller <9f...@hamnavoe.com> wrote: Richard Miller writes: > > rpi3 is a safe choice > > Safe against spectre perhaps, but there are interesting remote attacks > against the firmware in the bcm43xx wifi engine. I wouldn't want to bet > on plan 9's

Re: [9fans] Inferno on microcontrollers

2017-12-31 Thread Bakul Shah
On Sun, 31 Dec 2017 18:28:48 + "Brian L. Stuart" wrote: Brian L. Stuart writes: > On Sun, 12/31/17, Rui Carmo wrote: > > I honestly don't think Plan9 or Inferno will become > > "general use" without (at the very least) a modern > > browser, > >

Re: [9fans] Inferno on Plan9

2017-12-29 Thread Bakul Shah
On Fri, 29 Dec 2017 19:11:22 + "Brian L. Stuart" wrote: Brian L. Stuart writes: > On Fri, 12/29/17, G B wrote: > > I used Inferno from bitbucket.org but wasn't able to build > > on FreeBSD 11.x/amd64 so I just reverted back to FreeBSD > >

Re: [9fans] A potentially useful venti client

2017-12-13 Thread Bakul Shah
On Dec 12, 2017, at 3:36 PM, Skip Tavakkolian wrote: > > i think it's not being taken advantage of, rather than ability: > > https://github.com/0intro/plan9/blob/7524062cfa4689019a4ed6fc22500ec209522ef0/sys/src/cmd/fcp.c > >

Re: [9fans] Postscript and troff

2017-05-04 Thread Bakul Shah
tems Manager | Stanford University School of Earth Sciences | farr...@erebus.stanford.edu + On Thu, 04 May 2017 22:41:57 PDT Bakul Shah <ba...@bitblocks.com> wrote: > https://bima.astro.umd.edu/nemo/man_html/tr2latex.l.html > > No idea how good it is though. > > On Fri,

Re: [9fans] Postscript and troff

2017-05-04 Thread Bakul Shah
> > :-) brucee > > On 5 May 2017 at 15:28, Bakul Shah <ba...@bitblocks.com> wrote: > > > This is an opportunity for someone to implement troff macros in TeX. > > Then you can embed EPS easily! > > > > :-) > > > > On Fri, 05 May 2017 15:23:39 +100

Re: [9fans] Postscript and troff

2017-05-04 Thread Bakul Shah
This is an opportunity for someone to implement troff macros in TeX. Then you can embed EPS easily! :-) On Fri, 05 May 2017 15:23:39 +1000 Bruce Ellis wrote: > > I asked bwk - troff wizard, and to paraphrase him "there is no good > solution". > > There is the PSPIC

Re: [9fans] Raspberry Pi plan9, keyboard not working.

2017-03-06 Thread Bakul Shah
On Tue, 07 Mar 2017 01:55:49 GMT kraftkl...@memeware.net wrote: > Dear, > > I just put plan9 onto my raspi. When I plug it in , it all seems to > work, including the mouse, but my wired USB keyboard (a dell rt7d10) This keyboard has 7 "hot keys" -- chances are it is sending some code not

Re: [9fans] SHA-1 collision and venti

2017-02-27 Thread Bakul Shah
On Mon, 27 Feb 2017 19:02:29 GMT Charles Forsyth wrote: > On 27 February 2017 at 18:30, Charles Forsyth > wrote: > > > that's a separate argument that venti would never work for you, regardless > > of the hash algorithm used. > since venti

Re: [9fans] SHA-1 collision and venti

2017-02-27 Thread Bakul Shah
The two are not comparable. > On Feb 27, 2017, at 10:14 AM, hiro <23h...@gmail.com> wrote: > > Bakul: I want to store a 10 Petabyte file, can your archival > system support that? I want to research big files. > > There's always a limit, but when does it matter? >

Re: [9fans] SHA-1 collision and venti

2017-02-27 Thread Bakul Shah
My argument is that an archival system that can't store some files, no matter how they were generated, is not good enough. A hash collision researcher may have a legitimate reason to store such files. > On Feb 27, 2017, at 9:07 AM, Charles Forsyth > wrote: > > >>

Re: [9fans] SHA-1 collision and venti

2017-02-26 Thread Bakul Shah
On Sun, 26 Feb 2017 19:57:53 GMT Charles Forsyth wrote: > > > The links are to different files. > > > > Not on Gmail at least look to see where each link points. Both are to -2 > in the message I see on Gmail. Unless it cleverly optimised the"identical" > content!

Re: [9fans] SHA-1 collision and venti

2017-02-26 Thread Bakul Shah
On Sun, 26 Feb 2017 18:25:34 GMT Charles Forsyth wrote: > > It's curious that svn "corrupts" the repository, if that's really what they > mean, when two leaf files collide. > An index or directory colliding with a file would be more understandable. The only known

Re: [9fans] SHA-1 collision and venti

2017-02-26 Thread Bakul Shah
t; > >> On 26 February 2017 at 17:25, Bakul Shah <ba...@bitblocks.com> wrote: >> Venti is similarly corruptible, right? Since the checksum is over just the >> content. If you downloaded https://shattered.io/static/shattered-1.pdf and >> https://shattered.io/stati

Re: [9fans] Upspin - a respin of 9p?

2017-02-23 Thread Bakul Shah
The overview doc says the data source can be other than a file. A camera or twitter feed for example. What seems to be missing is the namespace splicing (no bind or mount). There is also some talk of IoT sources. Need to think through this but conceptually I don't see a problem adding this 9p

[9fans] Upspin - a respin of 9p?

2017-02-23 Thread Bakul Shah
https://upspin.io/doc/overview.md Upspin provides a global name space to name all your files. Given an Upspin name, a file can be shared securely, copied efficiently without “download” and “upload”, and accessed from anywhere that has a network connection. Upspin can name information from

Re: [9fans] Acme and Git

2017-02-16 Thread Bakul Shah
You can use a cross platform file system event notification package like fsnotify/fsnotify or rjeczalik/notify, both on github. Instead of HEAD, may be just watch .git/index and when it changes, do git ls-files and see what changed. This will also catch local git add etc. though this probably

Re: [9fans] Acme and Git

2017-02-15 Thread Bakul Shah
l Lalonde <paul.a.lalo...@gmail.com> wrote: > > Do you have a pointer to Russ's Watch? I quick dig shows I have poor > Google-fu. > Paul > > On Wed, Feb 15, 2017 at 12:23 PM Bakul Shah <ba...@bitblocks.com > <mailto:ba...@bitblocks.com>> wrote: > May b

Re: [9fans] Acme and Git

2017-02-15 Thread Bakul Shah
May be use Russ'es Watch command? > On Feb 15, 2017, at 5:05 AM, Paul Lalonde wrote: > > I know I'm not the only acme user who uses Git extensively :-) > Is there some way to tell if a file is changed on disk that is open in an > editor window? I frequently change

Re: [9fans] adding TCP half-duplex close

2017-02-05 Thread Bakul Shah
u can't rely on a consistent implementation (unless it's to defeat your > purpose). > >> On 5 February 2017 at 15:51, Charles Forsyth <charles.fors...@gmail.com> >> wrote: >> >>> On 5 February 2017 at 05:23, Bakul Shah <ba...@bitblocks.com> wrote

Re: [9fans] adding TCP half-duplex close

2017-02-04 Thread Bakul Shah
I think shutdown(sock, SHU_RD) is mainly to let the sender generate an SIGPIPE signal in case it has sent data on a closed direction of a connection. But I think this is only for completeness. Almost always you’d use close(sock). At least I have not found a usecase when I’d want to shutdown the

Re: [9fans] adding TCP half-duplex close

2017-02-03 Thread Bakul Shah
For the shut_rd case, I think a cleaner impl is to send RST *only* if there is pending data (received but not read by the user) or new data is received after the read end is closed. At the moment I don't recall what BSD does but you don't have to allow draining once the read end is closed. Just

Re: [9fans] raspberry pi sdhost driver

2016-12-17 Thread Bakul Shah
On Sat, 17 Dec 2016 20:20:22 PST Bakul Shah <ba...@bitblocks.com> wrote: > On Sun, 11 Dec 2016 16:57:27 GMT Richard Miller <9f...@hamnavoe.com> wrote: > > The pi3 native wifi driver (ether4330.c) recently added to > > /n/sources/contrib/miller/9/bcm had an annoying li

Re: [9fans] raspberry pi sdhost driver

2016-12-17 Thread Bakul Shah
On Sun, 11 Dec 2016 16:57:27 GMT Richard Miller <9f...@hamnavoe.com> wrote: > The pi3 native wifi driver (ether4330.c) recently added to > /n/sources/contrib/miller/9/bcm had an annoying limitation. "9fs sources" seems to work but "ls /n/sources" with a clone failed message. Strange that 9fs

Re: [9fans] git client-ish

2016-12-03 Thread Bakul Shah
> On Dec 3, 2016, at 11:20 AM, Dave MacFarlane wrote: > > I mentioned in another thread that I had started working on a pure go > git client a while ago, then abandoned it, which gave me an itch to > pick it up again. I've finally implemented enough that it can > bootstrap

Re: [9fans] (no subject)

2016-12-02 Thread Bakul Shah
On Fri, 02 Dec 2016 11:44:52 GMT "Steve Simon" wrote: > Hi all, > > Anyone have some small and neat code (in C) to parse ISO8601 date/time > notation with all its glorious options? > > Its not hard to write, but it would be time consuming to test all the varients > so if

Re: [9fans] Plan9 and VMs

2016-09-03 Thread Bakul Shah
> On Sep 2, 2016, at 4:02 PM, Lyndon Nerenberg <lyn...@orthanc.ca> wrote: > > >> On Sep 2, 2016, at 3:00 PM, Bakul Shah <ba...@bitblocks.com> wrote: >> >> Separately, an interesting project would be to implement plan9 >> sandboxes (ala linux "

Re: [9fans] Plan9 and VMs

2016-09-02 Thread Bakul Shah
On Fri, 02 Sep 2016 15:08:16 PDT Kurt H Maier wrote: > > > However, if anyone makes plan9 work under bhyve or khyve I'm > > interested. > > I'm also interested in this, and every once in a while I test it out. > Nothing worth reporting yet, but once I get something running I'll

Re: [9fans] Plan9 and VMs

2016-09-02 Thread Bakul Shah
On Fri, 02 Sep 2016 17:15:32 EDT stanley lieber <s...@9front.org> wrote: > Bakul Shah <ba...@bitblocks.com> wrote: > > >On Fri, 02 Sep 2016 22:54:38 +0200 Adriano Verardo > ><adr.vera...@gmail.com> wrote: > >> What about VirtualBox or other VMs ? >

Re: [9fans] Plan9 and VMs

2016-09-02 Thread Bakul Shah
On Fri, 02 Sep 2016 22:54:38 +0200 Adriano Verardo wrote: > What about VirtualBox or other VMs ? VirtualBox has worked well for me though I haven't installed plan9 lately.

Re: [9fans] Musings on Interfaces

2016-09-01 Thread Bakul Shah
Yesterday someone asked me how come the two 24" monitors on my desk @ work were turned off and I was using the laptop exclusively. Apart from having to be in meetings, the main reason is that acme on a hires "retina" display is more than good enough for programming. I still switch to vi for

Re: [9fans] Plan 9 port to Raspberry Pi 3 Model B (ARM64)?

2016-02-29 Thread Bakul Shah
On Mon, 29 Feb 2016 20:28:04 GMT Richard Miller <9f...@hamnavoe.com> wrote: > > Now that RPI3 is generally available, I'm wondering if there are any > > efforts underway to port Plan 9 to it. > > "Underway" might be a bit ambitious since it was only announced today. > I've ordered one to have a

Re: [9fans] Pi updates

2016-01-02 Thread Bakul Shah
FWIW, when I was looking at doing a gpio drive I was thinking of something like the following. Devices: #G/gpio/ctl #G/gpio/$pin/ctl #G/gpio/$pin/data #G/gpio/$pin/event ... bing -a '#G' /dev A pin must be configured before use (and only if neither of its data & event

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

2015-12-30 Thread Bakul Shah
On Wed, 30 Dec 2015 23:36:22 GMT "Steve Simon" wrote: > > It is not a common factor if you ping broadcast. > > Yep, fair point. If you're pinging plan9 machines, printing source address is not useful as they sebd ping replies with source = broadcast ip address. You have to

Re: [9fans] Undefined Behaviour in C

2015-11-26 Thread Bakul Shah
valid address on the PDP11 where the convention developed. It's the > unibus space. Second, ~0 + member offest is still in page zero. > > By the way, are there any structs more than 4K in Linux? Are there any in > plan 9? > > Sent from my iPad > >> On Nov 26, 20

Re: [9fans] Undefined Behaviour in C

2015-11-25 Thread Bakul Shah
Using 0xfff...f instead of 0 for a null ptr might've been less "disgusting"! > On Nov 25, 2015, at 6:04 PM, Prof Brucee wrote: > > gcc is indeed a very sad tome. The mmap of 0 is disgusting. I like kenc. It > just works. My behaviour this afternoon will be undefined but

Re: [9fans] libframe Go port

2015-10-16 Thread Bakul Shah
On Sun, 11 Oct 2015 12:07:08 - Giles Hutton wrote: > > Initially my main complaint was simply the heavy use of the mouse; it felt > jarring to have to move my hand off home row. However, I've now just > chalked that up to inexperience with acme. > Right now I actually

Re: [9fans] rsc's libtask on embedded

2015-07-09 Thread Bakul Shah
Your use is different and simple enough that I would suggest doing this from scratch in pure C. Or start from an existing setjmp based implementation. It should really be a couple pages of code at most. On Jul 9, 2015, at 9:12 AM, st...@quintile.net st...@quintile.net wrote: co routines

Re: [9fans] rsc's libtask on embedded

2015-07-09 Thread Bakul Shah
Sounds like all you want are coroutines (with create, destroy switch-to calls) and wait queues (with create, destroy, signal wait calls). With these you can build channels easily. With a bit more work you can even implement pre-emption but then you need mutexes. Setjmp/longjmp is fine (that

Re: [9fans] Intel NUCs and Plan 9?

2015-07-09 Thread Bakul Shah
Last night my gateway machine fans making final dying for real sounds and I need a replacement. It's a T42 which was already half dead when I repurposed it to this duty and it has worked for four years. I have RPi2, Beaglebone black etc. But in the end I decided to buy a used T60 for $100. On

Re: [9fans] ftpfs shows empty /n/ftp after login

2015-06-26 Thread Bakul Shah
On Fri, 26 Jun 2015 10:29:29 +0200 Nils M Holm n...@t3x.org wrote: On 2015-06-26T10:22:14+0200, Nils M Holm wrote: Looks like ftpfs and ftpd cannot agree on a port for passive mode: Of course, here's the problem: PASV 227 Entering passive mode (127,0,0,1,212,96)

Re: [9fans] thank you

2015-06-26 Thread Bakul Shah
On Fri, 26 Jun 2015 19:36:01 - Kurt H Maier k...@sciops.net wrote: Quoting a.regenf...@gmx.de: (uh oh, am i going to get bashed for this?) Nah, instead you'll get bashed for sending an HTML email. Nah, no bashing; we can't be rced about it.

Re: [9fans] ftpfs shows empty /n/ftp after login

2015-06-25 Thread Bakul Shah
On Thu, 25 Jun 2015 21:51:49 +0200 Nils M Holm n...@t3x.org wrote: My guess is ftpfs requires active mode connection (but should be easy to change). Looking at the ftpfs sources, I see that it should do passive mode fine. You should debug!

Re: [9fans] ftpfs shows empty /n/ftp after login

2015-06-25 Thread Bakul Shah
On Thu, 25 Jun 2015 19:25:36 +0200 Nils M Holm n...@t3x.org wrote: Came back to Plan 9 recently, and I'm running into some trouble. I'm running Plan 9 on QEMU and wanted to use ftpfs to exchange data with my FreeBSD system. When logging in via ftpfs, though, I get an empty /n/ftp

Re: [9fans] Wildly off-topic

2015-06-15 Thread Bakul Shah
On Tue, 16 Jun 2015 11:06:48 +1200 Andrew Simmons kod...@gmail.com wrote: As the subject line says, wildly off-topic. But some-one here might know = the answer, and it=E2=80=99s been bothering me. Such are my failings, I=E2=80=99ve been watching the second series of = =E2=80=9CHalt and Catch

Re: [9fans] Trying to override 'cd' command

2015-06-12 Thread Bakul Shah
On Fri, 12 Jun 2015 16:05:21 CDT Ryan Gonzalez rym...@gmail.com wrote: Thanks for replying! Unfortunately, that doesn't change anything. Still stuck at the 'term% ' prompt. Invoke rc with -l flag (in acme middleclick on win rc -l).

Re: [9fans] ot: pascal rides again?

2015-05-25 Thread Bakul Shah
On Sun, 24 May 2015 17:25:54 EDT minux minux...@gmail.com wrote: On Sun, May 24, 2015 at 11:55 AM, erik quanstrom quans...@quanstro.net wrote: Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte are slices - therefore they are different types. yes, exactly.

Re: [9fans] ot: pascal rides again?

2015-05-24 Thread Bakul Shah
On May 24, 2015, at 8:55 AM, erik quanstrom quans...@quanstro.net wrote: Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte are slices - therefore they are different types. yes, exactly. i suppose this implies that different size arrays are not type compatable (yea

[9fans] C.H.I.P. - world's first $9 computer

2015-05-11 Thread Bakul Shah
https://www.kickstarter.com/projects/1598272670/chip-the-worlds-first-9-computer/ 40mmx60mm 1GHz Allwinner R8 processor + 512MB memory + 4GB storage + wifi + Bluetooth

Re: [9fans] fossil+venti performance question

2015-05-09 Thread Bakul Shah
On May 9, 2015, at 10:25 AM, Lyndon Nerenberg lyn...@orthanc.ca wrote: On May 9, 2015, at 7:43 AM, erik quanstrom quans...@quanstro.net wrote: easy enough until one encounters devices that don't send icmp responses because it's not implemented, or somehow considered secure that way.

Re: [9fans] fossil+venti performance question

2015-05-08 Thread Bakul Shah
On Fri, 08 May 2015 21:24:13 +0200 David du Colombier 0in...@gmail.com wrote: On the loopback medium, I suppose this is the opposite issue. Since the TCP stack didn't fix the MSS in the incoming connection, the programs sent multiple small 1500 bytes IP packets instead of large 16384 IP

Re: [9fans] using git

2015-03-30 Thread Bakul Shah
zsh: cd $git-sources zsh: wc -l **/*.{c,h,sh,py,pl}|tail -1 318901 total zsh: for a in c h sh py pl; do echo $a: `wc -l **/*.$a|tail -1`;done c: 161667 total h: 16971 total sh: 133214 total py: 5634 total pl: 1415 total

Re: [9fans] easier refreshing of acme wins

2015-03-26 Thread Bakul Shah
What if you watch all tag lines and when a git controlled file is opened in a window, you the watch file for changes and when it changes put something in a new window that you can just select and middle click? On Mar 26, 2015, at 9:02 AM, Mathieu Lonjaret mathieu.lonja...@gmail.com wrote:

Re: [9fans] easier refreshing of acme wins

2015-03-26 Thread Bakul Shah
On Thu, 26 Mar 2015 18:49:51 - Paul Lalonde paul.a.lalo...@gmail.com wrote: The feature direction I'd like when working with Git is for the window of a git-changed file to become un-editable. This would require adding the idea of a un-editable window, which is probably a bad idea. Not

Re: [9fans] once more: drawterm osx-x11 on x86-64

2015-02-28 Thread Bakul Shah
On Sat, 28 Feb 2015 09:18:24 +0100 cinap_len...@felloff.net wrote: i ment in the context of rio resize. Presumably he means his carefully laid out rio windows get out of kilter (or alignment) when they all get resized. You need a layout engine to keep them looking nice and proportionate.

Re: [9fans] once more: drawterm osx-x11 on x86-64

2015-02-28 Thread Bakul Shah
On Sat, 28 Feb 2015 13:05:51 EST s...@9front.org wrote: On Sat, 28 Feb 2015 09:18:24 +0100 cinap_len...@felloff.net wrote: i ment in the context of rio resize. Presumably he means his carefully laid out rio windows get out of kilter (or alignment) when they all get resized. You need a

Re: [9fans] r-pi usbotg error

2015-02-18 Thread Bakul Shah
On Wed, 18 Feb 2015 10:48:22 CST Steven Stallion sstall...@gmail.com wrote: Last night I finally got around to getting a B+ I've had sitting in the closet and converted it to a terminal. I'm seeing this same problem. I've tried unplugging multiple keyboards and have also tried using a powered

Re: [9fans] Raspberry Pi 2 Model B

2015-02-07 Thread Bakul Shah
On Sat, 07 Feb 2015 16:50:24 GMT Richard Miller 9f...@hamnavoe.com wrote: I said: Disclaimer: if you put silly numbers in arm_freq, bad stuff might happen. Supposedly the firmware detects this and sets an irreversible bit somewhere that voids your warranty. There are claims in the

Re: [9fans] Raspberry Pi 2 Model B

2015-02-07 Thread Bakul Shah
On Sun, 08 Feb 2015 02:10:25 +0100 hiro 23h...@gmail.com wrote: Do the RPI2s break very fast or why is the warranty such an issue? A chip's rated clock rate is typically much lower that the max freq it at which it can run stably -- and there is fair bit of variation in this max freq. A rare few

Re: [9fans] wstat and atomic directory change

2015-02-05 Thread Bakul Shah
On Thu, 05 Feb 2015 08:20:30 PST erik quanstrom quans...@quanstro.net wrote: All this reflections arise from the search for an orthodox way to change the tree structure of a synthetic filesystem. Moving large real files is not my actual issue here. I'm wondering for a synthetic filesystem

Re: [9fans] adm user on plan9 raspberry pi

2015-02-03 Thread Bakul Shah
On Wed, 04 Feb 2015 01:17:00 GMT christophe DAMAS christophe.da...@gmail.com wrote: I need to access to /adm/timezone to change the timezone. How do I log as user adm ? I use the standard plan9.iso image downloaded form ATT web site. Do you mean 9pi.img? I have not set any password.

Re: [9fans] [Off topic] Raspberry Pi 2 gets the evil OS

2015-02-03 Thread Bakul Shah
On Wed, 04 Feb 2015 00:41:41 MST arn...@skeeve.com wrote: From the Be Still My Beating Heart department: http://dev.windows.com/en-us/featured/raspberrypi2support Perhaps we will see higher performance memory versions of RPi sooner rather than later :-)

Re: [9fans] Raspberry Pi 2 Model B

2015-02-02 Thread Bakul Shah
On Mon, 02 Feb 2015 20:54:02 GMT Skip Tavakkolian skip.tavakkol...@gmail.com wrote: hardkernel's odroid-c1 is similar and slightly better performance for the same price; any sense which port might be easier? Odroid-c1 is Cortex-A5 while Pi2 is Cortex-A7 so Pi2 is more performant (but has

Re: [9fans] Raspberry Pi 2 Model B

2015-02-02 Thread Bakul Shah
On Mon, 02 Feb 2015 19:52:08 PST erik quanstrom quans...@quanstro.net wrote: On Mon Feb 2 13:20:08 PST 2015, ba...@bitblocks.com wrote: On Mon, 02 Feb 2015 20:54:02 GMT Skip Tavakkolian skip.tavakkolian@gmail.c om wrote: hardkernel's odroid-c1 is similar and slightly better performance

Re: [9fans] runebase breaking libs build

2015-01-18 Thread Bakul Shah
On Sun, 18 Jan 2015 22:09:02 MST Don Bailey don.bai...@gmail.com wrote: So this issue is clearly documented somewhere that people can catch up quickly? From an old message by David du Colombier: 1. remove runebase from /sys/src/libc/port/mkfile 2. cd /sys/src/libc mk install mk clean 3.

Re: [9fans] I don't understand utf8 (it seems)

2015-01-05 Thread Bakul Shah
On Mon, 05 Jan 2015 21:52:12 GMT Steve Simon st...@quintile.net wrote: I am trying to parse a stream from a tcp connection. I think the data is utf8, here is a sample 20 2d 20 c8 65 73 6b fd 20 72 6f 7a 68 6c 61 73 which when I print it I get: - e s k r o z

Re: [9fans] 9 Atom - installation troubles

2014-12-06 Thread Bakul Shah
On Sat, 06 Dec 2014 11:09:51 +0200 lu...@proxima.alt.za wrote: I can't be certain but looks like proxima.alt.za delegates actual email delivery to turo-smtp.net. There's a transparent proxy just the other side of my long-distance wi-fi link, I'm not sure why my ISP feels they have to pay a

  1   2   3   4   5   6   7   >