Re: How do I open Raku in the background?

2020-03-31 Thread ToddAndMargo via perl6-users

On 2020-03-30 21:06, ToddAndMargo via perl6-users wrote:
On Mon, Mar 30, 2020 at 8:14 PM ToddAndMargo via perl6-users 
mailto:perl6-users@perl.org>> wrote:


 >> On Sun, Mar 29, 2020 at 8:44 PM ToddAndMargo via perl6-users
 >> mailto:perl6-users@perl.org>
    >> wrote:
 >>
 >> Hi All,
 >>
 >> Windows 10-1909 Pro
 >>
 >> raku -v
 >> This is Rakudo version 2020.01 built on MoarVM version
 >> 2020.01.1 implementing Perl 6.d.
 >>
 >> I am opening Raku from the registry with
 >>
 >> 
[HKEY_CLASSES_ROOT\*\shell\OpenWithFileAttributes.pl6\command]

 >> @="\"C:\\rakudo\\bin\\raku.exe\"
 >> \"K:\\Windows\\NtUtil\\FileAttributes.pl6\" \"%1\""
 >>
 >> Problem: up pops a big black box with Raku running it in.
 >> Is there a way to rid myself of the big black box?
 >> (I have pops for the information that is reported to
 >> the user.)
 >>
 >>
 >> Many thanks,
 >> -T
 >>

    On 2020-03-30 08:04, yary wrote:
 > This is a Windows explorer/shell issue. Search the web; this 
is one

 > approach - use cmd with some switches to start with the window
    minimized
 >

https://stackoverflow.com/questions/4277963/how-to-call-cmd-without-opening-a-window 


 >
 > I'm a fan of Emacs on all my platforms; their solution in Windows
    is a
 > tiny executable that opens Emacs without having the secondary 
shell

 > window, if I understand correctly.
 >
 > -y

    Rats.  I was hoping it was something in Raku's run string.

    Thank you for the CMD tip!


On 2020-03-30 19:08, Brad Gilbert wrote:

There is a bit in the executable that tells windows to open a terminal.

If you copy the executable to say rakudo_no_terminal.exe and change 
that bit in the copy, then Windows won't show you a terminal.


How/where do I change this bit?  Hex Edit?

I can see a lot of use for this!!


Thank you!
-T


Hi Rudy,

I know you'd know the answer!  Thank you!

-T

Do you know of a utility to do that for me?


Re: How do I open Raku in the background?

2020-03-31 Thread ToddAndMargo via perl6-users

On 2020-03-30 21:06, ToddAndMargo via perl6-users wrote:
On Mon, Mar 30, 2020 at 8:14 PM ToddAndMargo via perl6-users 
mailto:perl6-users@perl.org>> wrote:


 >> On Sun, Mar 29, 2020 at 8:44 PM ToddAndMargo via perl6-users
 >> mailto:perl6-users@perl.org>
    >> wrote:
 >>
 >> Hi All,
 >>
 >> Windows 10-1909 Pro
 >>
 >> raku -v
 >> This is Rakudo version 2020.01 built on MoarVM version
 >> 2020.01.1 implementing Perl 6.d.
 >>
 >> I am opening Raku from the registry with
 >>
 >> 
[HKEY_CLASSES_ROOT\*\shell\OpenWithFileAttributes.pl6\command]

 >> @="\"C:\\rakudo\\bin\\raku.exe\"
 >> \"K:\\Windows\\NtUtil\\FileAttributes.pl6\" \"%1\""
 >>
 >> Problem: up pops a big black box with Raku running it in.
 >> Is there a way to rid myself of the big black box?
 >> (I have pops for the information that is reported to
 >> the user.)
 >>
 >>
 >> Many thanks,
 >> -T
 >>

    On 2020-03-30 08:04, yary wrote:
 > This is a Windows explorer/shell issue. Search the web; this 
is one

 > approach - use cmd with some switches to start with the window
    minimized
 >

https://stackoverflow.com/questions/4277963/how-to-call-cmd-without-opening-a-window 


 >
 > I'm a fan of Emacs on all my platforms; their solution in Windows
    is a
 > tiny executable that opens Emacs without having the secondary 
shell

 > window, if I understand correctly.
 >
 > -y

    Rats.  I was hoping it was something in Raku's run string.

    Thank you for the CMD tip!


On 2020-03-30 19:08, Brad Gilbert wrote:

There is a bit in the executable that tells windows to open a terminal.

If you copy the executable to say rakudo_no_terminal.exe and change 
that bit in the copy, then Windows won't show you a terminal.


How/where do I change this bit?  Hex Edit?

I can see a lot of use for this!!


Thank you!
-T



Perhaps it is "Subsystem" field (inside the "Optional
Header Windows-Specific Fields (Image Only)" record
of

https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#optional-header-windows-specific-fields-image-only

change 3 (IMAGE_SUBSYSTEM_WINDOWS_CUI) to 2
(IMAGE_SUBSYSTEM_WINDOWS_GUI)?


Re: How do I open Raku in the background?

2020-03-31 Thread ToddAndMargo via perl6-users

On 2020-03-31 01:12, ToddAndMargo via perl6-users wrote:

On 2020-03-30 21:06, ToddAndMargo via perl6-users wrote:
On Mon, Mar 30, 2020 at 8:14 PM ToddAndMargo via perl6-users 
mailto:perl6-users@perl.org>> wrote:


 >> On Sun, Mar 29, 2020 at 8:44 PM ToddAndMargo via perl6-users
 >> mailto:perl6-users@perl.org>
    >> wrote:
 >>
 >> Hi All,
 >>
 >> Windows 10-1909 Pro
 >>
 >> raku -v
 >> This is Rakudo version 2020.01 built on MoarVM version
 >> 2020.01.1 implementing Perl 6.d.
 >>
 >> I am opening Raku from the registry with
 >>
 >> [HKEY_CLASSES_ROOT\*\shell\OpenWithFileAttributes.pl6\command]
 >> @="\"C:\\rakudo\\bin\\raku.exe\"
 >> \"K:\\Windows\\NtUtil\\FileAttributes.pl6\" \"%1\""
 >>
 >> Problem: up pops a big black box with Raku running it in.
 >> Is there a way to rid myself of the big black box?
 >> (I have pops for the information that is reported to
 >> the user.)
 >>
 >>
 >> Many thanks,
 >> -T
 >>

    On 2020-03-30 08:04, yary wrote:
 > This is a Windows explorer/shell issue. Search the web; this 
is one

 > approach - use cmd with some switches to start with the window
    minimized
 >
https://stackoverflow.com/questions/4277963/how-to-call-cmd-without-opening-a-window 


 >
 > I'm a fan of Emacs on all my platforms; their solution in 
Windows

    is a
 > tiny executable that opens Emacs without having the secondary 
shell

 > window, if I understand correctly.
 >
 > -y

    Rats.  I was hoping it was something in Raku's run string.

    Thank you for the CMD tip!


On 2020-03-30 19:08, Brad Gilbert wrote:

There is a bit in the executable that tells windows to open a terminal.

If you copy the executable to say rakudo_no_terminal.exe and change 
that bit in the copy, then Windows won't show you a terminal.


How/where do I change this bit?  Hex Edit?

I can see a lot of use for this!!


Thank you!
-T


Hi Rudy,

I know you'd know the answer!  Thank you!

-T

Do you know of a utility to do that for me?




Ooops, wrong group


What is operand 152 and 160?

2020-03-31 Thread ToddAndMargo via perl6-users

Hi All,

Windows 10-1909 Pro

raku -v
This is Rakudo version 2020.01 built on MoarVM version
2020.01.1 implementing Perl 6.d.

Running my program I get this at a call to
a sub in a module:

 operand type 160 does not match register type
 152 for op decont_u in frame WinCreateKey

What is operand 152 and 160?

Many thanks,
-T


Re: What is operand 152 and 160?

2020-03-31 Thread ToddAndMargo via perl6-users

On 2020-03-31 06:59, Tobias Boege wrote:

On Tue, 31 Mar 2020, ToddAndMargo via perl6-users wrote:

Hi All,

Windows 10-1909 Pro

raku -v
This is Rakudo version 2020.01 built on MoarVM version
2020.01.1 implementing Perl 6.d.

Running my program I get this at a call to
a sub in a module:

  operand type 160 does not match register type
  152 for op decont_u in frame WinCreateKey

What is operand 152 and 160?



A cursory look around the MoarVM and nqp sources leads me to believe
that they're bitmasks describing conditions of operands somewhere in
the bytecode. 152 would be uint32 and 160 an uint64, without any extra
flags set for them.



Hi Tobias,

I do have a unint32 and a unit64 kicking around, but I
am not finding where I am mismatching them.  The hunt continues.

Thank you!

-T


Re: What is operand 152 and 160?

2020-03-31 Thread Tobias Boege
On Tue, 31 Mar 2020, ToddAndMargo via perl6-users wrote:
> Hi All,
> 
> Windows 10-1909 Pro
> 
> raku -v
> This is Rakudo version 2020.01 built on MoarVM version
> 2020.01.1 implementing Perl 6.d.
> 
> Running my program I get this at a call to
> a sub in a module:
> 
>  operand type 160 does not match register type
>  152 for op decont_u in frame WinCreateKey
> 
> What is operand 152 and 160?
> 

A cursory look around the MoarVM and nqp sources leads me to believe
that they're bitmasks describing conditions of operands somewhere in
the bytecode. 152 would be uint32 and 160 an uint64, without any extra
flags set for them.

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk