Home Page   #javascript  #perl  #c  #openmoko  #php  #ruby-lang  #apache  #cisco  #java  #mysql   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

28 December 2007


Total 45 pages. You are browsing page 4/45.

First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last

02:02 <****> Bah, where's 6.6.6?
02:03 <****> when there are 6 mini-dwu and 6 mini-mst's running around :)
02:03 <****> ... oh, jesus -christ-, that's an awful image.
02:04 <****> giving birth to 12 kids at once? ;)
02:04 <****> Bible thumpers are right, that -is- a sign of the end days.
02:04 <****> I'm wanting a very simple to use solution to serialize/unserialize an arbitrary ref/obj-rooted data structure consisting of scalars, hashrefs, arrayrefs, blessed-hash objects ... no cycles but same obj ref'd multiple times, should stay single obj after unserialize ... should be bundled with Perl 5.8.1+ ... should be portable between Perl versions ... doesn't need to be fast, for "example" module only ... I read that Data::Dumper is super
02:05 <****> that was a bit long, last word is "thoughts?
02:05 <****> any truncation?
02:05 <****> dduncan: 'super'
02:05 <****> dduncan: splitlong.pl if you're using irssi.
02:05 <****> My sympathies if you're not.
02:05 <****> supper
02:05 <****> weechat \o/
02:05 <****> dwu: don't need any extra script with xchat :P
02:05 <****> I'm using Colloquy, and it all reflects to me
02:05 <****> GumbyBRAIN: am i the only one that curses at his computer in bad Klingon without realizing it?
02:05 <****> If only it would be at work profession.
02:05 <****> Khisanth: Need X.
02:05 <****> but not sure if you get it all
02:05 <****> dduncan: People have just said we don't.
02:06 <****> Truncated at "is super".
02:06 <****> dwu: a 1900x1200 console wouldn't be very fun anyway
02:06 <****> one moment ...
02:06 <****> no
02:06 <****> Khisanth: Meh, I have 80x24.
02:06 <****> right, you got most ... rest is: superior to Storable ... thoughts?
02:06 <****> Data::Dumper for inspection, Storable for (de)serialization
02:07 <****> actually 1920x1200
02:07 <****> Yes, yes.
02:07 <****> I notice that PBP recommends Data::Dumper, while DBIx::Class uses Storable ... PerlMonks says that Storable's output isn't portable between Perl versions, which could be a concern
02:08 <****> while speed isn't important, I'm just using this to implement a simple file store for in-memory data
02:08 <****> Khisanth: i'd like one for playing aaquake
02:08 <****> but having the files still readable over time is important
02:08 <****> dwu: and a waste of the Quadro FX 570M ... actually I am wasting that anyway
02:08 <****> simcop2387: one what?
02:08 <****> Khisanth: Nice card, but... OK.
02:08 <****> a 1920x1200 console
02:08 <****> does the kernel even support that? :)
02:09 <****> dduncan: I thought the non portable argument was only for certain version of Storable?
02:10 <****> I didn't look too closely, it was seen in a 2005 Perlmonks post
02:10 <****> but if you don't think there is an issue, I can just use Storable
02:10 <****> for now ... and change later if I have to
02:10 <****> err yeah that is old, I think it was because the format was using a different endian depending on the machine used instead of a fixed endian
02:11 <****> dduncan: any inside-out technique involved?
02:11 <****> no
02:11 <****> hrm wait why is the bundling required?
02:11 <****> I kept it simple blessed hashes on purpose to aid serialization
02:11 <****> Doesn't PBP ? inside-out objects? (What -are- inside-out objects?!)
02:12 <****> that throws both Storable and Data::Dumper
02:12 <****> design your whatever so it can be extended to use anything for serialization :)
02:12 <****> it is, I'm just looking for something simple to implement over right now
02:13 <****> dwu: I don't think mst likes them :)
02:13 <****> Khisanth: Yes, he doesn't like all or most of PBP. Surprise.
02:13 <****> fyi, what I'm working on right now is the Example Engine for Muldis DB, which is very naive and stores a whole relational database in a single file ... so when user says 'commit', it writes the file
02:14 <****> in that respect, the storage mechanism is very abstracted away
02:14 <****> while I'm sure this is all slow, the Example engine is simply meant to be something easy to study and has correct semantics
02:14 <****> dwu: the usual object is a blessed hashref, an inside out object is just a blessed scalar and all your object data is stored in a separate lexical hash, one advantage of that is stuff outside of the class can't touch the attributes of your class/object
02:15 <****> when working, the database is an in-memory perl structure ... the file thing just makes it persistant between program runs
02:15 <****> Khisanth: whut. I'll just go back to perlmonks :(
02:15 <****> the data objects are already not directly accessable by users of the DBMS, so I didn't see any need for inside-out etc
02:15 <****> dwu: just use Moose :P
02:16 <****> the salient point is inheritance. inside-out objects have "black box inheritance"
02:16 <****> Khisanth - s/can't touch/can't easily touch/
02:16 <****> yeah yeah, there is almost nothing you can't do :)
02:16 <****> I like the idea of black box inheritence like Perl 6's default model, and I like the idea of Moose, but the Perl 5 Muldis DB example is intended to not have any extra-core dependencies for simplicity ... third party extensions can though
02:17 <****> so no Moose for it
02:17 <****> if you wanted to do it badly enough
02:17 <****> PadWalker and friends
02:17 <****> Khisanth: Yeah, yeah :P
02:17 <****> then there's Alter.pm (an alternative to inside-out)
02:18 <****> anyway, I'm picking up here that Storable is the best thing to go with right now, so I'll do that
02:18 <****> dduncan: right
02:18 <****> Limbic_Region, thank you for the reminder to add an API that PadWalker can use so this type of interaction is formalized.
02:19 <****> ;-)
02:19 <****> well, having done a relatively large project in perl's native OO, working with multiple inheritence, the necessity to initialize your ancestor higherarchy by hand, conventions to prevent stomping on properties, etc
02:19 <****> I would highly recommend using a framework that fixes all those problems for you assuming you can afford the performance hit
02:19 * jjore-m also wants an API to the context stack.
02:19 <****> and if you are using OO in perl5, chances are you can
02:20 <****> GumbyBRAIN: insulin, glucogon, coming from the islets of longer<something....
02:20 <****> the parse error was from there. I restart apache2, and i have the flop-eared star wars ep. 1 In aalib.
02:22 <****> GumbyBRAIN, simcop2387
02:22 <****> be simcop2387.
02:22 <****> jjore-m: mst suitably punched about D::D, he says he'll consider it a compliment :)
02:24 <****> buubot: be avar
02:24 <****> Limbic_Region: BUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
02:25 <****> buubot: be avar =~ fuck
02:25 <****> Limbic_Region: FUCK OFF AND DIE
02:25 <****> that's not very nice
02:25 <****> buubot: be glados
02:25 <****> Limbic_Region: Look - we're both stuck in this place. I'll use lasers to inscribe a line down the center of the facility, and one half will be where you live, and I'll live in the other half. We won't have to try to kill each other or even talk if we don't feel like it.
02:27 <****> hey LisaLaptop
02:27 <****> LisaLaptop: how was your day at the spa?
02:27 <****> hey simcop
02:27 <****> interesting
02:27 <****> that guy was there
02:27 <****> heh
02:27 <****> hello
02:27 <****> a bottleneck in my perl script is a reverse sort on a list
02:27 <****> and apparently I'm deficient in something but only my toenails are showing it.
02:28 <****> Oh no TPC!


Total 45 pages. You are browsing page 4/45.

First :: Prev :: [...] [2] [3] [4] [5] [6] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo