Re: [9fans] porting projects...

2021-09-20 Thread Conor Williams
ah man i was so so drunk check outta the c:20212009 register preceding
/c:taloyama

On Mon, Sep 20, 2021 at 7:58 AM Jens Staal  wrote:

> On Mon, Sep 20, 2021 at 01:23:05AM +, Conor Williams wrote:
> > nethack:
> > d in 32-bit code (0x7bc511f9).
> 
> I am confused. Why did you attach a WINE debugger screenshot on
> Peppermint Linux?
> 

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M58345db1d1315d0d42fc643f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-20 Thread Jens Staal
On Mon, Sep 20, 2021 at 01:23:05AM +, Conor Williams wrote:
> nethack:
> d in 32-bit code (0x7bc511f9).

I am confused. Why did you attach a WINE debugger screenshot on
Peppermint Linux?


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M4de15c568b96084f0f35fd00
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-06 Thread hiro
> How's it supposed use information the operating system doesn't give it.
>
> When I have said /dev/mouse and screen in this thread, I've meant
> #m/mouse and the actual display.

for a second i actually forgot about #m having absolute coordinates,
but as later mails explain there's the warping hack to get around the
mouse escaping the allowed screen coordinates :D

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-Mfaa75c70fb73f80461c1810b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-06 Thread ori
Quoth Paul Lalonde :
> It does look like this would need raw mouse state to get the DX/Dy data
> instead of absolute screen positions.

It's a little ugly, but the same mouse warping
hack that quake uses will serve here.



--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M6b75ddf1d87a72b07f2b1d1c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-06 Thread Steve Simon


mouse sharing is not end, there is also cut and paste integration - relatively 
easy but not to be forgotten.

i think you could also play some fun tricks with drag and drop on other os’s 
passing a (modified) path to the plumber (/n/remote-host/file-path).

finally plumbing a url on plan9 could open a modern browser in the commodity os.

personal view…

overall such integration would make plan9 usable as a desktop again for me.

previously i had a work windows box via remote desktop. this allowed me to use 
plan9 as my primary desktop but switch into rd ehen i needed.

now i have a work mac and vnc from the mac does not work as well. thankfully 
p9p makes life bearable but i feel dishonest.

-Steve




--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M868413a2e84dc268a34a51a9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-06 Thread Paul Lalonde
Do the other platforms do their own acceleration management?  That makes
you want to feed deltas instead of absolutes.

On Mon, Sep 6, 2021, 1:13 PM Stuart Morrow  wrote:

> On 06/09/2021, Paul Lalonde  wrote:
> > It does look like this would need raw mouse state to get the DX/Dy data
> > instead of absolute screen positions.
> 
> 
> You could detect when it's at the edge, make it invisible (as
> screenlock does), make it visible (on the box that doesn't have the
> mouse plugged in), and warp it to the centre so subsequent movements
> still give m-messages.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M8e1810d2216ae4d0ba3ac5c9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-06 Thread Stuart Morrow
On 06/09/2021, Paul Lalonde  wrote:
> It does look like this would need raw mouse state to get the DX/Dy data
> instead of absolute screen positions.


You could detect when it's at the edge, make it invisible (as
screenlock does), make it visible (on the box that doesn't have the
mouse plugged in), and warp it to the centre so subsequent movements
still give m-messages.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M06cc3f0752daac885bf6dad9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-06 Thread Paul Lalonde
It does look like this would need raw mouse state to get the DX/Dy data
instead of absolute screen positions.

On Mon, Sep 6, 2021, 12:36 PM Stuart Morrow  wrote:

> On 06/09/2021, Skip Tavakkolian  wrote:
> > To be clear, the discussion is about sharing a Plan 9 term's
> > mouse/keyboard with non-Plan 9 machines/displays.
>
> I know. See previous post.
>
> > The usual way is to layer file-servers to build up the namespace that
> > you need.
> I know.
>
> > The extended (freerange?) mouse would keep track of off-screen
> > movement and forward them to clients.
> 
> How's it supposed use information the operating system doesn't give it.
> 
> When I have said /dev/mouse and screen in this thread, I've meant
> #m/mouse and the actual display.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M57c04c24bece9e2a94b3e355
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-06 Thread Stuart Morrow
On 06/09/2021, Skip Tavakkolian  wrote:
> To be clear, the discussion is about sharing a Plan 9 term's
> mouse/keyboard with non-Plan 9 machines/displays.

I know. See previous post.

> The usual way is to layer file-servers to build up the namespace that
> you need.
I know.

> The extended (freerange?) mouse would keep track of off-screen
> movement and forward them to clients.

How's it supposed use information the operating system doesn't give it.

When I have said /dev/mouse and screen in this thread, I've meant
#m/mouse and the actual display.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-Md8f90f0b6e082ea14a351510
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-06 Thread Skip Tavakkolian
The usual way is to layer file-servers to build up the namespace that
you need. See tippy (https://github.com/9nut/plan9cmd) for a simple
/dev/mouse example.

The extended (freerange?) mouse would keep track of off-screen
movement and forward them to clients. To complete the picture, mouse
clients would then convert p9's mouse protocol messages and inject
events using the OS's native format.

To be clear, the discussion is about sharing a Plan 9 term's
mouse/keyboard with non-Plan 9 machines/displays. Obviously in a Plan
9 environment sharing is done with exportfs and building up the
namespace.

On Sat, Sep 4, 2021 at 2:57 PM Stuart Morrow  wrote:
>
> On 04/09/2021, hiro <23h...@gmail.com> wrote:
> > it's worth doing the plan9 specific protocol anyway.
> > mainly bec. it could be very simple to implement, between multiple
> > plan9, given that /dev/mouse is already network transparent.
> 
> I can't think how Plan 9 would work as a server (as in, the machine
> with the mouse plugged in) for this (either for Synergy or an
> invented-here thing).  /dev/mouse doesn't emit when you're off the
> screen.  Maybe this is even the reason cinap never did a server, only
> a client.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-Mbf8c3614007e6ddae6c9c865
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-06 Thread cinap_lenrek
> I can't think how Plan 9 would work as a server (as in, the machine
> with the mouse plugged in) for this (either for Synergy or an
> invented-here thing).  /dev/mouse doesn't emit when you're off the
> screen.  Maybe this is even the reason cinap never did a server, only
> a client.

doesnt matter, you can run like a filter on /dev/mouse before starting
rio...

--
cinap

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M2ea5a7fd524a4bf3b4851b54
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-05 Thread hiro
> I can't think how Plan 9 would work as a server (as in, the machine
> with the mouse plugged in) for this (either for Synergy or an
> invented-here thing).  /dev/mouse doesn't emit when you're off the
> screen.  Maybe this is even the reason cinap never did a server, only
> a client.

you'd either have to change rio or build another simpler mouserio,
that you mount before you start the first rio.

it's not a big deal.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-Meb05362afbcf1f19fd006ebb
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-05 Thread Philip Silva via 9fans
Awesome, I'll try that! Yeah I realize there is also this Bignum support, 
that's probably not a very common use case.

On Saturday, September 4th, 2021 at 17:24, Sigrid Solveig Haflínudóttir 
 wrote:

> https://git.sr.ht/~ft/quickjs
>
> I have not finished it, ofc, but it successfully ran a few scripts on
>
> 9front amd64. Quickjs uses uint128_t which makes everything much more
>
> complicated. I don't know if kencc should support 128 bit just to
>
> make JS work.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M68c871b8c7a41fd5adcf5c39
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-05 Thread Conor Williams
lot's of good stuff there /c:ta

On Sat, Sep 4, 2021 at 9:57 PM Stuart Morrow 
wrote:

