, Patrick R. Michaud pmich...@pobox.com wrote:
On Tue, Aug 23, 2011 at 05:36:27PM +0200, Damian Conway wrote:
And I'd like there to be a more consistent approach than that
(though I don't really care what it actually is).
+1 to consistency.
Pm
--
Mark J. Reed markjr...@gmail.com
/commit/a7cfe02002f665c120cf4b735919779820194757
maybe it's a charset problem on your machine, or something.
Cheers,
Moritz
--
Mark J. Reed markjr...@gmail.com
a relatively simple mnemonic, where nearly
any given operator foo is non-mutating, but by adding an = to it you get a
mutating variant, so people can look for the = to know if it would mutate.
The comparison ops are the rare exception to the rule.
-- Darren Duncan
--
Mark J. Reed markjr
. But the self-reference in the definition means it still has to be
computed lazily.
--
Mark J. Reed markjr...@gmail.com
the output of my iterative Perl 6
solution
(http://rosettacode.org/mw/**index.php/Gray_code#Perl_6http://rosettacode.org/mw/index.php/Gray_code#Perl_6
):
our multi sub infix:xor2 ( $x, $y ) { ( $x + $y ) % 2 };
Why did you need to define this yourself instead of just using +^ ?
--
Mark J
in a Duration (e.g. seconds since 1 jan 1970)
Right. And therefore having to do the conversion explicitly is a good thing
-- you immediately see which epoch was used.
Cheers,
Moritz
--
Mark J. Reed markjr...@gmail.com
increments, I don't see the point. Orthogonality for its own
sake is not very Perlish...
--
Mark J. Reed markjr...@gmail.com
changes are not undone, so the program can
still behave differently after the continuation is called.
--
Mark J. Reed markjr...@gmail.com
to solve; it's one form
of solution to the problem of maximizing efficiency.
Continuations/fibers and asynchronous event loops are different
solutions to the same problem.
--
Mark J. Reed markjr...@gmail.com
in the general case.
But if we're talking about implementing attribute assignments,
assign might be more logical.
Of alternatives you didn't mention, I like put - as pithy as get
and set, with plenty of corresponding history (SmallTalk, POSIX,
HTTP,...).
-
Mark J. Reed markjr...@gmail.com
a condition
that isn't meant to be compared to the topic, and so doesn't invoke
smartmatching at all: it's just evaluated in Boolean context as-is. I
like the suggestion of whenever for that; it has the no matter
what sense that goes with ignoring the topic.
-Mark
--
Mark J. Reed markjr
[item in array] or specific method
[array.include? item] or function [in_array($item, $array)]...
--
Mark J. Reed markjr...@gmail.com
work.
Though more efficient would be:
my @x = 1,2,3; say ?...@x.first(2); say ?...@x.first(4);
1
0
Ah, perfect. Thanks!
I still prefer the junction way though. :-)
I love junctions, but it feels like overkill to use them for this. :)
--
Mark J. Reed markjr...@gmail.com
On Wednesday, July 28, 2010, Jon Lang datawea...@gmail.com wrote:
Keep it simple, folks! There are enough corner cases in Perl 6 as
things stand; we don't need to be introducing more of them if we can
help it.
Can I get an Amen? Amen!
--
Mark J. Reed markjr...@gmail.com
On Wed, Jul 28, 2010 at 2:30 PM, Chris Fields cjfie...@illinois.edu wrote:
On Jul 28, 2010, at 1:27 PM, Mark J. Reed wrote:
Can I get an Amen? Amen!
--
Mark J. Reed markjr...@gmail.com
+1. I'm agnostic ;
Militant? :) ( http://tinyurl.com/3xjgxnl )
Nothing inherently religious about
SIGNATURE-
--
Mark J. Reed markjr...@gmail.com
that was the case, but in current Rakudo I
notice that :13(54) is a Num while 69 is an Int.
--
Mark J. Reed markjr...@gmail.com
Ok, I find that surprising (and counter to current Rakudo behavior),
but thanks for the correction, and sorry about the misinformation.
On Wednesday, July 21, 2010, Larry Wall la...@wall.org wrote:
On Tue, Jul 20, 2010 at 11:53:27PM -0400, Mark J. Reed wrote:
: In particular, consider that pi
Strike the counter to current Rakudo behavior bit; Rakudo is
behaving as specified in this instance. I must have been
hallucinating.
On Wed, Jul 21, 2010 at 7:33 AM, Mark J. Reed markjr...@gmail.com wrote:
Ok, I find that surprising (and counter to current Rakudo behavior),
but thanks
On Wed, Jul 21, 2010 at 3:55 PM, Darren Duncan dar...@darrenduncan.net wrote:
Larry Wall wrote:
On Tue, Jul 20, 2010 at 11:53:27PM -0400, Mark J. Reed wrote:
: In particular, consider that pi ~~ 0..4 is true,
: because pi is within the range; but pi ~~ 0...4 is false, because pi
they're immutable and then turn around
and talk about modifying them. How about just saying that A new
CDateTime can also be based on an existing CDateTime object: ?
--
Mark J. Reed markjr...@gmail.com
+ $d # Date.new('2010-12-27')
-As temporal objects are immutable, += -= ... do not work.
-
=head1 Additions
Please post errors and feedback to Cperl6-language. If you are making
--
Mark J. Reed markjr...@gmail.com
On Wed, Jul 21, 2010 at 12:04 AM, Jon Lang datawea...@gmail.com wrote:
Mark J. Reed wrote:
Perhaps the syllabic kana could be the integer analogs, and what you
get when you iterate over the range using ..., while the modifier kana
would not be generated by the series ア ... ヴ but would
day-of-week
week
week-year
--
Mark J. Reed markjr...@gmail.com
about a week-of-year with a good
definition of how it handles weeks 0/1, 52/53. End user can choose to
use it or not. And I'm not too anxious to open up the whole calendar
choice can of worms.
--
Mark J. Reed markjr...@gmail.com
wrote:
On Thu, Jul 15, 2010 at 2:13 PM, Brandon S Allbery KF8NH
allb...@ece.cmu.edu wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 7/15/10 12:21 , Mark J. Reed wrote:
By analogy, I'd say week-of-year should work as well.
Wasn't the week stuff punted to a non-core module because
specific functionality it
needs) makes sense, IMHO.
.
--
Mark J. Reed markjr...@gmail.com
preceding whitespace when the arrow
^
Shouldn't that read in Perl 6?
--
Mark J. Reed markjr...@gmail.com
, especially where complexity comes in.
It also means that temporal modules can be bundled with Perl, but that is a
choice made by the Perl packagers, not the Perl core, same as deciding what
templating or networking or database or whatever modules to bundle.
--
Mark J. Reed markjr
- $start_of_epoch to
obtain a day count starting from a fix epoch
--
Mark J. Reed markjr...@gmail.com
-
--
Mark J. Reed markjr...@gmail.com
an
international standard to my Indo-European ways :) ).
Overall, I think you have a great idea. As long as the filters are
implemented simply, I think it will prove to be the best option.
--
Don't Panic!
--
Mark J. Reed markjr...@gmail.com
its time fields zeroed, which is
flexibility. The latter is still by implication tied to a specific swath of
spacetime (e.g. midnight to midnight in some time zone), whereas the former
is free to refer to whatever the human date designation can.
--
Mark J. Reed markjr...@gmail.com
invocations
of
+the same program. The Cnew-from-daycount constructor creates a new CDate
+object with a given daycount.
+
=head1 Additions
Please post errors and feedback to Cperl6-language. If you are making
--
Mark J. Reed markjr...@gmail.com
On Friday, April 16, 2010, Mark J. Reed markjr...@gmail.com wrote:
or at least, Date should have a method that returns it's value as
pairs suitable for passing to DateTime.new.
Obviously that should be its value. Thank you, iPhone, for thinking
you know better than I how to punctuate
-based weeks from a given epoch.
--
Mark J. Reed markjr...@gmail.com
for extracting just the Date
portion built in to DateTime.
--
Mark J. Reed markjr...@gmail.com
On Mon, Apr 12, 2010 at 6:38 AM, Mark J. Reed markjr...@gmail.com wrote:
I think that having a standard, minimal API for this defined in core as a
Date role would be ideal.
Agreed. In fact, I'd like to see DateTime be defined explicitly as a
superset (subrole) of Date, with a method
The Ctruncate method allows you to clear a number of time values
--
Mark J. Reed markjr...@gmail.com
that creates a dynamic scope for an srand: e.g. temp srand { ... };
That seems like a reasonable solution.
--
Mark J. Reed markjr...@gmail.com
of.
The disadvantages, which affect everyone, are many and bigger:
search/replace headaches, novice confusion, adding to Perl's syntax
infamy, etc.
(Besides, I'm sure you can Acme::-up something that implements this
scheme in Perl 6 for your own devious purposes anyway… ;)
-John
--
Mark J. Reed markjr
of.
The disadvantages, which affect everyone, are many and bigger:
search/replace headaches, novice confusion, adding to Perl's syntax
infamy, etc.
(Besides, I'm sure you can Acme::-up something that implements this
scheme in Perl 6 for your own devious purposes anyway… ;)
-John
--
Mark J. Reed markjr
. But I acknowledge that most of the
programmers out there seem to expect underscores -- and also, the aim
was to produce a small delta from CPAN's DateTime and not change
around things ad lib.
// Carl
--
Mark J. Reed markjr...@gmail.com
for consistency with the C.time-zone() method
(or, preferably, we should jut bite the bullet and go with Ctimezone
throughout).
Damian
--
Mark J. Reed markjr...@gmail.com
both underscores and hyphens in their method names.
-John
--
Mark J. Reed markjr...@gmail.com
thrown'). It feels comforting to always leave a way for the API
consumer to find things out without resorting to CATCHing exceptions.
// Carl
--
Mark J. Reed markjr...@gmail.com
.
On Friday, April 9, 2010, Mark Biggar m...@biggar.org wrote:
On 4/9/2010 4:53 AM, Moritz Lenz wrote:
Am 09.04.2010 13:34, schrieb Mark J. Reed:
The date still corresponds to an actual day. If I set it to Feb 31, I
should get back Mar 2 or 3 depending on the year. While I'm having
trouble
that it doesn't belong, and is more confusing than useful.
:)
// Carl
--
Mark J. Reed markjr...@gmail.com
- $dur, $dt - $dt
Expect these in the next few days or so.
// Carl
--
Mark J. Reed markjr...@gmail.com
On Sat, Apr 3, 2010 at 2:18 PM, pugs-comm...@feather.perl6.nl wrote:
[P6 Spec] completely changed S32::Temporal
What motivated these changes?
+Time is just a jumbled iTem.
iTem?
+=item * 12hour
+=item * 24hour
I don't like using strings for these. Feels like they should be
into Regexes (unless they already are)
/ { ... } / -- Result of capture is interpolated as a Regex,
compiling if necessary
/ ?{ ... } / -- Unchanged
/ { ... } / -- Capture is merely executed, but not interpolated.
(Unchanged)
--
Mark J. Reed markjr...@gmail.com
announcements on mailing lists for individual Perl modules, or DBI release
announcements on the DBIx-Class list, say. -- Darren Duncan
Darren -
FYI, Copenhagen was a Rakudo release, not a parrot release.
Regards.
--
Will Coke Coleda
--
Mark J. Reed markjr...@gmail.com
suspect atomic is too strongly associated with
operations to be applied to a data type that has nothing to do with
multithreading or transactional integrity.
--
Mark J. Reed markjr...@gmail.com
or
http://programming-scala.labs.oreilly.com/ch06.html#CaseClasses
--
Mark J. Reed markjr...@gmail.com
) fails to match.
// Carl
--
Mark J. Reed markjr...@gmail.com
GEEK CODE BLOCK
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- PE(+) Y+++ PGP-+++
R(+) !tv b++ DI D G+ e++ h! y-
-END GEEK CODE BLOCK-
--
Mark J. Reed markjr...@gmail.com
, I'll go back to doing little to make the
compiler writers' task easy. :-P
// Carl
--
Mark J. Reed markjr...@gmail.com
On Wed, Mar 3, 2010 at 6:26 PM, Darren Duncan dar...@darrenduncan.net wrote:
Mark J. Reed wrote:
Doesn't unspace work for this?
It would seem that S02 says otherwise:
Although we say that the unspace hides the whitespace from the parser, it
does not hide whitespace from the lexer
,
great. That, however, is not TAI. UTC and TAI and the proposed
leap-second-free UTC-replacement TI all tick at the same rate and at
the same time, and you can devise any number of time scales that do
likewise, differing only in the labels.
--
Mark J. Reed markjr...@gmail.com
On Mon, Feb 22, 2010 at 1:13 PM, Daniel Ruoso dan...@ruoso.com wrote:
Em Dom, 2010-02-21 às 21:28 -0800, Larry Wall escreveu:
On Sat, Feb 20, 2010 at 10:39:20AM -0500, Mark J. Reed wrote:
: I just want to know what Perl 6 time zero is.
Well, there's no such thing as time 0 in Perl 6
On Mon, Feb 22, 2010 at 1:31 PM, Mark J. Reed markjr...@gmail.com wrote:
Not according to S0, which says that an Instant will numify to the
^
S02.
number of TAI seconds since the TAI epoch. That's not opaque.
--
Mark J. Reed markjr...@gmail.com
, not TAI. It's just using
*real* UTC, not POSIX's broken idea of it that claims 24 seconds out
of the past 40 years never happened.
--
Mark J. Reed markjr...@gmail.com
internally? Well if it's
manipulating years, months, days, hours, and minutes as their TAI
values, then yes, but if it's just working with an absolute count of
atomic seconds, then there's no reason to say that it's TAI vs. UTC,
because at that level, they completely agree with each other.
--
Mark J. Reed
[openafs,heimdal,too many hats] allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
--
Mark J. Reed markjr...@gmail.com
(the epoch of VMS
system time).
I note that Rakudo currently uses the time_t value directly. I think 1
Jan 1970 is a poor choice of epoch for TAI time; having time values so
close to but not the same as time_t values would create undue
confusion.
--
Mark J. Reed markjr...@gmail.com
.
--
Mark J. Reed markjr...@gmail.com
want to
toss in a noun or two.
--
Mark J. Reed markjr...@gmail.com
of the .trans function, a handsome but
very different beast. Specifically, it doesn't seem to have a scalar
context, with which one could count things.
--
Mark J. Reed markjr...@gmail.com
$_=eval )
Enter the command `exit` to end the session.
--
Just my 0.0002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
I like Perl; it's the only language where you can bless your
thingy.
--
Mark J. Reed markjr
branch of the thread: it would be nice to
be able to declare such an override in a general way that will apply
to any such composition that doesn't otherwise override it locally.
But what should that declaration look like?
--
Mark J. Reed markjr...@gmail.com
combinations of roles,
a sort of meta-role. It's an odd duck, but it does sort of fall out
of the multiple-dispatch semantics, which already let you base
implementation chioce on arbitrary combinations of roles...
--
Mark J. Reed markjr...@gmail.com
to assign an undefined value to them:
my int $y = undef;# dies
--
Mark J. Reed markjr...@gmail.com
::Duration
The gregorian Duration declares the following attributes.
--
Mark J. Reed markjr...@gmail.com
I thought I recalled seeing that the new convention was .p6m, .p6l,
etc. I guess that idea was abandoned?
--
Mark J. Reed markjr...@gmail.com
1.03e300 or so.
Yes. Exactly my point. By the way, do we want to warn if someone writes
1e300 .. 1e301 :by(1)
given that the number implementation yields 1e300 + 1 == 1e300?
Regards,
Michael.
--
Sent from my mobile device
Mark J. Reed markjr...@gmail.com
in town though, so I'll happily admit that I don't know the full
implications of such a change. Having context-insensitive Ranges DWIM's
better to me, but DWIMery, like beauty, is clearly in the eye of the
beholder! :)
Cheers,
--
smuj
--
Sent from my mobile device
Mark J. Reed markjr
and
similar range-testing expressions.
--
Jonathan Dataweaver Lang
--
Sent from my mobile device
Mark J. Reed markjr...@gmail.com
, but it's a valid question.
That's just nitpicking, though. It's perfectly reasonable to fail()
if someone tries to construct a Range/Series/Interval out of Complex
numbers. We can use a different class for complex rectangles if we
need them.
--
Mark J. Reed markjr...@gmail.com
it may be trickier.
--
Mark J. Reed markjr...@gmail.com
with that kind of
file. Perl by itself knows only how to treat it as a string of raw
bytes. Well, or as plain text. So you can treat your HTML file as
plain text, or you can use HTML::Doc::Tree and treat it as something
fancier.
-David
--
Sent from my mobile device
Mark J. Reed markjr...@gmail.com
/old/new} which is not quite as handy. $*CWD could make
that simple, too.
--
Mark J. Reed markjr...@gmail.com
and unpredictable.
Now there's nothing wrong with introducing new, unfamiliar
functionality, if it provides a discernible benefit, but that doesn't
seem to be the case here.
--
Carlin
--
Sent from my mobile device
Mark J. Reed markjr...@gmail.com
Er, that basename down there should be a dirname, for those
playing along at home. Memo to self: do not type long screeds on
Blackberry...
On 8/18/09, Mark J. Reed markjr...@gmail.com wrote:
It would be nice if the bikeshed had aluminum siding. Er, I mean, if
chdir() changed *CWD and vice
On Tue, Aug 18, 2009 at 6:59 AM, Carlin Binghamcar...@theintersect.org wrote:
2009/8/18 Timothy S. Nelson wayl...@wayland.id.au:
On Tue, 18 Aug 2009, Mark J. Reed wrote:
It's not in the revised spec, but I think that, even though we've
revived chdir, we should still have it so
variable. It's set by login();
the shell just inherits it. A better example would be UID - which is
readonly.
--
Mark J. Reed markjr...@gmail.com
On Tue, Aug 18, 2009 at 10:26 AM, Timothy S.
Nelsonwayl...@wayland.id.au wrote:
Ok, so suppose we only allowed direct assignment to absolute paths?
Is there an echo in here? :)
--
Mark J. Reed markjr...@gmail.com
. But neither are the contents
of %ENV managed by Perl - just inherited from the parent process.
--
Mark J. Reed markjr...@gmail.com
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V-
PE(+) Y+++ PGP-+++ R(+) !tv b++ DI D G+ e++ h! y-
-END GEEK CODE BLOCK-
--
Sent from my mobile device
Mark J. Reed markjr...@gmail.com
the
drive letter.
Nope. Have to use the drive letter. But / is understood as a synonym
for \ by the Windows API.
--
Mark J. Reed markjr...@gmail.com
Wrong reply button...
-- Forwarded message --
From: Mark J. Reed markjr...@gmail.com
Date: Mon, 10 Aug 2009 07:36:52 -0400
Subject: Re: Rukudo-Star = Rakudo-lite?
To: Gabor Szabo szab...@gmail.com
That has the same problem as lots of other themes - it puts a hard
limit
J. Reed markjr...@gmail.com
don't much mind the extra
character; 5 characters total still beats the 7 of HTML/XML.
--
Mark J. Reed markjr...@gmail.com
that the generalized
'want' function proved to be unworkable; but I'd expect p6 to at least
be able to do everything that p5 can do; and that includes functions
that are aware of whether they're being used as singular or plural.
--
Jonathan Dataweaver Lang
--
Sent from my mobile device
Mark J
-formatted
source code.
--
Mark J. Reed markjr...@gmail.com
on using ln() instead of log()
Also, systems I know of that implement both log() and ln() default
ln() with base e, as perl6 does, log() uses base 10.
--
Mark J. Reed markjr...@gmail.com
, or whatever.)
=Austin
--
Sent from my mobile device
Mark J. Reed markjr...@gmail.com
My reply to the message Aaron sent directly to me by mistake...
-- Forwarded message --
From: Mark J. Reed markjr...@gmail.com
Date: Fri, Jul 10, 2009 at 7:23 PM
Subject: Re: Re-thinking file test operations
To: Aaron Sherman a...@ajs.com
You replied just to me, you know
/09, Aristotle Pagaltzis pagalt...@gmx.de wrote:
* Moritz Lenz mor...@faui2k3.org [2009-07-10 00:25]:
stat($str, :e) # let multi dispatch handle it for us
This gets my vote.
--
Aristotle Pagaltzis // http://plasmasturm.org/
--
Sent from my mobile device
Mark J. Reed markjr
it should be
considered, it's not a knockout punch to say but logic doesn't work
that way.
--
Mark J. Reed markjr...@gmail.com
|
-
BEGIN GEEK CODE BLOCK
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V- PE(+) Y+++
PGP-+++ R(+) !tv b++ DI D G+ e++ h! y-
-END GEEK CODE BLOCK-
--
Mark J. Reed markjr...@gmail.com
--
Mark J. Reed markjr...@gmail.com
1 - 100 of 407 matches
Mail list logo