Re: Working at FOSDEM

2020-01-04 Thread Andrew Shitov
Hi guys!

Thanks for the reaction. I passed the table to TPF, I hope they can make a
good use of it.

I will ask Stuart to contact you.


On Sat, 4 Jan 2020 at 20:12, Patrick Spek via perl6-users <
perl6-us...@perl.org> wrote:

> On Fri, 3 Jan 2020 15:43:23 +0100
> Andrew Shitov  wrote:
>
> > Hi,
> >
> > On 1-2 Feb, I have secured a table at the FOSDEM exhibition area.
> > Unfortunately, I found nobody who confirmed they can help at the
> > location for at least 1/2 day. What needs to be done there is to talk
> > to people passing by and tell them about Raku and its advantages.
> > Please let me know if somebody wants to join.
> >
> > Regards
> >
> > --
> > Andrew Shitov
> > __
> > a...@shitov.ru | http://shitov.ru
>
> I am planning to be in Brussels for FOSDEM, and I can more than likely
> spend some time at the Raku table!
>
> --
> With kind regards,
>
> Patrick Spek
>
>
> www:  https://www.tyil.nl/
> mail: p.s...@tyil.nl
> pgp:  1660 F6A2 DFA7 5347 322A  4DC0 7A6A C285 E2D9 8827
>
> social: https://soc.fglt.nl/tyil
> git:https://gitlab.com/tyil/
>
-- 
Andrew Shitov
__
a...@shitov.ru | http://shitov.ru


Working at FOSDEM

2020-01-03 Thread Andrew Shitov
Hi,

On 1-2 Feb, I have secured a table at the FOSDEM exhibition area.
Unfortunately, I found nobody who confirmed they can help at the
location for at least 1/2 day. What needs to be done there is to talk
to people passing by and tell them about Raku and its advantages.
Please let me know if somebody wants to join.

Regards

--
Andrew Shitov
__
a...@shitov.ru | http://shitov.ru


Re: Perl6 vs Julia

2019-12-08 Thread Andrew Shitov
Let’s not hide the fact that Julia development raised 4.6 million dollars
and the language is production-ready.

On Sun, 8 Dec 2019 at 12:46, JJ Merelo  wrote:

> It might have been, but syntax is more Python-like to the point that in
> some cases it's exactly the same. It's got a very extensive macro systems,
> which enables it to work concurrently, for instance. It's more
> scientific-computing oriented, which means that there are all sort of
> mathematical modules for it, and not so many for web, databases, or things
> like that.
>
> El dom., 8 dic. 2019 a las 4:38, Tom Blackwood ()
> escribió:
>
>> Hello
>>
>> How do you think of Julia language?
>>
>> https://en.wikipedia.org/wiki/Julia_(programming_language)
>>
>> It says it is also influenced by perl language.
>>
>> Regards
>>
>
>
> --
> JJ
>
-- 
Andrew Shitov
__
a...@shitov.ru | http://shitov.ru


Re: Perl6 -> Raku? whats the scope?

2019-10-15 Thread Andrew Shitov
> The coming weeks / months / years, the name "Perl 6" will be replaced by
"Raku".

To my opinion, should be done before this year's Christmas. At least
everything that can be done by the "Perl 6 team" (whatever it is).

On Tue, Oct 15, 2019 at 5:48 PM Elizabeth Mattijsen  wrote:

> > On 15 Oct 2019, at 17:43, N6Ghost  wrote:
> > Starting to see posts, as if the decision was made already but have not
> see any offical
> > post anywhere, i can find. everything seems to flow from a thread on
> github somehwere
> > anyone know anything on the rename? is it "Raku" ?
>
> The decision to rename "Perl 6" to "Raku" has been made.  The coming weeks
> / months / years, the name "Perl 6" will be replaced by "Raku".  Please
> note that this is a delicate process, both emotionally as well as
> technically.
>
>
> Liz



-- 
Andrew Shitov
__
a...@shitov.ru | http://shitov.ru


Re: Perl6 -> Raku? whats the scope?

