Re: initializing Pointer

2023-12-23 Thread Marcel Timmerman
(perhaps already received but I'd got an error back saying '*Delivery has failed to these recipients or groups*' from.outl...@ifdog.com, So here it comes again.) Thanks Elizabeth and Todd; I will set up my own pointer routine, something like this method make-pointer ( $type, $value )

Re: initializing Pointer

2023-12-21 Thread Marcel Timmerman
Thanks Elizabeth and Todd; I will set up my own pointer routine, something like this method make-pointer ( $type, $value ) {   my $array = CArray[$type].new($value);   nativecast( Pointer[$type], $array) } I forgot the way to make the method type depended and how to search for it in the docs.

initializing Pointer

2023-12-20 Thread Marcel Timmerman
Hi, I would like to initialize a Pointer with some value but get an error. For example; my $a = Pointer[Str].new('text'); The error thrown: Default constructor for 'NativeCall::Types::Pointer[Str]' only takes named arguments The way I can do it now is by creating a CArray and then do a

Re: Raku regex assert doesn't match

2023-07-30 Thread Marcel Timmerman
On 30-07-2023 06:21, Darren Duncan wrote: Hello, I have a Raku regex question. See the following:     token nonquoted_alphanumeric_text     {     >     <[ A..Z _ a..z ]> <[ 0..9 A..Z _ a..z ]>*     } What I want is for "nonquoted_alphanumeric_text" to match any simple ASCII bareword

Re: Help with %?RESOURCES variable

2023-04-20 Thread Marcel Timmerman
On 17-04-2023 18:01, David Santiago wrote: sub MAIN(){ say %?RESOURCES{"text.txt"}.slurp(:close); } If you really want to use it from a MAIN you could make a lookup method in a module which can do the work for you (If  you are building modules anyway). use AModule; sub MAIN(){ say

Re: New doc site

2023-02-27 Thread Marcel Timmerman
On 27-02-2023 01:08, Will Coleda wrote: Since I know not everyone is on IRC: The updated raku.docs.org site is now live! Big thanks to everyone who helped make this happen! If you find any issues please let me know at https://github.com/raku/doc/issues - content

Re: What is this "\t"?

2022-11-29 Thread Marcel Timmerman
C macro definitions. The other types are fixed, like gboolean and just added to the list. The file is called Gnome::N::GlibToRakuTypes. On 29 Nov 2022, at 15:05, Marcel Timmerman wrote: On 29-11-2022 10:13, Francis Grizzly Smit wrote: Hi Francis, Personally I never use \name are I hate how

Re: What is this "\t"?

2022-11-29 Thread Marcel Timmerman
On 29-11-2022 10:13, Francis Grizzly Smit wrote: Hi Francis, Personally I never use \name are I hate how it looks, and so far I have never needed it, so unless I can find something it can do that I cannot do any other way, I'll keep on not using it To show an example where I could use it I

Re: author specification

2022-05-04 Thread Marcel Timmerman
of this auth field I think. There are others with the same issue. Best regards, Vadim Belman Thanks for your information, I'll wait for its outcome, Regards, Marcel On May 3, 2022, at 11:59 AM, Marcel Timmerman wrote: Hi Brad, Auth is for more than just the author. It is for author, authority

Re: author specification

2022-05-03 Thread Marcel Timmerman
me account name as someone else on cpan or fez it will show a difference in the auth field. So, I think there is a lot to ponder over Regards, Marcel On Mon, May 2, 2022, 3:23 PM Marcel Timmerman wrote: Hi, I was wondering about the 'auth' specification in the meta file or on

author specification

2022-05-02 Thread Marcel Timmerman
Hi, I was wondering about the 'auth' specification in the meta file or on the class/module/package. I was used to specify it as 'github:MARTIMM' because I store the stuff on GitHub for all the goodies it offers. Now I see//that fez wants to start with 'fez:' and when I look at the raku.land

Re: coercion

2022-02-11 Thread Marcel Timmerman
On 11-02-2022 15:58, Daniel Sockwell wrote: The question now is that I can't find anything about COERCE in the documentation. Yeah, COERCE definitely should be documented but just hasn't been yet. There's a raku/doc issue about needing to add it (https://github.com/Raku/doc/issues/3807) but

coercion

2022-02-11 Thread Marcel Timmerman
Hi, I stumbled over a discussion between Raku developers on "Raku/proplem-solving" issue 227 "Coercion reconsidered and unified" and I saw something interesting about coercion. Without much knowledge I started to experiment with a method called COERCE(). This ended successful and can now

pod questions

2021-07-19 Thread Marcel Timmerman
Hi, Still trying to find a way to have test code in my programs. Normally not executed but an imported class could make some sense of it. Others have tried already but I wanted to do the following which looks promising; =begin Gnome-T =begin code my Int $i = 10; =end code =end Gnome-T I

Re: searching for a blog

2021-07-18 Thread Marcel Timmerman
t the last one had a link to reddit and at the start there was the link I remembered; https://www.codesections.com/blog/raku-unit-testing-with-conditional-compilation/. My brain mixed up also on the use of pod docs, instead it was about using DOC blocks. Thanks again, Marcel On Jul 18, 2021

searching for a blog

2021-07-18 Thread Marcel Timmerman
Hi, I am searching for a blog of someone who explained how to write testing code next to the programs code. I believe the testing code was written in pod documentation. I am interested in the way it was done but can't find the blog anymore. Does anyone have a link to the blog for me?

Re: [naive] hash assingment

2021-07-14 Thread Marcel Timmerman
On 7/14/21 7:43 PM, Aureliano Guedes wrote: Hi all, Trying to knowing a little bit more about Raku lang, I decided to write a simple (as possible) lib to became similar to R/dplyr or Python/Pandas method to data wrangle. So, Raku gives us the possibility to deal with data in a functional 

native union structure

2021-06-01 Thread Marcel Timmerman
Hi, (I reposted this because I did not saw it appear on the mailing list and added some new info) I wanted to make a union to map some type to a byte array and back again so I started off like so; # example class I want to map to a byte array class N-GtkTargetEntry is repr('CStruct') is

Re: My OOP keeper

2021-02-14 Thread Marcel Timmerman
Hi Ralph, You are very right! Since I am working with the language binding of Raku to the Gnome libraries like Gtk I have seen that their code is neatly OO while written in C which does not know about classes and the like. Regards, Marcel

Re: My OOP keeper

2021-02-14 Thread Marcel Timmerman
Hi Todd, I would like to spend one line or two on your OOP keeper. One important aspect of object oriented programming is dat you encapsulate your knowledge into an object. That is, structures and other variables should be kept invisible to the user of your object. That way, you are able to

Re: Continuous testing

2020-12-29 Thread Marcel Timmerman
Maybe not the proper thread, ... but may be nice to know or even helpful ... Using native integers I did not know which integer to choose when a C type int was specified in a function signature. It is known that, depending on processor or compiler, an int could have 16 or 32 bits size and a

Re: Continuous testing

2020-12-29 Thread Marcel Timmerman
On 12/23/20 7:45 PM, JJ Merelo wrote: You can probably use AppVeyor. It's got good support for Windows, although you'll have to write for it specifically. This one seems to use it, for instance https://github.com/MARTIMM/gnome-native Hi Richard, JJ

Re: Pointer and OpaquePointer

2020-12-06 Thread Marcel Timmerman
Hi, I'm afraid that I've done something wrong somewhere else... Changed it all back to OpaquePointer and kept the same problem. So I must look into it deeper and just use the Pointer instead. Regards, Marcel

Pointer and OpaquePointer

2020-12-05 Thread Marcel Timmerman
Hi, I would like to know the difference between a Pointer and an OpaquePointer. I have found an entry in the FAQ where it stated that OpaquePointer is deprecated. My problem here is that the use of Pointer at several places gives irregular errors, hangups or mysterious crashes without stack

Re: Extended identifiers in named attributes

2020-08-28 Thread Marcel Timmerman
general, don't do that. By the way, "attributes" has a specific meaning in Raku, namely the fields of object instances. Regards, Marcel -- love, raiph On Wed, Aug 26, 2020 at 1:31 PM Marcel Timmerman <mailto:mt1...@gmail.com>> wrote: Hi everyone, I was experimentin

Re: Extended identifiers in named attributes

2020-08-26 Thread Marcel Timmerman
On 2020-08-26 17:48, Tom Browder wrote: On Wed, Aug 26, 2020 at 07:31 Marcel Timmerman <mailto:mt1...@gmail.com>> wrote: I was experimenting with extended identifiers and found that it is not possible to use it in named attributes. E.g. > sub a (:$x:y) { say $x:y; }

Extended identifiers in named attributes

2020-08-26 Thread Marcel Timmerman
Hi everyone, I was experimenting with extended identifiers and found that it is not possible to use it in named attributes. E.g. sub a (:$x:y) { say $x:y; } ===SORRY!=== Error while compiling: Unsupported use of y///. In Raku please use: tr///. --> sub a (:$x:y⏏) { say $x:y; } sub a

Re: delimiters with more than one character? ...

2020-07-16 Thread Marcel Timmerman
On 2020-07-16 15:17, Parrot Raiser wrote: Perhaps with a grammar? On 7/16/20, Tom Browder wrote: An opportunity for Raku golfers to show off Raku on the Debian users list. Best regards, -Tom -- Forwarded message - From: Albretch Mueller Date: Tue, Jul 14, 2020 at 07:52

Re: impact of compiling pod doc

2020-07-14 Thread Marcel Timmerman
you :-) El mar., 14 jul. 2020 a las 14:20, Marcel Timmerman (<mailto:mt1...@gmail.com>>) escribió: Hi, I was wondering if pod documentation has a large impact on compiling modules. I assume on small files it would be ignorable but I have some modules which have grown

impact of compiling pod doc

2020-07-14 Thread Marcel Timmerman
Hi, I was wondering if pod documentation has a large impact on compiling modules. I assume on small files it would be ignorable but I have some modules which have grown big, one has 7153 lines of which the biggest part is pod doc. Would it be useful to split such a file in two. one for code

Re: cannot create an instance of subset type

2020-07-11 Thread Marcel Timmerman
on places where variables are assigned or bound like in argument lists and never created anew. Then, like you said, the where clause is always useful, if not obligatory, otherwise one could use the original type. Regards, Marcel On Fri, Jul 10, 2020 at 3:18 PM Marcel Timmerman <mailto:

cannot create an instance of subset type

2020-07-10 Thread Marcel Timmerman
Hi, Using the next code I get an error on the instantiation of $d2; --- use v6; class ABC {   method s ( Int $i ) { say $i + 10; } } subset DEF of ABC; my ABC $a .= new; $a.s(10);   # 20 my DEF $d1 = $a; $d1.s(11);  # 21 my DEF $d2 .= new; $d2.s(12); --- Error is You cannot create an

Re: an error I don't understand

2020-07-01 Thread Marcel Timmerman
Solved! It had something to do with having an installed version and testing a program using a partly changed local version (renames of files too) and partly the installed version. This caused the same type from several sources and thereby making them differ. Removing the installed versions

Re: an error I don't understand

2020-06-27 Thread Marcel Timmerman
't know anything about it either. If you gave us answers for those two questions, we may be able to help you better. On Sat, Jun 27, 2020 at 10:56 AM Marcel Timmerman <mailto:mt1...@gmail.com>> wrote: Hi, I am getting an error and don't know why it happens, it might eve

an error I don't understand

2020-06-27 Thread Marcel Timmerman
Hi, I am getting an error and don't know why it happens, it might even be a bug. It is about an assignment to a CStruct variable. The structure is defined like; class cairo_path_data_point_t is repr('CStruct') is export {   has num64 $.x;   has num64 $.y;   submethod TWEAK ( :$native-object

Re: endian

2020-01-24 Thread Marcel Timmerman
On 1/23/20 6:28 PM, ToddAndMargo via perl6-users wrote: On Thu, Jan 23, 2020 at 11:51 AM ToddAndMargo via perl6-users mailto:perl6-us...@perl.org>> wrote:     Hi All,     This is just a trivia question.     Does anyone know if the actual data stored in     Raku variables is little endian or

Re: definition confusion of + and +^

2020-01-19 Thread Marcel Timmerman
On 1/19/20 2:47 AM, ToddAndMargo via perl6-users wrote: Hi All, Thank you all for the wonderful help on this. What I am still confused about is how to read these silly definition lines:   multi sub infix:<+>($a, $b --> Numeric:D)   multi sub infix:<+^>($a, $b --> Int:D) How exactly

Re: Bug to report: cardinal called an integer

2020-01-12 Thread Marcel Timmerman
On 1/9/20 7:10 PM, ToddAndMargo via perl6-users wrote: 'my uint32 $c; $c = "ABC";' The error shows that you cannot assign a string to an int (*This type cannot unbox to a native integer: P6opaque, Str*) You can do the following to get it right; 'p6  -e 'my uint32 $c; $c = 0xABC;''

Re: about 'use v6.d'

2019-12-13 Thread Marcel Timmerman
On 12/13/19 3:32 PM, Vadim Belman wrote: Hello Marcel, You make certain assumptions, then you make them something like facts and proclaim things based on these. Please, don't! Sorry that I did, apologies for that.

Re: implicit type change

2019-12-08 Thread Marcel Timmerman
than "byte"), but alas, no, so this feels like a bug On 8 Dec 2019, at 20:01, Marcel Timmerman wrote: Hello, I have a nasty problem using native call interface. I get an array of bytes from a call representing a pixel buffer. I am storing it in a CArray[byte]. Golfing it down it comes to

Re: implicit type change

2019-12-08 Thread Marcel Timmerman
, Gnome::Gdk3, Gnome::Gtk3, Gnome::Gtk3::Glade and more to come. On Sun, Dec 8, 2019 at 8:08 PM Marcel Timmerman <mailto:mt1...@gmail.com>> wrote: Hello, I have a nasty problem using native call interface. I get an array of bytes from a call representing a pixel buffer. I a

implicit type change

2019-12-08 Thread Marcel Timmerman
Hello, I have a nasty problem using native call interface. I get an array of bytes from a call representing a pixel buffer. I am storing it in a CArray[byte]. Golfing it down it comes to the following (REPL) > use NativeCall > my CArray[byte] $ba .= new( 255, 254, 3, 4);

Re: processing a file in chunks

2019-10-23 Thread Marcel Timmerman
, or the beginning of the second file? On Tue, Oct 22, 2019 at 2:08 PM Marcel Timmerman <mailto:mt1...@gmail.com>> wrote: On 10/22/19 3:03 PM, Parrot Raiser wrote: > CatHandle? Is that an alias for "tail"?  :-)* hehe, that's a nice word change... Well, I've see

Re: processing a file in chunks

2019-10-22 Thread Marcel Timmerman
s the same as a readonly IO::Handle can. Writing will throw exceptions. So in the end it looks like the Unix tail program. Marcel On 10/22/19, Marcel Timmerman wrote: On 10/22/19 1:05 PM, Marcel Timmerman wrote: On 10/20/19 11:38 PM, Joseph Brenner wrote: I was just thinking about the case of processi

