Re: not using get/set (was Re: [perl6/specs] 4d77c0: ...)

2010-09-30 Thread Darren Duncan
Jonathan Worthington wrote: On 30/09/2010 21:38, Darren Duncan wrote: Mark J. Reed wrote: Of alternatives you didn't mention, I like put - as pithy as get and set, with plenty of corresponding history (SmallTalk, POSIX, HTTP,...). Actually, *yes*. I didn't think of this one at the time

Re: [perl6/specs] 58fe2d: [S12] spec setting and getting values of attribute...

2010-09-30 Thread Darren Duncan
Moritz Lenz wrote: Darren Duncan wrote: I think then that .perl needs to be updated so it is more expressly limited and only works on some objects rather than on all of them. The way I see it, .perl is mainly about representing *value* objects in a serialized form, and what it should produce

Re: threads?

2010-10-21 Thread Darren Duncan
to a user on a single core machine. I think that Perl 6's implicit multi-threading approach such as for hyperops or junctions is a good best first choice to handle many common needs, the last list item above, without users having to think about it. Likewise any pure functional code. -- Darren Duncan

Re: Lists vs sets

2010-10-25 Thread Darren Duncan
is a set, does that mean that a list only contains/returns each element once when iterated? If a list can have duplicates, then a list isn't a set, I would think. -- Darren Duncan

Re: Tweaking junctions

2010-10-28 Thread Darren Duncan
or alternately returns an empty junction (a junction ranging over zero values)? Or would that instead better be treated as an error such that returning nothing should have been done explicitly? -- Darren Duncan

Re: Lazy Strings and Regexes

2010-10-31 Thread Darren Duncan
or array of string argument. -- Darren Duncan

Re: Bag / Set ideas - making them substitutable for Arrays makes them more useful

2010-11-07 Thread Darren Duncan
agree though with the principle that sets and bags should be just as easy and terse to use as arrays. -- Darren Duncan

Re: Bag / Set ideas - making them substitutable for Arrays makes them more useful

2010-11-13 Thread Darren Duncan
like it. -- Darren Duncan

Re: Bag / Set ideas - making them substitutable for Arrays makes them more useful

2010-11-16 Thread Darren Duncan
Jon Lang wrote: Darren Duncan wrote: This said, I specifically think that a simple pair of curly braces is the best way to mark a Set. {1,2,3} # a Set of those 3 elements ... and this is also how it is done in maths I believe (and in Muldis D). In fact, I strongly support this assuming

base-4 literals

2010-11-16 Thread Darren Duncan
for every power of 2 between 1 and 4, rather than skipping one. Even more important, with blob literals, we have an 0a form for every power likely to be used period, since for all practical purposes they can only take literals in powers of 2 anyway. So, any thoughts on this? -- Darren Duncan

Re: base-4 literals

2010-11-16 Thread Darren Duncan
, just not so conventional. -- Darren Duncan

Re: base-4 literals

2010-11-16 Thread Darren Duncan
Larry Wall wrote: On Tue, Nov 16, 2010 at 12:11:01PM -0800, Darren Duncan wrote: : Carl Mäsak wrote: : Darren (): : While I haven't seen any prior art on this, I'm thinking that it would be : nice for a sense of completeness or parity to have an 0a syntax specific to : base-4 that complements

Re: exponentiation of Duration's

2010-11-18 Thread Darren Duncan
we pick, maybe there should be suitable generic names given to the complementary concept of what I mentioned. -- Darren Duncan

Re: exponentiation of Duration's

2010-11-18 Thread Darren Duncan
To clarify, by define particular methods I mean that said 2 roles would require composing classes to define them, not to include the code themselves. -- Darren Duncan Darren Duncan wrote: I think that Instant and Duration should simply be declarational roles that don't have any implementation

Re: exponentiation of Duration's

2010-11-18 Thread Darren Duncan
stuff like this that led to us getting a Temporal spec that made sense and could be implemented. // Carl How so? All I'm proposing is having top level markers that aren't too constraining, but everything specced below that can be quite specific and implementable. -- Darren Duncan

Re: sql idea

2010-11-26 Thread Darren Duncan
. On a side note, you shouldn't name things all uppercase since those are reserved for use by Perl itself; just say select. -- Darren Duncan I come up to the following code: my $db = FakeDBI.new; my ($state, $dept) = active storage; my @out := $db.SELECT

spell check in code

2011-03-17 Thread Darren Duncan
the component words, so to evaluate those components, rather than looking at words as just entire strings delimited by non-alphanumeric characters. Not applicable everywhere, but useful in some places. Of course, this would be an extension feature, not a core feature. -- Darren Duncan

Re: eval and try should be separate

2011-06-29 Thread Darren Duncan
I agree with the change. Let try be for exceptions and eval be for runtime compile+run of code. These are very distinct concepts and should be separate. -- Darren Duncan Stefan O'Rear wrote: I intend to change the definition of eval such that it does not catch exceptions. String eval's

Re: Encapsulating the contents of container types

2011-08-20 Thread Darren Duncan
mutability with syntax, or only allow what references point to to change. -- Darren Duncan

Re: Encapsulating the contents of container types

2011-08-20 Thread Darren Duncan
Patrick R. Michaud wrote: On Sat, Aug 20, 2011 at 04:41:08PM -0700, Darren Duncan wrote: I believe the general solution to this problem is to make all objects immutable, with the only exception being explicit references, and so mutating an object isn't an option; rather you have to derive a new

Re: Encapsulating the contents of container types

2011-08-21 Thread Darren Duncan
the time, you will see it run. -- Darren Duncan

Re: Underscores v Hyphens (Was: [perl6/specs] a7cfe0: [S32] backtraces overhaul)

2011-08-24 Thread Darren Duncan
are typically in a -quoted context, and we also don't see symbolic bareword operators in the same place. Apples and oranges. -- Darren Duncan

Re: Underscores v Hyphens (Was: [perl6/specs] a7cfe0: [S32] backtraces overhaul)

2011-08-24 Thread Darren Duncan
Tom Christiansen wrote: Darren Duncan dar...@darrenduncan.net wrote on Wed, 24 Aug 2011 11:18:20 PDT: I oppose this. Underscores and hyphens should remain distinct. That would seem to be the most human-friendly approach. I disagree. More human friendly is if it looks different in any way

Re: CFOs not aligned with Recruiting

2012-09-20 Thread Darren Duncan
So I guess we have a rare failure of a spam filter. -- Darren Duncan

Perl 6 in Perl 6?

2012-10-18 Thread Darren Duncan
this for the parsing portion, but I'm wondering about the rest. (Maybe the all-Perl-6 version would also eventually be able to produce the fastest running Perl 6 programs too, because it is easiest to write Perl 6 analysers/optimizers/etc in, corresponding to PyPy as I understand it.) -- Darren Duncan

question - languages with set/foo as only base data type

2013-11-17 Thread Darren Duncan
that the generic set was probably the best candidate for Foo. But there might be something better. Any pointers to precedents on what to use for Foo and how are greatly appreciated. -- Darren Duncan

Re: question - languages with set/foo as only base data type

2013-11-18 Thread Darren Duncan
On 2013.11.17 3:48 PM, Darren Duncan wrote: Thanks a lot to Andrew, John, Raiph, and any later responders. What you've said so far looks very useful to me, and I will follow up on the leads you gave. -- Darren Duncan FYI, as of last night I'm intending to use generic ordered lists rather than

S02 mistake re Blob?

2015-02-20 Thread Darren Duncan
I notice from looking at http://design.perl6.org/S02.html that Blob is listed both as being a role and as a type. See http://design.perl6.org/S02.html#Roles for an example of the former, and http://design.perl6.org/S02.html#Immutable_types for an example of the latter. -- Darren Duncan

Re: S02 mistake re Blob?

2015-02-21 Thread Darren Duncan
On 2015-02-21 2:45 AM, Moritz Lenz wrote: Hi Darren, On 21.02.2015 08:51, Darren Duncan wrote: I notice from looking at http://design.perl6.org/S02.html that Blob is listed both as being a role and as a type. See http://design.perl6.org/S02.html#Roles for an example of the former, and http

Re: Synopses size and revision state

2015-05-15 Thread Darren Duncan
Also, there are other newer API docs than the Synopsis that are useful for study, but printing all this stuff seems very excessive, even more so because the Synopsis etc keep changing. I advise against printing this stuff in bulk. -- Darren Duncan On 2015-05-15 7:54 AM, Elizabeth Mattijsen