2019-10-15 Thread Andrew Shitov
Hi,

Here's what Larry Wall said:
https://github.com/perl6/problem-solving/pull/89?fbclid=IwAR2rrjkuKJTWBPX6bobZTfeSj4VePT9HmEsunlLtD_XeP9g06RFsk-y0kHw#pullrequestreview-300789072

For me, there can be no other "official" announcement. The new name is Raku.

On Tue, Oct 15, 2019 at 5:43 PM N6Ghost  wrote:

> Starting to see posts, as if the decision was made already but have not
> see any offical
> post anywhere, i can find. everything seems to flow from a thread on
> github somehwere
> anyone know anything on the rename? is it "Raku" ?
>
> -N6Ghost
>


-- 
Andrew Shitov
__
a...@shitov.ru | http://shitov.ru


Re: learning resources for perl6 beginner

2019-08-24 Thread Andrew Shitov
https://perl6.online/perl6-at-a-glance/

http://docs.perl6.org


On Sat, 24 Aug 2019 at 13:13, Wesley Peng  wrote:

> Hello,
>
> I am a programmer most time writing code with c/perl 5/ruby.
>
> I know perl6 is coming to the world, have the interest to take a glance on
> it.
>
> For beginner of perl6, can you suggest some resources including online
> documentation or books to get start?
>
> thanks & regards
> Wesley
>
-- 
Andrew Shitov
__
a...@shitov.ru | http://shitov.ru


Re: Rakudo Perl 6 development release #28 (Moscow)

2010-04-22 Thread Andrew Shitov
Moscow.pm also reminds that today (22 Apr) is the birthday of Lenin :-)

 March 2010 development release of Rakudo Perl #28 Moscow.

-- 
Andrew Shitov
__
a...@shitov.ru | http://shitov.ru


Re: [ANN] SF parrot win32

2007-12-10 Thread Andrew Shitov
 You must install Parrot in C:\usr\local\parrot-0.5.0 (the letter drive
 could be change).

C:\usr\local\parrot-0.5.0bin/parrot languages/perl6/perl6.pbc
load_bytecode couldn't find file 'Protoobject.pbc'
current instr.: 'parrot;PGE::Match;__onload' pc 0
(compilers/pge/PGE/Match.pir:14)
called from Sub 'parrot;Perl6::Compiler;__onload' pc 0 (perl6.pir:30)

called from Sub 'parrot;Perl6::Compiler;main' pc -1 ((unknown file):-1)



Should some PATH be set before? (and there is no file Protoobject.pbc
in the dist).

-- 
Andrew Shitov
__
[EMAIL PROTECTED] | http://www.shitov.ru


Re: [ANN] SF parrot win32

2007-12-05 Thread Andrew Shitov
 I have no personal web site, so I create the project parrotwin32 on 
 sourceforge : http://parrotwin32.sourceforge.net/

Cool, and I also promoted it at http://perl6.ru/parrotwin32/.


But an attempt to run perl6.pbc faied:

C:\Program Files\parrot-0.5.0-develbin/parrot.exe languages/perl6/perl6.pbc
load_bytecode couldn't find file 'PGE.pbc'
current instr.: 'parrot;Perl6::Compiler;__onload' pc 0 (perl6.pir:30)
called from Sub 'parrot;Perl6::Compiler;main' pc -1 ((unknown file):-1)

Probably setup.exe have to update an environment also?


--
Andrew Shitov
__
[EMAIL PROTECTED] | http://www.shitov.ru



Re: explicit line termination with ;: why?

2007-05-14 Thread Andrew Shitov
 I don't want to argue about the design of perl6[1], I just wonder: why
 the semicolon is still needed in the end of lines in perl6?

JavaScript allows to omit semicolumn. In lecture at Yahoo's YUI
Theatre one of JS's gurus talked about how it is organized in
JavaScript parser.

If the line of code is not ended with ';' the parser tries first
to assume that the next line continues current one. If then syntax error
occurs, the parser _goes_back_ and make another asumption that previous
line was ended with semicolumn.

