Naming a module that deals with the meta-object protocol

2019-04-08 Thread Ben Davies
I wrote a small sum type module that subclasses Perl6::Metamodel::SubsetHOW. I was thinking of naming it either Type::Sum or Metamodel::SumHOW, but Type::Sum doesn't follow the style Rakudo uses for naming MOP classes, and Metamodel::SumHOW may not be a good name because it'd leak the module in

Would libkvm bindings be useful to have?

2019-05-09 Thread Ben Davies
libkvm allows you to arbitrarily read/write memory (whether or not this is allowed depends on the OS and its configuration), get metadata about processes and files, get system load, and get kernel symbol information. Would it be useful to have bindings for this?

Re: Would libkvm bindings be useful to have?

2019-05-09 Thread Ben Davies
On second thought, libkvm differs too much between OSes for this to be possible to write portably. On 2019-05-09 8:17 p.m., Ben Davies wrote: > libkvm allows you to arbitrarily read/write memory (whether or not this > is allowed depends on the OS and its configuration), get metadata

Which TELNET options need to be supported in Net::Telnet?

2019-05-12 Thread Ben Davies
Net::Telnet is just about ready for release v0.0.1 now. Since it's on the most wanted modules list, I figured someone out there needs it and knows how the protocol works. Currently, the library supports the TRANSMIT_BINARY, SGA, ECHO, and NAWS options. I'm planning on gradually adding support f

Re: cannot create an instance of subset type

2020-07-11 Thread Ben Davies
It looks like you're trying to create an alias for a type. I'd use a constant for this, not a subset, for reasons Brad has already explained. Your code runs fine for me when DEF is written like my constant DEF = ABC.

Re: list assignment

2021-01-19 Thread Ben Davies
On 2021-01-19 2:18 p.m., Brian Duggan wrote: Hi Folks, I ran into this situation today, which seems counterintuitive: my @one = 1,2,3; my @two = 4,5,6; my @both = @one,@two; my @first = @both[0]; say @one.raku; say @first.raku; output: [1, 2, 3] [[1, 2, 3],] I was

Debating on writing Editline bindings

2018-03-30 Thread Ben Davies
At the moment, bindings for Readline and Linenoise are available, which are mainly used for making the REPL more convenient to use. Editline is a BSD-licensed alternative to the two that's part of the userland by default on FreeBSD, OpenBSD, and NetBSD. Having bindings for Editline would be mor