Camelia, the Perl 6 bug

IRC log for #mojo, 2012-06-29

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

All times shown according to UTC.

Time Nick Message
00:10 daniel_ joined #mojo
00:25 brambles joined #mojo
00:51 laouji joined #mojo
00:52 bird joined #mojo
01:16 jnap joined #mojo
01:17 jnap_ joined #mojo
01:26 jnap_ joined #mojo
01:30 scott_ joined #mojo
01:42 jnap left #mojo
01:55 d4rkie joined #mojo
02:05 mire joined #mojo
02:12 CromeDome joined #mojo
02:20 noganex_ joined #mojo
02:25 * tempire percolates
02:47 sri Oo
02:50 * sri reminds tempire to update the deploy command
02:53 * sri cracks the whip
03:06 tempire oh!
03:06 tempire forgot about that
03:13 tempire done.
03:14 sri tempire++
03:14 * tempire goes back to watching farscape
03:14 * sri starts to like sanctuary, it's like a darker warehouse 13
03:15 tempire is that still going?
03:16 sri think it has been canceled
03:16 tempire I tuned out a while ago.  they seemed to be idling.
03:16 sri but i don't have anything better to watch :o
03:16 tempire life on mars
03:16 tempire DO IT
03:16 sri hmm
03:21 tempire well then.  looks like you already addressed the lestrrat issue.
03:22 sri ye
03:22 tempire duplicate all the efforts!
03:22 sri charsbar++ # actually addressed the problem
03:23 sri it still doesn't do multiple DATA sections though
03:23 sri whole implementation is a little weird though, since the whole hash of name => template pairs is passed to the renderer beforehand
03:52 Leandr joined #mojo
04:16 rem_lex joined #mojo
04:31 rwstauner joined #mojo
04:45 xaka joined #mojo
05:08 Leandr joined #mojo
05:16 fhelmber_ joined #mojo
05:26 sri tempire: doesn't look like sharifulin is going to answer you
05:30 sri i'm closing the issue
05:33 sr joined #mojo
05:46 vishwanathms joined #mojo
05:46 vishwanathms_ joined #mojo
05:51 migo joined #mojo
05:56 ovnimancer joined #mojo
05:59 Foxcool joined #mojo
06:18 xaka1 joined #mojo
06:23 laouji joined #mojo
06:49 mire joined #mojo
06:57 Vandal joined #mojo
07:02 CromeDome joined #mojo
07:13 random joined #mojo
07:17 AmeliePoulain joined #mojo
07:20 ver joined #mojo
07:23 AmeliePoulain joined #mojo
07:24 sri hmm
07:24 sri looks like the st2 mojolicious addon is now actually better than my tmbundle :o
07:26 i_am_batman joined #mojo
07:31 Foxcool joined #mojo
07:37 spleenjack joined #mojo
07:40 pau4o joined #mojo
08:02 spleenjack1 joined #mojo
08:18 Akron joined #mojo
09:03 hammondos joined #mojo
09:07 andrefs joined #mojo
09:13 spleenjack joined #mojo
09:13 Andrei666 joined #mojo
09:15 ilbot2 joined #mojo
09:15 Topic for #mojo is now Mojolicious real-time web framework 3.0 🌈 http://mojolicio.us 🌈 http://irclog.perlgeek.de/mojo/today
09:44 marcus WINNING
09:44 * marcus has a new mac
09:47 tempire \o/
09:50 pau4o left #mojo
09:56 andrefs joined #mojo
09:58 nic Anyone got a neat name for app storage?
09:58 nic It's not cache cos it's guaranteed to be there
09:58 nic It's not stash nor flash cos it's not user-specific
09:59 nic hm, maybe it's just a special type of cache
10:00 daxim joined #mojo
10:00 marcus database
10:00 nic :)
10:01 nic yeah, I guess it's in-memory db
10:01 marcus All u'r database is belong to us.
10:01 Andrei666 joined #mojo
10:01 nic yesterday I almost my database -- what a mess
10:05 tempire there is only one quiz
10:05 tempire with one question
10:05 tempire 1) Is the retina screen awesome
10:05 marcus All over my glasses
10:05 tempire answer yes or no
10:05 marcus YES
10:05 tempire CORRECT!
10:06 marcus it's so great
10:06 marcus btw, never realized how dull the black looks on the non-glossy display.
10:10 marcus sparrow really looks like shite on the retina display :)
10:10 marcus really hope they update it soon.
10:29 sri is yours onw of the broken ones? ;p
10:29 sri *one
10:30 sri http://www.macrumors.com/2012/06/27/some-retina-​macbook-pro-users-experiencing-display-ghosting/
10:33 marcus nope
10:34 marcus must suck to get a new mbp, and then have to wait for weeks for a replacement unit.
10:50 crab "it's not stash ... cos it's not user-specific"?
10:58 mire joined #mojo
11:38 jamadam joined #mojo
11:40 dypsilon joined #mojo
11:44 pau4o joined #mojo
11:53 nic crab: yeah, I meant not req-specific
11:54 nic 'stash' and 'flash' were on my mind cos the words are quite neat
11:54 nic 'ClassStorage' is not
11:55 nic I can't use db cos the whole app is for managing large numbers of databases, so needs a distinct name
11:55 nic I'm thinking I'll just use 'store'
11:56 nic Is Mojolicious::Plugin::I18N expected any time soon?
12:12 andrefs joined #mojo
12:13 random joined #mojo
12:41 i_am_batman joined #mojo
12:42 i_am_batman joined #mojo
12:42 * bjoernfan adds "clean up dinosaur puke" in CHANGELOG
12:46 venkatk_ joined #mojo
13:10 Psyche^ joined #mojo
13:16 pRiVi joined #mojo
13:19 pRiVi Hi all. I've just showed the yapc presentation. Very interesting, but I didn't understand the access of databases... There were also a question about that in the end, but I also didn't understand the answer (accustically and also content). Does anyone have a hint about this issue?
13:21 venkatk_ joined #mojo
13:29 nic Hello pRiVi
13:29 nic What is the issue?
13:29 pRiVi I think I already have found it on https://github.com/kraih/mo​jo/wiki/Non-blocking-mysql...
13:30 nic ah cool, that will be useful to me too :)
13:32 pRiVi hm.... I have written over the last 8 years a similar framework to rails with Perl/POE... Also it has support to database structures and the view of the data... Maybe I'll port to Mojo....
13:33 pRiVi The key feature is to support windows like appereance via qooxdoo...
13:34 ryozi joined #mojo
13:42 wolf__ joined #mojo
13:45 pRiVi Does anyone use any comparable to Active Record with Mojo?
13:56 nic pRiVi: I believe DBIx::Class does get used fairly frequently in these parts
13:56 jnap joined #mojo
13:57 nicolasbd joined #mojo
13:59 nicolasbd hi all
13:59 nic omg, it's a nicolas!
14:00 nicolasbd why that ?
14:00 nic nobody knows why he is, he just is
14:10 Leandr joined #mojo
14:21 rem_lex|pivo joined #mojo
14:22 pRiVi nic: Any idear how to mary DBIx::Class with https://github.com/kraih/mo​jo/wiki/Non-blocking-mysql ?
14:22 nic sorry, I don't
14:31 jnap joined #mojo
14:39 pRiVi nic: A dummy question about DBIx... The schemata files with column and table information... are they generated on runtime?
14:39 preflex_ joined #mojo
14:39 pRiVi Why are there files for that on http://mojoexample.herokuapp.com/ in the full version but not in the lite version?
14:39 nic I don't believe they are with DBIx::Class (I don't use it myself) but there is at least one popular package that does what you describe
14:40 pRiVi okay... the mojoexample uses DBIx
14:40 pRiVi this is the cause of my question.
14:41 nic https://twitter.com/chromatic_x has been praising a dynamic ORM he uses (sometime in the past month)
14:42 inokenty joined #mojo
14:49 CromeDome joined #mojo
14:51 daniel_ joined #mojo
14:53 dypsilon1 joined #mojo
14:57 whee pRiVi: I like to set up the database and then use DBIx::Class::Schema::Loader to generate the schema
14:58 pRiVi ah, okay.
14:59 pRiVi There is support for this as I guessed
15:00 pRiVi whee: It scanns the database for any table and columns?
15:00 whee yes
15:06 nicolasbd I quite sure I have seen something in mojolicious docs saying a thing like "good for template generation" .. but I can't find it anymore
15:07 nicolasbd any idea ? did I dream ?
15:08 inokenty nicolasbd: http://mojolicio.us/perldoc/Mojo/Template#SYNTAX
15:09 inokenty <%% Replaced with "<%", useful for generating templates %>
15:09 inokenty =)
15:09 jnap joined #mojo
15:10 nicolasbd wouah ! thank you inokenty
15:13 pRiVi As more as I read I see it is comparable to ruby/rails. But the documentation, especially about database, is a problem.
15:14 pRiVi The MojoExample is fine... but not too easy to find...
15:14 pRiVi and not too easy to unterstand
15:15 pRiVi But good to see that I still can use perl with new concepts... beside of POE all the time and now Mojo I didn't see anything in the last years...
15:15 pRiVi for the new programming concepts
15:16 pRiVi I think I will port my Qooxdoo based framework from POE to Mojo
15:17 pRiVi Hopefully it will be possible with the Plugin module...
15:45 CromeDome joined #mojo
15:55 pau4o left #mojo
16:22 iamiwasaki joined #mojo
16:38 d4rkie joined #mojo
16:58 osprey_ joined #mojo
17:06 zivester joined #mojo
17:07 * marty waves
17:10 marty Looks like the st2 Mojolicous module author updated it to highlight embedded css and js.
17:10 osprey_ hi
17:10 osprey_ sory for offtop, but can you help me?
17:10 marty Hi osprey_
17:10 osprey_ @sorted = sort {$$A cmp $$B} qw/a m b g c aa d tt e f g asd h xc c/;
17:10 marty Sure.
17:10 osprey_ it ok
17:10 osprey_ code
17:11 jontaylor joined #mojo
17:11 osprey_ but how to substitute var name for hash?
17:11 osprey_ like this: sort {${$A}->{field1} cmp ${$B}->{field1}} (wrong code)
17:14 rwstauner joined #mojo
17:15 nic osprey_: Are you meaning: { ${ $A->{field1} } cmp ${ $B->{field1} } }
17:15 marty back, sorry, had a UPS delivery
17:17 marty Personally I don't see any glaring error in you code.  But I'm not very good and spot checking without running it.
17:19 nic osprey_: Is $A->{field1} a ref and you want to compare the dereferenced values?
17:20 osprey_ Can't use string ("b") as a HASH
17:20 osprey_ I want substitute 'a' to $B for example
17:21 alester joined #mojo
17:21 osprey_ $A = 'b'; $B = 'a'; @sorted = sort {$$A cmp $$B} qw/a c m b g /;
17:21 osprey_ like here
17:22 nic and you have scalar values in $a $c $m $b $g ?
17:22 osprey_ I have ref to hash
17:23 osprey_ array of refs to hash*
17:23 nic ah, I see.  I thought you were using the names of vars (which would be harder)
17:24 osprey_ I want reverse of sorting
17:24 nic sort { $a->{field1} cmd $b->{field1} } ( ... )
17:25 nic you want the result to be in descending order?
17:25 nic sort { $b->{field1} cmd $a->{field1} } ( ... )
17:25 inokenty osprey_:  my @sorted = sort {$b->{key} cmp $a->{key}} @your_array;
17:25 osprey_ yes, this code correct, but I need sort by many field and different a, b may be reversed
17:26 osprey_ so need to substitute '$a' name :)
17:26 inokenty osprey_:  my @sorted = sort {$a->{key} cmp $b->{key} || $a->{key2} cmp $b->{key2}} @your_array;
17:27 osprey_ inokenty: I know, I was give you just minimum of my code
17:27 nic yep, the fieldnames can be vars, but I'd use a conditional for the case of reverse order
17:27 nic right, moff, have a nice weekend
17:28 osprey_ but I don't know sort order, one filed may be abc other zyx
17:33 mire joined #mojo
17:37 andrefs joined #mojo
17:37 osprey_ http://pastebin.com/qYTJ1hiZ test
17:37 osprey_ hm
17:38 osprey_ without use strict; it work -_-
17:58 nic aha, you are putting variable names in variables
17:58 nic You need "no strict refs" for that
17:58 nic You can take advantage of lexical scoping if you like
17:59 tempire pRiVi: mojoexample is highlighted in the presentation
17:59 tempire did you watch it on youtube or mojocasts.com?
17:59 tempire dbix::class is used in both the lite and the full app.  the same files are used for both.
17:59 pRiVi tempire: sure, but Databases not.
17:59 pRiVi yes, it is in the source but not at all in the presentation
18:02 pRiVi I has only mentioned multiple times that it is not the job of Mojo
18:02 pRiVi also if it is the essential thing a users traps on using first time
18:03 tempire hence the mojoexample
18:04 athenot joined #mojo
18:04 pRiVi Not me, I first searched on documentation... And the example still don't tell me if the SQL statements are blocking or not...
18:05 tempire the web framework has no control over that.
18:06 tempire it's a matter of your how you're accessing the database, and there a many ways to do it
18:06 pRiVi I know, but if I want to use it or compare it with ruby/rails or anything else this is the first thing I need to resolv.
18:10 whee have you tried it?
18:13 pRiVi Not jet. All what I want to say is that first it is very important to address the access of databases better, also if it is not the thing of the framework. And second that I see that it is addressed by the example, but I don't think that this is a good idear to do this in this way. Especially of details like: Is it blocking or not? Is the Schema.pm needed if I use the one "Mojolicious::Lite" file ?
18:22 whee whether or not it's blocking depends on whatever you pick for database access
18:23 pRiVi Yes I undernstand, if my filedescriptor is blocking or not is not changed by Mojolicious.
18:23 pRiVi It is the same as on Perl/POE
18:25 pRiVi https://github.com/kraih/mo​jo/wiki/Non-blocking-mysql
18:26 pRiVi this is the cause for EV
18:26 jamadam joined #mojo
18:27 pRiVi but it is not mentioned at all in the Mojolicious example, nor the missing of support for this in Mojolicious by itself.
18:27 pRiVi POE for example addresses this in its framework
18:27 pRiVi not by EV but by Wheels
18:29 pRiVi means I have an defined way to handle things like database connections nonblocking/asyncronous via the framework itself
18:30 pRiVi I am just missing this issue more exclusive in documentation
18:43 whee pRiVi: http://mojolicio.us/perldoc/Mojoli​cious/Guides/Cookbook#Event_loops ?
18:45 pRiVi can't seen anything which accepts filedescriptors
18:47 pRiVi in POE: http://search.cpan.org/~rcaputo/POE-1​.354/lib/POE/Kernel.pm#I/O_Watchers_(Selects)
18:47 pRiVi you just pass your filedescriptor, and the POE Kernel runs your code if there is data to be read
18:47 whee I haven't done this myself, but it looks like you'd be able to use something like AnyEvent to make your database accesses and mojo use the same non-blocking event loop
18:48 pRiVi whee: see  https://github.com/kraih/mo​jo/wiki/Non-blocking-mysql, as menationed already earlier
18:48 sri or fix POE::Loop::EV and just use POE
18:49 sri i would actually document how to use POE in Mojolicious if someone fixed that module
18:52 bc547 I have following code in my test.html.ep template: '<td><%==$rules->render_input('entry')%></td>" where $rules->.. returns <%= text_field 'entry' %>. Is it possible to have the template engine parse the return string and convert it into nice html?
18:54 pRiVi sri: Do I right understand that you want to integrate mojolicious into POE?
18:55 pRiVi On what is EV based, is it threading? select it cannot be...
18:55 sri sorry, i'm not gonna explain it, but it would work just like AnyEvent now
19:01 asarch joined #mojo
19:01 pRiVi okay, it is based on select and others...
19:46 vishwanathms joined #mojo
19:53 nic bc547: Is there a way your ->render_input can call ->render(inline => ' ... ') ?
20:01 marcus doods
20:08 tempire for real?
20:08 marty like no way
20:13 osprey_ left #mojo
20:25 tempire the staying power of the 3.0 release on twitter is amazing.
20:32 daniel_ joined #mojo
21:39 daniel_ joined #mojo
21:40 mire joined #mojo
21:42 asarch joined #mojo
22:51 i_am_batman joined #mojo
23:13 nic I find it pretty exciting how fantastic Mojolicious::Lite is for prototyping ideas for applications
23:14 nic The fact that there's a smooth path for expanding them into serious apps helps too
23:17 mikegrb indeed, when I was first reading mojo docs, that bit blew my mind
23:19 daniel_ joined #mojo

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