Re: processing a file in chunks

2019-10-22 Thread Marcel Timmerman
On 10/22/19 1:05 PM, Marcel Timmerman wrote: On 10/20/19 11:38 PM, Joseph Brenner wrote: I was just thinking about the case of processing a large file in chunks of an arbitrary size (where "lines" or "words" don't really work).   I can think of a few approaches that would

Re: processing a file in chunks

2019-10-22 Thread Marcel Timmerman
On 10/20/19 11:38 PM, Joseph Brenner wrote: I was just thinking about the case of processing a large file in chunks of an arbitrary size (where "lines" or "words" don't really work). I can think of a few approaches that would seem kind-of rakuish, but don't seem to be built-in anywhere...

Re: order of execution

2019-10-22 Thread Marcel Timmerman
Thanks everyone, I wonder, should I file an issue at rakudo's? Marcel Programs are compiled in memory, it just isn't written out to disk. On Mon, Oct 21, 2019 at 3:33 AM Marcel Timmerman <mailto:mt1...@gmail.com>> wrote: @yary Thanks for your answer. I've done it to

Re: order of execution

2019-10-21 Thread Marcel Timmerman
l>. Technically, not a real operator; it's syntax special-cased in the compiler. -y On Sun, Oct 20, 2019 at 10:12 AM Marcel Timmerman <mailto:mt1...@gmail.com>> wrote: Hello all, I've a small question where I want to know what is processed first in the

order of execution

2019-10-20 Thread Marcel Timmerman
Hello all, I've a small question where I want to know what is processed first in the following line $my-object.?"my-method"(some-complex-argument-calculation()) Will the sub 'some-complex-argument-calculation()' always be run even when 'my-method' is not available because the sub must be

Re: missing info when a module is not found

2019-10-17 Thread Marcel Timmerman
Hi Vadim,  I've opened an issue #3238 for this Regards, Marcel Hi Marcel, Could you, please, open a ticket on github about this? Meanwhile, `perl6 --ll-exception` could possibly provide you with more details. Best regards, Vadim Belman On Oct 16, 2019, at 1:15 PM, Marcel Timmerman wrote

missing info when a module is not found

2019-10-16 Thread Marcel Timmerman
the possible cause could be is a `require ::($x)` somewhere, where this name is not visible, so I'd rather see a module/program name along with the line number. Regards, Marcel Timmerman

Re: nativecall and variable argument lists

2019-08-29 Thread Marcel Timmerman
ore Parameter.new(   type => Callable,   sub-signature => ),   ... Other parameters after   ), returns => int32);   }     ... like pera-int-f after } *From: *Vittore Scolari *Date: *Thursday, 29 August 2019 at 17:48 *To: *Marcel Timmerman ,

nativecall and variable argument lists

2019-08-29 Thread Marcel Timmerman
Hi, Is there a way to declare a native sub in such a way that it can handle variable argument lists? For example sprintf()? While I'm at it, another question; I need to define native subs which can receive a function as an argument to be used as a callback. Why do I have to specify the

Re: perl6's new name?

2019-08-18 Thread Marcel Timmerman
Hi David, I think you're right in this. While I like the name chosen by Eliza I also thought about the changes which will follow after the renaming. Like in documentation with mentions of perl6, websites, books, extensions of modules, programs and pod docs etc. If it comes to renaming,

Re: DEPRECATED routine

2019-08-05 Thread Marcel Timmerman
@JJ Merelo, I filed an the issue: 'extending the documentation of DEPRECATED #2938'

Re: DEPRECATED routine

2019-08-04 Thread Marcel Timmerman
in public Perl6. Could it become a module for user code to import from? Pros, cons, and what would it take to promote it to a documented routine? Marcel what's your use-case for DEPRECATED? -y On Sun, Aug 4, 2019 at 8:10 AM Marcel Timmerman <mailto:mt1...@gmail.com>> wrote: Thank

Re: DEPRECATED routine

2019-08-04 Thread Marcel Timmerman
n Sun, Aug 4, 2019 at 7:20 AM Marcel Timmerman <mailto:mt1...@gmail.com>> wrote: Hi all, Studying GTK::Simple if found about the existence of a routine DEPRECATED which I couldn't find in the Perl6 documents. Reading from the code I see that it needs 3 argum

DEPRECATED routine

2019-08-04 Thread Marcel Timmerman
Hi all, Studying GTK::Simple if found about the existence of a routine DEPRECATED which I couldn't find in the Perl6 documents. Reading from the code I see that it needs 3 arguments, start version of deprecation, version when it is removed and a string like in the 'is DEPRECATED()' trait. A

Re: module availability problem

2019-08-01 Thread Marcel Timmerman
Hi Elizabeth, I've never studied App::Mi6 but what I read in the Readme, this program is only a part of what Mi6 does (mi6 release). Have not looked at the code. How does that compare to App::Mi6 ?? (which also uses CPAN::Uploader::Tiny, btw). On 31 Jul 2019, at 20:08, Marcel Timmerman

Re: module availability problem

2019-07-31 Thread Marcel Timmerman
Hi JJ Merelo, Everything is ok now, I can install newest version. Thank you very much for finding this error. In the mean time I've been busy making an uploader yesterday which saves me some handwork making the git archive and uploading it to PAUSE using its webinterface. It makes use of

Re: module availability problem

2019-07-31 Thread Marcel Timmerman
p://modules.perl6.org> is correctly listed with the 0.17.4 version.But there was a problem when indexing: --- { "authors": [ "Marcel Timmerman" ], "build-depends": [ ], "depends": [ "Gnome::N", "Gnome::Gl