Re: Language design

2015-06-22 Thread Darren Duncan
of core. Exact rationals are not particularly complicated. Its perfectly reasonable to expect in the core that if someone does math that is known to deal with irrationals in general, that loss of precision then is acceptable. -- Darren Duncan

versioning - how to request different 'ver' per 'auth'?

2015-06-10 Thread Darren Duncan
how its done. Thank you. -- Darren Duncan

Re: versioning - how to request different 'ver' per 'auth'?

2015-06-11 Thread Darren Duncan
:auth etc. Note that I raised this question on #perl6 myself shortly before writing perl6-language, but the email version is better organized. -- Darren Duncan On 2015-06-10 11:38 PM, Tobias Leich wrote: Hi, that is a very interesting use case, and IMO a very valid one. Currently

Exploit the versioning (was Re: Backwards compatibility and release 1.0)

2015-10-14 Thread Darren Duncan
will get the current behavior with :D not being default. I say, save any further major breaking changes before this Christmas for things that would be really hard to change later and are sure to be worthwhile now, and the :D thing is not one of those. What do you think? -- Darren Duncan O

Re: Exploit the versioning (was Re: Backwards compatibility and release 1.0)

2015-10-14 Thread Darren Duncan
. I mean, this situation seemed to be a solid example of why Perl 6's versioning scheme exists in the first place, to deal elegantly with things like this. -- Darren Duncan

Re: Exploit the versioning (was Re: Backwards compatibility and release 1.0)

2015-10-15 Thread Darren Duncan
silently actually expect Perl 6.0.0.0 semantics. We're always going to be stuck with this problem if we don't make declarations mandatory now. That's a much more important change to ingrain into those several hundred existing modules, if they aren't already, nevermind the :D thing. -- Darren Duncan

Re: Backwards compatibility and release 1.0

2015-10-13 Thread Darren Duncan
. -- Darren Duncan On 2015-10-13 1:52 AM, Richard Hainsworth wrote: Following on the :D not :D thread, something odd stuck out. On 10/13/2015 03:17 PM, Moritz Lenz wrote: But hopefully none of them breaking backwards compatibility on such a large scale. The last few backwards incompatible

Re: It's time to use "use v6.c"

2016-02-06 Thread Darren Duncan
tudy for whether there is truly a good reason for the code to work that way, or if there isn't. Keep in mind that the standard libraries are right now some of the primary examples Perl 6 developers would have to look at on how to write Perl 6 code. -- Darren Duncan

Re: fixing infinities and ranges etc

2016-10-30 Thread Darren Duncan
6 with a PSGI/Plack inspired design, meaning a no-mandatory-shared-code database interface: https://github.com/muldis/Muldis-DBI-Duck-Coupling-Perl6/blob/master/lib/Muldis/DBI/Duck_Coupling/API.pod -- Darren Duncan

fixing infinities and ranges etc

2016-10-27 Thread Darren Duncan
are the thoughts on this? Can we get appropriate improvements into Perl 6d and implementations etc? Also, is any of what I said actually already done? Certainly some key parts at least are not. Thank you. -- Darren Duncan

Re: fixing infinities and ranges etc

2016-12-11 Thread Darren Duncan
On 2016-10-30 4:11 PM, Darren Duncan wrote: On 2016-10-30 5:45 AM, yary wrote: Before/AfterEverything are also easy to understand, and would be as natural to use for sorting strings, eg. for saying if a database NULL should go before the empty string or after everything else. On the other hand

Re: Naming debate- what's the location for it?

2018-02-08 Thread Darren Duncan
ctually lose the family thing. For documentation/marketing materials and to help with continuity, we can typically reference "the Rakudo language, a sibling of Perl", where the latter part is then more of a description. This is what I really think should and that I would

Re: A proposal for Perl's branding - let's free all the butterflies

2018-02-16 Thread Darren Duncan
-language-name-for-perl6-goes-here (tm) -- Darren Duncan

Re: Checking for nil return

2020-12-31 Thread Darren Duncan
features, and in that case they WOULD be normal arguments or return values. And so the regular type system still needs to support having anything at all as an argument or return value. -- Darren Duncan

<    1   2   3   4   5