Probably there are much more than one way to implement ';'-less but it
either slows down the compiler or makes grammar more complex.

And in fact Perl 6 already allows not to type ';' at the end of
{block} ;-)

The following simple snippets work correctly with Pugs and perl5:

 perl 6
sub debug ($value)
{
say $value
}
debug 'me'


# perl 5
sub debug
{
   print shift
}
debug 'me'


And finally, Perl is not an Assembler with one only instrucion per
line.


--
Andrew Shitov
__
[EMAIL PROTECTED] | http://www.shitov.ru



Re[2]: explicit line termination with ;: why?

2007-05-14 Thread Andrew Shitov
 JavaScript allows to omit semicolumn.

Sorry, s/lumn/lon/.

By the way, Perl also ignors semicolumn :-)



--
Andrew Shitov
__
[EMAIL PROTECTED] | http://www.shitov.ru



Re[2]: explicit line termination with ;: why?

2007-05-14 Thread Andrew Shitov
 Aankhen wrote:

 Speaking of JavaScript, any experienced JavaScript programmer will
 tell you that while semi-colons are in fact optional, you should
 always treat them as mandatory, to avoid subtle errors creeping into
 your code.

We should also note that the idea of omitting ';' is not as simple as
\n always means ;\n. In mentioned JavaScript language one can
do this:

script
var
x
=
123
alert
(
x
)
/script

and that will work!

;\n can almost always be converted into \n but not vice versa.


--
Andrew Shitov
__
[EMAIL PROTECTED] | http://www.shitov.ru



Is Perl 6 too late?

2007-05-03 Thread Andrew Shitov
=HI!
To avoid any uncertainty: the subject is a parody for similar
discussion on perl6-internals@ about Parrot.


=FOREWORD
What I want to say is that after N years of developing Perl 6 we do
not have a practical (P in Perl stands for Practical) tool which can
work in real life.

Even worse: today there is no way to speed up the interpreter - it is
good for parsing the language but is very slow for real applications.
(mod_pugs is not the case while there is no command-line tool).


=EXPLANATION
We have Pugs to play with. We have no tool to run with.

Current Pugs have options to compile the programme into several
intermediate languages, for example PIR:

You can
pugs -CPIR helloworld.pl  helloworld.pir

But you cannot later do this:
pugs -BPIR helloworld.pir

Standalone parrot does not help.


=WHAT IS TO BE DONE
What is nedded is a very simple step: complete the Pugs compiler so
that it could provide good PASM (PIR). Going this way we will achieve
the main goal: it will be possible to use hi-speed applications
written in Perl 6 today. No care the language itself is not fully
standardized.

It will change the status of 'conception' and 'project'
to 'utilizing' and 'using'.


=CUT
A bit of fun is that three years ago the situation was better: language
was more poor, the tools for more pure. In April of 2004 I made
a toy server with demos of how real Perl 6 works on a web-server. There
was a bit of examples with comments in Russian that were written on
real Perl 6 of that day, compiled into Parrot bytecode (.pbc) and run
on Apache under Parrot virtual machine. I cannot do the same with
today's instrumentary (or maybe I do not know how to?).


Thank you for understanding :-)


--
Andrew Shitov
__
[EMAIL PROTECTED] | http://www.shitov.ru



Executing Perl 6 code using PIR backend

2007-04-15 Thread Andrew Shitov
Hi perlers,

maybe I have missed something but I cannot run pugs with -C option.

Initial goal was to compile Perl 6 programme into bytecode and run it
(with parrot or even mod_parrot).

First step is to convert the simpliest code test.p6 which contains

   say 'Hi!';

into .pir-file, so I typed

   pugs -CPIR test.p6  test.pir

and really received test.pir file.

What to do next? There are two ways in mind: either use pugs -B or
parrot.

When I call pugs with an option -B

   pugs -BPIR test.pir

an error occured:

***
Unexpected '
expecting comment, operator, statement modifier, ; or end of input
at h.pir line 2, column 6

