Re: [perl #69194] rakudo 2009-08 and when with lists

2009-09-19 Thread Solomon Foster
should it do here when it is? -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: How does List.map: { .say } work?

2009-11-02 Thread Solomon Foster
backward to me... Is there a reason $_ is readonly isn't a possible solution? -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: How does List.map: { .say } work?

2009-11-02 Thread Solomon Foster
prefer immutable things, it seems very odd to short circuit that in a key area like this... (Though personally, I would prefer it if map was readonly by default on all containers.) -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: How does List.map: { .say } work?

2009-11-02 Thread Solomon Foster
On Mon, Nov 2, 2009 at 2:03 PM, Solomon Foster colo...@gmail.com wrote: On Mon, Nov 2, 2009 at 10:21 AM, Carl Mäsak cma...@gmail.com wrote: Solomon (), Moritz (): the current spec doesn't allow immutable containers to call .map with a block that implicitly uses $_ as an implicit parameter

Re: r29111 - docs/Perl6/Spec

2009-11-18 Thread Solomon Foster
as for exactly reflecting the concept of a radix-agnostic floating-point number. What's your objection to FatRat.new(45207196, 11 ** 37)? -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: Custom errors on subsets?

2010-01-05 Thread Solomon Foster
   before    after Is this a bug or just documented behavior that I don't know about? fail just returns an uncalled exception. What does that do in a where block? -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: Custom errors on subsets?

2010-01-05 Thread Solomon Foster
On Tue, Jan 5, 2010 at 11:36 AM, Ovid publiustemp-perl6langua...@yahoo.com wrote: --- On Tue, 5/1/10, Solomon Foster colo...@gmail.com wrote: From: Solomon Foster colo...@gmail.com Is this a bug or just documented behavior that I don't know about? fail just returns an uncalled exception

Re: One-pass parsing and forward type references

2010-02-01 Thread Solomon Foster
declaring the real B? -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: Something about the cascade calling of sort() in rakudo.

2010-03-23 Thread Solomon Foster
a hack, but it is a simple one. Thanks for reporting the problem! -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Announce: Rakudo Perl 6 development release #29 (Erlangen)

2010-05-20 Thread Solomon Foster
and sponsors for making Rakudo Perl possible, as well as those people who worked on parrot, the Perl 6 test suite and the specification. The following people contributed to this release: Solomon Foster, Moritz Lenz, Jonathan Worthington, Martin Berends, chromatic, Carl Masak, snarkyboojum, Stefan

Re: r31050 -[S03] refine hyper dwimminess to be more like APL, with modular semantics

2010-06-02 Thread Solomon Foster
, is it? Certainly doesn't work in Rakudo and I've never seen a spectest written like that... -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: Suggested magic for a .. b

2010-07-20 Thread Solomon Foster
basic forward sequence. -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: Suggested magic for a .. b

2010-07-20 Thread Solomon Foster
On Tue, Jul 20, 2010 at 10:00 PM, Jon Lang datawea...@gmail.com wrote: Solomon Foster wrote: Ranges haven't been intended to be the right way to construct basic loops for some time now.  That's what the ... series operator is for.    for 1e10 ... 1 - $i {         # whatever    } is lazy

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

2010-11-08 Thread Solomon Foster
by key if needed. (That is, %hash++ doesn't care about the keys, %hash1 + %hash2 sums based on keys.) I would assume that Bag should work in the exact same way. Dunno how Set should work in this context, though. -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: How to make a new operator.

2012-03-21 Thread Solomon Foster
... False # never stop 2, 5 ... * # shorter way of saying never stop 2, 1, 1/2 ... Num # stop when the number switches from a Rat to a Num 'a' ... /f/ # stop when the regular expression matches -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: [perl6/specs] 5277fe: Add expmod and is-prime as built-ins in Int

2012-09-24 Thread Solomon Foster
is that it always tests against the first 256 primes, so it also takes advantage of this in correctness, if possibly not in speed. -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: Are set operations needed?

2013-07-18 Thread Solomon Foster
rakudo and niecza implement significant subsets of the set specification. Cheers, Moritz -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: Are set operations needed?

2013-07-18 Thread Solomon Foster
Full list of Texas (ie ASCII) set operators: union: (|) intersection: () set difference: (-) symmetric difference: (^) subset: (=) proper subset: () superset: (=) proper superset: () is an element of: (elem) is contained by: (cont) On Thu, Jul 18, 2013 at 11:45 AM, Solomon Foster colo

Re: Grammars and biological data formats

2014-08-13 Thread Solomon Foster
($file.slurp) since Grammar.parse() works on a Str, not a IO::Handle or Buf. Or am I misunderstanding how this could be accomplished? My understanding is it is intended that parsing can work on Cats (hypothetical lazy strings) but this hasn't been implemented yet anywhere. -- Solomon Foster: colo

Re: Rationalizing numeric types

2015-06-22 Thread Solomon Foster
it really does take a symbolic math package to get all combinations of the trig exponential functions right https://cloud.sagemath.com/projects/3966ff36-7109-449d-83a9-49e48e078fea/files/2015-06-22-133206.sagews . -y -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http

Re: (default) Real->Rat precision should match what compiler uses for literals

2018-03-07 Thread Solomon Foster
more distressingly, (1e+100).Rat gives you (1159028911097599180468360808563945281389781327557747838772170381060813469985856815104 1). That's only accurate to 10**83. Which is to say, it's as accurate as a double gets -- 16-17 digits. (BTW, that is a legal Rat.) I admit don't really know what to do with this. -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com

Re: (default) Real->Rat precision should match what compiler uses for literals

2018-03-04 Thread Solomon Foster
is a quick and easy way to convert from Num to FatRat with minimal loss of precision. I believe right now the default Num -> FatRat conversion also uses 1e-6 as an epsilon, which seems wrong to me. -- Solomon Foster: colo...@gmail.com HarmonyWare, Inc: http://www.harmonyware.com