Re: module availability problem

2019-07-31 Thread Marcel Timmerman
Hi JJ Merelo, Takes a couple of hours, in general. What module was it? You obviously bumped up the version number, right? Yes I did. Available is Gnome::Gdk3 version 0.14.6 but on CPAN there's already 0.14.7 uploaded on wed 24th of Juli. El mié., 31 jul. 2019 a las 11:19, Marcel Timmerman

module availability problem

2019-07-31 Thread Marcel Timmerman
Hi, I've a problem with zef that it is not installing the newest module in town. I had uploaded a module a few days ago to CPAN to remove a bug but zef does not notice it. On http://modules.perl6.org/ I also see that there isn't the newest yet. How does the process work and how much time

Re: is inlinable trait missing from docs

2019-07-13 Thread Marcel Timmerman
ase. HTH   - Timo On 13/07/2019 12:51, Marcel Timmerman wrote: On 7/13/19 12:37 PM, Timo Paulssen wrote: I wouldn't put "is inlinable" in the docs; it requires the user to put a QAST tree in the value, which isn't a thing an end-user would touch, IMO. In fact I'm not sure why we have a t

Re: is inlinable trait missing from docs

2019-07-13 Thread Marcel Timmerman
o's source. On 13/07/2019 12:33, Marcel Timmerman wrote: Hi, I found out about a trait 'is inlinable' when I made a typo in using a trait on subs. There is no documentation for it so I thought maybe it is not implemented, experimental or some other reason it is kept out of the docs. Otherwise

is inlinable trait missing from docs

2019-07-13 Thread Marcel Timmerman
Hi, I found out about a trait 'is inlinable' when I made a typo in using a trait on subs. There is no documentation for it so I thought maybe it is not implemented, experimental or some other reason it is kept out of the docs. Otherwise it should be documented too. Great work on the

Re: gtk widget?

2019-04-24 Thread Marcel Timmerman
Please take note that the package is using GTK::V3 and that quite a few things are different compared to GTK::Simple. For that information please look at https://github.com/MARTIMM/gtk-v3 Good luck (because the documentation is still in its infancy :-o) Marcel On 4/22/19 2:56 PM, Timo

Re: hash copy

2019-03-24 Thread Marcel Timmerman
Hi Brad and Yari, Thanks very much for your in depth explanations. Regards, Marcel

hash copy

2019-03-24 Thread Marcel Timmerman
Hi, I was wandering if the following is an assignment or a binding (or binding of the entries); my Hash $sleep-wait = { :s1(4.3), :s2(2.1), :s3(5.3), :s4(10.4), :s5(8.7),}; my Hash $sleep-left = $sleep-wait; I noticed that in the following piece of code the $sleep-wait hash entries were

=begin comment as replacement for =begin data

2018-05-21 Thread Marcel Timmerman
Hi, I was trying to find a way to have data stored in the program script itself a la perl5 __DATA__. Perl6 has the =data pod structures to do that. But after a first test I got an error using $=data saying that it was not yet implemented. But, as the saying goes, there's more than one way to

Re: latest rakudo srtar not found

2018-04-16 Thread Marcel Timmerman
On 04/16/2018 05:02 PM, Siavash wrote: Hi, Rakudo.org was redesigned, apparently the new URL for you is: https://rakudo.org/latest/star/win64 The new download page: https://rakudo.org/files Thanks, these links help Regards, Marcel

latest rakudo srtar not found

2018-04-16 Thread Marcel Timmerman
Hi, I was used to download the latest rakudo star install file for testing on appveyor using url http://rakudo.org/downloads/star/rakudo-star-latest-x86_64 (JIT).msi. Messages returned are Error downloading remote file: One or more errors occurred. Inner Exception: Remote server returned

Re: [perl #132316] AutoReply: [Double Free] Crash while running program

2017-10-31 Thread Marcel Timmerman
On 10/17/2017 08:37 PM, perl6 via RT wrote: I've modified the BSON code quite a bit thanks to examples from Zoffix, crashes are gone! Also I changed the parts encoding the document due to hangups I still experienced. This was still a problem of which I thought I had fixed it, issue #20

Re: [perl #132316] [SEGV] Crash while running program (MongoDB module)

2017-10-28 Thread Marcel Timmerman
Hi @Zoffix Znet Do you have any pointers or howto's to write thread-save code? Otherwise I'd remove all of the promises. It gave some other problems in the past. Regards Marcel On Thu, 26 Oct 2017 06:04:51 -0700, alex.jakime...@gmail.com wrote: FWIW, when toasting I observed double free or

Re: [perl #132316] [Double Free] Crash while running program

2017-10-18 Thread Marcel Timmerman
On 10/17/2017 09:27 PM, Timo Paulssen via RT wrote: if you can, please re-compile MoarVM passing the same options that were used before (you can find them on the first screenfuls of the Makefile inside moarvm's source folder) to Configure.pl but also include --debug=3 and --optimize=0. This is

Re: [perl #132316] [Double Free] Crash while running program

2017-10-18 Thread Marcel Timmerman
@Aleks-Daniel Jakimenko-Aleksejev How can I reproduce this issue? What code did you use? Well, 1) Install a mongod server and start it up. Its address  might be 127.0.0.1:27017 which is the default for mongod servers. Servers can be downloaded using $ curl -O

thread behavior

2017-09-04 Thread Marcel Timmerman
Hi, I was wondering about the following, When an Exception is thrown in a thread and is CATCHed in another object, will that block be run in the same thread as the Exception is thrown? Thanks in advance, Marcel

Re: [perl #131780] [Double Free] Crash while running test

2017-07-22 Thread Marcel Timmerman
On 07/22/2017 12:03 PM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: Is there any code snippet to reproduce it? The backtrace mentions mongo-perl6-driver… True, its in the mongodb driver project. The test is in the attachment and it crashed around line 98 or 99. Just finished the 'Find

Re: [perl #131493] changed type of variable

2017-06-03 Thread Marcel Timmerman
After some discussion I've understood that I have to do some homework and that this bug can be closed. Thanks Jnhtn and Araraloren for your help Regards, Marcel

Re: [perl #131493] changed type of variable

2017-06-03 Thread Marcel Timmerman
On 06/03/2017 11:36 AM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: sub s (Str() :$str) {say $str.WHAT}; s(:str<1>) # IntStr sub s (Str :$str) {say $str.Str.WHAT}; s(:str<1>) # Str I think the last one is coerced explicitly. Btw I didn't know about 'Str() :$str' specification. What does it

Re: [perl #131493] changed type of variable

2017-06-03 Thread Marcel Timmerman
On 06/03/2017 11:36 AM, Aleks-Daniel Jakimenko-Aleksejev via RT wrote: say IntStr ~~ Str > say Str ~~ IntStr False

Re: list named argument in MAIN

2017-06-01 Thread Marcel Timmerman
On 06/01/2017 03:03 PM, H.Merijn Brand wrote: On Thu, 1 Jun 2017 14:11:47 +0200, Timo Paulssen wrote: It seems like this only works if you supply --dirs= multiple times perl6 -e 'sub MAIN (List :$dirs=[]) { .say for @$dirs }' --dirs=d1 --dirs=d2 --dirs=d3 d1

Re: list named argument in MAIN

2017-06-01 Thread Marcel Timmerman
On 06/01/2017 02:11 PM, Timo Paulssen wrote: It seems like this only works if you supply --dirs= multiple times perl6 -e 'sub MAIN (List :$dirs=[]) { .say for @$dirs }' --dirs=d1 --dirs=d2 --dirs=d3 d1 d2 d3 HTH - Timo Thanks Timo, Just tested this and it works. But

list named argument in MAIN

2017-06-01 Thread Marcel Timmerman
Hi, How can I read a list of items from the command line. Something like; mkdir.pl6 --dirs=d1,d2,d3 I thought I could do something like; sub MAIN (List :$dirs=[]) { mkdir($_) for @$dirs; } But it keeps displaying the usage message Greetings, Marcel

Re: run() not capturing exitcode properly?

2017-05-30 Thread Marcel Timmerman
.out.close; $p.exitcode; ---> 2 Marcel Timmerman

Re: naming a class

2017-05-28 Thread Marcel Timmerman
On 05/28/2017 12:04 PM, Elizabeth Mattijsen wrote: On 28 May 2017, at 11:49, Marcel Timmerman <mt1...@gmail.com> wrote: I've a question about naming a specific class. It is about the type Decimal128 which I need in BSON. For the moment I want it to hold a number and in BSON to

naming a class

2017-05-28 Thread Marcel Timmerman
Hi, I've a question about naming a specific class. It is about the type Decimal128 which I need in BSON. For the moment I want it to hold a number and in BSON to encode and decode it to a byte stream. Later I can add specific operations and other known decimal types. I am thinking of the

problem converting Inf and NaN

2017-05-27 Thread Marcel Timmerman
Hi, In perl6 version 2017.04.3-287-g3e7675a built on MoarVM version 2017.04-64-g6d5ea04 implementing Perl 6.c. I observe the following; my Num $num = Inf; my FatRat $f = $num.FatRat; Type check failed in assignment to $f; expected FatRat but got Rational[Num,Int] (?) in block at line

Re: [perl #131242] Bug IO::Path method move

2017-05-02 Thread Marcel Timmerman
Thanks very much Marcel

Re: [perl #130492] subtest fails on windows

2017-01-03 Thread Marcel Timmerman
Sorry for the false alarm. I need to find out how to get the latest version on appveyor. It was fixed on a very early date, 2016.4 if I recall it correctly, Anyways, thanks Marcel On January 3, 2017 2:50:31 PM "Zoffix Znet via RT" wrote: On Tue, 03 Jan 2017

Re: [perl #128289] localhost in IO::Socket::INET

2016-05-30 Thread Marcel Timmerman
Hi, Yes you can close it. Thanks, Marcel On May 29, 2016 10:32:16 PM "Sam S. via RT" wrote: Does this mean that the current IO::Socket::INET bahavior is fine and the ticket can be closed?

Re: [perl #128036] Bug filling hash using $_

2016-05-01 Thread Marcel Timmerman
Hi, Thanks for the explanation, sorry for creating the bug entry. regards, Marcel On May 1, 2016 1:28:58 PM "Sam S. via RT" wrote: PS: Or if you don't like the `hash` keyword, you can use the %( ) contextualizer which does the same thing: my Hash $h = %(

Re: Union

2016-04-11 Thread Marcel Timmerman
Hi Thanks for your answer. I was thinking in perl6, I should have been more  explicit. At the moment I am converting Num to a float representation in my  BSON module and was wondering if there where easier ways and maybe faster too. Regards, Marcel --- Forwarded message --- From: Marcel

Union

2016-04-11 Thread Marcel Timmerman
Hi, While the perl language already offers so much I have a question not found in perl Is there anything like the C union to do an easy mapping from some native variable to a buf of the same number of bytes? This is a nice helper for pack/unpack for native values. It is important to know

Re: [perl #126688] bug detecting circular dependencies

2016-03-27 Thread Marcel Timmerman
There should be already several bug reports mentioning this. I and someone else have reported this. I forgot the bug numbers though, I am on a vacation and therefore not able to find the bug number, sorry Marcel Timmerman On March 27, 2016 6:47:08 PM Carl Mäsak via RT <perl6-bugs-fo