Looks like -BPIR is totally ignored. The same error you will get if
simply run pugs test.pir.

OK, trying to use parrot for executing PIR-code:

   parrot test.pir

Plenty of errors this time:

error:imcc:syntax error, unexpected DOT
in file 'h.pir' line 7
error:imcc:syntax error, unexpected DOT
in file 'h.pir' line 180
error:imcc:syntax error, unexpected DOT
in file 'h.pir' line 194
. . .

All these 'unexpected DOT' messages correspond to staments in PIR-source with
'new' instruction such as

   $P8 = new .PerlArray


Would anyone tell me how to deal and live with it? :-)


Pugs -v is 6.2.13 and parrot -V is 0.4.10 --without-icu on i386-linux.
   

--
Andrew Shitov
__
[EMAIL PROTECTED] | http://www.shitov.ru



Re[2]: Minimum modules for Production?

2006-05-30 Thread Andrew Shitov
 2) XML::Parser;

Should come with an XSLT-processor (libxslt).

--
Andrew Shitov
__
[EMAIL PROTECTED] | http://www.shitov.ru



Re: CGI on 6

2006-05-28 Thread Andrew Shitov
 sixwiki? a plixi? erm-) I think the first hurdle would be getting
 CGI going on 6. Is this already proven? If so how?

Not first ;-)

http://real.perl6.ru/p6/environment/
http://real.perl6.ru/p6/querystring/?one=alphatwo=betathree=gammaemptyfour=delta

http://real.perl6.ru/p6/cookie/ (refresh twice)

http://real.perl6.ru/p6/queryhash/?one=alphatwo=betathree=gammaemptyfour=delta

--
Andrew Shitov
__
[EMAIL PROTECTED] | http://www.shitov.ru



Re[2]: perl 6 hosting?

2006-05-25 Thread Andrew Shitov
GS The hard part is to make sure they won't write code to exploit other sites 
or
GS create hug load on your machine...

Any idea of how to avoid endless loops? :-)

Restricting execution time?

--
___
Andrew, [EMAIL PROTECTED]
___



Re: perl 6 hosting?

2006-05-23 Thread Andrew Shitov
 updated with the latest releases. However, if someone had already done
 that, why not let folks log in remotely via shell accounts and try out
 the latest version on that computer?

I have played with server-side Perl 6 m-m-m about two years ago:
http://real.perl6.ru/. Wokrs well since April 2004, even today ;-)

Can you imagine that Parrot 0.1.0 built for i386-freebsd lives there.

--
Andrew Shitov
__
[EMAIL PROTECTED] | http://www.shitov.ru



Re[2]: Whitespace

2005-08-06 Thread Andrew Shitov
 : so why not 'print($x)' == 'print ($x)' ;-)

 Plus we got rid of Perl-5's no-op unary +, so instead we're using
 whitespace to force it to be a list operator.

Thanks! I've got the idea.

I'd better refuse parenthesis than a space here. I think I'll never
drop space in a function call if it can be overcome :-)

--
___
Andrew, [EMAIL PROTECTED]
___



Unable to run perl 6 test under Parrot 0.2.x

2005-08-05 Thread Andrew Shitov
 Parrot 0.2.3 Serenity Released!

Possibly I'm growling again but I cannot run any Perl 6 programme with
new Parrots.

One-liner test.p6 containing 'print perl 6;' is compiled to test.imc and 
cause an error:

C:\parrot-0.2.3\languages\perl6perl perl6 test.p6
error:imcc:syntax error, unexpected IDENTIFIER, expecting '\n' or COMMA in file 
'test.imc' line 61
Error: 'C:/parrot-0.2.3\parrot.exe -r test.imc ' failed with exit code 18
Stopped at perl6 line 351
main::mydie(4608, 'C:/parrot-0.2.3\parrot.exe -r test.imc ') called at 
perl6 line 844
main::pass4('test.imc', 'test.warn') called at perl6 line 766
main::pass2('test.imc', 'test.warn') called at perl6 line 459
main::output_tree('P6C::prog=ARRAY(0x2c5aa40)', 'test.p6', 'test.warn') 
called at perl6 line 524
main::pass1('Parse::RecDescent=HASH(0x2b2c43c)', 'test.p6', 
'test.warn', 'undef') called at perl6 line 586
main::run() called at perl6 line 231



Line 61 in test.imc is here:

.sub __main @MAIN
new_pad 0
call __setup



pop_pad
end
.end

.sub _main prototyped ### line 61
.param PerlHash Sunknown_named1 # named args
# Argument handling
  if I0 goto L_got_params2
L_got_params2:
# Named locals:

find_lex $P1, print



Thanks in advance.

--
___
Andrew, [EMAIL PROTECTED]
___



Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Andrew Shitov
 I am glad to announce Pugs 6.2.9, released during Ingy's OSCON talk:

 http://pugscode.org/dist/Perl6-Pugs-6.2.9.tar.gz
 SIZE = 1439642
 SHA1 = efd32419dcddba596044a42564936888a28b3c69

 Following last month's plan, this release features a Perl6/PIL to javascript
 code generator, written in Perl 5, currently passing 64% of the test suite.

 We also see the beginning of a code generator from PIL to perl5, and a
 self-representing Perl 6 object model prototype.  The new PIL design and
 runcore is also progressing nicely, which should give a more robust
 specification to Perl 6's compile time and runtime semantics.

 A live CD is available as usual, courtesy of Ingo Blechschmidt:

 http://linide.sf.net/pugs-livecd-6.2.9.iso

 Ingy's slides are under the Pugs tree as
 docs/talks/oscon-apocalypse.spork and
 online at http://www.kwiki.org/apocalypse/start.html in HTML.

 All in all, it's a lot of fun.  Check out the two movies we made for the
 OSCON talk as well:

 http://no.perlcabal.org/~autrijus/oscon05-autrijus.mp4
 http://no.perlcabal.org/~autrijus/oscon05-stevan.mp4

 Change the .mp4 to .swf or .wmv for alternate video formats.
Very simple question:

why do we have to give up a space when calling functions under Pugs?

A need to type open('file.txt') instead of open ('file.txt') makes
me perplexing (not perl-flexing ;-) Our recent discussions in 'zip with()'
gave no answer.

--
___
Andrew, [EMAIL PROTECTED]
___



Re[2]: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Andrew Shitov

 why do we have to give up a space when calling functions under Pugs?

 Not sure whether it's enough of an answer, but see:
 http://dev.perl.org/perl6/doc/design/syn/S04.html#Statement_parsing

it says:

if $term ($x)   # syntax error (two terms in a row)


if this cause an error, why not treat '$term ($x)' as a function call.
At least when $term is not some abstract variable but valid name of simple
function.

--
___
Andrew, [EMAIL PROTECTED]
___



Re: Whitespace

2005-08-04 Thread Andrew Shitov


print (1+2)*3;

can print 9, instead of 3.


I'd prefer always have '3' (as a result of sum 1 + 2) here.
A C-programmer would tread this like

(print (1 + 2) * 3); # prints int, then returns void


print (or do)? And is

   print .(1+2)*3

allowed?


in fact, that is exactly

(print.getArgument(3) * 3); the same as above.

so why not 'print($x)' == 'print ($x)' ;-)

--
Andrew.



Re: $pair[0]?

2005-08-04 Thread Andrew Shitov
 say $pair[0];  # a?

It looks like $pair is an arrayref while 'say ref $pair' tells 'Pair'.

And may I ask a relating question:

my $pair = ('name' = 'age');
say $pair{'name'}; # prints 'age'
say $pair['name']; # why prints 'name'? == question
say $pair['age']; # prints 'name'


--
___
Andrew, [EMAIL PROTECTED]
___



Re[2]: zip with ()

2005-08-01 Thread Andrew Shitov
Is it possible to avoid significance of whitespaces?

I think, such an aspect of Perl 6 would be awful.

IB Whitespace is significant:

IB say zip(@odd, @even);
IB say zip (@odd, @even);

--
___
Andrew, [EMAIL PROTECTED]
___



Re[2]: zip with ()

2005-08-01 Thread Andrew Shitov
TTS BTW, you didn't mean originally:

TTSsay zip (@odd), (@even); # prints 13572468 or 12345678?

That is exactly like with similar printing result of sub() call:

 print sqrt (16), 5; # shout print 45.



--
___
Андрей, [EMAIL PROTECTED]
___



Re[2]: zip with ()

2005-08-01 Thread Andrew Shitov
LP my $x = (1,2,3,4,5);
LP Looks like an error more than anything else.

'Perl 6 and Parrot Essentials' think different ;-)

--
___
Andrew, [EMAIL PROTECTED]
___



zip with ()

2005-07-31 Thread Andrew Shitov
Hi,

I tried zip under pugs.

my @odd = (1, 3, 5, 7);
my @even = (2, 4, 6, 8);
my @bothA = zip @odd, @even;
print @bothA;

This code prints 12345678 as expected.

After parenthesis were used to group zip arguments, results changes
to 13572468. Is it right?

--
___
Andrew, [EMAIL PROTECTED]
___



Re: Why do users need FileHandles?

2004-07-18 Thread Andrew Shitov
DW   my $text is TextFile(/tmp/bar);
DW   $text = hello; # writes, truncates
DW   $text ~= , world\n; # appends

DW   $text.print again\n; # for old-times sake

Anyhow we still need $text.flush() or $text.close() methods.

--

, [EMAIL PROTECTED]




Re: unicodian monospace fonts for windows(?)

2004-06-20 Thread Andrew Shitov
AT oh my.. it seems to me, that Perl6 starts new age of ASCII-graphics. (not
AT ASCII, really.. maybe Uni-graphics?)..

I hardly think Perl 6 should avoid any characters other than ASCII.

For example we have at least three Russian encodings and it is
acceptable only because we have no choice: we face the fact that we
have lots of encodings.

As long as Perl 6 is still in the phase of development, it is possible
to buid the language that use PLAIN characters.

--

Andrew, [EMAIL PROTECTED]




How to read and write files?

2004-04-17 Thread Andrew Shitov
I think I have somesing missed: is it possible to open (that is read and 
write) files in perl6 programmes? Those programmes that can be run under
current parrot release.

Thanks.



How to get environment variables?

2003-11-03 Thread Andrew Shitov
Is it possible to get environment variables from perl6 programme? It 
failes when I try to use perl5 hash %ENV. Thanks.



Re: How to get environment variables?

2003-11-03 Thread Andrew Shitov
I tried this one-line programme for example:

my %e = %ENV;

and got this (parrot-0.0.13/perl are built under mandrake linux):

Global '_HV_ENV' not found
Error: '/parrot-0.0.13/parrot -r env.imc ' failed with exit code 1
Stopped at /parrot-0.0.13/languages/perl6/perl6 line 339
	main::mydie(256,'/parrot-0.0.13/parrot -r env.imc ') called at 
/parrot-0.0.13/languages/perl6/perl6 line 819
	main::pass4('env.imc','env.warn') called at 
/parrot-0.0.13/languages/perl6/perl6 line 741
	main::pass2('env.imc','env.warn') called at 
/parrot-0.0.13/languages/perl6/perl6 line 435
	main::output_tree('P6C::prog=ARRAY(0x8ef6e5c)','env.p6','env.warn') 
called at /parrot-0.0.13/languages/perl6/perl6 line 500
	main::pass1('Parse::RecDescent=HASH(0x8f2ed70)','env.p6','env.warn','undef') called at /parrot-0.0.13/languages/perl6/perl6 line 562
	main::run() called at /parrot-0.0.13/languages/perl6/perl6 line 219

Are you sure you're using the Perl 6 hash syntax? (%ENV{FOO} rather than Perl
5-style $ENV{FOO})
What version of Perl 6 are you using?