»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg camelia perl6: ... | irclog: irc.perl6.org | UTF-8 is our friend!
Set by sorear on 25 June 2013.
lue r: my Array[Int] @a = 1,2,3; say @a.perl; @a[1] = Mu; say @a.perl 00:00
camelia rakudo-parrot 413650: OUTPUT«Type check failed in assignment to '@a'; expected 'Array[Int]' but got 'Int'␤ in method REIFY at gen/parrot/CORE.setting:8320␤ in method reify at gen/parrot/CORE.setting:7196␤ in method reify at gen/parrot/CORE.setting:7183␤ in method reify a…»
..rakudo-jvm 413650: OUTPUT«Type check failed in assignment to '@a'; expected 'Array[Int]' but got 'Int'␤ in method REIFY at gen/jvm/CORE.setting:8294␤ in block at gen/jvm/CORE.setting:7177␤ in block at gen/jvm/CORE.setting:7167␤ in block at gen/jvm/CORE.setting:7267␤…»
lizmat r: my @a is default(42); say @a; say @a[0]:exists; @a[0] = Nil; say @a[0]:exists
camelia rakudo-parrot 413650, rakudo-jvm 413650: OUTPUT«␤False␤True␤»
lizmat even without the "is default": 00:01
my @a; say @a; say @a[0]:exists; @a[0] = Nil; say @a[0]:exists
r: my @a; say @a; say @a[0]:exists; @a[0] = Nil; say @a[0]:exists
camelia rakudo-parrot 413650, rakudo-jvm 413650: OUTPUT«␤False␤True␤»
00:01 dmol left
lizmat lue: or are you agreeing with me :-) 00:02
lue Would I be able to, say, assign a Mu or Any to an Array[Int] to do what Nil does now?
lizmat nope, not according to spec afaik
00:02 telex left
lue :/ I just like how Nil lets me set a spot as a type object / default value without me caring too much about it. 00:03
.oO(maybe a new Nada thing for old Nil behavior? ☺)
00:03 telex joined 00:04 Ben_Goldberg is now known as BenGoldberg
lue lizmat: I don't object to the ":delete synonym" behavior of Nil by the way. I just happen to like Nil's current behavior too :) 00:04
lizmat the spec actually states: If the container's contents are deleted, the value is notionally set to the provided default value; this value may or may not be physically represented in memory, depending on the implementation of the container. You should officially not care about that (much).
but it's not consistent with :delete (is my feeling) 00:05
lue lizmat: I suppose I'm thinking of times where my Array should really be a Buf, in terms of what I'm caring about :D
timotimo i don't want to do the code moving :( 00:06
lizmat anyways, busy day coming up and relatively early rise
so sleep& 00:07
lue lizmat o/ 00:08
00:17 cognominal left, cognominal joined 00:25 finanalyst joined 00:26 BenGoldberg is now known as Ben_Goldberg, Ben_Goldberg is now known as BenGoldberg 00:34 colomon left 00:35 colomon joined 00:54 thou left 01:02 jnap left 01:13 Entonian joined 01:18 rurban1 left 01:21 Entonian left 01:23 xenoterracide left, xenoterracide joined 01:29 xenoterracide left 01:33 risou is now known as risou_awy, risou_awy is now known as risou
dalek ecs: 2387578 | larry++ | S07-lists.pod:
mention that we force sink context on some loops
01:41
01:42 eternaleye left
TimToady moritz: thinking about tap/map, I'd say map always returns a Supply that you can put further taps on, but a tap is an endpoint, and closing a tap is done from the user end rather than the supplier end 01:45
01:49 risou is now known as risou_awy 01:59 tgt left 02:03 jnap joined 02:08 jnap left 02:21 gdey left 02:25 eternaleye joined 02:34 hummeleBop1 left
timotimo has had hiccups for about 1 hour now 02:42
colomon :( 02:46
timotimo makes it very hard to fall asleep
colomon I can imagine. 02:48
timotimo drinking a big glass of water didn't help
colomon rj: say sprintf("%.1f", 1.969) 02:50
camelia rakudo-jvm 413650: OUTPUT«1.0␤»
colomon I am having problems recompiling nqp and the rakudo.
I fixed that test locally, I think, but I am having one heck of time getting rakudo rebuilt with my nqp changes. 02:52
I did it somehow, once. But I don't know what I did. 02:53
03:02 jnap joined
timotimo i shall try lying down again :\ 03:06
03:07 dwarring left 03:12 BenGoldberg left 03:21 BenGoldberg joined 03:31 risou_awy is now known as risou 03:48 risou is now known as risou_awy 03:50 gfldex left 03:52 gfldex joined 04:16 BenGoldberg left 04:19 gdey joined 04:20 jnap left 04:21 kaleem joined 04:24 gdey left 04:47 kaleem left 04:55 cognominal left 04:58 preflex_ joined, ChanServ sets mode: +v preflex_ 04:59 preflex left, preflex_ is now known as preflex 05:04 finanalyst left 05:09 gdey joined 05:14 eternaleye left, eternaleye joined 05:15 finanalyst joined 05:17 gdey left 05:18 [Sno] left 05:21 jnap joined 05:25 jnap left 05:32 risou_awy is now known as risou 05:39 SamuraiJack joined 05:41 cognominal joined 05:42 rurban1 joined 05:48 risou is now known as risou_awy 06:10 xenoterracide joined 06:19 kaleem joined
moritz TimToady: ok, thanks for the explanation 06:21
06:22 dayangkun left, [Sno] joined 06:28 xenoterracide left 06:34 dayangkun joined 06:38 krunen left 06:39 krunen joined 06:42 rurban1 left 06:47 gdey joined 06:54 denis_boyun joined 06:59 darutoko joined, xenoterracide joined 07:01 rurban1 joined 07:10 denis_boyun left
[Coke] [A 07:15
diakopter ] 07:17
[Coke] "ww" 07:18
07:33 risou_awy is now known as risou 07:38 xenoterracide left 07:44 sqirrel joined 07:49 risou is now known as risou_awy 07:53 pochi_ joined 07:54 sqirrel left, pochi left 07:56 rindolf joined 07:58 FROGGS joined 08:01 rurban1 left 08:04 dmol joined, darutoko- joined 08:06 darutoko left 08:23 jnap joined 08:27 jnap left 08:28 brrt joined 08:30 Tene left 08:31 djanatyn left 08:32 Tene joined, sqirrel joined 08:33 djanatyn joined, Piers joined, logie left 08:54 brrt left 08:56 gdey left 09:07 finanalyst left 09:18 finanalyst joined 09:21 pochi_ left 09:22 pochi joined 09:33 finanalyst left 09:34 risou_awy is now known as risou 09:37 salv0 joined 09:45 ssutch left 09:51 risou is now known as risou_awy 09:54 fhelmberger joined 10:01 rurban1 joined 10:02 PZt left 10:06 rurban1 left
clkao_ win 25 10:09
10:24 jnap joined 10:29 jnap left 10:36 tgt joined 10:44 sqirrel left
timotimo o/ 10:50
FROGGS \o
11:05 gfldex left
masak clkao_: you win 25 internets :) 11:09
oh o/, Perl6
#perl6*
timotimo hiccups ... nooooo :( 11:11
masak .oO( #firstworldproblems ) 11:14
11:28 lizmat_ joined 11:30 lizmat_ left
timotimo you may think it's funny, but it actually quite hurts :( 11:34
11:34 risou_awy is now known as risou 11:39 gfldex joined 11:46 atroxaper joined 11:51 risou is now known as risou_awy 11:57 cognominal left 12:05 GlitchMr left, GlitchMr joined, cognominal joined 12:07 raiph left, daniel-s joined 12:29 logie joined 12:33 logie left, PZt joined 12:35 sqirrel joined 12:38 kaleem left 12:50 daniel-s left
timotimo no perl6 tuits have been spent yet today? 12:53
12:53 daniel-s joined
tadzik because it's friday: www.belarr.com/bakercat/ 12:54
(sound obligatory) 12:55
12:56 denis_boyun joined
timotimo te hiccups are back :\ 13:05
13:08 lizmat left 13:13 lizmat joined 13:30 skids left, salv0 left 13:35 risou_awy is now known as risou 13:37 finanalyst joined 13:45 ajr joined 13:46 ajr is now known as Guest52941 13:47 Guest52941 is now known as ajr_, gtxcomm left, gtxcomm joined 13:52 risou is now known as risou_awy 13:53 gdey joined 13:54 kaare__ joined 13:57 PacoAir joined 14:04 jnap joined 14:05 tgt left, araujo left, tgt joined 14:06 araujo joined 14:07 SamuraiJack left 14:18 daniel-s left 14:25 lizmat_ joined 14:26 lizmat_ is now known as liztormato, rurban1 joined 14:27 finanalyst left 14:29 treehug88 joined, liztormato left 14:35 xenoterracide joined
jnap just catching up on advent, and I have to say, perl6advent.wordpress.com/2013/12/1...16-slangs/ is very cool 14:36
I do wonder though if we need to support everything in Perl5 for it to be very useful. Perhaps the subset of Perl5 we consider modern is fine? 14:37
14:42 xinming left 14:43 xinming joined 14:46 bluescreen10 joined 14:54 mtk left
FROGGS jnap: my goal is that we can use Perl 5 modules, and these will tell us what v5 would need to support 14:56
colomon jnap: I don't think… oh, he can speak for himself. :)
FROGGS :o) 14:57
colomon FROGGS++ # nice post 14:58
14:58 skids joined, mtk joined
FROGGS thanks 14:58
skids timotimo: you know the glass-of-water is just a device to make you hold your breath. CO2 calms the hiccup nerve.
jnap FROGGS: being able to pull in some important bits of my regular stack would really help. DBIx::Class and Plack being the two most important things that I don't see coming to P6 anytime quickly. But that involves DBI and so forth, so might be hard :( 15:00
I did see a PSGI/Plack perl6 project somewhere but not sure how evolved it was. given how much more Perl6 has out of the box it might be worth revisting the PSGI spec and porting it to something that makes sense for Perl6 15:01
FROGGS okay, then I target DBIx::Class (and its gazillion deps) when tackling the next things to do 15:04
moritz XS!
FROGGS O.o 15:05
ó.ò
15:08 logie joined 15:10 thou joined 15:25 renormalist joined 15:26 [Sno] left 15:32 rurban1 left 15:36 risou_awy is now known as risou 15:41 jnap left 15:42 FROGGS left 15:45 ajr joined, ajr_ left, rurban1 joined, ajr is now known as Guest28956 15:48 Guest28956 is now known as ajr_ 15:50 hummeleB1 joined 16:00 jnap joined 16:05 fhelmberger left 16:06 fhelmberger joined 16:10 fhelmberger left
japhb DBIx::Class and similar beasts are probably much more suited to implementation in Perl 6 than they were to Perl 5. Having a strong metamodel and type system is pretty damn cool when you're creating interfaces to foreign data models. (Speaking from Protocol Buffers experience.) 16:20
16:20 FROGGS joined
japhb Talking of which ... 16:21
japhb wonders whether to hack p6-pb, Net::IRC, or MAIN_HELPER
.oO( HACK ALL THE THINGS )
FROGGS jnthn: are you still there? 16:22
japhb FROGGS: I believe he has already begun his travels.
FROGGS k
maybe somebody else can help, so I'll tell:
I try to access the symbols of an enum in sub EXPORT_SYMBOL in traits.pm, but I fail to do so... has somebody an idea? 16:23
japhb p: say Enum.^mro 16:24
camelia rakudo-parrot 413650: OUTPUT«(Enum) (Any) (Mu)␤»
japhb say Enum.^methods
p: say Enum.^methods
camelia rakudo-parrot 413650: OUTPUT«new BUILD invert key kv value keys values pairs fmt at_key FLATTENABLE_LIST FLATTENABLE_HASH of ACCEPTS Str perl␤»
FROGGS japhb: I can't call these methods there...
japhb goes to look 16:25
Er, why can't you access those methods? 16:27
FROGGS maybe they get added later?
japhb Oh, hmmm. 16:28
FROGGS traits.pm comes right after the prolog
japhb prolog?
Oh, you mean, before most of the setting. 16:29
FROGGS yeah 16:30
/usr/bin/perl tools/build/gen-cat.pl parrot src/core/core_prologue.pm src/core/traits.pm src/core/Positional.pm ...
japhb p: enum Foo < bar baz >; say Foo.WHAT; 16:32
camelia rakudo-parrot 413650: OUTPUT«(Foo)␤»
japhb p: enum Foo < bar baz >; say Foo.^mro;
camelia rakudo-parrot 413650: OUTPUT«(Foo) (Int) (Cool) (Any) (Mu)␤»
japhb p: enum Foo < bar baz >; say bar.^mro; 16:33
camelia rakudo-parrot 413650: OUTPUT«(Foo) (Int) (Cool) (Any) (Mu)␤»
japhb p: enum Foo < bar baz >; say Foo.^roles;
camelia rakudo-parrot 413650: OUTPUT«No such method 'roles' for invocant of type 'Perl6::Metamodel::EnumHOW'␤ in block at /tmp/uUxmuttE_H:1␤ in any at /tmp/uUxmuttE_H:1␤ in any at gen/parrot/stage2/NQPHLL.nqp:1146␤ in any eval at gen/parrot/stage2/NQPHLL.nqp:1133␤ in any e…»
japhb p: enum Foo < bar baz >; say Foo.HOW.WHAT 16:34
camelia rakudo-parrot 413650: OUTPUT«(Perl6::Metamodel::EnumHOW)␤»
FROGGS I think enum Foo results in a class Foo with bar and baz being nested classes... so I thought I can access it via .HOW
japhb p: enum Foo < bar baz >; say Foo.HOW.^methods
camelia rakudo-parrot 413650: OUTPUT«No such method 'gist' for invocant of type 'NQPRoutine'␤ in method gist at gen/parrot/CORE.setting:6807␤ in method gist at gen/parrot/CORE.setting:1014␤ in sub say at gen/parrot/CORE.setting:12960␤ in block at /tmp/C2UVFjDoJ6:1␤ in any a…»
japhb p: enum Foo < bar baz >; .Str.say for Foo.HOW.^methods 16:35
camelia rakudo-parrot 413650: OUTPUT«No such method 'Str' for invocant of type 'NQPRoutine'␤ in block at /tmp/PEbTPvQXZw:1␤ in any at /tmp/PEbTPvQXZw:1␤ in any at gen/parrot/stage2/NQPHLL.nqp:1146␤ in any eval at gen/parrot/stage2/NQPHLL.nqp:1133␤ in any evalfiles at gen/p…»
FROGGS p: enum Foo < bar baz >; say Foo.HOW
camelia rakudo-parrot 413650: OUTPUT«Perl6::Metamodel::EnumHOW.new()␤»
japhb p: enum Foo < bar baz >; say Foo.HOW.^methods>>.name
camelia rakudo-parrot 413650: OUTPUT«archetypes new new_type add_enum_value enum_values enum_from_value enum_value_list compose set_composalizer composalize does_list set_name name set_stash_type add_stash add_attribute compose_attributes set_rw rw get_attribute_for_usage attributes add_met…»
FROGGS p: enum Foo < bar baz >; say nqp::how(Foo)
camelia rakudo-parrot 413650: OUTPUT«Perl6::Metamodel::EnumHOW.new()␤»
japhb Ah-hah! 16:36
p: enum Foo < bar baz >; say Foo.^enum_values
camelia rakudo-parrot 413650: OUTPUT«("bar" => 0, "baz" => 1).hash␤»
FROGGS p: enum Foo < bar baz >; say Foo.HOW.enum_values(Foo) # I tried that 16:37
camelia rakudo-parrot 413650: OUTPUT«("bar" => 0, "baz" => 1).hash␤»
japhb loves exploring around the metamodel
TimToady wonders how many geeks are drawn unconsciously into this by tickling the "met a model" neurons.. 16:38
japhb heh
Timbus: Did you want to do the concurrent version of Net--IRC yourself, or accept a PR for it? 16:40
TimToady snowing here, which is yay in the "Californian who rarely sees snow" sense
japhb TimToady: Where is "here"?
TimToady Seattle
japhb Ah. Given that it's going to be in the 60's for the next week here, I'm doubting we'll get any precipitation at all, let alone snow. 16:41
TimToady realizes the Chicagoans are not particularly impresses by an inch or so of snow :)
*pressed
well, yeah, SF is going to have the dryest calendar year on record 16:42
japhb Having grown up in a snowy place, neither am I. Sure fun to watch the rubes freak out, though. :-)
TimToady well, I also grew up here, so it's not like it's a brand new thing
but having lived in LA and MV for the last, oh, 33 years, I haven't had much snow since then 16:43
16:44 kaleem joined
TimToady though it did, in fact, snow in the San Fernando Valley, and stuck 0.25" for the first time in living memory, just before we moved to the bay area 16:44
japhb preflex: ask Timbus Did you want to do the concurrent version of Net--IRC yourself, or accept a PR for it?
preflex Consider it noted.
TimToady Heidi made a snowman that was about 3 inches tall
japhb heh
It's portable -- just not to anywhere warm. :-) 16:45
16:49 eternaleye left 16:51 eternaleye joined 16:59 kaleem left
FROGGS japhb: `say sym.^enum_values;` results in an empty hash :o( 17:05
17:05 [Sno] joined
FROGGS wait 17:06
in this example, the export might even run before the enum elems are known: module Foo { enum NN is export <Abe Bay> }; import Foo 17:07
:/
17:12 denis_boyun_ joined, denis_boyun left 17:15 atroxaper left 17:19 gdey left 17:21 rurban left 17:23 denisboyun joined, denis_boyun_ left 17:24 rurban joined
FROGGS damn it, that enum is created after exporting it 17:26
so I might need to store something like a call to REQUIRE_IMPORT in the ast 17:27
japhb What does that do?
17:28 sqirrel left
japhb Ah, implements runtime import. 17:30
17:33 REPLeffect joined, [Sno] left 17:39 denisboyun left
FROGGS but... no, that would not work 17:41
I need the symbols at compile time
17:41 [Sno] joined 17:45 ajr joined, ajr_ left 17:46 ajr is now known as Guest90071, Guest90071 is now known as ajr_, gdey joined 17:48 denisboyun joined 17:59 denisboyun left 18:00 denis_boyun joined 18:01 treehug8_ joined
timotimo is jnthn already long-time-afk? 18:01
18:04 treehug88 left 18:05 treehug8_ left 18:06 denis_boyun left 18:07 treehug88 joined
lizmat timotimo: yes, he was travelling today to his family 18:09
preflex lizmat: you have 2 new messages. '/msg preflex messages' to read them.
lizmat and am expecting he's spending some quality time afk 18:10
18:12 ajr_ left 18:13 sqirrel joined 18:15 bluescreen10 left 18:25 denisboyun joined 18:27 kivutar joined 18:28 Tedd1 joined
lizmat this just in on perl6advent: ".defined is a verb (method), even though it's being used grammatically as an adjective. Yet, :delete is an adverb, but grammatically a verb. Why is .defined a verb but :exists an adverb? Those choices are a bit confusing to me" 18:30
I'm not sure what to answer there, as I missed most of the discussions as to how and why 18:31
18:32 denisboyun left 18:36 ssutch joined 18:42 darutoko- left 18:43 Rotwang joined
timotimo i wonder how to get the protected static inner class in my superclass 18:45
i guess i'll just expose a method that does nothing but return a new instance of that class >_>
18:45 ajr joined 18:46 ajr is now known as Guest63742, raiph joined, Guest63742 is now known as ajr_
timotimo oh my. i have to rebuild all of rakudo to get changes in the RakudoJavaInterop to stick :( 18:46
this'll take a while :(
raiph lizmat: fwiw I also thought "can I test definedness of a slice? why :exists but .defined?" 18:51
xenoterracide are arrays in function parameters slurpy? can I do sub foo ( @bar, @baz ) { ... } ? 18:58
raiph p: sub f(@a,*@b) {say @b}; f [1], 1,2,3 # this? 19:07
camelia rakudo-parrot 413650: OUTPUT«1 2 3␤»
19:09 [Sno] left
xenoterracide probably, interesting 19:09
19:10 FROGGS[mobile] joined
timotimo i can't get nqp::jvmrakudointerop to work :( 19:24
it says no such method 'jast' for invocant of type nqpmu 19:25
19:30 treehug88 left
FROGGS[mobile] so there is something null-ish again in your ast 19:31
19:32 treehug88 joined 19:33 eternaleye left, eternaleye joined
moritz when I run 'make m-test', all tests produce "No subtests run" 19:37
19:37 ivanshmakov left
moritz but when I run perl t/harness --moar t/01-sanity (which is what make m-test calls), all tests succeed 19:37
FROGGS[mobile] moritz: can you change the merge=>1 to 0 and run m-test again? 19:39
you should then see what fails
19:39 sqirrel left
moritz so "no subtests run" 19:39
FROGGS[mobile] hmmm 19:40
you are sure it passes --moar to t/harness?
moritz yes 19:41
FROGGS[mobile] weird
moritz curiosuly changing the verbisoty to 1 make the tests pass to
except that t/01-sanity/20-defined.t fails an assetion in the end 19:42
moar: 3rdparty/libuv/src/unix/loop.c:150: uv__loop_delete: Assertion `!((((*(&(loop)->active_reqs))[0]) == (&(loop)->active_reqs)) == 0)' failed.
FROGGS[mobile] both indicate a problem with stderr/stdout filehandles
for one that we might need the fix that jnthn pushed as windows-only 19:45
even when I think that a NYI thing for libuv on linux is unlikely 19:46
a test would be to pipe both stderr and stdout to somewhere and see how reliable that is 19:48
19:50 rindolf left
FROGGS[mobile] if libuv gave us the same handle in both cases we were in trouble (as we are now) 19:50
FROGGS moritz: that fail for you too? nqp-m -e 'nqp::say(42)' >>/dev/null 2>&1 19:55
timotimo with optimize=0 and optimize=3 i don't get past Test.pm :( 19:58
is that expected?
19:59 treehug88 left
FROGGS no, I had thought optimize=0 would work 19:59
moritz FROGGS: it produces an exist status of 0 20:00
timotimo should it get past Test.pm?
FROGGS moritz: k, :o( 20:01
timotimo: yes
timotimo :(
FROGGS timotimo: what about --optimize=1 ?=
timotimo i can try that 20:02
and --debug?
20:02 treehug88 joined, ivanshmakov joined
FROGGS doesn't hurt 20:03
moritz: I can't reproduce it on my box 20:08
moritz FROGGS: :/
20:10 bluescreen10 joined 20:19 sqirrel joined 20:20 Entonian joined 20:26 Entonian left
FROGGS is Perl 5's `goto &name` like our `nextwith &name`? 20:27
timotimo should we get bindings to TkInter for perl6? so that we can has pretty UIs? :P 20:28
20:30 colomon left 20:31 colomon joined 20:33 xenoterracide left
TimToady FROGGS: no, would be more like &name.callsame 20:36
well, .nextsame 20:37
FROGGS k, thank you
TimToady dunno if rakudo does the method form yet
20:44 treehug88 left 20:45 treehug88 joined 20:49 Entonian joined 20:52 Entonian left
lue 🌲 hello world o/ 20:55
dalek kudo/nom: 2b027b4 | (Tobias Leich)++ | src/core/Backtrace.pm:
addjust paths to new directory layout
20:56 autumn left 20:57 Timbus left 20:58 Timbus joined 20:59 autumn joined, sivoais_ joined, sivoais left 21:02 dayangkun left 21:04 sivoais_ left 21:05 sivoais joined 21:11 rurban1 left
lue TimToady: I just realized, we have a function that does "char" → Unicode properties, but no function to do properties → <list of chars> (to do things like Foo(:Name(/:sPLAYING CARD/) for a deck of cards). I'm stuck on a name though :) 21:11
My only good thought so far is propsuni, though that could easily get confusing.
FROGGS propsuni does not sound very perlish 21:12
dalek kudo-star-daily: 3f2f537 | coke++ | log/ (5 files):
today (automated commit)
21:13
TimToady do we need that function when we can just grep a list of chars?
[Coke] ponders writing his article.
moritz or we can regex-search for uni props 21:14
lue TimToady: I don't imagine a gather/take setup with uniprops($_.chr) for ^0x11_0000 is very efficient :/ 21:15
I just chose the :Name() property because it was the easiest one to write a valid example for. :) 21:16
21:17 treehug88 left
TimToady how would your function be more efficient than scanning all the entries? 21:17
21:18 dayangkun joined
lue TimToady: I noticed that. There's still the "a lot of people will want to do this at some point" thing in any case :) 21:19
TimToady I guess the lists of chars are available for various properties, as long as it's a simple query
but scanning names isn't going to be much more efficient than a grep of all chars with a regex for the uni prop 21:20
lue TimToady: another idea is to add adverbs to &uniprops, to cut down on the search time. uniprops($_, :Unicode_1_Name) will only return Unicode_1_Name and na1 pairs in the Hash.
TimToady don't over-engineer it
but maybe that's okay
21:21 treehug88 joined, treehug88 left
lue my @a; for ^0x11_0000 { @a.push(chr($_)) if uniprops(chr($_))<na1> ~~ /SIGN/ } <-- I'm concerned over if this action will occur often enough for this snippet to be too much. 21:22
21:22 sqirrel left
lue (though it's easily within the realm of modules...) 21:22
21:23 treehug88 joined
lue If we go with an adverb in uniprops, I don't know if we'd want the adverb to return a Hash with Pairs for all the aliases for the property name, or if it's just the name you used. 21:24
e.g. does uniprops($a, :na1) return a Hash of Unicode_1_Name => "*", na1 => "*" or just na1 = "*" ? 21:25
TimToady my @a = do for ^0x11_0000 { my $c = .chr; $c if $c ~~ /:name(/SIGN>)/ }
er, /<:name(/SIGN/)>/ 21:26
or sump'n like that
lue there's that, I suppose :) 21:27
It's just that I realized "hey waitaminute, how do I do that‽" . I see now that there are ways, and a custom-made function isn't guaranteed to fair better than the existing solutions.
s/fair/fare/
(Of course, limiting the area of your search helps there, e.g. for 0x10_0000..^0x11_0000 to not bother with the BMP.) 21:29
And I'll refrain from adding adverbs to the uniprops function unless/until it's shown that uniprops("a" :Name) is much faster than uniprops("a")<Name> 21:32
FROGGS TimToady: we have subscripts for arrays and hashes, can we have something like that for accessing object attributes too?
TimToady how slow do you want it to run? 21:33
diakopter all the slows 21:35
21:35 kaare__ left
FROGGS I basically want: class Foo { has $.a; has $.b }; my @a-and-b = Foo.new( :a(42), b(42) ).<<a b>> or so 21:36
21:37 educated_poo joined
FROGGS (a more beautiful version please :o) 21:37
educated_poo Did I miss the December Rakudo release?
lue FROGSS: Foo⁅bar⁆ ? :) [yeah, we'll probably have to play with Unicode to get something] 21:39
FROGGS ohh, cleaning the screen doesnt help O.o
nah, would be cool if we could use < > in combination with ( ) 21:40
lue Even better: since you want a hash-y access for attributes (which you normally get with Foo.bar), I found a better bracket pair: Foo⦑bar⦒
FROGGS .<(a b)> ? I guess that is too confusing
raydiak Foo<{([| a b |])}> :)
FROGGS hehe
raydiak: at least this one isnt takes yet *g* 21:41
taken*
TimToady educated_poo: no, still in the works
lue r: say "Foo\x[2993]bar\x[2994]"
camelia rakudo-parrot 2b027b, rakudo-jvm 2b027b: OUTPUT«Foo⦓bar⦔␤»
lue FROGGS: there's your < + ( ☺
educated_poo Okay, thanks.
21:42 educated_poo left
FROGGS lue: my font does not like it :o( 21:42
lue The stuff I've presented so far could have these Texas versions: [-bar-], <.bar.>, and <(bar)> 21:43
FROGGS .oO( Foo:o(<a b>) )
I like <(bar)>, but I have the urge to quote the bar there
lue p: say <"bar">.perl; say «"bar"».perl 21:44
21:44 jnap left
camelia rakudo-parrot 2b027b: OUTPUT«"\"bar\""␤"bar"␤» 21:44
FROGGS p: class Foo { has $.a; has $.b }; say Foo.^attributes 21:45
camelia rakudo-parrot 2b027b: OUTPUT«Mu $!a Mu $!b␤»
ajr_ Overdoing the weird characters runs the risk of emulating APL and enjoying the same popularity. 21:46
FROGGS p: class Foo { has $.a; has $.b }; say Foo.new( :a(42) ).^attributes(<$!a>) # I'd be happy if that does it
camelia rakudo-parrot 2b027b: OUTPUT«Mu $!a Mu $!b␤»
lue ajr_: we're too late. We have been since we decided to allow Unicode operators :D
ajr_: we also have "Texas" versions of all the core Unicode-based operators. 21:47
FROGGS lue: nah, important things are still ascii-ish
lue ∪ is considered important in some circles :)
(don't listen to me; I rather enjoy the look (if not feel) of APL) 21:48
21:49 xenoterracide joined 21:50 jnap joined
raydiak I remember one of my former employers mocking Perl 6, with something like this in mind: upload.wikimedia.org/wikipedia/comm...keybd2.svg 21:51
21:54 xenoterracide left
raydiak anyway, I did have something on topic to ask: can the R* MSI install the JVM backend? 21:56
21:57 rurban1 joined
FROGGS raydiak: I have not seen patches which would make me think that 21:57
TimToady R* does not yet support jvm, maybe next one 21:58
lizmat is tired and goes to bed 22:00
raydiak thanks FROGGS++ and TimToady++ , all I needed to know for now...back to my spheres and cubes :)
FROGGS :o)
22:01 Tene left, rurban1 left
FROGGS if someone does the jvm+R*, I could support him/her 22:01
22:02 djanatyn left
lue raydiak: yeah, I don't like that keyboard. Not nearly as featureful as the Space Cadet. 22:03
lue &
22:04 gfldex left 22:06 djanatyn joined, gfldex joined 22:07 Tene joined
raydiak lue: I've never used such a thing, but think I saw something similar in a nightmare once :) 22:10
FROGGS: what does that entail, generally speaking? 22:11
FROGGS build system hacking 22:12
and we would need to able to build the modules of course
22:14 skids left
raydiak I've been mulling over which ways I could best help, and it doesn't escape my notice that MSI releases are sporadic, and I have a windows box; where can I read about how the MSI is produced? 22:19
FROGGS raydiak: here github.com/rakudo/star 22:22
I did the star release in august and september or so
treehug88 Hey TimToady : just wanted to personally thank you for perl and for making my software development life so, so much better. Thank you.
... and I know it's not JUST timtoady - so thanks to all the other players as well 22:23
22:32 jeffreykegler joined 22:42 raiph left 22:48 xinming left 22:49 xinming joined
raydiak FROGGS: I'll read about it and hassle you if/when I pursue it; life is busy atm, but I would love to contribute something concrete sooner or later 22:52
FROGGS raydiak: I'll be here :o) 22:53
raydiak on a mostly unrelated note, there's another Pray image up, CSG is almost working, and releasing this year is still quite likely 22:59
FROGGS \o/
raydiak++
raydiak I hope spouting off about my own project here isn't too obnoxious...it's mostly b/c nobody around me IRL knows what any of that means :)
FROGGS link? 23:00
raydiak cyberuniverses.com/pray/#pray-image-8
[Coke] editing in the wordpress editor is very annoying. I have a preformatted block. I'm trying to change the next paragraph to "paragraph" style. it changes the preformatted block also. ARGH.
FROGGS raydiak: you need an environment map :o) 23:01
[Coke] any pointers on how to edit stuff in wordpress ?
23:04 xenoterracide joined
raydiak FROGGS: what I need is much more powerful hardware...my $5/mo VPS isn't going to cut it much longer for running Pray :) 23:04
FROGGS [Coke]: no idea
raydiak: how long does it take to render the last image? 23:05
23:05 treehug88 left
[Coke] and it loses leading spaces on preformatted code... wtf? 23:05
FROGGS I remember the time when I rendered stuff using 3dsmax on a dual eleron 466MHz... most stuff took a day for a single image 23:06
raydiak [Coke]: don't use the WYSIWYG editor?
[Coke] raydiak: then I have to format it when I paste it in later. Just trying to save a step.
I cannot be the first advent poster to have this issue.
raydiak FROGGS: it depends on a lot on the scene and there's a lot of polishing to be done, but the last image took somewhere in the 5-10 hour range, while I slept
FROGGS yeah, and then you spot a glitch and you don't intent to sleep again for another 10 hours :/ 23:07
raydiak [Coke]: I had several issues with it, as I have with pretty much every web-based WYSIWYG HTML editor I've used in my lifetime 23:08
FROGGS raydiak: do you know the brazil renderer plugin of 3dsmax?
raydiak FROGGS: that's the game right now...last night's CSG render didn't come out like I was hoping either
FROGGS: nope, I don't have much experience w/3dsmax 23:09
FROGGS it rendered to independent buckets, and several threads an run in parallel where each renders a single bucket
so if you can render a, say, 32 by 32 pixel area in a channel on the jvm.... that might speed it up a "bit" 23:10
raydiak hmmm...the p5 version of pray would SCP itself over the network and then call itself over ssh and wait for the results from each such node
iow, multithreading is definitely in the works, and maybe poor man's clustering like I just described, too 23:11
FROGGS ahh, so you can even run it on several machines for one image?
that is nice :o)
raydiak it was out of necessity, in a way...the unofficial subtitle of the p5 version was "Pray (that you're still living by the time it's done rendering)" 23:13
but that was like a decade ago, too, so hardware was slower 23:14
23:16 PacoAir left
FROGGS gnight 23:22
raydiak \o
23:22 xenoterracide left
lue [Coke]: I personally type up my post in my good ol' text editor (just plain text for me, others differ), and then paste it into the non-WYSIWYG tab of editor, and do the sensitive handling of code blocks and stuff before I go back to WYSIWYG mode. 23:25
(i.e. I keep Wp from applying destructive formatting changes until after I've protected what would be destroyed.)
23:27 sftp_ joined 23:28 sftp left 23:32 xenoterracide joined 23:38 xenoterracide left 23:39 BenGoldberg joined 23:40 skids joined 23:51 raiph joined 23:55 Entonian joined
japhb_ p: say 512 * 512 / (5 * 60 * 60) 23:57
camelia rakudo-parrot 2b027b: OUTPUT«14.563556␤»
23:57 xinming left
japhb_ So raydiak's latest image rendered at ~ 10 pixels per second. 23:58
23:58 Entonian left, BenGoldberg left, xinming joined
japhb_ It would be fun to get an order of magnitude or two improvement there. 23:58
23:58 BenGoldberg joined