Hi!! I started a 'little' rc program to read and post beeps to Mastodon. My idea is to create a simple but functional program. I'm not a developer, I'm a devops, but I think this is a good idea to start developing on 9front. The main problem is How can a json file be parsed in rc? Does anyone have an idea how to fix this? Any experience will be welcome. Regards
[-- Attachment #1: Type: text/plain, Size: 596 bytes --] BurnZeZ wrote http://plan9.stanleylieber.com/src/jsonfs.c which uses http://man.9front.org/2/json sl > On Apr 27, 2022, at 2:44 PM, Jacobo Da Riva Muñoz <jdrm@disroot.org> wrote: > > Hi!! > > I started a 'little' rc program to read and post beeps to Mastodon. My idea is to create a simple but functional program. I'm not a developer, I'm a devops, but I think this is a good idea to start developing on 9front. The main problem is How can a json file be parsed in rc? Does anyone have an idea how to fix this? Any experience will be welcome. > > Regards > > > [-- Attachment #2: Type: text/html, Size: 1289 bytes --]
i think parsing arbitary json reliably in rc would be very hard. it is fairly straightforward in c. i wrote a simple parser (in my contrib) with a beautifier as a sample app; thought that is not what you asked for…
-Steve
> On 27 Apr 2022, at 7:44 pm, Jacobo Da Riva Muñoz <jdrm@disroot.org> wrote:
>
> Hi!!
>
> I started a 'little' rc program to read and post beeps to Mastodon. My idea is to create a simple but functional program. I'm not a developer, I'm a devops, but I think this is a good idea to start developing on 9front. The main problem is How can a json file be parsed in rc? Does anyone have an idea how to fix this? Any experience will be welcome.
>
> Regards
>
>
Sorry but, how can I find your contrib?
Yes, maybe i'll need a parser in C
El 27/4/22 a las 21:33, Steve Simon escribió:
> i think parsing arbitary json reliably in rc would be very hard. it is fairly straightforward in c. i wrote a simple parser (in my contrib) with a beautifier as a sample app; thought that is not what you asked for…
>
> -Steve
>
>
>> On 27 Apr 2022, at 7:44 pm, Jacobo Da Riva Muñoz <jdrm@disroot.org> wrote:
>>
>> Hi!!
>>
>> I started a 'little' rc program to read and post beeps to Mastodon. My idea is to create a simple but functional program. I'm not a developer, I'm a devops, but I think this is a good idea to start developing on 9front. The main problem is How can a json file be parsed in rc? Does anyone have an idea how to fix this? Any experience will be welcome.
>>
>> Regards
>>
>>
You could do some stuff in rc with the assistance of something like https://github.com/telephil9/gj (thanks, phil9) I do a version of hget | gj | sed in my quasi-rss script to keep tabs on mastodon people but if you want more complicated stuff like posting, C is probably nicer. umbraticus
Iirc someone on the fedi was working on a plan 9 fedi client. I just don't remember exactly who it was... I'd also love some fedi server! sirjofri
honestly i think the native 9front solution using jsonfs is the way to go, kudos to the author for an elegant, plan9-centric solution. my json library was written separately to the 9front one - i would have used it if i had known about it. mine is here if it is of interest: http://www.quintile.net/pkg/libjson.tbz and the beautifier at http://www.quintile.net/pkg/json.cmds.tbz there is also a json2 which works like the linux xml2 command, converting json to awk friendly token,value flat file. in a similar vein there is a libxml and xml.cmds on the same server. -Steve
> fedi client was this masto9 or some other client? > fedi server you should check this out https://blog.freespeechextremist.com/blog/revolver-kickoff.html its not exactly a fedi server, but it will work with activitypub like any other server software
It's possible to look at the code of masto9?
El 1/5/22 a las 4:43, jpeg escribió:
>> fedi client
> was this masto9 or some other client?
>
>> fedi server
> you should check this out https://blog.freespeechextremist.com/blog/revolver-kickoff.html
> its not exactly a fedi server, but it will work with activitypub like any other server
> software
here: http://plan9.stanleylieber.com/src/masto9.tgz On Mon, May 2, 2022 at 9:24 AM phil9 <telephil9@gmail.com> wrote: > > here: http://plan9.stanleylieber.com/src/masto9.tgz > > > > On Mon, May 2, 2022 at 9:20 AM Jacobo Da Riva Muñoz <jdrm@disroot.org> wrote: >> >> It's possible to look at the code of masto9? >> >> El 1/5/22 a las 4:43, jpeg escribió: >> >> fedi client >> > was this masto9 or some other client? >> > >> >> fedi server >> > you should check this out https://blog.freespeechextremist.com/blog/revolver-kickoff.html >> > its not exactly a fedi server, but it will work with activitypub like any other server >> > software
Or here https://git.sr.ht/~julienxx/masto9 It's just a really really early attempt though, don't expect it to really work. On 5/2/22 09:25, phil9 wrote: > here: http://plan9.stanleylieber.com/src/masto9.tgz > > On Mon, May 2, 2022 at 9:24 AM phil9 <telephil9@gmail.com> wrote: >> here: http://plan9.stanleylieber.com/src/masto9.tgz >> >> >> >> On Mon, May 2, 2022 at 9:20 AM Jacobo Da Riva Muñoz <jdrm@disroot.org> wrote: >>> It's possible to look at the code of masto9? >>> >>> El 1/5/22 a las 4:43, jpeg escribió: >>>>> fedi client >>>> was this masto9 or some other client? >>>> >>>>> fedi server >>>> you should check this out https://blog.freespeechextremist.com/blog/revolver-kickoff.html >>>> its not exactly a fedi server, but it will work with activitypub like any other server >>>> software
Actually it's also hosted here: http://9front.org/extra/src/masto9.tgz > > Or here https://git.sr.ht/~julienxx/masto9 > > It's just a really really early attempt though, don't expect it to > really work. > > On 5/2/22 09:25, phil9 wrote: > > > here: http://plan9.stanleylieber.com/src/masto9.tgz > > > > On Mon, May 2, 2022 at 9:24 AM phil9 telephil9@gmail.com wrote: > > > > > here: http://plan9.stanleylieber.com/src/masto9.tgz > > > > > > On Mon, May 2, 2022 at 9:20 AM Jacobo Da Riva Muñoz jdrm@disroot.org wrote: > > > > > > > It's possible to look at the code of masto9? > > > > > > > > El 1/5/22 a las 4:43, jpeg escribió: > > > > > > > > > > fedi client > > > > > > was this masto9 or some other client? > > > > > > > > > > > fedi server > > > > > > you should check this out https://blog.freespeechextremist.com/blog/revolver-kickoff.html > > > > > > its not exactly a fedi server, but it will work with activitypub like any other server > > > > > > software
note: i usually just archive everything i see that looks useful because things tend to disappear over time, but i don’t always do a great job of keeping things updated. always update from the repo if included.
sl
> On May 3, 2022, at 9:27 AM, Philip Silva <philip.silva@protonmail.com> wrote:
>
> Actually it's also hosted here: http://9front.org/extra/src/masto9.tgz
>
>>
>> Or here https://git.sr.ht/~julienxx/masto9
>>
>> It's just a really really early attempt though, don't expect it to
>> really work.
>>
>>> On 5/2/22 09:25, phil9 wrote:
>>>
>>> here: http://plan9.stanleylieber.com/src/masto9.tgz
>>>
>>>> On Mon, May 2, 2022 at 9:24 AM phil9 telephil9@gmail.com wrote:
>>>
>>>> here: http://plan9.stanleylieber.com/src/masto9.tgz
>>>>
>>>> On Mon, May 2, 2022 at 9:20 AM Jacobo Da Riva Muñoz jdrm@disroot.org wrote:
>>>>
>>>>> It's possible to look at the code of masto9?
>>>>>
>>>>> El 1/5/22 a las 4:43, jpeg escribió:
>>>>>
>>>>>>> fedi client
>>>>>>> was this masto9 or some other client?
>>>>>>
>>>>>>> fedi server
>>>>>>> you should check this out https://blog.freespeechextremist.com/blog/revolver-kickoff.html
>>>>>>> its not exactly a fedi server, but it will work with activitypub like any other server
>>>>>>> software
>
Kind of off-topic, but I deleted my Mastodon account recently anyway. IMHO it's becoming another Twitter with the same esoteric nonsense
------- Original Message -------
On Tuesday, May 3rd, 2022 at 15:55, Stanley Lieber <sl@stanleylieber.com> wrote:
>
>
> note: i usually just archive everything i see that looks useful because things tend to disappear over time, but i don’t always do a great job of keeping things updated. always update from the repo if included.
>
> sl
>
> > On May 3, 2022, at 9:27 AM, Philip Silva philip.silva@protonmail.com wrote:
> >
> > Actually it's also hosted here: http://9front.org/extra/src/masto9.tgz
> >
> > > Or here https://git.sr.ht/~julienxx/masto9
> > >
> > > It's just a really really early attempt though, don't expect it to
> > > really work.
> > >
> > > > On 5/2/22 09:25, phil9 wrote:
> > > >
> > > > here: http://plan9.stanleylieber.com/src/masto9.tgz
> > > >
> > > > > On Mon, May 2, 2022 at 9:24 AM phil9 telephil9@gmail.com wrote:
> > > >
> > > > > here: http://plan9.stanleylieber.com/src/masto9.tgz
> > > > >
> > > > > On Mon, May 2, 2022 at 9:20 AM Jacobo Da Riva Muñoz jdrm@disroot.org wrote:
> > > > >
> > > > > > It's possible to look at the code of masto9?
> > > > > >
> > > > > > El 1/5/22 a las 4:43, jpeg escribió:
> > > > > >
> > > > > > > > fedi client
> > > > > > > > was this masto9 or some other client?
> > > > > > >
> > > > > > > > fedi server
> > > > > > > > you should check this out https://blog.freespeechextremist.com/blog/revolver-kickoff.html
> > > > > > > > its not exactly a fedi server, but it will work with activitypub like any other server
> > > > > > > > software
Thank you, everybody.
I'm reading the code of Masto9 and thinking about How can I create the mastodon client as an Acme application. I hope to share with you the code soon.
Regards
3 de mayo de 2022, 17:22, "Philip Silva" <philip.silva@protonmail.com mailto:philip.silva@protonmail.com?to=%22Philip%20Silva%22%20%3Cphilip.silva%40protonmail.com%3E > escribió:
>
> Kind of off-topic, but I deleted my Mastodon account recently anyway. IMHO it's becoming another Twitter with the same esoteric nonsense
>
> ------- Original Message -------
> On Tuesday, May 3rd, 2022 at 15:55, Stanley Lieber <sl@stanleylieber.com> wrote:
>
> >
> > note: i usually just archive everything i see that looks useful because things tend to disappear over time, but i don’t always do a great job of keeping things updated. always update from the repo if included.
> >
> > sl
> >
> > On May 3, 2022, at 9:27 AM, Philip Silva philip.silva@protonmail.com mailto:philip.silva@protonmail.com wrote:
> >
> > Actually it's also hosted here: http://9front.org/extra/src/masto9.tgz
> >
> > > Or here https://git.sr.ht/~julienxx/masto9
> > >
> > > It's just a really really early attempt though, don't expect it to
> > > really work.
> > >
> > > > On 5/2/22 09:25, phil9 wrote:
> > > >
> > > > here: http://plan9.stanleylieber.com/src/masto9.tgz
> > > >
> > > > > On Mon, May 2, 2022 at 9:24 AM phil9 telephil9@gmail.com mailto:telephil9@gmail.com wrote:
> > > >
> > > > > here: http://plan9.stanleylieber.com/src/masto9.tgz
> > > > >
> > > > > On Mon, May 2, 2022 at 9:20 AM Jacobo Da Riva Muñoz jdrm@disroot.org mailto:jdrm@disroot.org wrote:
> > > > >
> > > > > > It's possible to look at the code of masto9?
> > > > > >
> > > > > > El 1/5/22 a las 4:43, jpeg escribió:
> > > > > >
> > > > > > > > fedi client
> > > > > > > > was this masto9 or some other client?
> > > > > > >
> > > > > > > > fedi server
> > > > > > > > you should check this out https://blog.freespeechextremist.com/blog/revolver-kickoff.html
> > > > > > > > its not exactly a fedi server, but it will work with activitypub like any other server
> > > > > > > > software
> >
>