Camelia, the Perl 6 bug

IRC log for #parrot, 2011-10-22

Parrot | source cross referenced

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

All times shown according to UTC.

Time Nick Message
00:47 nbrown joined #parrot
01:31 dalek plumage/soh-cah-toa/featherspec: a651aec | soh_cah_toa++ | src/lib/Plumage/FeatherSpec.nqp:
01:31 dalek plumage/soh-cah-toa/featherspec: Added $!error, $!is_valid, and %!metadata attributes to Plumage::FeatherSpec. Also added parse() and validate() methods for parsing featherspec files and checking for all required fields.
01:31 dalek plumage/soh-cah-toa/featherspec: review: https://github.com/parrot/​plumage/commit/a651aec803
01:31 dalek plumage/soh-cah-toa/featherspec: 7fb3cf6 | soh_cah_toa++ | t/featherspec/0 (2 files):
01:31 dalek plumage/soh-cah-toa/featherspec: Corrected output messages in featherspec tests so that they include a period at the end.
01:31 dalek plumage/soh-cah-toa/featherspec: review: https://github.com/parrot/​plumage/commit/7fb3cf6636
01:31 dalek plumage/soh-cah-toa/featherspec: 8776f1a | soh_cah_toa++ | src/lib/Plumage/Command.nqp:
01:31 dalek plumage/soh-cah-toa/featherspec: Cleaned up POD in src/lib/Plumage/Commands.nqp to use the new =item2 tag for nested lists.
01:31 dalek plumage/soh-cah-toa/featherspec: review: https://github.com/parrot/​plumage/commit/8776f1aeb7
01:31 dalek plumage/soh-cah-toa/featherspec: 1ef3abd | soh_cah_toa++ | TODO:
01:31 dalek plumage/soh-cah-toa/featherspec: Added task to TODO list regarding elimination of duplication in src/plumage.nqp and src/plumage-admin.nqp.
01:31 dalek plumage/soh-cah-toa/featherspec: review: https://github.com/parrot/​plumage/commit/1ef3abdf5b
01:31 dalek plumage/soh-cah-toa/featherspec: e9127b2 | soh_cah_toa++ | src/lib/Plumage/FeatherSpec.nqp:
01:31 dalek plumage/soh-cah-toa/featherspec: Removed '[ERROR]' string from error messages in Plumage::FeatherSpec since output_error() already appends it.
01:31 dalek plumage/soh-cah-toa/featherspec: review: https://github.com/parrot/​plumage/commit/e9127b2105
01:31 dalek plumage/soh-cah-toa/featherspec: 7889696 | soh_cah_toa++ | src/plumage-admin.nqp:
01:31 dalek plumage/soh-cah-toa/featherspec: Created command_pack() for 'pack' command. Also created output_error() for writing error messages to stderr instead of just using say().
01:31 dalek plumage/soh-cah-toa/featherspec: review: https://github.com/parrot/​plumage/commit/7889696586
01:47 schmooster joined #parrot
03:20 dalek plumage/soh-cah-toa/featherspec: 55d0037 | soh_cah_toa++ | src/plumage-admin.nqp:
03:20 dalek plumage/soh-cah-toa/featherspec: Added check to make sure files passed to 'pack' are always named FEATHER.spec.
03:20 dalek plumage/soh-cah-toa/featherspec: review: https://github.com/parrot/​plumage/commit/55d0037ecd
03:30 AzureSto_ joined #parrot
03:51 dalek parrot/kid51/testsets2: 684e5b7 | jkeenan++ | t/fullharness:
03:51 dalek parrot/kid51/testsets2: Add an --in-testing CLO to speed up development by using a shorter set of targets.
03:51 dalek parrot/kid51/testsets2: review: https://github.com/parrot/parrot/commit/684e5b72d1
03:51 dalek parrot/kid51/testsets2: b86b0c6 | jkeenan++ | t/fullharness:
03:51 dalek parrot/kid51/testsets2: t/fullharness now will create an archive, but its contents are not yet correct.
03:51 dalek parrot/kid51/testsets2: review: https://github.com/parrot/parrot/commit/b86b0c6e25
03:51 dalek parrot/kid51/testsets2: 3bca5c7 | jkeenan++ | / (2 files):
03:51 dalek parrot/kid51/testsets2: During development, run a shorter set of tests when '--in-testing' is used on command line.
03:51 dalek parrot/kid51/testsets2: review: https://github.com/parrot/parrot/commit/3bca5c74de
03:51 dalek parrot/kid51/testsets2: 3dc3e29 | jkeenan++ | t/fullharness:
03:51 dalek parrot/kid51/testsets2: Provide a label for 'usual' targets as well as alternative runcore targets.
03:51 dalek parrot/kid51/testsets2: review: https://github.com/parrot/parrot/commit/3dc3e294f2
03:51 dalek parrot/kid51/testsets2: df5d49d | jkeenan++ | t/fullharness:
03:51 dalek parrot/kid51/testsets2: Use provisional versions of TAP modules.  First instance of a smolder report of 'make fulltest': http://smolder.parrot.org/app/​projects/report_details/24016.
03:51 dalek parrot/kid51/testsets2: review: https://github.com/parrot/parrot/commit/df5d49d823
04:19 benabik_ joined #parrot
04:20 dalek parrot: 465da9c | soh_cah_toa++ | runtime/parrot/library/Archive/ (2 files):
04:20 dalek parrot: Fixed perldoc in Archive;Tar and Archive;Zip.
04:20 dalek parrot: review: https://github.com/parrot/parrot/commit/465da9c111
06:57 fperrad joined #parrot
07:45 preflex joined #parrot
08:29 mj41 joined #parrot
08:29 mj41_nb joined #parrot
08:47 nbrown joined #parrot
11:27 JimmyZ joined #parrot
11:38 Psyche^ joined #parrot
11:42 mj41 joined #parrot
11:42 mj41_nb joined #parrot
12:13 whiteknight joined #parrot
12:14 whiteknight good morning, #parrot
12:15 tadzik good morning whiteknight
12:16 whiteknight hello tadzik
12:17 zpmorgan joined #parrot
12:25 tadzik whiteknight: how are things?
12:25 dalek parrot/whiteknight/tt_1910: 85d5e0c | Whiteknight++ | t/src/e (2 files):
12:25 dalek parrot/whiteknight/tt_1910: fix t/src/extend.t and t/src/embed.t
12:25 dalek parrot/whiteknight/tt_1910: review: https://github.com/parrot/parrot/commit/85d5e0c734
12:25 whiteknight things are going pretty well, thanks. It's always better when the weekend rolls around
12:32 tadzik does Parrot support catching signals?
12:36 whiteknight it may have at one point. I don't know what the current state is
12:36 whiteknight it certainly isn't tested, that I am aware of
12:37 whiteknight what kinds of signals do you want to catch? Once the green threads stuff gets merged, I think it will become easier
12:38 dalek parrot/whiteknight/tt_1910: 6b14772 | Whiteknight++ | / (2 files):
12:38 dalek parrot/whiteknight/tt_1910: tell t/src/checkdepend.t to shut up
12:38 dalek parrot/whiteknight/tt_1910: review: https://github.com/parrot/parrot/commit/6b14772a34
12:38 tadzik things like SIGTERM and so
12:38 tadzik I wrote https://github.com/tadzik/MuEvent today, and signals look like a useful addition
12:40 whiteknight the hard part is being able to catch signals in a cross-platform way
12:40 whiteknight and things very quickly become problematic on windows if we're not careful
12:42 tadzik aw, yeah
13:06 whiteknight tadzik: what's the branch I should be using now for Rakudo? nom?
13:07 tadzik whiteknight: yes. It's the default too
13:07 whiteknight okay, awesome
13:11 whiteknight I'm testing the whiteknight/tt_1910 branch against Rakudo/nom now. If that passes I'm going to merge it
13:12 whiteknight most of what it does is remove and rename a lot of C functions, so if Rakudo builds it should be functionally equivalent
13:29 tadzik and I don't think Rakudo quite uses that subsystem
13:55 mj41_nb joined #parrot
13:55 mj41 joined #parrot
14:03 logie joined #parrot
14:06 dalek winxed: 28aac61 | NotFound++ | winxedst1.winxed:
14:06 dalek winxed: constant propgation in builtin escape
14:06 dalek winxed: review: https://github.com/NotFoun​d/winxed/commit/28aac61885
14:14 SHODAN joined #parrot
14:58 NotFound joined #parrot
15:28 soh_cah_toa joined #parrot
15:42 preflex_ joined #parrot
15:48 soh_cah_toa how come you can use the 'print' opcode with a different filehandle but not 'say'?
15:48 soh_cah_toa furthermore, FileHandle has a print() method but not say()
15:48 soh_cah_toa that seems...dumb
15:50 soh_cah_toa not to mention, really inconvenient
15:52 dd070 joined #parrot
15:53 whiteknight say is just a convenience wrapper over print
15:53 whiteknight print is the opcode, say is just convenience
15:54 whiteknight Rosella provides a sayf routine to combine sprintf+say. It would be trivial to write a method to enable say for any handle
15:54 soh_cah_toa so it's not an opcode?
15:54 soh_cah_toa and if it's just a wrapper, why should it behave differently?
15:55 soh_cah_toa i.e. print can use any filehandle but not say
15:57 c9s joined #parrot
15:57 mj41_nb joined #parrot
15:57 mj41 joined #parrot
16:00 schmooster joined #parrot
16:06 dalek rakudo/nom: f3849a6 | tadzik++ | / (3 files):
16:06 dalek rakudo/nom: Fix Sub documentation when using 'our sub'
16:06 dalek rakudo/nom:
16:06 dalek rakudo/nom: Reset $*DECLARATOR_DOCS as late as possible, when we're sure it was
16:06 dalek rakudo/nom: used, so it's not accidentally cleaned if we backtrack too much.
16:06 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/f3849a6d44
16:08 dalek parrot/whiteknight/tt_1910: 9bf1239 | jkeenan++ | t/src/extend.t:
16:08 dalek parrot/whiteknight/tt_1910: [codingstd] No trailing whitespace.
16:08 dalek parrot/whiteknight/tt_1910: review: https://github.com/parrot/parrot/commit/9bf1239a71
16:08 dalek parrot/whiteknight/tt_1910: d9d9961 | jkeenan++ | src/ (2 files):
16:08 dalek parrot/whiteknight/tt_1910: [codingstd] No cuddled elses.
16:08 dalek parrot/whiteknight/tt_1910: review: https://github.com/parrot/parrot/commit/d9d996194c
16:09 soh_cah_toa eh, it's an easy fix. i can add an say(invar PMC, int INT/NUM/STR/PMC) opcode
16:11 dalek parrot/whiteknight/tt_1910: 765a92d | jkeenan++ | src/pmc/hash.pmc:
16:11 dalek parrot/whiteknight/tt_1910: [codingstd] Break line to meet linelength standard.
16:11 dalek parrot/whiteknight/tt_1910: review: https://github.com/parrot/parrot/commit/765a92ddf4
16:11 dalek parrot/whiteknight/tt_1910: 0ae0570 | jkeenan++ | src/hash.c:
16:11 dalek parrot/whiteknight/tt_1910: [codingstd] No space before closing paren.
16:11 dalek parrot/whiteknight/tt_1910: review: https://github.com/parrot/parrot/commit/0ae05707cb
16:12 kid51 joined #parrot
16:20 benabik joined #parrot
16:20 NotFound soh_cah_toa: what will be its purpose?
16:26 soh_cah_toa NotFound: to print a string w/ a trailing newline to a FileHandle pmc
16:26 soh_cah_toa for some reason, it doesn't already do that :\
16:26 NotFound soh_cah_toa: how many times you expect to generate that code from HLLs?
16:27 soh_cah_toa well, i need it right now for plumage
16:27 soh_cah_toa if it's common enough that 'print' needs it, i'd say then 'say' deserves it as well
16:28 NotFound soh_cah_toa: say is just a convenience for hand written pir, the current idea is to avoid providing more easiness for hand written pir.
16:29 soh_cah_toa well, what's the benefit of one io op (print) having it but not the other (say) which is nearly identical?
16:30 NotFound soh_cah_toa: avoiding repeated nearly identical code, for example.
16:30 soh_cah_toa if 'say' is supposed to be just a 'print' w/ a trailing newline, it should follow that whatever you can do w/ 'print', you can do w/ 'say'
16:32 dalek parrot/whiteknight/tt_1910: 5e08879 | jkeenan++ | src/packfile/api.c:
16:32 dalek parrot/whiteknight/tt_1910: [codingstd] c_function_docs failure fixed by adjusting signature.
16:32 dalek parrot/whiteknight/tt_1910: review: https://github.com/parrot/parrot/commit/5e08879a5e
16:32 soh_cah_toa i mean, the only difference should be the trailing newline
16:32 benabik joined #parrot
16:33 NotFound soh_cah_toa: we can live without it. We've been living without it for years. Please don't add it without a consensus.
16:33 kid51 msg whiteknight re tt_1910 branch: In addition to g++ failures reported on parrot-dev, you will have to fix PBC_COMPAT to get one remaining codingstd test to pass
16:33 aloha OK. I'll deliver the message.
16:34 soh_cah_toa whatever
16:34 dd070 left #parrot
16:34 dalek parrot/kid51/testsets2: 0ea08da | jkeenan++ | / (6 files):
16:34 dalek parrot/kid51/testsets2: Add lib/TAP/Harness/Archive/MultipleHarnesses.pm and
16:34 dalek parrot/kid51/testsets2: lib/TAP/Harness/ReportByDescription.pm.
16:34 dalek parrot/kid51/testsets2:
16:34 dalek parrot/kid51/testsets2: These packages permit creation of an archive of TAP output from several
16:34 dalek parrot/kid51/testsets2: different subharnesses run under the control of a master harness.  The
16:34 dalek parrot/kid51/testsets2: subharnesses can run the same sets of tests multiple times under different
16:34 dalek parrot/kid51/testsets2: environmental conditions.  Results are labelled with a combination of a label
16:34 dalek parrot/kid51/testsets2: for the test harness and the name of the test file itself.  (The packages are
16:34 dalek parrot/kid51/testsets2: not yet correctly documented.) Since these packages are ultimately destined
16:34 dalek parrot/kid51/testsets2: for CPAN, exempt them from Parrot's codingstd tests.
16:35 dalek parrot/kid51/testsets2:
16:35 dalek parrot/kid51/testsets2: Add 'make smolder_fulltest' and revise 'make fulltest' targets.  Update
16:35 dalek parrot/kid51/testsets2: MANIFEST.
16:35 dalek parrot/kid51/testsets2: review: https://github.com/parrot/parrot/commit/0ea08dabe0
16:39 dalek plumage/soh-cah-toa/featherspec: 0a1e468 | soh_cah_toa++ | src/plumage-admin.nqp:
16:39 dalek plumage/soh-cah-toa/featherspec: Relocated output_error() so that all subroutines are in alphabetical order.
16:39 dalek plumage/soh-cah-toa/featherspec: review: https://github.com/parrot/​plumage/commit/0a1e468801
16:39 dalek plumage/soh-cah-toa/featherspec: 0e7e3d1 | soh_cah_toa++ | src/plumage-admin.nqp:
16:39 dalek plumage/soh-cah-toa/featherspec: Fixed regex used to check featherspec filename so that featherspecs in other directories can be used.
16:39 dalek plumage/soh-cah-toa/featherspec: review: https://github.com/parrot/​plumage/commit/0e7e3d13d5
16:39 dalek plumage/soh-cah-toa/featherspec: 7da5bbb | soh_cah_toa++ | src/plumage-admin.nqp:
16:39 dalek plumage/soh-cah-toa/featherspec: Modified output_error() to use 'getstderr' opcode instead to use one less instruction.
16:39 dalek plumage/soh-cah-toa/featherspec: review: https://github.com/parrot/​plumage/commit/7da5bbbc60
16:48 benabik joined #parrot
17:07 contingencyplan joined #parrot
17:29 NotFound joined #parrot
17:42 bluescreen joined #parrot
17:46 soh_cah_toa in nci function signatures, what symbol is used for char *? is it 'c' for char?
17:46 soh_cah_toa for that matter, what symbol is used for any type of pointer?
17:55 NotFound soh_cah_toa: for pointer to C strings, the way now is to use 'p'
17:55 jsut_ joined #parrot
17:56 soh_cah_toa NotFound: just for char* or any pointer?
17:56 NotFound soh_cah_toa: any pointer, except passing directly PMCs
17:58 soh_cah_toa so if i have a function foo(char *a, int b, int *c), the nci call would look like:
17:58 soh_cah_toa func = dlfunc lib, 'foo', 'pip'
17:59 NotFound Yes.
17:59 soh_cah_toa and then: func('foo bar baz', 0, 1)
18:01 NotFound soh_cah_toa: no, is a bit more complicated. For int pointers you probably need to setup a Struct. For the string, my prefered way is to use a ByteBuffer
18:01 NotFound You can also use the nci helper library and specify 't'
18:02 soh_cah_toa what do you mean 'Struct'? i don't see a Struct pmc :\
18:02 NotFound Let me find an example up to date...
18:02 soh_cah_toa sure
18:02 plobsing soh_cah_toa: is that int* by chance a pass-by-reference?
18:03 soh_cah_toa not sure, i'm trying to use libzip b/c Archive;Zip is very "incomplete"
18:04 plobsing pass-by-ref is a common pattern and is supported by parrot's nci separate from normal pointers.
18:05 NotFound Some people wil say that there are no such thing as "normal" pointers in C ;)
18:06 soh_cah_toa agh, i don't think i can do this anyway b/c the zip_open() function returns a 'struct zip' and i'm not sure how nci would handle that :\
18:06 NotFound soh_cah_toa: you need to setup a StructView
18:06 plobsing soh_cah_toa: a struct or a struct*?
18:07 soh_cah_toa plobsing: agh, a struct*
18:07 plobsing so you can treat it like a pointer
18:07 soh_cah_toa which i still don't know how to do :P
18:08 soh_cah_toa bleh, native call libraries are always so...yucky
18:08 NotFound soh_cah_toa: that depends. If you need to use its members, you need a StructView. If it's used as opaque data, you just pass it around
18:09 soh_cah_toa what do you mean 'pass it around', what pmc type is it?
18:10 NotFound Currently is still an UnmanagedStruct, I think
18:10 soh_cah_toa ok
18:10 NotFound But you shouldn't care, the main point is that you can pass it directly to a 'p' parameter.
18:11 soh_cah_toa alright, we'll see...
18:16 soh_cah_toa ok, so struct* = UnmanagedStruct and struct = StructView?
18:18 NotFound soh_cah_toa: no, you use StructView to acces the content of a struct contained in a UnmanagedStruct or some other pointer-like PMC.
18:19 soh_cah_toa alright, so what about struct* then?
18:23 soh_cah_toa ew, it's called UnManagedStruct? so ugly
18:24 mj41 joined #parrot
18:24 mj41_nb joined #parrot
18:25 bubaflub joined #parrot
18:30 soh_cah_toa looks like the ugly looking UnManagedStruct is working for struct* so far
18:30 soh_cah_toa this is going to smoothly. nothing is every this easy so something has got to break soon ;)
18:31 NotFound soh_cah_toa: unmanaged struct is deprecated, you shouldn't use it directly.
18:31 ligne joined #parrot
18:31 soh_cah_toa and there it is
18:31 soh_cah_toa NotFound: then what am i supposed to use?
18:33 NotFound soh_cah_toa: for what purpose? Creating a struct from parrot? Reading its members?
18:34 dalek rakudo/nom: 424d2dd | moritz++ | src/core/ (2 files):
18:34 dalek rakudo/nom: better .gist for Method and Submethod
18:34 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/424d2dddf4
18:35 soh_cah_toa i don't think i need to access struct members
18:35 NotFound Note that I said 'directly'. If you just get it from a nci call and pass it to others nci calls, fine.
18:36 soh_cah_toa yeah, that
18:36 NotFound In that case, being a unmanaged struct is an implementation detail that will be changed.
18:36 soh_cah_toa alright
18:37 NotFound But the change will not affect that usage.
18:37 soh_cah_toa ok, good
18:37 NotFound You just treat is as an opaque type, same as in equivalen C usage.
18:37 soh_cah_toa yeah
18:39 NotFound Just a little problem: you had the responsability to free its content, if the library used says so.
18:40 soh_cah_toa yeah, w/ zip_close()
18:41 NotFound There is no way right now to set a function in the unmanaged struct to do it at collection time, its future replacement will probably have it.
18:42 soh_cah_toa ok
18:45 soh_cah_toa wow, it actually worked w/ very little resistance
18:45 soh_cah_toa nci++
18:45 soh_cah_toa if only zavolaj were this easy ;)
18:53 * dukeleto waives from the mentor summit
19:04 plobsing soh_cah_toa: zavolaj solves a different, and arguably much harder problem.
19:04 soh_cah_toa yeah, i know
19:06 soh_cah_toa i just kept running into wall after wall when i tried using it w/ my Digest::SHA256 module (still haven't got it to cooperate)
19:07 mj41_nb joined #parrot
19:07 mj41 joined #parrot
19:50 alester joined #parrot
20:07 Khisanth joined #parrot
20:23 logie joined #parrot
21:23 bluescreen joined #parrot
21:48 logie joined #parrot
22:41 mj41_nb joined #parrot
22:41 mj41 joined #parrot
23:13 dalek rakudo/nom: b3e3008 | tadzik++ | lib/Pod/To/Text.pm:
23:13 dalek rakudo/nom: [Pod::To::Text] Make object stringification in declarator2text less implementation-dependent
23:13 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/b3e3008a2d
23:13 dalek rakudo/nom: 5b16dbe | tadzik++ | / (2 files):
23:13 dalek rakudo/nom: Partially fix WHY bugs for two subs in a row
23:13 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/5b16dbe771
23:13 dalek rakudo/nom: 7895d52 | tadzik++ | / (3 files):
23:13 dalek rakudo/nom: Store declarator docs in Matches rather than Strings
23:13 dalek rakudo/nom:
23:13 dalek rakudo/nom: This way we can distinguish the same documentation for two different
23:13 dalek rakudo/nom: objects. Yet another workaround for routine_def eating declarator
23:13 dalek rakudo/nom: comment from routine_def after it.
23:13 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/7895d52849
23:48 dalek parrot/kid51/testsets2: 2a64b0c | jkeenan++ | lib/TAP/Harness/ (2 files):
23:48 dalek parrot/kid51/testsets2: Write module documentation in POD format.
23:48 dalek parrot/kid51/testsets2:
23:48 dalek parrot/kid51/testsets2: _get_all_tap_files() is not needed in
23:48 dalek parrot/kid51/testsets2: lib/TAP/Harness/Archive/MultipleHarnesses.pm, as it is inherited; remove it.
23:48 dalek parrot/kid51/testsets2: review: https://github.com/parrot/parrot/commit/2a64b0cac2

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

Parrot | source cross referenced