pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/
Set by Tene on 29 July 2008.
00:08 zamolxes joined 00:23 fridim_ left 00:30 wknight8111 joined 00:41 pcbuetow left, alanhaggai joined 00:43 Aisling left 00:46 Aisling joined, alester left 00:59 alester joined 01:16 Khisanth left 01:20 Khisanth joined 01:21 justatheory joined 01:22 Ontolog joined 01:56 justatheory left 02:03 Limbic_Region joined 02:07 sri_work left 02:16 hercynium joined, hercynium left 02:35 Bzek joined 02:37 pasteling left 02:56 alester left 03:00 elmex left 03:01 eternaleye left 03:02 elmex joined 03:28 Limbic_Region left 03:36 PZt joined 03:40 xrt joined 03:46 xrt left 04:15 alester joined 04:24 explorer left 04:32 Ontolog left 04:43 slavik joined
slavik hmm 04:45
I got a grammar thing to work :) 04:46
sort of
04:48 FireMinion left
slavik if I have two rules in a grammar, how can I match a string against the whole grammar an then figure out what rule in the grammar was matched? 04:53
05:22 Bzek left 05:43 slavik left 05:49 Psyche^ joined 05:58 azawawi joined
azawawi moritz_: ping 05:58
06:06 Patterner left, Psyche^ is now known as Patterner 06:29 alester left 06:35 azawawi left 06:52 bsb joined 07:18 iblechbot joined 07:22 Bzek joined 08:44 schmalbe joined 08:53 ihrd joined 08:58 pmurias joined
pmurias mj41_: the sial.org link doesn't work for me 09:02
ihrd yes, "Proxy Error" 09:19
09:19 bsb left
pmurias or an not found one when using https 09:30
https defeats proxies right? 09:31
09:33 pbuetow joined 09:36 ihrd left 09:38 meppl joined 09:55 azawawi joined 10:14 schmalbe left 10:19 masak joined 10:20 azawawi left 11:03 ejs joined 11:07 dominiko joined 11:34 fridim_ joined
pugs_svn r22649 | pmurias++ | [mildew] runs mildew/t/pure_prototype_how.t 11:37
11:53 [1]Maghnus is now known as Maghnus 12:18 dominiko left
masak is "file".:e supposed to work in Perl 6 without quoting the ':e' part? 12:38
rakudo: say '.'.':e'
p6eval rakudo 31963: OUTPUT[Method ':e' not found for invocant of class 'Perl6Str'ā¤current instr.: '_block11' pc 30 (EVAL_14:16)ā¤]
masak ah, seems my change from yesterday hasn't reached p6eval yet 12:39
pmurias masak: i guess it should 12:55
12:55 alanhaggai left
masak I guess so too. 12:55
12:55 xiaoyafeng joined
masak right now Rakudo rejects the syntax with a funny error message 12:56
pmurias S12:739
pugs: 'foo'.:e
p6eval pugs: OUTPUT[*** ā¤ Unexpected ":e"ā¤ expecting ".", "\187", ">>", "=", "^", operator name, qualified identifier, variable name, "...", "--", "++", "i", array subscript, hash subscript or code subscriptā¤ at /tmp/lJA1UZsNvk line 1, column 7ā¤]
12:57 ejs left
masak aye. I've seen it used in other places in the synopses as well. S16, frex. 12:57
I'll send rakudobug an email about it. 12:58
done. 13:01
pmurias masak: i *could* add .:e support to mildew but it's not exactly on the ROADMAP right now 13:10
masak pmurias: not asking you to. :)
I'm just thinking along these lines because I added "file" ~~ :e support to Rakudo yesterday
pmurias: btw, I hear this 'mildew' name being dropped all the time nowadays. I thought you guys were building sm0p and m0ld and stuff. where does mildew fit into the picture? 13:11
13:13 adc_Penner joined
pugs_svn r22650 | pmurias++ | [mildew] infix:<:=> 13:14
pmurias masak: sm0p is dead
mildew is our perl6 compiler
masak nice
what does it compile to?
pmurias m0ld
masak :)
which is...? 13:15
pmurias the assembler
masak so, sort of like PIR?
pmurias yes
with a perl6 syntax and 4 opcodes
masak is Perl 5 compatibility on the ROADMAP? 13:16
pmurias yes
masak good. that's a killer feature.
13:16 ruoso joined
pmurias ruoso: hi 13:16
masak ruoso: hi
ruoso hi pmurias masak 13:17
lambdabot ruoso: You have 1 new message. '/msg lambdabot @messages' to read it.
ruoso just lost a morning doing maintainance in his Thinkpad T60
a bad contact fixed with a small piece of alluminum and a small rubber band to keep the pressure 13:18
ruoso hates computer parts that are not fixeable by amateurs...
pmurias ruoso: pure_prototype_how.t runs 13:20
ruoso YAY!
pmurias++
ruoso svn update'ing 13:22
pmurias, while it runs, I can't see the output... 13:31
13:32 jan_ left
pmurias how do you run it? 13:34
ruoso v6/mildew$ perl mildew --file t/variable_declaration.p6 | LD_LIBRARY_PATH=../smop/build/ ../smop/m0ld/dist/build/m0ld/m0ld --exec
pmurias make'd smop? 13:35
ruoso yes
I even removed build and m0ld/dist
and rebuilt everything 13:36
including './Setup configure --flags=SMOP; ./Setup build'
inside m0ld
13:36 alanhaggai joined
pmurias it works here, maybe i have old something 13:37
you could nopaste perl mildew --file t/variable_declaration.p6 --desugar 13:40
i rebuild STD, rm -fr lex and rm -fr build;make in smop and it prints output
ruoso ok... let me rebuild STD 13:41
pmurias btw t/variable_declaration.p6 is a different test
ruoso yeah... I know...
pmurias++ # rebuilding STD works 13:43
pmurias something like gobby for shells would be nice
ruoso we could have the evalbot updated to use mildew instead of pugs for smop 13:45
that's very cool 13:46
because we're actually using STD as the parser for SMOP 13:47
pmurias i'm not really sure how do procced with adding a new evalbot backend 13:54
ruoso pmurias, at first we could have mildew optionally accepting STDIN 13:55
pugs_svn r22651 | pmurias++ | [mildew] defining simple subs argumentless subs with <:=> 14:02
pmurias ruoso: feel free to change mildew's interface any way you like 14:04
ruoso :)
pmurias as long as you don't use the elf one with swarms of one letter options which do evil things 14:08
ruoso I'm just planning to fallback to STDIN if no --file is set 14:09
14:10 abra joined
pugs_svn r22652 | ruoso++ | [mildew] fallsback to STDIN if no --file is set 14:11
14:12 abra left
ruoso mildew$ echo '$OUT.print("Hello World!\n")' | perl mildew | LD_LIBRARY_PATH=../smop/build/ ../smop/m0ld/dist/build/m0ld/m0ld --exec 14:13
14:14 jhorwitz joined
pmurias lunch& 14:15
14:18 fridim_ left 14:26 jan_ joined 14:35 zch051383471952 joined
ruoso :D brazil just won the futsal world cup ;) 14:46
14:49 abra joined
masak ruoso: congratulations. 14:51
ruoso :D
14:57 wtgee1 joined 15:07 wtgee1 left 15:10 abra left 15:11 alanhaggai_ joined, alanhaggai left, alanhaggai_ is now known as alanhaggai 15:12 abra joined 15:13 abra left 15:15 abra joined 15:18 zch051383471952 left
masak can you store a reference to a method in a variable? 15:21
15:29 ruoso left 15:30 araujo left 15:35 fridim_ joined
pmurias masak: yes 15:40
masak how?
pmurias my $method = method {...}
masak ah, but I mean en existing method, one that was declared already in some class that I maybe didn't write 15:41
pmurias you could use the meta protocol
15:45 explorer joined 15:58 abra left 16:00 abra joined
pugs_svn r22653 | pmurias++ | [mildew] 16:00
r22653 | pmurias++ | --exec option to execute the code instead of just compiling
r22653 | pmurias++ | "make test" runs all mildew tests
pmurias TimToady: any ideas how to reduce the STD startup time?
16:03 abra left, fridim_ left 16:04 elmex left, elmex joined 16:05 abra joined 16:13 abra left 16:22 sri_work joined 16:26 [bobrik] joined
[bobrik] any gentoo users here? 16:26
16:28 mberends joined
TimToady STD starts up in less than a second, so you must mean something else 16:32
16:49 masak left
pmurias [bobrik]: i'm an gentoo ex-user 17:04
[bobrik] pmurias: how did you installed parrot with perl6 support? languages/perl6 is empty for me =(
pmurias TimToady: mildew executing a single test takes ~1.0 sec 17:05
[bobrik]: if it's empty for you propably have a broken checkout
TimToady: i could use joint compilation for tests if they become to numerous (>30) 17:10
[bobrik] pmurias: `emerge parrot` 17:12
build workdir contain perl6
pmurias: how did you install that?
pmurias you should propably checkout parrot from version control and build it yourself
[bobrik]: i didn't install parrot 17:13
[bobrik] you checked it from svn and built yourself? 17:14
pmurias yes 17:15
moritz_ re 17:17
lambdabot moritz_: You have 1 new message. '/msg lambdabot @messages' to read it.
moritz_ @massages
lambdabot azawawi said 1d 9h 45m 59s ago: im interested in www.nntp.perl.org/group/perl.perl6....g788.html.
moritz_ pmurias: re mildew, what do I need to run it? 17:18
pmurias moritz_: perl mildew --exec --file file
moritz_ pmurias: does it need write access anywhereƟ 17:19
s/Ɵ/?/
pmurias lex propably
moritz_ v6/mildew/lex?
pmurias and you need to compile m0ld v6/smop/m0ld with ./Setup configure --flags=SMOP;./Setup build
yes
it's STD based
moritz_ @tell azawawi go right ahead ;) 17:21
lambdabot Consider it noted.
17:21 silug joined, Bzek left 17:24 ruoso joined
moritz_ pmurias: setting up lex/ rw for the 'evalbot' user is a bit of an effort, so I don't know if I'll do it today... but if it's not done by Wednesday, feel free to bug me again ;) 17:24
pmurias moritz_: you did it for pixie right?
moritz_ pmurias: no, but for STD.pm 17:25
pmurias pixie: say 1
p6eval pixie: No output (you need to produce output to STDOUT)
pmurias pixie: 1
p6eval pixie: No output (you need to produce output to STDOUT)
moritz_ does pixie re-use STD.pm's lex cache?
17:25 ruoso_ joined
pmurias don't remember, pixie is not important 17:26
moritz_ ok ;)
is it still developed?
pmurias no
moritz_ then I'll rip it out of evalbot
pmurias fine, it's broken anyway
17:26 ruoso__ joined, ruoso__ left 17:27 ruoso left, ruoso_ left, abra joined, ruoso joined
ruoso .oO( doing maintainance on laptops sucks ) 17:28
pmurias ruoso: you are aware we fake stacklessness for other interpreters by saving an restoring the stack in an unportable manner? 17:29
ruoso what do you mean? 17:30
pmurias s/an/and 17:31
ruoso: it's possible to save the C stack if we are willing to resort to assembler
ruoso we don't even need to go to assembler
C99 specs longjmp
ruoso wonders if pmurias meant "aware that we *could* fake" 17:32
pmurias yes 17:34
ruoso yes... I'm aware of that.. and in fact... that is probably a good way to provide p5 XS integration
that subject was discussed this week
about getting p5 XS macros and changing it when building the SMOP p5 interpreter 17:35
and subverting the current XS macros to do this kind of hack
TimToady even said that was the ponie idea
considering SMOP p5 would require a recompilation of binary modules... which seems just fine... 17:36
pmurias why would we need to change the XS macroes?
ruoso because the C code inside XS modules might be recursing on the p5 interpreter using the C stack 17:37
so we would need to change the macros so that instead of doing the call, it would save the current stack and recurse without using the C stack
in fact... this trick could be used to remove current p5 non-stacklessness 17:40
17:44 FireMinion joined
pmurias ruoso: can longjump also "rewind" the stack or only unwind it? 17:46
ruoso pmurias, setjmp is the reverse
pmurias, are you aware that the latest changes broke tests in smop? 17:48
pmurias hm, checking 17:49
ruoso pmurias, it looks ".^!how()" in p6opaque is not working as expected 17:50
17:55 abra left
pugs_svn r22654 | moritz++ | [docs/tutorial] (aka book) many clean ups and enhancements to ch07_grammars.pod. 17:56
r22654 | moritz++ | Also other small fixes.
r22655 | pmurias++ | [smop] fixed failing p6opaque tests
ruoso pmurias, I'm not sure the recusion in p6opaque is a good idea 17:57
that ckecing should probably be made inside the sm0p block (which could be translated to m0ld) 17:58
we even have the ri test already 17:59
pmurias propably, it wouldn't change anything the way p6opaque is currently implemented
ruoso pmurias, do I translate it to m0ld or you do it? 18:00
18:02 abra joined
pmurias you can do it 18:03
ruoso ok 18:04
moritz_ perlgeek.de/blog-en/perl-6/tidings-2008-10.html # any comments?
lambdabot Title: blog | Perlgeek.de Blog :: Perl 6 Tidings from September and October 2008
18:05 cathyal joined 18:10 abra left
pmurias moritz_: s/kreep/creep/ # OTOH maybe it's intentional 18:11
literal moritz_: awesome
ruoso moritz_, awesome, indeed
pmurias moritz_: re syntax highlighter plugging something like that into STD5_run shouldn't be hard 18:13
* STD5_dump_match
moritz_ pmurias: probably, but I didn't grok the code :/ 18:14
pmurias traverse_match creates an array of events (like rule starts, rule ends) and process_events executes them in the order of their positions in the source file 18:16
18:16 pedrob joined 18:17 pedrob_ joined
pmurias moritz_: it should become clearer if you what the $events passed to traverse_match contains after the topmost traverse_match finishes 18:17
literal moritz_: I see a few typos, "simple most solution" (most simple solution) and "hybernating"/"hybernates" (hibernating/hibernates), "agend" (agenda) 18:18
moritz_ literal: thanks, fixed 18:19
pmurias moritz_: and you didn't mention that smop now uses viv ;)
moritz_ pmurias: does it? how? through mildew?
pmurias: just write a paragraph or two about it, and I'll add them to the page 18:20
pmurias yes, mildew uses viv
moritz_: as a comment? 18:23
18:25 pedrob left
moritz_ pmurias: or nopaste it, then I'll add it to the main posting 18:27
18:27 ujwalic joined 18:28 abra joined 18:29 abra left
pmurias SMOP now has a new compiler mildew which uses viv/STD as it's parser. 18:31
Mildew supports only a handfull of stuff now (creating an object with a simpilified meta model being the most advanced one)
is the most i came up with ;)
moritz_ pmurias: ok, updated the post 18:35
it now reads "SMOP now has a new compiler named mildew which uses viv/STD as its parser. Right now it supports only a handfull of operations, the most advanced of it is creating an object with a simplified meta model.
It lives in the Pugs repository under v6/mildew/."
18:35 pedrob joined
pmurias any one willing to hack on it in perl5 is welcome to come to #perl6 18:38
;)
18:40 pedrob__ joined 18:41 pedrob__ left 18:42 eternaleye joined 18:51 pasteling joined, pasteling left, azawawi joined
azawawi ping 18:51
lambdabot azawawi: You have 1 new message. '/msg lambdabot @messages' to read it.
moritz_ pong ;) 18:52
18:52 abra joined
azawawi so basically we should look for '_from','_to' of the deepest leaf of the yaml output 18:54
18:54 pasteling joined
moritz_ that should work, I think 18:54
azawawi moritz_: the problem is that the type is not provided in the yaml output 18:55
moritz_ azawawi: I don't think you need to actually care about the yaml or json thing... take a look at the `tryfile' script 18:57
instead of Dump($r) in the last line you can work with $r directly
pasteling "azawawi" at 212.38.141.105 pasted "yaml output of 'my $foo = "hello"'" (139 lines, 3.8K) at sial.org/pbot/32716
azawawi looking at it 18:58
18:58 pedrob left
moritz_ azawawi: I think the "reduced" is the most interesting thing, it gives you the name of the rule 18:58
18:59 pedrob joined, ujwalic left, silug left
azawawi moritz_: hmmm, then we simply match _reduced:'variable' to its color and we're done ;-) 19:00
19:00 pedrob_ left
moritz_ azawawi: I don't know if it's that easy, but you can find out by trying ;) 19:00
19:02 fridim_ joined
azawawi moritz_: any favourite color scheme for highlighting? ;-) 19:02
moritz_ azawawi: I like vim's, but I don't really care 19:03
azawawi: colors are just constants, and easy to change
azawawi: even better, you could emit xhtml + <span class="syn_variable"> and the like, so colors could be changed in the csss
s/csss/css/
azawawi moritz_: nicely said... 19:04
pmurias azawawi: you're implementing the syntax highligher?
azawawi moritz_: already did it in runpugs
pmurias: yeah... trying ;-)
pmurias if you want to work with an array of rule starts and ends you can reuse the code in DumpMath.pm 19:05
in src/perl6
19:08 Patterner left
pmurias azawawi: or i can do it 19:08
azawawi pmurias: what XML is it talking about in DumpMath.pm? 19:09
19:12 fridim__ joined, fridim__ left
pugs_svn r22656 | pmurias++ | added STD_syntax_highlight a prove of concept core of a syntax highlighter 19:14
pmurias azawawi: old comment meant to remove it for a long time ;)
azawawi: STD5_dump_match has a second output mode which spits out the match in XML like format (--horizontal) which was the default a long time ago 19:15
azawawi pmurias++ 19:19
pmurias azawawi: are you hacking or STD_syntax_hightlight now (want to avoid duplication, we can gobby of course ;) 19:20
19:21 alanhaggai left
azawawi pmurias: hacking... ;-) 19:21
pmurias: STD_syntax_highlight does not understand pod comments 19:22
moritz_ that's probably because they are parsed with <.ws>, which doesn't show up in the parse tree 19:23
pasteling "mj41" at 147.229.5.124 pasted "subversion problem inside pugs/v6/smop/m0ld directory" (28 lines, 1K) at sial.org/pbot/32717 19:25
pmurias mj41_: general subversion evilness 19:29
rm -fr m0ld 19:30
svn up m0ld
azawawi: we could change the STD.pmc creation process to keep all info 19:34
pasteling "azawawi" at 212.38.141.105 pasted "possible output from STD_syntax_highlight 'my $foo="Hello"'" (25 lines, 1K) at sial.org/pbot/32718 19:35
moritz_ azawawi: it would be much more useful to have each piece of text embedded in only one <span>...</span> 19:37
pmurias moritz_: it would be premature optimalisation 19:38
azawawi moritz_: sure, but that info can be used later to show the parse tree on a click on '$foo' for instance...
moritz_ shuts up ;)
pmurias azawawi: commit early, commit often 19:39
moritz_ aye
azawawi pmurias: shall i start working on STD_syntax_highlight then? 19:41
pmurias notices that commit yearly is frighteningly similar
azawawi: so the example was a manual mockup ;)
?
azawawi yeah
pmurias: i took your output and modified it 19:42
pmurias: "possible output from STD_syntax_highlight" ;-)
pmurias you can start working if you want
azawawi pmurias: thx for jumpstarting the project ;-)
pmurias i don't have the patience to write all the CSS rules so i wouldn't set upon it myself 19:43
azawawi pmurias: javascript + css is my domain ;-) 19:44
19:45 pbuetow left
pmurias shower& 19:45
19:53 Aisling left 19:54 Aisling joined 19:55 explorer left 20:11 abra left 20:19 Psyche^ joined, Psyche^ is now known as Patterner
pmurias azawawi: how the syntax highlighter going ? :) 20:27
azawawi pmurias: nicely... nearly there
literal will it work with vim? :P 20:28
pmurias literal: i'm afraid not 20:29
moritz_ literal: you don't want that. For a syntax hilighter in an editor you want something that doesn't die when it finds a syntax error ;)
20:34 ruoso left, ruoso_ joined
pmurias moritz_: not nessesarly 20:34
necessarily, STD could serve as a sort of syntax checker 20:35
moritz_ well, it could be made as a hook on :w 20:36
pmurias literal: it should be possible to write a STD based syntax highlighter for vim 20:39
20:42 explorer joined
pugs_svn r22657 | azawawi++ | updated STD_syntax_highlight to output some colors 20:44
r22658 | moritz++ | [STD_syntax_highlight] also emit <pre>...</pre> tags around code 20:48
pmurias moritz_: should pre be done by CSS? 20:50
moritz_ pmurias: don't think so 20:51
so that non-CSS-aware clients display it as correctly as possible 20:52
pmurias non-CSS-aware clients don't see the color 20:53
moritz_ pmurias: but then they see at least the whitespaces 20:54
pmurias moritz_: do you use or now of anyone using non-CSS-aware clients? 20:55
moritz_ pmurias: links and lynx
azawawi moritz_: mobile devices 20:56
moritz_ azawawi: I'd like to introduce a two-stage translation, for example I'd translate both scope_declarator and routine_declarator to 'keyword', and then only emit a css calss for 'keyword' - does that meet your approval? 20:57
azawawi moritz_: yeah why not 20:58
moritz_ (background: I don't know if it's a good idea to emit a few hundred css classes)
azawawi moritz_: let us not optimize atm 20:59
21:00 [bobrik] left
moritz_ as you wish ;) 21:00
azawawi studying the STD grammar...
pmurias: how do we get token 'pod_comment'? 21:02
pmurias we can compile a custom STD 21:03
moritz_ I think TimToady will be interested in solving that problem soon too 21:05
azawawi i think it can also be detected without any STD.pm change... looking at the html output 21:06
pmurias azawawi: you mean doing manual reparsing of the whitespace?
moritz_ pmurias: not re-parsing... but everything that's not matched by any rule got to be a whitespace 21:07
azawawi pmurias: when all spans are closed, that's a whitespace
azawawi testing this theory
pmurias moritz_: everything is matched by topmost rule 21:08
pugs_svn r22659 | moritz++ | [STD_syntax_highlight] HTML-Escape <>&". Add a few CSS classes.
pmurias it should be possible to turn <.foo> into <foo> with either a modified gimme5 or a STD preprocessor 21:09
moritz_ ... or with the :keepall modifier 21:10
21:11 araujo joined
pmurias that's the theoretical solution 21:11
cathyal OT 21:13
pascal is delphi these days?
moritz_ iirc delphi = pascal + gui (+ objects?) 21:14
cathyal ohh
really?
woah
didnt think pascal still existed
pmurias some people learn it a the "first" language in Eastern Europe 21:16
cathyal yeah we had it in school 21:17
pascal i.e
moritz_ it's commonly used as a teaching language
or at least it used to be
cathyal speakinog of which 21:19
something about haskell
i am thinking that Elaine's symbolic progrmaming language in Enochian will be based on Haskell ?
are there any symbolic languages based on haskell yet\
pmurias cathyal: Enochian and Elaine being? 21:23
cathyal pmurias: www.millvexations.co 21:25
pmurias: www.millvexations.com
lambdabot Title: Mill Avenue Vexations: Sub-Culture in Tempe, Arizona
cathyal elaine is a girl; and Enochian is an old symbolic ciphertext psudeolingustic language designed by John Dee as the supposed "language of the angels 21:27
pugs_svn r22660 | moritz++ | [STD_syntax_highlight] some more colors 21:29
pmurias cathyal: haskell and esothericisms are on the opposed ends of the spectrum 21:30
and clearly Lisp is the language from which the gods wrought the universe. 21:31
moritz_ has enough trouble remebering one fantasy language
pmurias: ... except that they hacked most of it together in perl, actually ;)
cathyal so are you saying lisp is what should be used 21:32
moritz_ xkcd.com/224/
lambdabot Title: xkcd - A Webcomic - Lisp
cathyal so whats a good langhuage for this 21:34
haskell was in mind
moritz_ was haskell in mind /me goes to bed
s/was/with/ 21:35
cathyal heh 21:37
so then ?
pmurias cathyal: angels should be communicating in a programming language 21:43
* shouldn't 21:46
unless they are robotic
cathyal heh 21:53
21:57 fridim_ left 22:17 justatheory joined 22:20 azawawi left 22:23 iblechbot left 22:32 pedrob left 22:33 adc_Penner left 22:36 pmurias left 22:42 silug joined 22:59 explorer left 23:20 Aisling left 23:32 Aisling joined 23:41 PZt left, Entonian joined 23:47 justatheory left 23:52 justatheory joined