Camelia, the Perl 6 bug

IRC log for #mojo, 2013-10-31

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

All times shown according to UTC.

Time Nick Message
00:01 marcos batman: afaict, MOJO_MODE and MOJO_LOG_LEVEL have nothing to do with each other
00:14 mire joined #mojo
00:20 forke1 joined #mojo
00:55 phillipadsmith marcos: meaning…?
00:58 sri http://www.google.com/cse?cx=01452​7573091551588235%3Apwfplkjpgbi&amp​;ie=UTF-8&q=MOJO_LOG_LEVEL#gsc.tab=0&gsc.q=MOJO_LOG_LEVEL&gsc.page=1
00:58 sri you could just use search
01:02 laouji joined #mojo
01:06 sri although, i have no idea how you could use the env var without reading that, considering it is only in that one place
01:06 sri *+mentioned
01:10 KindOne joined #mojo
01:21 lizzin joined #mojo
01:27 russum joined #mojo
01:35 buu joined #mojo
01:44 KindOne joined #mojo
01:56 basic6 joined #mojo
02:00 d4rkie joined #mojo
02:01 d4rkie_ joined #mojo
02:38 mikegrb joined #mojo
02:46 duncanthrax2 joined #mojo
03:16 beyondcreed joined #mojo
03:50 gtodd joined #mojo
04:03 SuperOSX joined #mojo
04:13 sri hmm, looks like geo queries will go through aggregate as well, so might not even need a special geonear method
04:14 sri but maybe pipeline building could be improved
04:16 sri not that i have an idea yet... that's a ton of operators http://docs.mongodb.org/master/​reference/operator/aggregation/
04:32 KindOne joined #mojo
04:53 preflex_ joined #mojo
05:19 dqw112 joined #mojo
05:46 kanishka joined #mojo
06:10 kanishka left #mojo
06:12 avenj joined #mojo
06:13 cottoo joined #mojo
06:15 ivan joined #mojo
06:22 johnny5_ joined #mojo
06:24 johnny5_ joined #mojo
06:30 kanishka1 joined #mojo
06:36 dotandimet joined #mojo
06:38 denis_boyun joined #mojo
06:52 kanishka1 left #mojo
07:02 martin joined #mojo
07:07 Vandal joined #mojo
07:09 iSlug joined #mojo
07:26 dpetrov_ joined #mojo
07:31 fontardion joined #mojo
07:49 iSlug joined #mojo
07:50 marcus bpmedley: sorry, answer to what?
07:50 * marcus soft launched http://ranked.no/ last night.
07:50 marcus Integrating payments with Stripe is so easy!
07:52 bpmedley marcus: Wrong nick.
07:52 bpmedley I like stripe, as well.
07:52 bpmedley Very cool on the ranked thing.  I know people who do the scores stuff really enjoy it.
07:53 marcus We've been using it in our coworking for the last year to track our ping pong league.
07:53 bpmedley marcus: Who do you host with?  What are runnign on?
07:53 marcus Figured we might as well make a product out of it.
07:53 marcus bpmedley: We actually host it ourselves. It's written in Rails.
07:54 marcus actually judofyr did the first version in camping, then rune ported it to rails ...
07:54 bpmedley What type of box do you run it on?
07:54 bpmedley Cool.
07:54 bpmedley What version of rails?
07:54 marcus 4
07:55 marcus The other two guys here are more comfortable with ruby, so we've made one rails app and one sinatra app this year. I still love Perl the best tho :)
07:55 marcus But it's interesting to try other frameworks and pick up ideas
07:56 bpmedley I looked at rails 4 the other day.  The level of effort to start seemed somewhat high.
07:56 bpmedley Keep in mind, I would also be learning ruby.
07:57 marcus I think so too. But once it's set up it's pretty easy to hack on.
07:57 marcus I'm really impressed by pry tho. Wish we had a repl as nice in perl.
07:57 bpmedley I did get that impression.
07:57 bpmedley pry?
07:57 marcus https://github.com/pry/pry
08:15 dod joined #mojo
08:19 KindTwo joined #mojo
08:20 hrupp joined #mojo
08:22 kanishka joined #mojo
08:24 trone joined #mojo
08:42 exonity joined #mojo
08:42 exonity Hello!
08:48 exonity Is it possible to run a "Mojo::Base "Mojolicious";" application in a existing perl programm?
08:49 exonity I saw, that it should work for an Mojo::Base extended app
08:49 exonity with the ->start methode
09:01 basiliscos joined #mojo
09:03 themage joined #mojo
09:14 exonity okay, i found my problem, i can't do $app = YAFProto->new => i got the following error message Can't locate object method "new" via package "YAFProto" at
09:15 iSlug joined #mojo
09:25 basic6_ joined #mojo
09:25 themage exonity: probably missing a use or a use Mojo::Base somewhere
09:26 exonity one moment, i paste my code
09:27 exonity http://nopaste.info/be0a44cd02.html
09:27 exonity thats what i did
09:28 themage why do you have "package YAFProto;" in your .pl ?
09:28 exonity öhhh
09:30 exonity i deleted it
09:30 exonity but i still got Bareword "YAFProto" not allowed while "strict subs" in use a
09:38 kanishka left #mojo
09:39 exonity http://nopaste.info/a7b0353f60.html here is my edited version, still the same error :/
09:40 exonity The error and code is extended to the nopaste
09:42 punter joined #mojo
09:45 rem_lex| joined #mojo
09:56 exonity hmmm
10:06 exonity hm shit, i find no solution :/
10:08 batman $daemon->load_app(YAFProto); # wrong
10:08 batman but why oh why don't you use the script generated by mojo ?
10:08 batman no idea why you're adding your own logic
10:08 batman it doesn't make any sense
10:08 arthas joined #mojo
10:09 exonity hmmm
10:10 exonity because i'm new and i dont know it better ;)))
10:10 tudorconstantin joined #mojo
10:10 exonity Its hard for me, to find the correct way of learning about mojo
10:13 exonity do you mean going from Lite to Mojolicious app?
10:16 exonity ok, forget this, but can you tell me how i can replace $daemon->load_app(YAFProto); with something is working? I need this, to demonstrate something to my friend later and it would be nice, when it would run in the original base application. After that I look afor the generating part
10:20 fhelmber_ joined #mojo
10:21 exonity ok, im back in 10 minutes
10:27 exonity joined #mojo
10:27 exonity im back
10:27 fhelmbe__ joined #mojo
10:30 batman marcos: fiddling with environment variables are stupid. don't do that. configure the app using config file instead
10:31 batman exonity: "mojo generate lite_app ..."
10:33 marty joined #mojo
10:34 exonity batman: isn't it possible to fix my problem without using "mojo generate"? I now know, that this is bad, and i allready start to read the documentation to this, but it would be nice to run the actual application
10:35 exonity its only a very small presentation, that it works.
10:35 batman of course, but i'm pretty sick of doing manual stuff which can be automated.
10:36 exonity yeah me too!
10:36 batman THEN USE MOJO GENERATE AND STOP MESSING AROUND
10:44 dotandimet joined #mojo
11:17 exonity joined #mojo
11:28 bowtie_ joined #mojo
11:30 mire joined #mojo
11:30 exonity joined #mojo
11:34 odc holy shit! i've made a deep recursing bug in mu mojo app and now i can't even ssh into the server
11:37 bpmedley odc: Good engineers break thing spectacurerly.. :)
11:37 bpmedley *things
11:37 odc oh ok, kernel panic...
11:37 odc heh @ bpmedley
11:38 odc this linux ain't so tough...
11:38 bpmedley Linux is fun, what have you used prior?
11:40 rem_lex|pivo joined #mojo
11:41 odc i also know openbsd a little, and windows of course
11:41 odc it seems my perl process used all the memory, and linux could not find any killable process
11:41 odc => oops
11:42 odc this on debian 7
11:42 odc i am disapoint
11:42 ryozi joined #mojo
12:01 exonity joined #mojo
12:01 ivan joined #mojo
12:28 basiliscos joined #mojo
12:29 powerman joined #mojo
12:31 marty joined #mojo
12:46 exonity joined #mojo
12:52 batman odc: ulimit is my friend :)
12:58 powerman joined #mojo
13:00 russum joined #mojo
13:01 iSlug joined #mojo
13:05 dqw112 joined #mojo
13:07 exonity joined #mojo
13:36 odc oh right. I forgot about this one
13:47 asarch joined #mojo
13:48 bluescreen joined #mojo
13:57 sh4 joined #mojo
14:02 Vandal joined #mojo
14:10 kanishka joined #mojo
14:14 exonity joined #mojo
14:26 denis_boyun joined #mojo
14:28 bluescreen_ joined #mojo
14:40 beyondcreed joined #mojo
14:44 gryphon joined #mojo
14:53 sri hmm
14:54 nicomen odc: I am disappointed too, I thought you made better code ;-P
15:04 dqw112 joined #mojo
15:09 odc it's for my job, not for cpan ;)
15:30 mire joined #mojo
15:31 abhishekisnot joined #mojo
15:32 dqw113 joined #mojo
15:40 dod joined #mojo
15:42 abhishekisnot joined #mojo
15:53 punter joined #mojo
15:53 punter How much RAM appx will a client connected to a websocket server doing nothing consume?
15:53 punter on the server
15:56 dqw113 joined #mojo
16:00 cfedde punter: depends what the server is doing.  for the connection itself? minimial.
16:00 punter minimal = 1k? 10k?
16:00 sri you know... you could just... try it
16:00 punter I will, with UserAgent
16:00 cfedde a perl process almost by itself has about a 2 or 3M foot print.
16:01 sri https://gist.github.com/kraih/5551292 # here's an experiment i did some time ago
16:01 punter Interesting thanks
16:01 cfedde of course there is typicaly lots of memory sharing going on.
16:02 punter 3M is not important. What matters is the GB needed by 100.000 users
16:02 sri cfedde: don't make stuff up
16:02 punter (which we don't have at the moment anyway)
16:02 punter :-)
16:04 exonity joined #mojo
16:04 sri while there is copy on write going on for the program itself, no memory used for websocket connections can be shared
16:05 sri btw. memory usage for many connections is not optimized very well, so if you're having problems, i'm certain you would be able to remove quite a bit profiling mojolicious
16:06 sri btw. i would expect maybe 3gb for 100k users
16:07 sri unoptimized
16:07 * sri has a few tricks to cut that in half
16:16 punter 3gb is fine. Servers are cheap nowdays.
16:21 denis_boyun joined #mojo
16:26 punter sri: the tricks to cut the memory usage in half, do they involve optimizing the web developer's code, or the Mojolicious code?
16:27 sri both
16:28 sri i'm not documenting them because they break features
16:28 sri you'd find them quickly too if you started profiling though
16:34 basiliscos joined #mojo
16:37 Dandre joined #mojo
16:39 exonity joined #mojo
16:40 sri https://metacpan.org/pod/Fauxtobox # hahaha
16:43 moritz because calling methods with -> isn't ugly enough yet
16:43 moritz so let's make that ->$_methodname
16:59 dvinciguerra joined #mojo
17:13 exonity joined #mojo
17:19 rem_lex joined #mojo
17:30 maxhq joined #mojo
17:47 maxhq joined #mojo
17:49 maxhq joined #mojo
17:49 maxhq joined #mojo
17:50 bluescreen joined #mojo
17:57 exonity joined #mojo
18:04 d4rkie joined #mojo
18:08 exonity joined #mojo
18:10 d4rkie_ joined #mojo
18:10 d4rkie__ joined #mojo
18:20 exonity joined #mojo
18:41 kanishka1 joined #mojo
18:44 marty joined #mojo
19:08 marty joined #mojo
19:10 marty joined #mojo
19:14 Mike-PerlRecruiter_ joined #mojo
19:30 * sri has ordered a nexus 5 o/
19:39 rem_lex|pivo joined #mojo
20:13 exonity joined #mojo
20:25 kanishka1 left #mojo
20:33 bluescreen joined #mojo
20:34 lukep joined #mojo
20:40 dotandimet joined #mojo
20:50 gtodd toadfarm++ :-)
20:59 trone joined #mojo
21:20 dotandimet joined #mojo
21:21 dvinciguerra joined #mojo
21:25 rem_lex joined #mojo
21:28 Trump joined #mojo
21:32 russum joined #mojo
21:41 cfedde joined #mojo
21:44 batman gtodd: glad you like it :)
21:46 marty joined #mojo
21:49 batman Give me ++ on metacpan :)
21:51 Jonis If you're trying to make sure a user is authenticated, why not use under?
21:51 Jonis oh wow, I was scrolled up too far
21:58 russum1 joined #mojo
22:17 marty Hmm.  I just updated mojo to the latest git hub version (4.54) and I am getting this error.   Can't use string ("Mojo::JSON") as a HASH ref while "strict refs" in use.   Is anyone else getting that?
22:17 tianon yes - don't use Mojo::JSON->decode - always Mojo::JSON->new, then ->decode on the resulting object :)
22:18 marty tianon:  thank you.  I'll give it a try
22:20 sri oh, that's a nice side effect of the cleanup :)
22:20 tianon lol, I figured it'd make you happy to notice that, sri :)
22:20 tianon if it hadn't been on purpose :)
22:20 sri \o/
22:21 marty yep, that was it.   \o/
22:21 tianon :D
22:21 sri didn't realize those leftover "no strict 'refs'" were responsible

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