pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, smop: etc.) || We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/
Set by TimToady on 25 January 2008.
Mmi Hi. 00:30
When I turn on my laptop, the lights go on but it does not start up. I have to pull out the battery and cut off the power
then try again once reconnecting the battery or cord and sometimes then the BIOS beeps and it actually starts up.
But it is becoming more and more a rarity that it can actually go through and start.
Any ideas what the problem might be? 00:31
Mmi Are there any computer mechanics about? 00:33
pugs_svnbot r20150 | putter++ | [elf_a] A start at sanity/03-equal.t. 00:34
diff: dev.pugscode.org/changeset/20150
lambdabot Title: Changeset 20150 - Pugs - Trac
Mmi I don't understand how this network can have so many people logged in with so few people ever delivering any form of intelligence. 00:35
Is this a bot-net?
mncharity good night all & 00:36
spinclad Mmi: wrong channel. why on earth do you imagine a channel devoted to Perl 6 would be helpful? 00:50
Mmi spinclad, Good computer expertise.
[particle] we're mostly a bunch of linguists 00:51
and software != hardware
spinclad your problem is way off topic, and not of interest.
Mmi spinclad, To like Perl 6 is to love computers.
[particle] want to help improve perl 6? 00:52
spinclad rather, to like computers is to love Perl 6
anyway, my suggestion would be to cut the power and try again. if that fails, try again. 00:53
spinclad perhaps your BIOS is using an outdated version of Perl 6 00:55
you may need to upgrade
Mmi actually, it makes no difference if i shut it down completely or if i am just attempting to resume from hibernation. 00:56
spinclad first, check out a development revision from svn.perl.org/parrot/trunk and svn.pugscode.org/pugs
lambdabot Title: Revision 26516: /trunk 00:57
spinclad recompile, install in your BIOS and presto, all better.
free advice and well worth every penny! 01:00
Mmi i am afraid if i turn it off now i will never be able to start it up again. 01:09
it took me about 10 tries this time.
spinclad well, if it doesn't start again your problem is solved. no need to fear any longer. 01:10
Mmi actually, there are quite a lot of references via google when i search 'laptop not starting'.
it is a fairly common problem it seems.
spinclad good. anything else? want to help with Perl 6? 01:11
eternaleye <Mmi> I don't understand how this network can have so many people logged in with so few people ever delivering any form of intelligence. 01:35
[10:54] <Mmi> Is this a bot-net?
Gah, wrong channel. Trying to show the funniness elsewhere 01:36
Mmi the margin of profit on electronics these days must be very high. 02:23
the efficiency of manufacture in china is most exceptional.
i am tired of paying premium prices for cheap chinese manufacturing. 02:24
moritz_ re 12:06
moritz_ happy easter! 12:21
I just deleted some spam from the IRC logs 12:22
spinclad felices pascuas! 13:06
(and moritz_++) 13:07
allbery_b purim sameach! :p 13:09
lichtkind cant help but ionce i heard of things like @a[-1] in perl 6 as ordinary slice 16:04
pugs_svnbot r20151 | putter++ | [STD_red] try longest tokens first. So && isnt parsed as & . 16:55
diff: dev.pugscode.org/changeset/20151
lambdabot Title: Changeset 20151 - Pugs - Trac
pugs_svnbot r20152 | putter++ | [STD_red] Tweak If, Decl, and string emit. Fake use(). A couple of t sanity tests pass. 16:58
diff: dev.pugscode.org/changeset/20152
lambdabot Title: Changeset 20152 - Pugs - Trac
mncharity /me reminds myself: "the objective of elf_a/b is not to pass t/, but to be useful&interesting enough that others work on it". It's a social project, not yet one more p6 implementation bootstrap. 17:48
s/bootstrap/spin-up/ 17:49
leaving STD...
TimToady: re "but since I'm really the only one running it, that's okay :)", 17:50
(apropos STD.pm)
I am running it both directly and indirectly. Whenever I hit parse fail in elf, which means in STD_red, which happens a lot, if it is in the regions where I think of STD5 as having a chance to work, basically EXPR, checking STD5 is a first step. Right next to reading STD.pm to see what _should_ be happening. Before even looking at STD_red to 17:54
see what might be happening. And indirectly. Because STD_red is simply a hand copy of STD.pm into a more directly executable form. Skipping mainly just @fate, due to its complexity and "known to not yet be working"-ness. 17:56
So STD.pm is in rather heavy use.
I haven't been touching it directly, because it seems to be tightly entwined with your thought and development processes. 17:57
And because my own inclination would be to alter it rather radically. So everything I would change about it, ripping out non-code clutter, isolating code from regexs, moving from "this is a p6 grammar" to "this is a declarative specification of a p6 grammar", and thus to metaprogramming the whole thing, all this is inconsistent with STD.pm's current usage, 17:59
which is to help you put together a working grammar.
(people with line-to-long lossage can see the log) 18:00
But it's my belief STD.pm is _the_ bottleneck on Perl 6 development. It was a year ago when yet_another_regex_engine was looking for a grammar to run. Still is. 18:02
So *anything* I can do to help get us a working grammar, please just ask. And not be at all reticent(sp?) about it. :) 18:03
From grammar follows parser, follows ast and IR, follows emitting to p5 etal. We've walked the path downstream of the parser many times. I went to misc/old_pugs_perl5_backend/PIL-Run/lib/PIL/Run/PrimP5.pm looking for use() code for elf. 18:06
We *just* *need* *a* *fribbling* *parser*. :) 18:07
So anyone who cares about making Perl 6 exist, should be sending TimToady a fruitcake with a little note saying "Anything I can do to help with STD, please just let me know." 18:08
Every Tuesday.
because STD looks like our currently best shot at getting one. 18:10
doesn't even have to be DFA. maybe backtracking would be easier to get working to start with. just, anything. 18:12
mncharity perhaps the two characteristics a parser project needs to have is to be usable now, and to be clearly converging towards "realness / spec-ness / this is really on the mainline development path leading to P6 and not just another dead end". 18:31
STD_red is maybe almost "usable", and inherits the second bit from STD.pm. But other things might have this shape. 18:33
Like a STD5 become usable, of course. But perhaps others as well.
pugs_svnbot r20153 | putter++ | [elf_a] Added multiple file compilation, and an empty prelude. 19:14
diff: dev.pugscode.org/changeset/20153
lambdabot Title: Changeset 20153 - Pugs - Trac
pugs_svnbot r20154 | putter++ | [elf_b] says "hi". 19:32
diff: dev.pugscode.org/changeset/20154
lambdabot Title: Changeset 20154 - Pugs - Trac
pmurias mncharity: is a fruitcake diet healthy? 20:38
mncharity lol :) 20:55
probably not.
"healthy delectable food of your choice"?
does Moose have a root Object class? trying to figure out where to drop the prelude. 20:57
[particle1 it's Moose::Object 20:58
mncharity thanks :) 20:58
[particle] search.cpan.org/~stevan/Moose-0.40/.../Object.pm
lambdabot Title: Moose::Object - The base object for Moose - search.cpan.org
mncharity so the next question is, 20:59
I fuzzily remember there was some magic p5 GLOBAL place where one could define visible-everywhere sub()s. ?? 21:00
allbery_b that had to do with perl5 ithreads 21:01
IIRC
unless you're thinking of package UNIVERSAL which acts like a universal base class
[particle] UNIVERSAL::
mncharity re base class, no, sub rather than method lookup. re UNIVERSAL, looking... 21:02
pmurias mncharity: a use Prelude; is a more human hack 21:03
humane 21:04
mncharity no, not UNIVERSAL I don't think. it was something like a glob where you could stuff, say, a sub substr2 {...}, and have substr2() visible everywhere (just like substr()).
[particle] main:: ? 21:05
mncharity re 'use Prelude;', yeah. :/ So far the output of compilation has the property that it's entirely self contained... oh, it still could. hmm...
re main::, looking... 21:06
doesn't seem to be main: perl -we 'sub main::f{3};package Foo; print f();' Undefined subroutine &Foo::f 21:07
allbery_b no, I didn't think so. I don't think there is such a thing. but, hm, lemme try something
[particle] tr/{}/()/
lumi perl -we 'sub ::f{3}; package Foo; print f();' 21:08
Eck
Not that either, anyway
pmurias mncharity: the output isn't, say is missing 21:09
allbery_b feh. nope, CORE doesn't work that way either
b_jonas there was a node about that
mncharity re Prelude, could inline a package Prelude, then poke INC or whatever so it thinks its already loaded. then can "use Prelude" everywhere, but compiled code remains without external dependencies.
b_jonas I'll search it, a moment
but I think the result was that there's no way to do it
[particle] >perl -we "Foo::bar(123); package Foo; sub bar { &::baz } package main; sub baz { print @_ } " 21:10
123
or "sub bar ::baz(@_)" if you prefer
pmurias mncharity: is self containes a big feature?
[particle] "sub bar { ::baz(@_) }" that is 21:11
mncharity pmurias: re "the output isn't, say is missing", ? 21:11
re ::baz, oh, neat, trying... 21:12
b_jonas mncharity: www.perlmonks.com/?node_id=388819
lambdabot Title: Creating a global function
mncharity re big feature?, bootstrap is hard, and gets even harder if I had you X, and X may or may not stop working at any time depending on how remote files continue to evolve. with self contained, I give you a version of elf_b, which will need to eventually start capturing its own copy of STD_red (for the same reason), and you know it will keep working, regardless of what happens elsewhere. 21:14
you no longer need to worry about how it was created, or whether it happens to have a #!perl at top or not. 21:15
re global, looking...
pmurias prelude.pl is missing from the repo
mncharity oops, sorry, fixing 21:17
pmurias i think you should be using $Code_say instead of &say anyway 21:18
pugs_svnbot r20155 | putter++ | [elf_a] add missing prelude.pl.
diff: dev.pugscode.org/changeset/20155
lambdabot Title: Changeset 20155 - Pugs - Trac 21:19
pmurias if you want lexical subroutines that is
mncharity hmm, that has a bogus package Moose; in it.
ok, so UNIVERSAL::AUTOLOAD (works in 5.10?); main ::baz; and "you're asking the wrong question - it should be lexical". 21:21
with 3, the prelude could be our $c_say = sub{...}; and appear only once. 21:22
pmurias yes 21:25
mncharity ok, cleaning up to do a checkin with completely kludged say(), then... lexicals. 21:28
pugs_svnbot r20156 | putter++ | [elf] Start of support for subs, classes, and method calls. 21:31
diff: dev.pugscode.org/changeset/20156
lambdabot Title: Changeset 20156 - Pugs - Trac
mncharity oops, elf_b_src/main.pl should be a method, not a sub. hmm... 21:32
pugs_svnbot r20157 | putter++ | [elf_a] Start of support for method decls. 21:43
r20157 | putter++ | [elf_b] main.pl now uses a method main().
r20157 | putter++ | [STD_red] Provide a Match for method_def.
diff: dev.pugscode.org/changeset/20157
lambdabot Title: Changeset 20157 - Pugs - Trac
mncharity btw, thanks everyone.
especially for the "you are barking up the wrong tree". :)
hmm, /me wonders if trying to get function namespaces to work right is out of scope for the elf_a backend. the question is "is this a minimally required thing to make p6 writing of elf_b comfortable". 21:49
answer no. then the only question is given that absent GLOBAL::CORE or somesuch, if one has to hack anyway, which direction to hack in. 21:50
b_jonas still those elves 21:52
mncharity given that methods work, perhaps could live with a "flat single global namespace" for functions. eeww. would mean no helper sub... no, my $s = sub{}; should work. $s.() ... dunno. 21:53
? :)
pmurias what's wrong with subs as $Code_foo ? 21:54
mncharity {pkg A; my $c_f=...; } {pkg A; ... no f...}, 21:57
in ruby lexicals and method calls look the same, so you can fudge one to the other. but p5, it may be that it requires real emitter groveling over the ir. 21:59
"if it requires real work, it hopefully doesn't belong in elf_a". because you want to be writing it in p6. 22:00
pugs_svnbot r20158 | putter++ | [elf_a] All sub()s appear in package main, regardless of where they are defined. But method()s do the right thing. And my $x = sub(){}; $x.(); now works. 22:13
diff: dev.pugscode.org/changeset/20158
lambdabot Title: Changeset 20158 - Pugs - Trac
mncharity ++... allbery_b and lumi and b_jonas to search out the path originally envisioned, and the pain therein. [particle] to suggest a different path. pmurias to ask the right questions and provide the focus needed to choose that path. /me to write just <10 lines of code. 22:19
yay :P 22:20
mncharity hmm, what next... 22:21
mncharity no way to use arrays and hashes at the moment. maybe that, then teaching elf_b_create.pl to write the p6 for the IR nodes. then get elf_b using STD_red. 22:26
i wonder if there's an autobox module which provides ->push() etc... 22:27
wolverian autobox::Core 22:28
and Moose::Autobox...
mncharity oh, wizzy. maybe this won't be too painful... 22:29
pugs_svnbot r20159 | putter++ | [elf_a] Start of support for arrays. "my $x = [2,3,4]; say $x.[1]; $x.push(6);" works. 22:55
diff: dev.pugscode.org/changeset/20159
lambdabot Title: Changeset 20159 - Pugs - Trac
pugs_svnbot r20160 | putter++ | [elf_a] Start of hash support. "my $h = {3,4,5,6}; say $h.{5}" works. 23:07
diff: dev.pugscode.org/changeset/20160
lambdabot Title: Changeset 20160 - Pugs - Trac
wolverian whoot, nice work 23:08
mncharity looks like infix:= wasn't working because YAML::Syck::Load was taking str: = and building 'str'=>'str'. odd, really odd. 23:31
pugs_svnbot r20161 | putter++ | [elf_a] infix:= no longer mutates into infix:str (seems to be a YAML::Syck::Load bug). Fixed Match.to (no longer reports .from). Fixed comment handling for .config files.
diff: dev.pugscode.org/changeset/20161
lambdabot Title: Changeset 20161 - Pugs - Trac
mncharity err, taking str: "=" . and str: '=' behaved the same. 23:33
infix:str now emits as lhs = rhs. sigh. but works :) 23:34
hmm 23:35
doh 23:37
pugs_svnbot r20162 | putter++ | [elf_a] Moved infix:= workaround from emit_p5 to ast_handlers.
diff: dev.pugscode.org/changeset/20162
lambdabot Title: Changeset 20162 - Pugs - Trac
mncharity perl -MYAML::Syck -MData::Dumper -we 'print Data::Dumper::Dumper(YAML::Syck::Load("---\nstr: \"=\"\n"));' $VAR1 = {'str' => 'str' }; v5.10.0 YAML::Syck 1.04 23:43
what was that Bill the Cat expression?
wp says "Thbbbt!". I thought there was one starting with a P. The coughing up hairball noise. :) 23:45
curiously, '=' and bare = (vs "=") seem to work 23:46
mncharity dinner & 23:50
mncharity runtime on "say 3" is up 1 sec over earlier to 1.4 sec. :/ wonder why. 23:55