Camelia, the Perl 6 bug

IRC log for #parrot, 2010-12-26

Parrot | source cross referenced

| Channels | #parrot index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:02 tadzik hi :)
00:02 fperrad left #parrot
00:02 rfw hey fbrito
00:02 rfw haven't seen you around in a while
00:02 fbrito hello! :D
00:03 * rfw is working on some weird dragonfly bsd task that involves submitting uuencoded gzipped tars to netbsd
00:03 fbrito Merry Christmas!
00:03 rfw happy boxing day!
00:03 fbrito rfw: yes... I was really busy working for my father :(
00:03 rfw oh
00:03 rfw what were you doing
00:04 rfw (nolan is kicking your ass, by the way)
00:06 fbrito rfw: my father has a small company and I am responsible for the system they use to control the sales, inventory, and so on
00:06 rfw ah
00:06 rfw what do they use?
00:06 fbrito the system I made with ruby on rails :o
00:07 rfw oh thank god
00:07 rfw i thought you were going to say äccess"
00:07 rfw er
00:07 rfw "access"*
00:07 rfw goddamn these stupid dead keys
00:07 fbrito hahaha
00:07 M_o_C left #parrot
00:07 fbrito rfw: here, some screenshots: http://fernandobrito.com/site​/img/portfolio/portfolio1.png
00:07 fbrito http://fernandobrito.com/site​/img/portfolio/portfolio2.png
00:07 rfw lol you have your own webstie
00:08 rfw i would make one but i would have nothing to put on it
00:08 fbrito ahaha
00:08 fbrito you can put stuff about GCI :D
00:08 fbrito rfw: I have even made a business card! LOL
00:08 rfw haha
00:09 fbrito "Fernando Brito Corporation"
00:09 fbrito but it was just for fun
00:09 rfw i wish i could read your webstie
00:09 rfw well, i guess i could slog through this google translate
00:10 fbrito Google Translate? :D
00:13 rfw yeah D:
00:13 rfw you know fbrito
00:13 rfw why is ror so popular
00:13 fbrito because its *magical*
00:13 fbrito lol
00:13 rfw how so
00:13 rfw must be
00:13 rfw pretty damn magical to popularize a language like ruby
00:15 tadzik oh, don't get too pythonic
00:16 rfw tadzik: but i love python :(
00:17 tadzik well, I hope you're not like most of the pythonists I know
00:17 rfw in what way
00:18 tadzik "You write Perl? You like Perl? Why do you use Perl? Perl is ugly. Why don't you use Python? Everyoune should use Python. Why don't you use Python instead? Blah blah"
00:18 rfw haha oh god no
00:19 tadzik in this specific case the internet people behave better that the real people :)
00:19 rfw though i do make the occassional perl quip
00:19 tadzik (the ones I cope with)
00:21 dalek TT #1905 created by nwellnhof++: t/pmc/thread.t segfaults with --leak-test
00:21 dalek TT #1905: http://trac.parrot.org/parrot/ticket/1905
00:21 tadzik self.sleep # abayo!
00:22 fbrito bye :D
00:25 rfw left #parrot
00:26 dukeleto fbrito: did you find some new tasks to keep busy?
00:27 fbrito dukeleto: I am already late on a Parrot task :S (github post hook)
00:27 dukeleto fbrito: i added a few code coverage tasks
00:27 fbrito oh, nice! :D
00:27 dukeleto fbrito: that task should only need a few lines added. are you using the CPAN github api perl module?
00:28 dukeleto fbrito: http://search.cpan.org/perldoc?Net%3A%3AGitHub
00:28 dukeleto fbrito: you should use the commit API to get a diff and then add that to the email
00:29 dalek parrot: 8ecae26 | bacek++ | / (3 files):
00:29 dalek parrot: Don't coerce Null PMCs into values in PCC. Closes #1630
00:29 dalek parrot: review: https://github.com/parrot/parrot/commit/8ecae2661c
00:29 fbrito I was trying to keep it simple, without adding any dependencies...
00:30 rfw joined #parrot
00:30 fbrito but my main problem is being unfamiliar with perl itself :P
00:31 dukeleto fbrito: don't worry about dependencies. You probably want to use Net::Github, it will make your life easier
00:31 dukeleto fbrito: this isn't a dep of installing parrot, this is a dep on the server that runs the hook
00:32 dukeleto fbrito: i highly recommend reading the Modern Perl book that chromatic++ just wrote. It is free online
00:33 dukeleto fbrito: even just the first chapter may help you with learning Perl
00:33 dukeleto fbrito: that book gives you the correct philosophy that you need to approach Perl with
00:34 fbrito ok, I will take a look :D
00:34 fbrito dukeleto: thank you for your help
00:35 dukeleto fbrito: no worries! good luck
00:37 dalek TT #1630 closed by bacek++: null arguments automatically coerce to empty strings
00:37 dalek TT #1630: http://trac.parrot.org/parrot/ticket/1630
00:47 dalek parrot: 8e48a67 | bacek++ | / (4 files):
00:47 dalek parrot: Constify STRING* args
00:47 dalek parrot: review: https://github.com/parrot/parrot/commit/8e48a671f5
00:47 dalek parrot: bb81d4b | bacek++ | / (2 files):
00:47 dalek parrot: Add 2 more PMC boxing functions
00:47 dalek parrot: review: https://github.com/parrot/parrot/commit/bb81d4be69
00:47 dalek parrot: 5599e9f | bacek++ | src/hash.c:
00:47 dalek parrot: Use parrot-wide PMC boxing functions
00:47 dalek parrot: review: https://github.com/parrot/parrot/commit/5599e9fa92
00:57 cotto Go bacek!  Nice work.
01:02 mikehh yeah, nice to see the coding robot back :-}
01:04 mikehh bacek: seriously missed seeing you around - hope all is well
01:12 dalek parrot: d7199ad | bacek++ | src/ops/ (2 files):
01:12 dalek parrot: Use parrot-wide boxing functions
01:12 dalek parrot: review: https://github.com/parrot/parrot/commit/d7199ad1da
01:15 bacek Can someone add 3.3 into trac milestones?
01:16 bacek cotto, can you handle #1906 properly? E.g. add descriptions to proper places. I have to go right now.
01:26 dalek TT #1906 created by bacek++: [DEPRECATED] Passing non-const STRING* is deprecated.
01:26 dalek TT #1906: http://trac.parrot.org/parrot/ticket/1906
02:08 fbrito cotto ping
02:09 dalek parrot: f972490 | nwellnhof++ | src/pointer_array.c:
02:09 dalek parrot: Fix memory leak in pointer array
02:09 dalek parrot: review: https://github.com/parrot/parrot/commit/f972490c75
02:10 bacek left #parrot
02:11 fbrito cotto_work: ping
02:16 dalek TT #1765 reopened by nwellnhof++: Memory leak in allocate_interpreter
02:16 dalek TT #1765: http://trac.parrot.org/parrot/ticket/1765
02:17 fbrito left #parrot
02:24 fbrito joined #parrot
02:30 Util joined #parrot
02:40 Matt_ joined #parrot
02:41 Matt_ left #parrot
03:13 cotto fbrito, pong
03:14 cotto bacek, apparently not
03:14 fbrito hey cotto :)
03:16 fbrito I have updated the task: http://www.google-melange.com/gci/task/show/goog​le/gci2010/parrot_perl_foundations/t129202922193
03:17 cotto fbrito, great.  I can't review right now I'll definitely do so later this evening.
03:17 fbrito sorry for taking so long :S
03:18 kennym left #parrot
03:18 fbrito cotto ok, sure :D
03:23 Matt_ joined #parrot
03:24 Matt_ left #parrot
04:02 fbrito1 joined #parrot
04:02 fbrito left #parrot
04:04 Matt_ joined #parrot
04:18 jhelwig left #parrot
04:35 stilgar joined #parrot
04:37 stilgar fbrito: your gci github task is marked as complete
04:48 stilgar left #parrot
04:52 Matt_ left #parrot
04:59 redicaps joined #parrot
05:17 redicaps left #parrot
05:35 rurban_ joined #parrot
05:37 rurban left #parrot
05:38 rurban_ is now known as rurban
06:07 fbrito1 left #parrot
06:37 cotto Net::GitHub has quite the list of dependencies
06:46 plobsing joined #parrot
06:57 cotto who's on html_cleanup?
06:58 cotto looks like mikehh
06:58 cotto mikehh, pign
06:58 cotto or ping if you prefer
07:05 dukeleto ~|~
07:06 cotto hio dukeleto
07:06 cotto merry Christmas
07:06 dukeleto cotto: wazzup
07:06 dukeleto ho ho ho
07:06 dukeleto cotto: i added a bunch of new code coverage gci tasks
07:06 cotto great
07:07 dukeleto cotto: what are you up to?
07:08 cotto enjoying Christmas with family and wondering whether it's a good idea to require perl 5.12.0 for building the docs
07:08 cotto html_cleanup currently has that requirement, but I'm not sure I like it
07:10 dukeleto cotto: why does it need 5.12 ?
07:10 cotto not sure
07:13 dukeleto cotto: sounds like we need to see if 5.12 is actually needed
07:13 cotto that's why I pinged mikehh
07:14 cotto Ideally it'd have the same minimum requirements as the rest of Parrot, but I could buy 5.10.0 if there's a good reason.
07:16 dukeleto cotto: i will take a look at html_cleanup now to see if i can easily tell why it has a dep on 5.12
07:16 Kapace_ joined #parrot
07:16 fperrad joined #parrot
07:17 cotto msg mikehh Why does html_cleanup require perl 5.12.0?  How reasonable is it to require 5.8.6 or 5.10.0?
07:17 aloha OK. I'll deliver the message.
07:17 prabu joined #parrot
07:17 cotto nice to have aloha back
07:17 dukeleto indeed
07:18 theory left #parrot
07:18 cotto dukeleto, do you have a feather account where you could set up aloha?
07:21 dukeleto cotto: where is the 5.12 dep actually described in html_cleanup?
07:22 dukeleto cotto: i have a feather account, but i stopped using it for irc since it would go down occasionally and screen sessions would vanish
07:22 cotto it's part of the make html target
07:22 dukeleto cotto: do we need another aloha?
07:23 cotto tools/docs/make_html_docs.pl
07:23 cotto dukeleto, we need one that people other than bacek can take care of
07:23 dukeleto cotto: i see. What does caring and feeding for aloha entail?
07:23 cotto or "in addition to bacek"
07:24 cotto you'd have to ask bacek
07:24 cotto whatever's needed to keep it going
07:25 dukeleto cotto: at first glance, it looks like that script is only using 5.12 so that it can use 'say'
07:25 dukeleto cotto: so i would say that 5.12 shouldn't be required. Just change some 'say' calls to 'printf'
07:26 dukeleto cotto: but perhaps there are deeper details. but that is what it looks like at first look
07:26 cotto I'm about to fall asleep.  We can ask mikehh about it when he's on.
07:26 cotto thanks
07:26 cotto 'night
07:26 dukeleto cotto: night
07:27 dalek parrot: eed5842 | plobsing++ | include/parrot/interpreter.h:
07:27 dalek parrot: remove unused RESUME_ISJ flag
07:27 dalek parrot: review: https://github.com/parrot/parrot/commit/eed5842be4
07:29 dalek parrot/encapsulate-main: 2921e19 | plobsing++ | / (2 files):
07:29 dalek parrot/encapsulate-main: add main_sub slot to packfile bytecode for storing main sub index
07:29 dalek parrot/encapsulate-main: review: https://github.com/parrot/parrot/commit/2921e19339
07:29 dalek parrot/encapsulate-main: 3ff38d4 | plobsing++ | compilers/imcc/ (2 files):
07:29 dalek parrot/encapsulate-main: store appropriate index in main_sub
07:29 dalek parrot/encapsulate-main: review: https://github.com/parrot/parrot/commit/3ff38d437f
07:29 dalek parrot/encapsulate-main: ae0986c | plobsing++ | src/packfile/api.c:
07:29 dalek parrot/encapsulate-main: use bytecode main_sub in stead of scanning
07:29 dalek parrot/encapsulate-main: review: https://github.com/parrot/parrot/commit/ae0986c329
07:29 dalek parrot/encapsulate-main: 0c04a50 | plobsing++ | include/parrot/sub.h:
07:29 dalek parrot/encapsulate-main: eliminate :main as one of the flags stored on a sub
07:29 dalek parrot/encapsulate-main: review: https://github.com/parrot/parrot/commit/0c04a50dea
07:29 dalek parrot/encapsulate-main: b411e5b | plobsing++ | t/compilers/imcc/syn/pcc.t:
07:29 dalek parrot/encapsulate-main: per TT #1704, the first :main-flagged sub is to be used
07:29 dalek parrot/encapsulate-main: review: https://github.com/parrot/parrot/commit/b411e5b636
07:30 dalek parrot/html_cleanup: 7b7564e | dukeleto++ | tools/docs/make_html_docs.pl:
07:30 dalek parrot/html_cleanup: Remove unnecessary dependency on perl 5.12
07:30 dalek parrot/html_cleanup: review: https://github.com/parrot/parrot/commit/7b7564e2c5
07:30 dalek ohm-eta-wink-kzd: 7667679 | plobsing++ | src/ (4 files):
07:30 dalek ohm-eta-wink-kzd: nowrap in vim modelines - long lines work here
07:30 dalek ohm-eta-wink-kzd: review: https://github.com/plobsing/ohm​-eta-wink-kzd/commit/7667679e92
07:30 dalek ohm-eta-wink-kzd: b97c30a | plobsing++ | src/ (5 files):
07:30 dukeleto cotto: ^^^ that should fix your dep problem
07:30 dalek ohm-eta-wink-kzd: winxed implementations of toProgramString() and unescape()
07:30 dalek ohm-eta-wink-kzd: review: https://github.com/plobsing/ohm​-eta-wink-kzd/commit/b97c30a3f9
07:38 prabu can anyone help me with using unicode in my Grammar.pm file..?
07:39 dukeleto prabu: i am in here too :)
07:39 prabu :)
07:39 dukeleto prabu: do you have your code on github or something?
07:39 dukeleto nopaste?
07:39 dukeleto aloha nopaste ?
07:39 aloha dukeleto: Search me, bub.
07:40 dukeleto aloha: nopaste?
07:40 aloha dukeleto: nopaste is is http://nopaste.snit.ch (works with the script in $_PARROT/tools/dev/nopaste.pl)
07:40 dukeleto prabu: nopaste the complete error that you are getting, or use gist.github.com
07:40 dukeleto prabu: which version of parrot are you using? which OS/platform?
07:41 prabu xubuntu, parrot-2.9.1
07:42 prabu my problem is very simple, but since i'm a newbie to perl i'm not able to fix it.
07:42 prabu this is my token :
07:43 prabu token { "\x[0B85]" }
07:44 prabu i put english character 'a' in the place \x[0B85] and changed the file also with content 'a' , it is working perfectly, but for the unicode character 'அ', i'm gettting unrecognized token error.
07:45 prabu dukeleto: any idea about unicode stuff in parrot ?
07:45 dukeleto prabu: parrot uses the ICU library
07:46 dukeleto prabu: what does "./parrot_config --dump|grep has_icu" tell you?
07:48 dukeleto prabu: if you don't compile parrot with ICU, you won't be able to use unicode
07:48 prabu 0
07:49 dukeleto prabu: yep, your parrot does not have ICU
07:49 prabu how do i?
07:50 dukeleto prabu: sudo apt-get install libicu-dev libicu42
07:50 dukeleto prabu: that will install icu
07:50 dukeleto prabu: on debian systems
07:52 dukeleto prabu: then you will probably have to compile parrot.
07:52 prabu ok, again i want to make and make install?
07:53 dukeleto prabu: you need to run "perl Configure.pl" again, with whichever flags you want to give to it
07:53 prabu ok Thanks dukeleto
07:53 dukeleto prabu: there should be a line of output from that that tells you it found ICU
07:53 dukeleto prabu: no worries
07:54 Kapace_ Hello #parrot...
07:55 Kapace_ I've been trying to install pl/parrot, but make installcheck fails out..
07:55 dukeleto Kapace_: when, installcheck might fail for spurious reasons. what kind of failing are you seeing?
07:55 Kapace_ http://dpaste.org/smGf/
07:55 Kapace_ OS ubuntu 10.10
07:55 dukeleto prabu: you will need a make install after you see Configure.pl tell you it found ICU
07:56 dukeleto Kapace_: looks like you don't have PostgreSQL running
07:56 Kapace_ I have postgres up and running
07:56 dukeleto Kapace_: or you have it on a nonstandard port
07:57 dukeleto Kapace_: perhaps you need /etc/init.d/postgresql start ?
07:57 dukeleto Kapace_: do you have postgres installed?
07:57 Kapace_ yes I have it install, and it is running
07:57 Kapace_ i can do sudo -u postgres psql, and I get a postgres shell
07:58 dukeleto Kapace_: yes, but that is as the postgres user
07:59 dukeleto Kapace_: you probably have permissions issues
07:59 dukeleto Kapace_: what does ls /tmp/*PGSQL* say?
07:59 Kapace_ ls: cannot access /tmp/*PGSQL*: No such file or directory
07:59 dukeleto Kapace_: also, the README.* files in the PL/Parrot repo have various tips for configuring it and compiling it
07:59 dukeleto Kapace_: ok, just wondering
08:00 Kapace_ yeah, I've read that, did make, make install, but installcheck fails
08:00 dukeleto Kapace_: can you run "make test" ?
08:01 Kapace_ yeah, permision errors for me, lets see if i can fix them
08:02 dukeleto Kapace_: you probably need to tweak pg_hba.conf
08:03 prabu dukeleto: has_icu=> '1' & still getting 'unable to parse source'
08:06 dukeleto prabu: nopaste the complete source and error
08:06 dukeleto prabu: and make sure you are using your new parrot and not the old one
08:08 dukeleto prabu: also, the -v flag to the parrot binary gives extra info
08:08 dukeleto prabu: there are also debug flags to give with -D that will print various things
08:10 prabu left #parrot
08:15 prabu joined #parrot
08:17 dalek parrot/leto/embed_grant: 55cbcc4 | dukeleto++ | t/src/embed.t:
08:17 dalek parrot/leto/embed_grant: [t] Refactor some embed tests. No functional change
08:17 dalek parrot/leto/embed_grant: review: https://github.com/parrot/parrot/commit/55cbcc49d4
08:23 nopaste "prabu" at 192.168.1.3 pasted "dukeleto: code and the error." (19 lines) at http://nopaste.snit.ch/27491
08:23 prabu dukeleto: http://nopaste.snit.ch/27491
08:37 dalek parrot/leto/embed_grant: 6b49536 | dukeleto++ | t/src/embed.t:
08:37 dalek parrot/leto/embed_grant: [t] Add test for Parrot_PMC_i_absolute
08:37 dalek parrot/leto/embed_grant: review: https://github.com/parrot/parrot/commit/6b495361fe
08:39 dukeleto prabu: that error means that you have invalid syntax in your grammar
08:41 dukeleto prabu: there is also the unicode:"foo" syntax for strings
08:41 dukeleto prabu: prefix the literal string with unicode:, with quotes around the string
08:41 dukeleto prabu: nqp-rx (what the grammar is written in), is not liking your unicode string
08:42 dukeleto prabu: if you post your nopaste and your question to parrot-dev, many smart people can probably tell you what is up. the people who wrote and hack on nqp-rx are on that list
08:43 dukeleto prabu: just make sure to give all the background info too (parrot version, OS, etc..)
08:52 dalek parrot/leto/embed_grant: c74a6b5 | dukeleto++ | t/src/embed.t:
08:52 dalek parrot/leto/embed_grant: [t] Test for Parrot_PMC_i_add
08:52 dalek parrot/leto/embed_grant: review: https://github.com/parrot/parrot/commit/c74a6b539c
09:24 mikehh dukeleto you around
09:25 mikehh dukeleto: ping
09:28 kennym joined #parrot
09:30 prabu left #parrot
09:41 prabu joined #parrot
09:43 rfw left #parrot
09:46 * mikehh got to go out for a bit - bbl
10:16 fbrito joined #parrot
10:19 dalek lua: 958c07f | fperrad++ | lua/ (6 files):
10:19 dalek lua: concat_s_s is gone
10:19 dalek lua: review: https://github.com/fperrad/lua/commit/958c07f971
10:19 dalek lua: f502a5c | fperrad++ | / (2 files):
10:19 dalek lua: concat_s_s is gone, refactor with StringBuilder
10:19 dalek lua: review: https://github.com/fperrad/lua/commit/f502a5cecd
10:36 fbrito left #parrot
10:46 dalek wmlscript: 1ba836e | fperrad++ | / (3 files):
10:46 dalek wmlscript: concat_s_s is gone, refactor with StringBuilder
10:46 dalek wmlscript: review: https://github.com/fperrad/​wmlscript/commit/1ba836e654
10:50 redicaps joined #parrot
10:53 contingencyplan joined #parrot
11:09 cotto left #parrot
11:37 dalek parrot: f4f7e83 | fperrad++ | examples/pir/befunge/ (3 files):
11:37 dalek parrot: [befunge] concat_s_s is gone
11:37 dalek parrot: review: https://github.com/parrot/parrot/commit/f4f7e83522
11:52 contingencyplan left #parrot
12:01 whiteknight joined #parrot
12:07 holli left #parrot
12:20 whiteknight good morning, #parrot
12:28 whiteknight msg plobsing: With the new embed_api stuff merged, I would *really* like it if we didn't automatically Parrot_pcc_set_sub on main, but instead had a function on the packfile to look it up on demand. would help to clean up the API in a major way.
12:28 aloha OK. I'll deliver the message.
12:28 whiteknight aloha: coverage?
12:28 aloha whiteknight: coverage is http://cv.perl6.cz or http://tapir2.ro.vutbr.cz/cover/cover-results/
12:55 fbrito joined #parrot
13:14 redicaps left #parrot
13:32 plobsing whiteknight: sure, it isn't the cleanest just yet. I'm iterating here, trying to maintain current functionality in a hopelessly tangled subsystem.
13:35 plobsing first step is to replace the use of a most (if not all) the flags on Sub PMC with packfile functionality. death to do_1_sub_pragma().
13:35 rurban_ joined #parrot
13:37 rurban left #parrot
13:38 whiteknight left #parrot
13:38 rurban_ is now known as rurban
14:19 ambs joined #parrot
14:26 lidden joined #parrot
14:32 cognominal left #parrot
14:34 fbrito left #parrot
14:35 cognominal joined #parrot
15:03 Matt_ joined #parrot
15:04 fbrito joined #parrot
15:20 bluescreen joined #parrot
15:22 fbrito left #parrot
15:23 ambs left #parrot
15:23 ambs joined #parrot
15:23 ambs left #parrot
15:40 kennym left #parrot
15:50 kid51 joined #parrot
15:53 whiteknight joined #parrot
15:55 whiteknight plobsing: using Parrot_pcc_set_sub to denote the :main sub was probably one of the single most annoying things to me as I was doing the embed_api stuff
15:55 whiteknight so I'm very glad to hear that other people want to change it
15:56 whiteknight msg cotto I'll gladly take a GCI admin bit, though we are pretty close to the end of the program now. Probably not needed. Next year I think we definitely want to spread the wealth around
15:56 aloha OK. I'll deliver the message.
15:57 Matt_ left #parrot
16:00 plobsing whiteknight: I have serious hatred for *all* the automagic stuff that happens on PBC/PIR load
16:01 whiteknight I would really like the workflow to be: load a packfile, ask the packfile for the :main sub, call :main sub with args
16:02 kennym joined #parrot
16:02 whiteknight what we have now is really ugly
16:02 plobsing errr... put an explicit call to get :load subs in there and I'm with you
16:08 whiteknight yes
16:08 whiteknight I really want to talk to pmichaud about why Rakudo needs the difference between :init and :load subs
16:09 whiteknight obviously if they need it we have to keep it, so I want to see exactly what the use-case is
16:10 whiteknight because off the top of my head I can't think of any reason to keep it, besides working around bugs or something
16:11 kid51 msg dukeleto See: http://www.google-melange.com/gci/ta​sk/suggest_task/google/gci2010/parro​t_perl_foundations/t129315595846?s=0 Does that satisfy your requirements for creating a task?
16:11 aloha OK. I'll deliver the message.
16:12 plobsing upon further consideration I see no reason not to keep the distinction if it is possible to emulate it by simply prepending them to a main sub (or using a canned main that tailcalls the :main sub)
16:13 plobsing I'm much more concerned with :immediate and :postcomp, which don't always do what it says on the tin.
16:13 whiteknight right, what the PIR interface looks like, and what the packfile structures look like internally can be very different thigns
16:13 whiteknight plobsing: yes, at least one of those two should go away. I suggest :postcomp
16:14 plobsing duplication is not the biggest problem. when you compile to PBC, *neither* of them get run. They get run on PBC load before :load subs.
16:14 whiteknight I know Rakudo is looking for more ways and more creative ways to serialize constants at compile time, so we do still need a mechanism like :immediate
16:15 whiteknight yeah, that's retarded
16:15 plobsing whiteknight: what rakudo is looking for cannot be solved with the mechanisms provided by PIR. They need full object serialisation, which means writting their own PBC or at least creating accompanying FPMCs.
16:16 kid51 left #parrot
16:48 cotto joined #parrot
16:52 cotto ~
17:06 whiteknight left #parrot
17:12 mikehh hey cotto
17:18 kid51 joined #parrot
17:20 whiteknight joined #parrot
17:23 whiteknight I'm going to open up my laptop tomorrow and see if I can fix the backlights. Until then I'm trying to set up VirtualBox here on this computer so I can have a linux dev environment again
17:24 nopaste "mikehh" at 192.168.1.3 pasted "parrot g++ build failures" (30 lines) at http://nopaste.snit.ch/27495
17:30 mikehh how do you add something to .gitignore?
17:31 tadzik hmm, just add a line and commit, if that's what you mean
17:32 mikehh git status gives -> src/embed/api.o, src/embed/pmc.o, src/embed/strings.o
17:32 whiteknight left #parrot
17:32 whiteknight joined #parrot
17:32 mikehh tadzik: no I think it is generated
17:32 tadzik hmm, /*.o is in .gitignore
17:33 tadzik # generated by tools/dev/mk_manifest_and_skip.pl
17:33 tadzik indeed
17:33 mikehh let me try that, but manifest_tests are ok
17:37 plobsing mikehh: those C++ errors appear to be from a recent round of consting
17:37 mikehh after running git diff doesn't display anything and .gitignore has not chenged
17:38 mikehh plobsing: had the first one for a couple of days, the second just now
17:39 mikehh of course gcc builds ok
17:39 kid51 msg dukeleto I have reformatted all 3 GCI tasks; are they approvable now?
17:39 aloha OK. I'll deliver the message.
17:42 theory joined #parrot
17:44 mikehh plobsing: in the first I tried adding include/parrot/exceptions.h where Parrot_confess is defined  but that gives many more errors
17:53 plobsing why are we consting strings left, right, and center? why don't we just #define const struct STRING ???
17:54 mikehh yeah - strings are immutable now
17:58 nwellnhof joined #parrot
17:58 prabu left #parrot
18:02 dalek parrot/encapsulate-main: 4f24579 | plobsing++ | t/compilers/imcc/syn/regressions.t:
18:02 dalek parrot/encapsulate-main: check exit code to guard against SIGBUS/SIGSEGV
18:02 dalek parrot/encapsulate-main:
18:02 dalek parrot/encapsulate-main: Pattern matching on output will not catch such errors in parrot shutdown - the
18:02 dalek parrot/encapsulate-main: shell provides the nice messages informing the user of such occurances, not the
18:02 dalek parrot/encapsulate-main: original program.
18:02 dalek parrot/encapsulate-main: review: https://github.com/parrot/parrot/commit/4f245793e5
18:02 dalek parrot/encapsulate-main: 9d368bc | plobsing++ | frontend/pbc_merge/main.c:
18:02 dalek parrot/encapsulate-main: look for :main subs on pbc_merge
18:03 dalek parrot/encapsulate-main: review: https://github.com/parrot/parrot/commit/9d368bc1aa
18:03 dalek parrot/encapsulate-main: da6bfe2 | plobsing++ | compilers/imcc/pbc.c:
18:03 dalek parrot/encapsulate-main: eliminate implicit :main sub selection
18:03 dalek parrot/encapsulate-main:
18:03 dalek parrot/encapsulate-main: this closes TT #1704
18:03 dalek parrot/encapsulate-main: review: https://github.com/parrot/parrot/commit/da6bfe22a9
18:03 dalek parrot/encapsulate-main: 44118c7 | plobsing++ | config/gen/config_pm/config_lib_pir.in:
18:03 dalek parrot/encapsulate-main: add explicit :main
18:03 dalek parrot/encapsulate-main: review: https://github.com/parrot/parrot/commit/44118c7b40
18:10 dalek Some 'nwellnhof' person just gave me a 41550 byte commit packet.  They need to be more careful in the future.
18:12 nwellnhof See https://github.com/parrot/parrot/c​ommits/nwellnhof%2Fstring_unescape
18:13 nwellnhof i'd like to merge that branch in the next days.
18:17 plobsing nwellnhof: what does it do exactly?
18:21 nwellnhof it switches all the string unescaping to NotFound++'s new string_unescape function, see http://trac.parrot.org/parrot/ticket/1628
18:21 nwellnhof that allows us to remove some cruft from the string code.
18:22 nwellnhof the old unescaping code was only used for encoding:charset:"" type literals which are deprecated now.
18:55 Matt_ joined #parrot
19:11 dukeleto kid51: yes, you can approve those tasks. I think i approved 1
19:20 kennym left #parrot
19:27 Patterner left #parrot
19:28 kennym joined #parrot
19:31 whiteknight nwellnhof:that branch looks good to me. +1 for merge
19:33 kid51 dukeleto:  I think we need the Organ Admin to approve.
19:33 kid51 My reading of the GCI FAQ is that only the Admins can approve/publish.
19:36 kid51 whiteknight:  Have we had any merges recently that would cause GC-related tests to slow down on small-resource machines?
19:37 whiteknight kid51: I don't believe so. What kinds of slowdowns are we talking about?
19:37 Psyche^ joined #parrot
19:37 Psyche^ is now known as Patterner
19:37 kid51 On my iBook, t/op/gc-non-recursive.t is taking a full 2 minutes.
19:38 kid51 I don't recall it being that slow earlier in the month.
19:39 whiteknight kid51: can you check out an earlier version, like 2.10, and test it for me? I would love to see what the numerical differences are
19:39 kid51 What's the quickest way to find out the commit # at 2.10?
19:46 tadzik git cat .git/refs/tags/RELEASE_2_10_0
19:46 tadzik assuming it's fetched or something, I think. There is only 2.11 in my .git
19:47 kid51 tadzik Thanks.  Have to go out now. Will try that later.
19:47 kid51 left #parrot
19:48 tadzik quick offtopic survey for linuxers: which distro do you use?
20:15 plobsing tadzik: arch linux
20:15 whiteknight ubuntu
20:16 Sdu joined #parrot
20:18 Sdu left #parrot
20:18 Sdu joined #parrot
20:20 Sdu left #parrot
20:20 Sdu joined #parrot
20:22 Sdu left #parrot
20:22 Sdu joined #parrot
20:24 Sdu left #parrot
20:24 Sdu joined #parrot
20:24 Sdu left #parrot
20:25 bacek joined #parrot
20:27 plobsing tadzik: tinkering with the contents of .git may not be the best idea. 'git show-ref RELEASE_2_10_0' should probably be used for that purpose.
20:28 tadzik plobsing: ah, that'd be it. I was looking at the man for git tag
20:29 contingencyplan joined #parrot
20:29 M_o_C joined #parrot
20:31 plobsing I somewhat wonder if that is really a problem that needs solving here though. Most (all?) git tools accept tag names anywhere they would accept a commit hash.
20:46 sdu joined #parrot
20:48 sdu left #parrot
20:48 sdu joined #parrot
20:49 sdu left #parrot
21:17 M_o_C left #parrot
21:23 bacek left #parrot
21:26 NotFound tadzik: debian and ubuntu
21:33 dalek parrot: 4c6d38e | bacek++ | / (2 files):
21:33 dalek parrot: Constify STRING*
21:33 dalek parrot: review: https://github.com/parrot/parrot/commit/4c6d38e589
21:33 perlite_ joined #parrot
21:34 dalek parrot: 0cdf52c | NotFound++ | t/pmc/hash.t:
21:34 dalek parrot: test Hash vtable elements
21:34 dalek parrot: review: https://github.com/parrot/parrot/commit/0cdf52c75c
21:35 bacek joined #parrot
21:35 rurban_ joined #parrot
21:36 perlite left #parrot
21:36 perlite_ is now known as perlite
21:38 rurban left #parrot
21:38 rurban_ is now known as rurban
21:42 dalek parrot: 7dcf321 | bacek++ | DEPRECATED.pod:
21:42 dalek parrot: Remove #1540 "immutable strings" from DEPRECATED.
21:42 dalek parrot: review: https://github.com/parrot/parrot/commit/7dcf321a1f
21:42 dalek parrot: 8d4cf37 | bacek++ | DEPRECATED.pod:
21:42 dalek parrot: Add #1906 into DEPRECATED.
21:42 dalek parrot: review: https://github.com/parrot/parrot/commit/8d4cf37637
21:42 dalek TT #1576 closed by bacek++: Update functions that take STRING * to take const args where possible
21:42 dalek TT #1576: http://trac.parrot.org/parrot/ticket/1576
21:42 bacek aloha, humans
21:43 dalek parrot: 1648804 | NotFound++ | t/pmc/hashiterator.t:
21:43 dalek parrot: test HashIterator vtable elements
21:43 dalek parrot: review: https://github.com/parrot/parrot/commit/1648804bec
21:45 dukeleto bacek: howdy, meatbag
21:45 plobsing bacek: your consting changes broke C++ earlier
21:45 Yuki`N joined #parrot
21:45 bacek plobsing, ouch.
21:45 bacek dukeleto, hio
21:45 plobsing also, why not just #define const struct parrot_string_t STRING ?
21:46 dukeleto msg kid51 all tasks that were waiting are now approved and published
21:46 aloha OK. I'll deliver the message.
21:46 NotFound I think you are losing your time with that attempt. The String struct is not const, it can change at any time for any reason.
21:47 bacek plobsing, hm. I can try it.
21:47 plobsing I'm not convinced consting is a worthwhile endeavour, but if we are doing it, we might as well do it right.
21:48 bacek plobsing, we still need non-const pointer during initialization of STRING
21:49 plobsing bacek: sure, use a different typedef for string internals.
21:49 NotFound plobsing: we can't const right and be able to change it everywhere at the same time.
21:49 bacek NotFound, why so? STRINGs are immutable.
21:49 NotFound bacek: string content is immutable. The struct that supports it is not.
21:50 NotFound And we are using C, not C++, we don't have 'mutable' attribute to support logical constness.
21:51 plobsing NotFound: we're going whole hog on immutable strings. we even got rid of inplace string ops even though they have nothing to do with anything that matters.
21:51 bacek plobsing, erm. How that?
21:52 plobsing inplace string ops modified string *registers*. not the contents of the strings.
21:52 bacek $S0 = $S1; $S1 .= "foo"; say $S0
21:52 NotFound plobsing: but we have optimizations that play games with the string struct, and we have lazy evaluated hash values.
21:52 bacek plobsing, they modify content
21:56 NotFound $ winxed -e 'string s0 = "Hello"; string s1 = s0; s0 += " world"; say(s1); say(s0)'
21:56 NotFound Hello
21:56 NotFound Hello world
21:57 plobsing bacek: that's not the behaviour of that op.
21:57 Yuki`N In regards to TT#1897, --silent passed to configure actually works.
21:58 Yuki`N So I think the GCI task related to that is void.
21:58 bacek plobsing, yes. But it was a lot of hairy code to support COW
21:58 plobsing but we don't have COW strings
21:58 dalek parrot: 0ed95be | bacek++ | / (2 files):
21:58 dalek parrot: Unconstify STRING* to partially unbroke c++ build. plobsing++
21:58 dalek parrot: review: https://github.com/parrot/parrot/commit/0ed95be24b
22:00 plobsing when did immutable strings hit? 2.3? 2.6?
22:04 plobsing arguing that the code to support COW is effectively saying "we wrote ugly looking code to take advantage of information that we thought would give us an optimization, but we didn't like it. so we *need* to eliminate that information"
22:04 plobsing if you write code you don't like as an optimization, just don't do the optimization.
22:05 NotFound plobsing: but we have that things, and people that want it.
22:06 NotFound And there is no need to debate the point, the C++ compiler takes care of the proof.
22:06 plobsing immutable strings hit in 2.4 (according to NEWS). 2.0 runs bacek's code sample without mutating S0.
22:07 bacek plobsing, because of COW.
22:07 NotFound plobsing: as I said: the parrot string does not mutate, but the C struct tha support it does.
22:07 plobsing you don't *need* to COW. you could just copy on modify like we do now. even in a system that supports COW.
22:08 NotFound Forget the comments about COW; they are old and are not true,.
22:08 plobsing COW is the argument against inplace string ops
22:09 NotFound plobsing: that batlle were already fought.
22:09 plobsing just saying - don't argue with immutable strings, we do irrational things in their name.
22:10 NotFound plobsing: I don't argue with immutable string, I talk about current codebase and the C STRING structure,
22:11 NotFound And again, there is no need to argue, tha compilers tells us the reality.
22:12 plobsing true
22:15 NotFound (unless we lie to the compilers by adding a lot of casts, and the we'll get a lot of Heisenbugs as penitence)
22:15 plobsing have you seen the amount of casts we have?
22:16 plobsing I think we're already at the lying to the compiler through our teeth stage.
22:17 fperrad left #parrot
22:17 NotFound plobsing: we have a lot of casts, yet. Some are good, some may be wrong. Casting away constness in things we know aren't const is always wrong.
22:22 fbrito joined #parrot
22:41 Yuki`N Hmm
22:42 Yuki`N I increased src/embed/strings.c and src/embed/pmc.c's test coverage by a lot, but I didn't write any new tests.
22:42 Yuki`N Does that still technically complete the task?
22:42 dukeleto Yuki`N: really?
22:42 Yuki`N Yep
22:42 whiteknight plumage is now on github at parrot/plumage
22:42 dukeleto Yuki`N: are you using "make cover" or "make quickcover" ?
22:43 dukeleto whiteknight++
22:43 Yuki`N They weren't included in make test.
22:43 Yuki`N So they weren't getting run.
22:43 dukeleto good to see plumage getting some love
22:43 whiteknight Yuki`N: ah, good problem-solving
22:43 dukeleto Yuki`N: wow! nice.
22:43 whiteknight Yuki`N: Yes, that counts
22:43 Yuki`N I noticed
22:43 Yuki`N Because
22:43 Yuki`N I wrote some of those tests myself
22:43 whiteknight and I lose points for being stupid
22:43 Yuki`N Lol.
22:44 whiteknight Yuki`N: yeah, open a pull request, and I'll give you credit for the tasks
22:44 Yuki`N So strings is up to 74.5% and pmc is up to 83.6%
22:44 Yuki`N I want to get those to 100% though so
22:44 whiteknight Then I'll have to look at the new coverage numbers and make new tasks
22:44 Yuki`N K.
22:45 Yuki`N https://github.com/parrot/parrot/pull/44
22:45 Yuki`N I already requested pmc.c http://socghop.appspot.com/gci/task/show/google​/gci2010/parrot_perl_foundations/t129336706640
22:57 dukeleto Yuki`N: accepted
22:58 Yuki`N Submitted.
22:59 Kapace_ Yuki`N: lucky! :P
23:00 Yuki`N :P I wrote some of those tests anyway.
23:00 Yuki`N So it would have been trivial for me to write more.
23:02 Yuki`N Hmmph.
23:02 Yuki`N Tests are failing because
23:03 Yuki`N of extraneous output due to the coverage process.
23:03 Yuki`N e.g. profiling:/home/nlum/parrot/​src/parrot_config.gcda:Merge mismatch for summaries
23:04 Kapace_ I have that problem too, but apparently works under my ubuntu 9.10 vm
23:13 danielmarth joined #parrot
23:16 Yuki`N whiteknight, how do exception handlers in C work?
23:17 Kapace_ C has execption handlers?
23:18 Yuki`N The embedding API for Parrot in C has exception handlers.
23:18 Kapace_ oh right, hehe
23:19 whiteknight left #parrot
23:20 lidden left #parrot
23:53 Coke left #parrot
23:59 Coke joined #parrot

| Channels | #parrot index | Today | | Search | Google Search | Plain-Text | summary

Parrot | source cross referenced