> On 04/09/2021, hiro <23h...@gmail.com> wrote:
> > it's worth doing the plan9 specific protocol anyway.
> > mainly bec. it could be very simple to implement, between multiple
> > plan9, given that /dev/mouse is already network transparent.
> 
> I can't think how Plan 9 would work as a server (as in, the machine
> with the mouse plugged in) for this (either for Synergy or an
> invented-here thing).  /dev/mouse doesn't emit when you're off the
> screen.  Maybe this is even the reason cinap never did a server, only
> a client.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M431cf9bc0995fc671bfd8c0e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-04 Thread Stuart Morrow
On 04/09/2021, hiro <23h...@gmail.com> wrote:
> it's worth doing the plan9 specific protocol anyway.
> mainly bec. it could be very simple to implement, between multiple
> plan9, given that /dev/mouse is already network transparent.

I can't think how Plan 9 would work as a server (as in, the machine
with the mouse plugged in) for this (either for Synergy or an
invented-here thing).  /dev/mouse doesn't emit when you're off the
screen.  Maybe this is even the reason cinap never did a server, only
a client.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M0feff3e2659e016d8f423fa9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-04 Thread hiro
it's worth doing the plan9 specific protocol anyway.
mainly bec. it could be very simple to implement, between multiple
plan9, given that /dev/mouse is already network transparent.

also, when you want other systems, with drawterm the /dev/mouse of the
alien OS window is already made available. should be easy enough to
extend this and allow a full-screen mouse grab...

On 9/4/21, Steve Simon  wrote:
> 
> i was going to mention barrier but couldn’t remember it’s name. as far as
> the plan9 code goes they should both work - the only difference being the
> initial handshake message.
> 
> current synergy supports many new features but plan9 is not interested.
> 
> the problem is really the lack of documentation, the best info is a very
> simple example client, but even that has bugs it seems.
> 
> i even considered writing a new plan9 specific protocol but that would mean
> delving into the internals of osx to hook it in…
> 
> -Steve
> 

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M5f0eaa770713abcbe3549725
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-04 Thread Steve Simon


i was going to mention barrier but couldn’t remember it’s name. as far as the 
plan9 code goes they should both work - the only difference being the initial 
handshake message.

current synergy supports many new features but plan9 is not interested.

the problem is really the lack of documentation, the best info is a very simple 
example client, but even that has bugs it seems.

i even considered writing a new plan9 specific protocol but that would mean 
delving into the internals of osx to hook it in…


-Steve


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M214a2733c8807d89a1923923
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-04 Thread Michael Misch
https://github.com/debauchee/barrier

> On Sep 4, 2021, at 9:19 AM, hiro <23h...@gmail.com> wrote:
> 
> 
>> 
>> i tried and faild to get cinap’s historic synergy client to work with a
>> current synergy server on windows/linux/osx etc.
> 
> the guy behind synergy at some point tried to convert his free
> software project into a startup for making money.
> even before that transition he was a hell to send patches to. i don't
> recommend depending on this rude person in any form at all.
> 
> instead maybe there's a synergy fork somewhere based on the older free
> code. that should be no big deal to keep around forever.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-Mfff2322174718698f16e019a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-04 Thread hiro
> i tried and faild to get cinap’s historic synergy client to work with a
> current synergy server on windows/linux/osx etc.

the guy behind synergy at some point tried to convert his free
software project into a startup for making money.
even before that transition he was a hell to send patches to. i don't
recommend depending on this rude person in any form at all.

instead maybe there's a synergy fork somewhere based on the older free
code. that should be no big deal to keep around forever.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M6295cc17a8a74981f4a3bb04
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-04 Thread Sigrid Solveig Haflínudóttir
On Sat, Sep 4, 2021 at 10:04 AM Philip Silva via 9fans <9fans@9fans.net> wrote:
>
> Not sure if it's wasted/duplicate effort but I had been interested in porting 
> QuickJS (it has ES 2020 support) Eventually I stopped doing this since there 
> is Duktape (within Netsurf) and Goja now support some of the most common ES6 
> features. Also my C knowledge/porting experience is quite limited.

https://git.sr.ht/~ft/quickjs

I have not finished it, ofc, but it successfully ran a few scripts on
9front amd64. Quickjs uses uint128_t which makes everything much more
complicated. I don't know if kencc should support 128 bit _just_ to
make JS work.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-Ma50a2d9f9260f8529c866dfa
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-04 Thread ori
Quoth Conor Williams :
> anyone got a list/one project to work on...
> i'm not too shoddy at the auld porting etc...cw

Find something you want to use, and make it work.


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-Me2c1e9564408f21d43f3534b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-04 Thread Steve Simon
i will bite

i tried and faild to get cinap’s historic synergy client to work with a current 
synergy server on windows/linux/osx etc.

the biggest pain is the wireshark disector is buggy and there is no real 
documentation for the protocol.

not really selling it am i?

-Steve


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M0f403a613eac464f4c7615a3
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-04 Thread Philip Silva via 9fans
Not sure if it's wasted/duplicate effort but I had been interested in porting 
QuickJS (it has ES 2020 support) Eventually I stopped doing this since there is 
Duktape (within Netsurf) and Goja now support some of the most common ES6 
features. Also my C knowledge/porting experience is quite limited.

Philip
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M067fe527d54128af356daf61
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-03 Thread Conor Williams
just finished all of these (mostly... ) and looking for other ones...
dicking around with Tcl port of some of these now...
cv: software and hardware mostly vnr ta

https://sites.google.com/view/d1333/home

/c

ps: will take a goo at NetHack soon and get back to u on the
ramifications of it... -- just trying to work out dopamine
(at around a still ridiculous 14 after 20 hours sleep... dear o dear)
(sta/a)...
and as for placebo well...  https://www.youtube.com/watch?v=6kFqFnGXERg
and food amount running a little low too... i'd kill 4a agaroph soft drink
right this now
pps.. anyone know of anyone needing cheap help on the
cdiaz/longevity//nanobot
secret project over yonder somewhere - i heard a bit about the new tube
brusher on /.

On Sat, Sep 4, 2021 at 3:51 AM Jens Staal  wrote:

>
>
> Den lör 4 sep. 2021 01:50Conor Williams  skrev:
>
>> anyone got a list/one project to work on...
>> i'm not too shoddy at the auld porting etc...cw
>>
>
> I really wanted to get NetHack work (using the upstreamed PDCursesMod
> port).
>
> Been too busy and side-tracked by other stuff to try again.
>
> *9fans * / 9fans / see discussions
>  + participants
>  + delivery options
>  Permalink
> 
>

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-Ma6269d4667ce9a684488e1ae
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-03 Thread Jens Staal
Den lör 4 sep. 2021 01:50Conor Williams  skrev:

> anyone got a list/one project to work on...
> i'm not too shoddy at the auld porting etc...cw
>

I really wanted to get NetHack work (using the upstreamed PDCursesMod port).

Been too busy and side-tracked by other stuff to try again.

*9fans * / 9fans / see discussions
>  + participants
>  + delivery options
>  Permalink
> 
>

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-Ma5b96b6a9c9a6131689df4cf
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] porting projects...

2021-09-03 Thread Lucio De Re
You're inviting trouble :-)

Maybe if you give us some idea of magnitude you are prepared to work on?

Or which sphere of interest/expertise you're contemplating?

The wish list is long...

Lucio.


On 9/4/21, Conor Williams  wrote:
> anyone got a list/one project to work on...
> i'm not too shoddy at the auld porting etc...cw


-- 
Lucio De Re
2 Piet Retief St
Kestell (Eastern Free State)
9860 South Africa

Ph.: +27 58 653 1433
Cell: +27 83 251 5824

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M14bcd3076956b659fb6a2ee0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] porting projects...

2021-09-03 Thread Conor Williams
anyone got a list/one project to work on...
i'm not too shoddy at the auld porting etc...cw

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td6b6b3e98268ecde-M47456a088901e7cc2602266f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription