Re: [9fans] go under plan9 on the radpberry pi?

2019-09-21 Thread hiro
yeah, but check small blocksize random read/write vs. AoE or 9p over
ethernet. I'm not sure how efficient usb3 in terms of latency :)

On 9/21/19, Bakul Shah  wrote:
> On Fri, 20 Sep 2019 09:53:07 +0100 Richard Miller <9f...@hamnavoe.com>
> wrote:
>>
>> > Another option worth exploring may
>> > be AOE as pi4 has a GbE (I haven't tried this yet).
>>
>> My go test builders are running with "local" fossil on a slice
>> of disk provided over AoE from an atom server.  I tried various
>> configurations and this gave me the best performance.  This is
>> with 3B+ machines on "gigabit" ethernet throttled by rubbish usb.
>>
>> Pi4 has proper GbE, but also has usb3 so a local ssd drive might
>> be a practical alternative.  More experiments to do.
>
> On linux/pi4 I get about 230MB/s for seq. read on a $10 USB3.1
> Samsung flash drive. Time to get a new SSD!
>
>



Re: [9fans] building Alef language

2019-09-21 Thread hiro
good point, but is the attention that go gets now also crippling plan9? :)

On 9/21/19, Lucio De Re  wrote:
> I have a version for legacy Plan 9, lightly tested, that I have not
> looked at in ages.
>
> Happy to haul it out, but I see little value in it. Go may have
> idiosyncrasies, but it is much more suited to modern architectures.
> That said, had Go not surfaced, I would have much preferred Alef to
> many other options.
>
> Don't forget the rationale for dropping Alef: support for the
> language, across many architectures and including many libraries would
> have been crippling.
>
> Both of those are now Go's strong suits.
>
> Lucio.
>
> PS: A tar archive may be on sources under "proxima" - it's been a long
> time.
>
>



Re: [9fans] building Alef language

2019-09-21 Thread Phil Kulin
Thank you. I used this snapshot and I built alef. But I couldn't build
tests. And can't build any alef program.

I think, than linker can't find /$object/lib/alef path (386 in my case)

On Sat, Sep 21, 2019 at 5:41 AM Sean Hinchee  wrote:
>
> As rodri states BurnZeZ has a copy of Alef he got building and kind of
> running under 9front/386. I kind of got the same thing at one point, but
> his is way better :)
>
> I know a snapshot of it is on mycroftiv's public grid around
> /n/griddisk/burnzez
>
> I don't know if he has a public version-controlled copy.
>
> Cheers,
> Sean
>
> On 9/20/19 2:05 PM, Rodrigo G. López wrote:
> > somebody please summon The BurnZeZ.
> >
> >
> > -rodri
> >
> > On Fri, Sep 20, 2019, 10:46 PM Phil Kulin  > > wrote:
> >
> > I try to build Alef language
> > latest 9front iso
> >
> > %9fs 9pio
> > # I don't know why, but "tar x alef.tgz" command do nothing...
> > %tarfs /n/sources/extra/alef.tgz
> > %dircp /n/tapefs/sys /sys
> > % cd /sys/src/alef
> > % mk all
> > mk $objtype.all
> > @{cd v; mk all }
> > @{cd k; mk all }
> > @{cd 8; mk all }
> > @{cd lib; mk all }
> > yacc -d ../port/parl.y
> >
> > conflicts: 2 shift/reduce
> > mv y.tab.h ../port/y.tab.h
> > 8c -w -I../port cinit.c
> > 8c -w -I../port code.c
> > machdep.h:329 ../port/parl.h:332 cinit.c:6 syntax error, last name:
> > Fconv
> > mk: 8c -w -I../port cinit.c  : exit status=rc 40921: 8c 40925: error
> > machdep.h:329 ../port/parl.h:332 code.c:6 syntax error, last name: Fconv
> > mk: @{cd v; mk ...  : exit status=rc 40909: rc 40911: mk 40912: error
> > mk: mk $objtype.all  : exit status=rc 40906: mk 40908: error
> > %
> >
> > I think that problem in "Fconv" definition...
> >
> > --
> > Non nobis Domine non nobis sed Nomini Tuo da gloriam
> > Phil Kulin
> >
>


-- 
Non nobis Domine non nobis sed Nomini Tuo da gloriam
Phil Kulin



[9fans] I went down a Forth rabbit hole and found Glenda

2019-09-21 Thread Skip Tavakkolian
So...

I have had a couple of STM32F103C8T6 "bluepill" boards laying around for a
few years and decided to do something with them.

After some uninteresting attempts with Arduino, I found Mecrisp-Stellaris
Forth (http://mecrisp.sourceforge.net/) which works great.

This lead me to wonder if there are any 9P implementations in Forth (surely
not?)
Yes! there is one by iru (https://github.com/iru-/9p4).

Then I thought about the impossible: a 9p file server in mecrisp forth. I
discovered someone had already done exactly that:
https://hub.darcs.net/pointfree/ForthFS

-Skip


Re: [9fans] building Alef language

2019-09-21 Thread Phil Kulin
Problem probably in sys/src/alef/lib/rt/ near librt.8.a
Build process passes with warning about file existing

Manual command:
ar vu /386/lib/alef/libA.a sys/src/alef/lib/386/*.8
reduces number of error messages when test builds

There are only:
ALEFassert: undefined: write
ALEFassert: undefined: read


On Sat, Sep 21, 2019 at 5:05 PM Phil Kulin  wrote:
>
> Thank you. I used this snapshot and I built alef. But I couldn't build
> tests. And can't build any alef program.
>
> I think, than linker can't find /$object/lib/alef path (386 in my case)
>
> On Sat, Sep 21, 2019 at 5:41 AM Sean Hinchee  wrote:
> >
> > As rodri states BurnZeZ has a copy of Alef he got building and kind of
> > running under 9front/386. I kind of got the same thing at one point, but
> > his is way better :)
> >
> > I know a snapshot of it is on mycroftiv's public grid around
> > /n/griddisk/burnzez
> >
> > I don't know if he has a public version-controlled copy.
> >
> > Cheers,
> > Sean
> >
> > On 9/20/19 2:05 PM, Rodrigo G. López wrote:
> > > somebody please summon The BurnZeZ.
> > >
> > >
> > > -rodri
> > >
> > > On Fri, Sep 20, 2019, 10:46 PM Phil Kulin  > > > wrote:
> > >
> > > I try to build Alef language
> > > latest 9front iso
> > >
> > > %9fs 9pio
> > > # I don't know why, but "tar x alef.tgz" command do nothing...
> > > %tarfs /n/sources/extra/alef.tgz
> > > %dircp /n/tapefs/sys /sys
> > > % cd /sys/src/alef
> > > % mk all
> > > mk $objtype.all
> > > @{cd v; mk all }
> > > @{cd k; mk all }
> > > @{cd 8; mk all }
> > > @{cd lib; mk all }
> > > yacc -d ../port/parl.y
> > >
> > > conflicts: 2 shift/reduce
> > > mv y.tab.h ../port/y.tab.h
> > > 8c -w -I../port cinit.c
> > > 8c -w -I../port code.c
> > > machdep.h:329 ../port/parl.h:332 cinit.c:6 syntax error, last name:
> > > Fconv
> > > mk: 8c -w -I../port cinit.c  : exit status=rc 40921: 8c 40925: error
> > > machdep.h:329 ../port/parl.h:332 code.c:6 syntax error, last name: 
> > > Fconv
> > > mk: @{cd v; mk ...  : exit status=rc 40909: rc 40911: mk 40912: error
> > > mk: mk $objtype.all  : exit status=rc 40906: mk 40908: error
> > > %
> > >
> > > I think that problem in "Fconv" definition...
> > >
> > > --
> > > Non nobis Domine non nobis sed Nomini Tuo da gloriam
> > > Phil Kulin
> > >
> >
>
>
> --
> Non nobis Domine non nobis sed Nomini Tuo da gloriam
> Phil Kulin



-- 
Non nobis Domine non nobis sed Nomini Tuo da gloriam
Phil Kulin



Re: [9fans] building Alef language

2019-09-21 Thread Phil Kulin
Ok. 9front doesn't have write and read syscalls. I patched
sys/src/alef/lib/sys/mkfile I translated _write to write and _read to
read. Yes, dirty hack. But I don't understand pwrite and pread
syscalls internals.

ItT'S WORK!!!

I'm worried I can't fix sys/src/alef/lib/rt/mkfile
I patch libA.a manually every time

On Sat, Sep 21, 2019 at 8:58 PM Phil Kulin  wrote:
>
> Problem probably in sys/src/alef/lib/rt/ near librt.8.a
> Build process passes with warning about file existing
>
> Manual command:
> ar vu /386/lib/alef/libA.a sys/src/alef/lib/386/*.8
> reduces number of error messages when test builds
>
> There are only:
> ALEFassert: undefined: write
> ALEFassert: undefined: read
>
>
> On Sat, Sep 21, 2019 at 5:05 PM Phil Kulin  wrote:
> >
> > Thank you. I used this snapshot and I built alef. But I couldn't build
> > tests. And can't build any alef program.
> >
> > I think, than linker can't find /$object/lib/alef path (386 in my case)
> >
> > On Sat, Sep 21, 2019 at 5:41 AM Sean Hinchee  wrote:
> > >
> > > As rodri states BurnZeZ has a copy of Alef he got building and kind of
> > > running under 9front/386. I kind of got the same thing at one point, but
> > > his is way better :)
> > >
> > > I know a snapshot of it is on mycroftiv's public grid around
> > > /n/griddisk/burnzez
> > >
> > > I don't know if he has a public version-controlled copy.
> > >
> > > Cheers,
> > > Sean
> > >
> > > On 9/20/19 2:05 PM, Rodrigo G. López wrote:
> > > > somebody please summon The BurnZeZ.
> > > >
> > > >
> > > > -rodri
> > > >
> > > > On Fri, Sep 20, 2019, 10:46 PM Phil Kulin  > > > > wrote:
> > > >
> > > > I try to build Alef language
> > > > latest 9front iso
> > > >
> > > > %9fs 9pio
> > > > # I don't know why, but "tar x alef.tgz" command do nothing...
> > > > %tarfs /n/sources/extra/alef.tgz
> > > > %dircp /n/tapefs/sys /sys
> > > > % cd /sys/src/alef
> > > > % mk all
> > > > mk $objtype.all
> > > > @{cd v; mk all }
> > > > @{cd k; mk all }
> > > > @{cd 8; mk all }
> > > > @{cd lib; mk all }
> > > > yacc -d ../port/parl.y
> > > >
> > > > conflicts: 2 shift/reduce
> > > > mv y.tab.h ../port/y.tab.h
> > > > 8c -w -I../port cinit.c
> > > > 8c -w -I../port code.c
> > > > machdep.h:329 ../port/parl.h:332 cinit.c:6 syntax error, last name:
> > > > Fconv
> > > > mk: 8c -w -I../port cinit.c  : exit status=rc 40921: 8c 40925: error
> > > > machdep.h:329 ../port/parl.h:332 code.c:6 syntax error, last name: 
> > > > Fconv
> > > > mk: @{cd v; mk ...  : exit status=rc 40909: rc 40911: mk 40912: 
> > > > error
> > > > mk: mk $objtype.all  : exit status=rc 40906: mk 40908: error
> > > > %
> > > >
> > > > I think that problem in "Fconv" definition...
> > > >
> > > > --
> > > > Non nobis Domine non nobis sed Nomini Tuo da gloriam
> > > > Phil Kulin
> > > >
> > >
> >
> >
> > --
> > Non nobis Domine non nobis sed Nomini Tuo da gloriam
> > Phil Kulin
>
>
>
> --
> Non nobis Domine non nobis sed Nomini Tuo da gloriam
> Phil Kulin



-- 
Non nobis Domine non nobis sed Nomini Tuo da gloriam
Phil Kulin



Re: [9fans] building Alef language

2019-09-21 Thread Rodrigo G . López
wth. they are the same plus an offset, which you can set to -1LL to
replicate the behavior of read(2) (/sys/src/libc/9sys/read.c)


-rodri

On Sat, Sep 21, 2019, 10:45 PM Phil Kulin  wrote:

> Ok. 9front doesn't have write and read syscalls. I patched
> sys/src/alef/lib/sys/mkfile I translated _write to write and _read to
> read. Yes, dirty hack. But I don't understand pwrite and pread
> syscalls internals.
>
> ItT'S WORK!!!
>
> I'm worried I can't fix sys/src/alef/lib/rt/mkfile
> I patch libA.a manually every time
>
> On Sat, Sep 21, 2019 at 8:58 PM Phil Kulin  wrote:
> >
> > Problem probably in sys/src/alef/lib/rt/ near librt.8.a
> > Build process passes with warning about file existing
> >
> > Manual command:
> > ar vu /386/lib/alef/libA.a sys/src/alef/lib/386/*.8
> > reduces number of error messages when test builds
> >
> > There are only:
> > ALEFassert: undefined: write
> > ALEFassert: undefined: read
> >
> >
> > On Sat, Sep 21, 2019 at 5:05 PM Phil Kulin  wrote:
> > >
> > > Thank you. I used this snapshot and I built alef. But I couldn't build
> > > tests. And can't build any alef program.
> > >
> > > I think, than linker can't find /$object/lib/alef path (386 in my case)
> > >
> > > On Sat, Sep 21, 2019 at 5:41 AM Sean Hinchee 
> wrote:
> > > >
> > > > As rodri states BurnZeZ has a copy of Alef he got building and kind
> of
> > > > running under 9front/386. I kind of got the same thing at one point,
> but
> > > > his is way better :)
> > > >
> > > > I know a snapshot of it is on mycroftiv's public grid around
> > > > /n/griddisk/burnzez
> > > >
> > > > I don't know if he has a public version-controlled copy.
> > > >
> > > > Cheers,
> > > > Sean
> > > >
> > > > On 9/20/19 2:05 PM, Rodrigo G. López wrote:
> > > > > somebody please summon The BurnZeZ.
> > > > >
> > > > >
> > > > > -rodri
> > > > >
> > > > > On Fri, Sep 20, 2019, 10:46 PM Phil Kulin  > > > > > wrote:
> > > > >
> > > > > I try to build Alef language
> > > > > latest 9front iso
> > > > >
> > > > > %9fs 9pio
> > > > > # I don't know why, but "tar x alef.tgz" command do nothing...
> > > > > %tarfs /n/sources/extra/alef.tgz
> > > > > %dircp /n/tapefs/sys /sys
> > > > > % cd /sys/src/alef
> > > > > % mk all
> > > > > mk $objtype.all
> > > > > @{cd v; mk all }
> > > > > @{cd k; mk all }
> > > > > @{cd 8; mk all }
> > > > > @{cd lib; mk all }
> > > > > yacc -d ../port/parl.y
> > > > >
> > > > > conflicts: 2 shift/reduce
> > > > > mv y.tab.h ../port/y.tab.h
> > > > > 8c -w -I../port cinit.c
> > > > > 8c -w -I../port code.c
> > > > > machdep.h:329 ../port/parl.h:332 cinit.c:6 syntax error, last
> name:
> > > > > Fconv
> > > > > mk: 8c -w -I../port cinit.c  : exit status=rc 40921: 8c 40925:
> error
> > > > > machdep.h:329 ../port/parl.h:332 code.c:6 syntax error, last
> name: Fconv
> > > > > mk: @{cd v; mk ...  : exit status=rc 40909: rc 40911: mk
> 40912: error
> > > > > mk: mk $objtype.all  : exit status=rc 40906: mk 40908: error
> > > > > %
> > > > >
> > > > > I think that problem in "Fconv" definition...
> > > > >
> > > > > --
> > > > > Non nobis Domine non nobis sed Nomini Tuo da gloriam
> > > > > Phil Kulin
> > > > >
> > > >
> > >
> > >
> > > --
> > > Non nobis Domine non nobis sed Nomini Tuo da gloriam
> > > Phil Kulin
> >
> >
> >
> > --
> > Non nobis Domine non nobis sed Nomini Tuo da gloriam
> > Phil Kulin
>
>
>
> --
> Non nobis Domine non nobis sed Nomini Tuo da gloriam
> Phil Kulin
>


Re: [9fans] go under plan9 on the radpberry pi?

2019-09-21 Thread Bakul Shah
See https://www.flexense.com/usb3_vs_sata_disk_performance_comparison.html
Here local SATA3 vs USB3 comparison is done. While not directly comparable,
the only case where throughput is below what you can push through GbE is
single threaded small file copying. For every other case tested, GbE will
be the bottleneck.

> On Sep 21, 2019, at 5:32 AM, hiro <23h...@gmail.com> wrote:
> 
> yeah, but check small blocksize random read/write vs. AoE or 9p over
> ethernet. I'm not sure how efficient usb3 in terms of latency :)
> 
> On 9/21/19, Bakul Shah  wrote:
>> On Fri, 20 Sep 2019 09:53:07 +0100 Richard Miller <9f...@hamnavoe.com>
>> wrote:
>>> 
 Another option worth exploring may
 be AOE as pi4 has a GbE (I haven't tried this yet).
>>> 
>>> My go test builders are running with "local" fossil on a slice
>>> of disk provided over AoE from an atom server.  I tried various
>>> configurations and this gave me the best performance.  This is
>>> with 3B+ machines on "gigabit" ethernet throttled by rubbish usb.
>>> 
>>> Pi4 has proper GbE, but also has usb3 so a local ssd drive might
>>> be a practical alternative.  More experiments to do.
>> 
>> On linux/pi4 I get about 230MB/s for seq. read on a $10 USB3.1
>> Samsung flash drive. Time to get a new SSD!
>> 
>> 
>