Camelia, the Perl 6 bug

IRC log for #parrot, 2010-12-17

Parrot | source cross referenced

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

All times shown according to UTC.

Time Nick Message
00:01 Yuki`N This embedded Parrot API is a lot more difficult to understand than I imagined.
00:03 cotto_work Yuki`N: have you read whiteknight's blog posts?
00:11 TypeNameHere_____ joined #parrot
00:18 Yuki`N cotto_work, nope
00:24 whiteknight joined #parrot
00:25 cotto_work Yuki`N: go to http://whiteknight.github.com/index.html and read then.  He does an excellent job of blogging about what he's working on.
00:26 cotto_work relevance can be inferred from the blog titles
00:26 whiteknight Awesome. If Yuki`N goes there, I'll be up to .... 1 reader
00:26 Yuki`N xD
00:28 cotto_work You'll be rolling in advertizing $$$$
00:29 davidfetter oh language geeks of great fame, i have a question
00:29 * cotto_work looks around confusedly
00:30 davidfetter so it's been brought to my attention that what yacc produces isn't super suitable to tab completion, given that it starts from the end
00:31 Tene joined #parrot
00:31 cotto_work need to do some shaving?
00:31 davidfetter context: i'm trying to redo psql's tab completion, which is a horrific mess
00:32 davidfetter is there some way to transform a yacc grammar into something better suited to tab completion?
00:33 Yuki`N Hmm.
00:33 Yuki`N Segfault.
00:34 whiteknight who's segfaulting who?
00:34 davidfetter o/` who's zoomin' who? o/`
00:34 Yuki`N My test is segfaulting.
00:35 whiteknight oh.....is it supposed to segfault?
00:35 whiteknight (you would be surprised about some of the behaviors we have tests for)
00:36 Yuki`N No, it's not...hm.
00:38 Yuki`N How can I gdb a test?
00:39 cotto_work pure pir or perl?
00:39 Yuki`N Perl.
00:40 cotto_work those generate .pir or .pasm files like t/pmc/parrotio_6.pir as a side-effect
00:40 cotto_work run gdb --args ./parrot t/pmc/foo_234.pir
00:40 Yuki`N Well these are c tests.
00:41 cotto_work which test file
00:41 Yuki`N It's a new test.
00:41 whiteknight Yuki`N: copy+paste your test code into a .c file. Compile and run
00:42 Tene left #parrot
00:42 Yuki`N What include directories do I need?
00:43 whiteknight -Iinclude/parrot
00:43 whiteknight and maybe -Iinclude/pmc
00:44 whiteknight actually for embed_api stuff, you only need include/parrot
00:44 Yuki`N ../../../include/parrot/parrot.h:108:19: fatal error: ffi.h: No such file or directory
00:45 whiteknight Yuki`N: nopaste your test?
00:48 nopaste "Yuki`N" at 192.168.1.3 pasted "test" (36 lines) at http://nopaste.snit.ch/27204
00:50 whiteknight Yuki`N: Okay, I see your problem. You only need API functions. Get rid of the parrot/parrot.h and parrot/embed.h files
00:51 whiteknight the function src/main.c shows how to create an interp using the Parrot_api_make_interpreter function
00:52 Yuki`N Oh durrr.
00:52 Yuki`N I see my problem.
00:52 Yuki`N The compile errors that I caused by removing those includes revealed some warnings.
00:53 Yuki`N # t/src/embed/pmc_1.c:27:5: warning: passing argument 2 of �Parrot_api_pmc_get_string� from incompatible pointer type
00:53 Yuki`N # ./include/parrot/api.h:461:12: note: expected �Parrot_PMC� but argument is of type �Parrot_String�
00:53 whiteknight oh, yeah
00:53 Yuki`N etc
00:53 Yuki`N I wish it showed the warnings.
00:54 whiteknight You should be able to pass -Wall to the compiler to see many warnigs
00:55 Yuki`N Well, the perl framework hides the compiler outout.
00:55 Yuki`N *output
00:56 whiteknight ok
00:56 Yuki`N There we go.
00:56 Yuki`N It passes now.
00:57 whiteknight awesome
00:57 whiteknight what task are you working on?
00:57 Yuki`N Adding the.
00:57 Yuki`N Indexed getters/setters.
00:57 Yuki`N Right now it's integer keys.
00:58 whiteknight ah, okay
00:58 whiteknight I approved a few tasks at once, I didn't see who was doing which
01:01 Yuki`N whiteknight, https://github.com/nol888/parrot/commit/​df005fa077e6b89b59846c41e6a28783947c063d
01:01 Yuki`N I think I did it right.
01:02 whiteknight Is that the updated test code?
01:02 Yuki`N Yes, it passes.
01:03 whiteknight ok. Looks good to me
01:03 whiteknight you ready for pull/review?
01:03 Yuki`N Should I submit a pull request? I plan on doing all three index types so maybe it'd be best to batch them up.
01:03 whiteknight yes, pull requests for each
01:03 Yuki`N Ok.
01:03 Yuki`N Let me submit one.
01:05 Yuki`N https://github.com/parrot/parrot/pull/37
01:09 kid51 is now known as kid51_at_dinner
01:09 dalek parrot/gci_api_intkey: df005fa | Yuki`N++ | / (3 files):
01:09 dalek parrot/gci_api_intkey: Add Parrot_api_pmc_[get|set]_keyed_int to the embedded API.
01:09 dalek parrot/gci_api_intkey: review: https://github.com/parrot/parrot/commit/df005fa077
01:10 Yuki`N Oh someone took the string task already.
01:10 whiteknight oh noes!
01:10 Yuki`N Oh well. :/
01:11 Yuki`N I'll take the PMC task.
01:11 Yuki`N Can you approve my intkey task?
01:11 whiteknight done
01:11 whiteknight great work
01:12 Yuki`N Thanks.
01:15 Yuki`N I think the hardest part of the pmckey task is going to be testing.
01:15 whiteknight yeah, that might actually be impossible at this point until we add more API functions
01:16 whiteknight get as far as you can, and that will be enough
01:17 Yuki`N I think I can apply the same logic as in the keyed int.
01:17 Yuki`N The String PMC has a keyed PMC set/get that just gets the Integer value of the PMC.
01:18 whiteknight yeah. If you run into any problems just leave a TODO note and I'll fix it later when we have more functions written
01:19 dalek parrot: 36fb5bd | (Gerd Pokorra)++ | README.deutsch:
01:19 dalek parrot: more corrects
01:19 dalek parrot: review: https://github.com/parrot/parrot/commit/36fb5bdeea
01:22 Yuki`N Oh damn, it works.
01:24 Yuki`N https://github.com/nol888/parrot/commit/​f055f32bf5ed82ebbdd5818f782e7196dd827a3b and this is the relevant commit.
01:27 whiteknight nicd
01:27 whiteknight nice
01:27 whiteknight brb
01:37 TypeNameHere_____ left #parrot
01:52 davidfetter left #parrot
01:54 dmalcolm left #parrot
01:55 dalek parrot/gci_api_pmckey: f055f32 | Yuki`N++ | / (3 files):
01:55 dalek parrot/gci_api_pmckey: Add Parrot_api_pmc_[get|set]_keyed to the embedded API.
01:55 dalek parrot/gci_api_pmckey: review: https://github.com/parrot/parrot/commit/f055f32bf5
01:55 dalek parrot/gci_api_pmckey: 778020f | Yuki`N++ | t/src/embed/pmc.t:
01:55 dalek parrot/gci_api_pmckey: Add missing PMC destroy call.
01:55 dalek parrot/gci_api_pmckey: review: https://github.com/parrot/parrot/commit/778020f1e3
01:55 whiteknight Yuki`N: pulled. Thanks
01:57 whiteknight Yuki`N: change that task to NeedsReview and I will close it
02:10 Yuki`N Kk.
02:11 Yuki`N whiteknight, done.
02:12 whiteknight closed. Congrats
02:12 Yuki`N thanks. :3
02:17 whiteknight No problem. Keep up the great work
02:18 Yuki`N I'm interested in this new API, and maybe Lorito as well.
02:18 Yuki`N So if there's anything that needs to be done, let me know. :P
02:19 whiteknight awesome
02:19 whiteknight This task you are taking now is very important. I was going to request it next if you hadn't already claimed it :)
02:19 whiteknight This is how we will be able to create new PMCs, by looking up the Class and instantiating it
02:21 Yuki`N Ah.
02:21 Yuki`N My tests so far relied on the enumeration of core PMCs.
02:22 Yuki`N You pass in a PMC that's used to return a Class PMC?
02:25 cotto ~~
02:34 whiteknight Yuki`N: You will pass in a string array PMC, and look it up
02:34 whiteknight hold on
02:35 whiteknight look at src/oo.c:Parrot_oo_get_class
02:35 whiteknight that function takes an array PMC and uses it to look up a Class PMC
02:35 whiteknight that's basically what I want the new API function to do
02:45 kid51_at_dinner is now known as kid51
02:49 theory left #parrot
03:00 whiteknight Yuki`N: I'm heading to bed now. I'll look at anything you have tomorrow morning
03:00 whiteknight left #parrot
03:30 Yuki`N left #parrot
03:38 theory joined #parrot
03:55 dalek parrot/tt1893_quickcover: 69d6ea1 | jkeenan++ | / (3 files):
03:55 dalek parrot/tt1893_quickcover: First, somewhat working version of 'make quickcover'.  Define a test_runcore
03:55 dalek parrot/tt1893_quickcover: target and use that as the list of tests to be run.  Add a command-line option
03:55 dalek parrot/tt1893_quickcover: 'coveragedir' to define the top-level directory for HTML display.
03:55 dalek parrot/tt1893_quickcover: review: https://github.com/parrot/parrot/commit/69d6ea18ef
04:01 kid51 aloh whiteknight && GCI students working on code coverage tasks: Please review: parrot/tt1893_quickcover: review:  https://github.com/parrot/parrot/commit/69d6ea18ef
04:06 kid51 left #parrot
04:27 PerlPilot joined #parrot
04:29 PerlJam left #parrot
04:29 PerlPilot left #parrot
04:29 PerlJam joined #parrot
04:59 cotto andy++ for the great post on the nature of true laziness
05:27 dalek parrot: 41fdde7 | petdance++ | src/gc/gc_ms2.c:
05:27 dalek parrot: removed unused vars, and consted some pointers
05:27 dalek parrot: review: https://github.com/parrot/parrot/commit/41fdde777c
05:27 dalek parrot: b17adf5 | petdance++ | src/gc/gc_ (2 files):
05:27 dalek parrot: shimmed some interpreter arguments
05:27 dalek parrot: review: https://github.com/parrot/parrot/commit/b17adf57af
05:30 rurban_ joined #parrot
05:33 rurban left #parrot
05:33 rurban_ is now known as rurban
06:36 fbrito joined #parrot
07:00 bacek left #parrot
07:00 gg411 joined #parrot
07:02 gg411 left #parrot
07:04 theory left #parrot
07:04 dalek parrot: 01c7e22 | NotFound++ | t/pmc/namespace.t:
07:04 dalek parrot: some more tests for Namespace get_pmc_keyed
07:04 dalek parrot: review: https://github.com/parrot/parrot/commit/01c7e22cad
07:07 dalek parrot: aa0dd59 | mikehh++ | t/pmc/bigint.t:
07:07 dalek parrot: fix codetest failure - trailing whitespace
07:07 dalek parrot: review: https://github.com/parrot/parrot/commit/aa0dd5923f
07:07 dalek parrot: 1cca9c9 | mikehh++ | config/gen/makefiles/root.in:
07:07 dalek parrot: add newline at EOF so the file passes t/codingstd/make_code_coda.t
07:07 dalek parrot: review: https://github.com/parrot/parrot/commit/1cca9c9f64
07:08 dukeleto ~~
07:09 mikehh hi dukeleto
07:09 dukeleto mikehh: wazzup
07:09 mikehh lot's of snow etc around here, and you?
07:10 dukeleto mikehh: the cold snap it Florida just ended :)
07:12 mikehh dukeleto: good to be on vacation, they really do not know how to cope with bad winter weather over here
07:14 cotto hi dukeleto
07:16 dukeleto cotto: hola. just read your lorito braindump post. Very nice summary!
07:18 cotto thanks
07:21 cotto I'm working on the other part(s).  Some good questions have been raised.
07:22 dukeleto cotto: what datatype is an "exception payload" ?
07:22 cotto and there's another
07:23 cotto pmc, I'd expect
07:23 cotto actually that's the only thing that'd make sense since strings will be pmcs
07:23 sorear why are you holding on to S/P register split?
07:24 cotto there's not much data you can stuff into an int or float
07:24 dukeleto cotto: is an exception payload just an Exception PMC ?
07:24 sorear (please don't repeat HRESULT)
07:24 cotto sorear, you don't love the win32 api?
07:25 cotto sorear, the S/P split is something I'm trying to figure out.  I don't recall the reason.
07:25 cotto dukeleto, do you happen to recall?
07:26 dukeleto cotto: i am going to assume it is an Exception PMC until that becomes an issue
07:27 cotto dukeleto, wfm
07:28 dd070 joined #parrot
07:28 dd070 hello guys
07:29 cotto hi dd070
07:29 dukeleto cotto: "The GC may or may not live in the interp.  We'll flesh this out as we go."
07:29 theory joined #parrot
07:29 dukeleto cotto: do you mean the context?
07:29 dukeleto cotto: do you have any ideas about that?
07:29 dukeleto cotto: there was some talk about a PMC that would represent the GC state at the meeting, but there were performance concerns
07:30 cotto wrt gc, I mean I don't know if it'll live in the interp (global) or in a context acting as a separate thread.
07:31 cotto wrt S/P, I don't see a strong need for a distinction except perhaps to make code a bit easier to understand.
07:32 cotto having fewer register types means fewer op variants
07:33 cotto though if the registers both contain PMCs, the ops will only need very minor differences
07:34 NotFound dukeleto: there is no payload datatype AFAIK, the payload is any PMC
07:35 dukeleto cotto: i think we should make the S/P merging a different experiment from M0
07:35 dukeleto cotto: don't want to mix variables when prototyping
07:36 dukeleto Also, which data structures best represent the REPR and HOW that lives in each Parrot Context?
07:39 cotto won't that depend on chromatic's implementation?
07:42 fbrito1 joined #parrot
07:43 sorear dd070: "hello!!" ?
07:44 fbrito left #parrot
07:45 dd070 sorear: hi
07:45 fperrad joined #parrot
07:46 theory left #parrot
07:50 Coke left #parrot
07:50 Coke joined #parrot
07:52 dalek parrot/lorito: d4097d1 | dukeleto++ | src/pmc/loritocontext.pmc:
07:52 dalek parrot/lorito: Add a link and a exception payload to a Lorito Context
07:52 dalek parrot/lorito: review: https://github.com/parrot/parrot/commit/d4097d1a9a
07:52 dalek parrot/lorito: cdfebc2 | dukeleto++ | src/pmc/loritocontext.pmc:
07:52 dalek parrot/lorito: Add a REPR and a HOW in LoritoContext
07:52 dalek parrot/lorito: review: https://github.com/parrot/parrot/commit/cdfebc2f9d
07:56 dukeleto cotto: i am assuming that i can use some type of PMCArray to represent REPR and HOW until they are fleshed out more
07:57 cotto dukeleto, that makes sense
07:59 dukeleto cotto: my biggest question for my lorito branch is : How is does a LoritoContext talk to the GC ? Is it supposed to?
08:00 Coke left #parrot
08:01 cotto dukeleto, what kind of interface are you talking about?
08:01 cotto triggering a gc run or indicating that something's either referenced or dropped?
08:02 dukeleto cotto: i am asking which of those things will be needed and how it will be implemented
08:02 NotFound I think that the Interpreter and Context aren't enough levels. We may need Interpreter - Runner(or thread, or whatever) - Context
08:03 sorear are you going to make Lorito polymorphic over GCs?
08:03 mikehh All tests PASS (pre/post-config, make corevm/make coretest, smoke (#1723) fulltest) at 1cca9c9 - Ubuntu 10.10 i386 (g++-4.5 with --optimize)
08:03 dukeleto sorear: what do you mean by that?
08:04 dukeleto cotto: actually, the REPR should talk to the GC, and the REPR only
08:04 sorear dukeleto: do the ops need to be compiled once per GC?
08:04 sorear do you plan to do some kind of interp->gc->write_barrier(&slot, ptr) think?
08:04 cotto dukeleto, right.  That's explicitly the REPR's job.
08:05 sorear What about context registers?
08:05 sorear The GC needs to know about them too.
08:05 dukeleto sorear: i would imagine that ops would only be recompiled if necessary, but that hasn't been decided on
08:05 Coke joined #parrot
08:08 cotto would it make sense for the list of contexts to be part of the interp struct?
08:08 cotto they do need to live somewhere
08:11 dukeleto cotto: is a context part of an interp? or, like NotFound suggests, is there another layer needed?
08:12 dukeleto do we use our Role PMC much currently?
08:12 cotto I'm thinking of contexts as pretty close to threads.  NotFound, why would another layer be needed?
08:13 cotto I suspect that the Role PMC is a joke.
08:14 cotto if nothing else, it's severely undertested.
08:14 sorear I prefer to think of it as "wishful thinking"
08:14 NotFound cotto: a context, at least master, is more like a continuation than like a thread
08:15 dukeleto cotto: 45% code coverage
08:15 cotto dukeleto, right.  I just checked.
08:16 dukeleto cotto: do you think increasing code coverage of role pmc would be a good gci tasks?
08:16 dukeleto cotto: do you have ideas for gci tasks?
08:16 NotFound That is, the thread has a current context, but is not a context
08:17 cotto NotFound, I see what you're saying.
08:18 cotto dukeleto, I don't know if increasing Role's coverage would help us.
08:19 cotto dukeleto, when's your vacation up?
08:21 dukeleto cotto: i understand that, but if we want to change Role, wouldn't it be nice to know how it works now? Or is that not worth it?
08:21 dukeleto cotto: i want a list of PMCs that need their test coverage increased the most
08:21 dukeleto cotto: which PMCs need test coverage the most right now?
08:22 nopaste "cotto" at 192.168.1.3 pasted "list of pmcs lacking in test coverage (old)" (28 lines) at http://nopaste.snit.ch/27211
08:22 cotto that's from before gci started.  I'll get an updated one put together
08:23 dukeleto cotto: i can read which have the lowest test coverage, but which are most important?
08:26 NotFound dukeleto: the most important for me right now is Namespace, but I don't think newbies should work on it, I prefer to do it myself (and I'm already doing)
08:27 cotto I filtered out the ones I thought would be harder for a gci student to test.  Any of those would be useful.  I'm not sure how I'd assign priority.
08:28 cotto NotFound++ for that work
08:29 cotto dukeleto, the Big* implementation of get_integer_keyed_int is wrong.  Turning that into a method might be a good gci task.
08:29 dukeleto cotto: my vacation is kind of like an electron probability density cloud. Hard to be sure when it is anywere, exactly.
08:29 cotto It currently returns the value in base n, where n is the keyed int
08:30 NotFound cotto: Wrong, or just not documented as doing that?
08:31 cotto NotFound, it's a stupid way to use that VTABLE function
08:31 cotto It's documented, just not sane.
08:32 sorear most of our PMCs overload unneeded VTABLEs as fast alternatives to METHOD
08:32 NotFound Maybe, but if is documented it needs a deprecation cycle.
08:33 cotto I guess.
08:33 NotFound The method can be added right now, of course.
08:33 cotto yes
08:33 dalek parrot/gci_french_readme: da35be8 | fperrad++ | README.francais:
08:33 dalek parrot/gci_french_readme: some corrections
08:33 dalek parrot/gci_french_readme: review: https://github.com/parrot/parrot/commit/da35be8a43
08:34 dukeleto fperrad++
08:42 ok22 joined #parrot
08:45 arnsholt_ left #parrot
08:45 arnsholt joined #parrot
08:46 fbrito joined #parrot
08:50 fbrito1 left #parrot
09:09 fbrito left #parrot
09:25 dd070 left #parrot
09:27 kennym joined #parrot
09:32 rfw left #parrot
09:50 ok22 left #parrot
10:06 janus left #parrot
10:35 ttbot left #parrot
10:42 mj41 left #parrot
11:21 zpmorgan joined #parrot
11:21 zpmorgan left #parrot
11:24 mj41 joined #parrot
12:03 bluescreen joined #parrot
12:04 kid51 joined #parrot
12:04 dalek parrot/tt1893_quickcover: 16ba97d | jkeenan++ | / (3 files):
12:04 dalek parrot/tt1893_quickcover: Start to write a configuration step to probe for coverage analysis tools.
12:04 dalek parrot/tt1893_quickcover: review: https://github.com/parrot/parrot/commit/16ba97da7e
12:04 cognominal left #parrot
12:41 dd070 joined #parrot
13:11 dalek parrot/tt1893_quickcover: f57da36 | jkeenan++ | / (2 files):
13:11 dalek parrot/tt1893_quickcover: Simplify setting to: has_coverage_tools.
13:11 dalek parrot/tt1893_quickcover: review: https://github.com/parrot/parrot/commit/f57da36437
13:11 kid51 left #parrot
13:30 rurban_ joined #parrot
13:33 rurban left #parrot
13:33 rurban_ is now known as rurban
13:48 janus joined #parrot
13:49 fbrito joined #parrot
14:11 dalek parrot: 3d02ae4 | (Gerd Pokorra)++ | README.deutsch:
14:11 dalek parrot: add more corrects
14:11 dalek parrot: review: https://github.com/parrot/parrot/commit/3d02ae4999
14:15 Zaur joined #parrot
14:15 Zaur Hi all
14:16 tadzik hl
14:17 smash joined #parrot
14:17 smash hello everyone
14:18 Zaur I get an error when trying build parrot 2.10.1 on windows
14:19 Zaur config/gen/platform/win32/begin.c:10:6: #error Minimum requirement for Parrot on
14:19 Zaur Windows is Windows 2000 - might want to check windef.h
14:19 Zaur config/gen/platform/win32/pid.c: In function `Parrot_getpid':
14:19 Zaur config/gen/platform/win32/pid.c:31: warning: null argument where non-null requir
14:19 Zaur ed (arg 1)
14:19 Zaur mingw32-make: *** [src/platform.o] Error 1
14:20 Zaur I am novice in this case, someone could help me to build parrot?
14:36 Zaur left #parrot
14:53 whiteknight joined #parrot
14:58 whiteknight good morning, #parrot
14:58 fbrito good morning :D
15:04 mj41_ joined #parrot
15:04 whiteknight good morning fbrito
15:05 whiteknight how are you today?
15:05 mj41 left #parrot
15:05 mj41_ is now known as mj41
15:06 fbrito so busy :( going to leave home in 30 minutes and spend the whole day out
15:06 fbrito no time to work on fun Parrot tasks today
15:06 whiteknight anything fun?
15:07 fbrito I have to help me father on his company today. but maybe I'll be going to a concert later night
15:08 whiteknight oh, okay. That doesn't sound so bad
15:10 whiteknight I'll make sure to create lots of fun new Parrot tasks for you today while you are out
15:12 Coke in case Zaur reads the logs - sorry we missed you - can you please open a ticket?
15:13 fbrito whiteknight: ahaha, ok :). But isn't the feature freezing starting this sunday? Are we going to get lots of testing tasks because of that?
15:16 whiteknight fbrito: the feature freeze is for the master branch. We can still develop stuff in other branches
15:16 fbrito whiteknight: other projects have some tasks like "solve a bug listed on our bugtrack system". I don't know how hard the bugs listed on Parrot Trac are, but just to let you know about this
15:16 whiteknight testing is easy, although I could set up some tasks for that
15:17 whiteknight fbrito: We've turned some tickets into tasks already
15:17 whiteknight We will do more
15:25 dmalcolm joined #parrot
15:40 Patterner left #parrot
15:41 fbrito ok, I am leaving :D
15:41 fbrito see you guys
15:44 fbrito left #parrot
15:50 Psyche^ joined #parrot
15:50 Psyche^ is now known as Patterner
15:53 Coke mj41: typo in taptinder readme url, I think.
15:59 dd070 left #parrot
16:26 bluescreen left #parrot
16:30 bluescreen joined #parrot
16:36 bluescreen left #parrot
16:37 whiteknight left #parrot
16:40 davidfetter joined #parrot
16:41 davidfetter left #parrot
16:41 davidfetter joined #parrot
16:44 hercynium joined #parrot
16:46 kennym left #parrot
16:53 bluescreen joined #parrot
17:06 theory joined #parrot
17:08 cotto_work ~~~~
17:10 plobsing ∿∿∿∿
17:10 atrodo Looks like cotto_work is in a great mood today
17:11 cotto_work I'm just using a really smart match.
17:13 cotto_work It doesn't hurt that it's sunny today and that the day will end with the company Christmas party and D&D.
17:14 * Coke hasn't played D&D (or Call of C'Thlhu, or Paranoia, or... since about 1990)
17:15 * Coke recalls those days fondly.
17:15 tikluganguly joined #parrot
17:15 tikluganguly hi everybody
17:15 Coke hio
17:15 cotto_work hi tikluganguly
17:15 tikluganguly i need to know one thing about pbc files
17:15 tikluganguly hi Coke
17:15 tikluganguly Hi cotto_work
17:16 tikluganguly can we do dynamic loading for pbc files?
17:16 cotto_work tikluganguly: ok but it probably won't make you happier. ;]
17:16 cotto_work load_bytecode should do that
17:17 tikluganguly okay cool
17:18 tikluganguly actually i was just planning to write some language for parrot
17:18 tikluganguly which should have pbc files as output
17:18 cotto_work great.  Stick around and feel free to ask questions
17:18 tikluganguly something like java class file
17:18 tikluganguly sure
17:18 tikluganguly i tried breaking the shell of parrot for a long time
17:19 tikluganguly but for the first time came to this channel
17:19 tikluganguly thanx
17:19 cotto_work ok.  If you're using the Packfile PMCs, you'll have some difficulties until they're updated a bit.
17:19 tikluganguly i think i m now in the correct place to get my infos
17:19 tikluganguly okay
17:19 cotto_work yes
17:20 tikluganguly now what is Packfile PMC
17:20 tikluganguly actually i m pretty much newbie in parrot
17:21 cotto_work they're a set of PMCs that attempt to serve as an interface to Packfile generation, which can be used to generate bytecode (when they work)
17:21 tikluganguly okay
17:23 hercynium left #parrot
17:23 hercynium joined #parrot
17:24 hercynium left #parrot
17:24 tikluganguly btw does parrot has any package manager
17:24 tikluganguly or any standard class library?
17:25 Coke there is a runtime/library
17:25 plobsing and as for a package manager, we have plumage
17:25 tikluganguly cool
17:28 tikluganguly so what about standard class library?
17:29 plobsing parrot has a slightly different approach than java. there are libraries under runtime/library, some of which are object-oriented (and contain classes)
17:30 tikluganguly okay
17:30 plobsing but it is not nearly as comprehensive as java. there is no Swing equivalent for example.
17:30 tikluganguly okay
17:31 tikluganguly so when somebody writes a language targeting parrot does they create their own class library?
17:31 tikluganguly or say normal function library?
17:32 plobsing that does sound bad, however, every language's library works a little different, so they would have to do that anyways for compatibility
17:32 tikluganguly oho okay :)
17:32 tikluganguly got it
17:32 tikluganguly but does not that fragments the platform a bit?
17:33 plobsing and sharing is encouraged. there are libraries available that provide some of what people expect of a class library.
17:33 tikluganguly i mean there could be a function written for nqp say...but again i m writing it for another language?
17:33 tikluganguly cool
17:33 plobsing kakapoo and nqp-rx setting for example, augment the base types to provide more methods and other nice features
17:34 tikluganguly cool
17:34 tikluganguly i will surely want to have a look at them
17:34 cotto_work http://www.itpro.co.uk/629440/g​cc-and-llvm-whats-in-a-licence#
17:34 tikluganguly okay
17:35 Coke left #parrot
17:37 atrodo cotto_work> itpro is now on my list of bad site designs.  and i'm pretty tolerant of bad sites
17:38 cotto_work yeah.  If lwn didn't think it was worthwhile I'd have run away screaming.
17:38 atrodo it's half a side of the page, and it's about a third of the entire page's length.  Ad to content ratio is way out of proportion.
17:39 cotto_work no argument from me
17:39 atrodo Just ranting
17:40 tikluganguly :0
17:40 tikluganguly :)
17:40 plobsing arg. my eyes!
17:41 Coke joined #parrot
17:42 * plobsing wishes there were a firefox plugin to dissable page style on pages designed by morons
17:43 plobsing automatically
17:43 tikluganguly he he
17:43 cotto_work view -> page style ->no style
17:43 atrodo http://yourwebsiteisdesignedbyamoron.com
17:44 plobsing cotto_work: yeah, I do that. but its so much work, and my eyes are still assaulted for a brief period.
17:44 hercynium joined #parrot
17:49 tikluganguly left #parrot
17:51 atrodo cotto_work> I would vote that the article was not worth the website
17:52 cotto_work atrodo: I agree.
17:52 bluescreen left #parrot
17:52 cognominal joined #parrot
18:12 davidfetter left #parrot
18:19 smash left #parrot
18:19 davidfetter joined #parrot
18:35 Tene joined #parrot
18:35 dd070 joined #parrot
18:36 dd070 hello !!
18:38 dd070 anyone awake ?
18:39 Tene I am!
18:39 Tene (barely)
18:39 plobsing sleep is for the weak
18:39 Tene What's up?
18:40 Tene s/weak/weeks/ (my family name)
18:40 Tene dd070: You need something?
18:42 Tene Apparently just checking for wakefulness. :)
18:43 dd070 Tene: no just . .
18:52 Tene dd070: just what?
18:55 tadzik I am!
18:57 dd070 Tene: was checking whether room is alive
18:57 Tene Ah.
19:05 cotto_work it usually is
19:38 contingencyplan left #parrot
19:42 contingencyplan joined #parrot
19:50 dd070 left #parrot
19:59 jan left #parrot
20:03 atrodo cotto_work> I was able to post something that resembles my current lorito vision.  http://creative.atrodo.org/2010/12/in-be​ginning-story-of-lorito-and-parrot.html
20:13 rfw joined #parrot
20:20 contingencyplan left #parrot
20:21 contingencyplan joined #parrot
20:26 sECuRE left #parrot
20:36 kennym joined #parrot
20:43 ambs joined #parrot
21:08 Kapace_ So, Im trying to do that code coverage increase task, in the cover report, the number beside the line shows if the line is being tested correct?
21:18 Kapace_ after make realclean; show git status show any files?
21:25 moritz Kapace_: no, it should not
21:25 moritz # On branch master
21:25 moritz nothing to commit (working directory clean)
21:27 Kapace_ hmm.. mine shows some left over test files.. but ill just use my new "git clean -dfx"
21:28 moritz Kapace_: if there are left over files, either 'make realclean' needs to be fixed (likely), or .gitignore
21:28 moritz or both
21:30 rurban_ joined #parrot
21:33 rurban left #parrot
21:33 rurban_ is now known as rurban
21:34 cotto_work atrodo: I saw.  I need to read it more carefully to comment.  You make some good points but the style takes a bit of getting used to.
21:34 atrodo cotto_work> I understand.  I had a little too much fun with the writing style.
21:36 cotto_work It's an important balance.
21:36 cotto_work I'd love to get a grant for masak to write Parrot's release announcements.  The ones he does for YAPSI are amazing.
21:37 cotto_work example: http://www.mail-archive.com/perl6​-compiler@perl.org/msg06339.html
21:37 atrodo :D
21:50 davidfetter left #parrot
21:54 Kapace_ hmm, how do I invoke a EventHandler...
21:55 Kapace_ (tried invoke eh, but not enough arguments)
21:57 Tene Kapace_: Hm?  You mean ExceptionHandler?
21:58 Kapace_ no, event handler, its a PMC
21:58 Tene If you do mean eventhandler, then... parrot's tasks/events system is not very good, or very well understood.
21:58 Tene It does work, though.  Lemme find some docs.  'sec.
21:58 Tene I did a bit of work on it a couple of years ago.
21:58 Tene At least, it did work *then*.  :)
21:58 Kapace_ Tene: ah, thanks
21:59 Tene Kapace_: btw, the t/ directory is a good place to look for examples.
21:59 Kapace_ ok
22:05 Kapace_ whats invokecc?
22:05 Tene invoke with current continnuation
22:07 Tene Kapace_: you don't invoke eventhandlers directly, you need to addhandler the eh, and then use the 'schedule' opcode on an Event pmc.
22:08 Tene (sorry, I was distracted by work)
22:08 Tene There's an example in t/pmc/scheduler.t, but not much of one
22:08 Kapace_ but it has the invoke vtable function no?
22:09 Tene What arguments did you pass to it?
22:10 Tene I don't know what its invoke is going to do.  If you're invoking something directly, why aren't you just invoking a sub?
22:11 Kapace_ the task is to add tests to eventhandler.t, and invoke isn't being tested..
22:11 Tene Looking at the source, it looks like it just invokes its associated code block.
22:11 Kapace_ right
22:11 Kapace_ so eh(), should just call self.code()
22:11 Tene So you should pass it the eventhandler itself, and a task pmc, I think.
22:11 Tene right, but the code block is going to be expecting arguments
22:12 Tene Kapace_: I'm not all that certain about this; it could be that the invoke vtable it just broken.  :)
22:12 Tene You should probably look a bit in the PDDs to see if you can find any spec for this PMC.
22:12 Kapace_ ok
22:15 Tene Yeah, I get a core dump whenever I try to invoke an eventhandler
22:15 Tene I don't think that invoking an eventhandler is a meaningful operation, personally.
22:15 Kapace_ hmm.. yeah, in real life you would just call the code directly..
22:18 fperrad left #parrot
22:19 ambs left #parrot
22:24 Kapace_ http://docs.parrot.org/parrot/2.7.0/​html/docs/pdds/pdd24_events.pod.html says that eventhandlers are code objects
22:24 Kapace_ so it needs to have invoke, I guess
22:25 Kapace_ (maybe I'll try to test something else for now)
22:26 tadzik hello parrots
22:26 Coke how did you get to 2.7.0, OOC?
22:27 Coke http://docs.parrot.org/parrot/latest/​html/docs/pdds/pdd24_events.pod.html is better.
22:28 Coke (theoretically)
22:28 Kapace_ oops
22:28 Kapace_ google
22:34 Coke we should probably eventually add links to various versions on the site.
22:38 davidfetter joined #parrot
22:46 hercynium left #parrot
23:07 bluescreen joined #parrot
23:10 bluescreen good evening guys
23:10 sorear hello
23:11 bluescreen hi sorear
23:30 fbrito joined #parrot
23:48 davidfetter left #parrot
23:49 davidfetter joined #parrot
23:59 fbrito1 joined #parrot

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

Parrot | source cross referenced