The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2017-12-20

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

All times shown according to UTC.

Time Nick Message
00:00 SpringBoot putting an ORM library in Java class path,  Spring boot will auto-configure it. No need to do any more configuration to use it
00:01 jberger irrelevant, Mojolicious is entirely model agnostic. Apples and oranges
00:01 SpringBoot see Netflix...how they implemented their microservices...everything done in Spring Boot
00:01 * jberger yawns, this is boring
00:02 SpringBoot Spring Boot is not based on Java
00:03 SpringBoot there is a version of Spring Boot using Kotling
00:03 SpringBoot Kotlin language
00:03 pink_mist SpringBoot: please stop. nobody here cares.
00:04 SpringBoot you should see new languages like Google Go, Kotlin and their frameworks. Perl is dead
00:04 Grinnz *now* it's trolling
00:05 SpringBoot which  websites are using Mojolicious  ?
00:05 jberger who feels comfortable progamming in a language that Larry Ellison can shut down whenever he finds the right court?
00:05 SpringBoot Kotlin is not JAVA !!
00:05 jberger SpringBoot: at least 2 of the Alexa top 50 and I'm getting tired of you
00:05 SpringBoot Google Go is not JAVA
00:06 SpringBoot Larry Ellison can not shut them down
00:07 SpringBoot again...I am asking : which websites are using Mojolicious ?
00:07 pink_mist too many to list
00:07 SpringBoot give me one major website
00:08 Grinnz left #mojo
00:08 Grinnz joined #mojo
00:08 jberger why?
00:08 jberger who are you
00:08 jberger clearly Perl is dead, you like some other language, I'm very happy for you
00:08 * jberger hugs troll
00:09 jberger everyone be nice to SpringBoot, they have nothing better to do with their time than this
00:09 jberger kinda sad actually
00:10 pink_mist SpringBoot: there's a small list of a few of the projects and companies using Mojolicious here: https://github.com/kraih/mojo/wiki/Projects-and-Companies-using-Mojolicious
00:10 SpringBoot then why do you put so much useless effort in a dead language with its cadaver frameworks
00:10 Grinnz because it's sarcasm
00:11 Grinnz personally? because i like making money
00:13 SpringBoot making money ? then you own Bitcoins. Guess which language has no  binding to the bitcoin  protocol ;-)
00:13 sri oh shit, you're from nuremberg?
00:13 Grinnz I do own bitcoins, but it doesn't pay my salary
00:13 sri you know me from suse don't you?
00:14 SpringBoot who are you
00:14 Grinnz lol
00:15 SpringBoot anyway...there is NO pearl binding to the bitcoin protocol
00:15 jberger https://metacpan.org/search?size=10&q=bitcoin
00:16 jberger we're doing fine thanks
00:16 jberger you all have big companies that make official bindings to stuff
00:16 jberger bet it makes you feel big
00:16 jberger we just make our own and quietly keep on going
00:17 SpringBoot How do you know that I am from SuSE?
00:17 jberger that's acknowledgement, get an ip
00:17 jberger I wonder if SuSE wants to know that their employees are out trolling
00:18 SpringBoot who are you, sri ?
00:19 sri if you can't figure that out you don't work there and it's conincidence
00:19 SpringBoot I was working there
00:19 SpringBoot not anymore
00:19 sri my sympathies for having to use that shitty internet provider though... i lived for a very short time in nuremberg and vodafone kabel deutschland was the worst
00:20 sri afraid i have to sleep now though, since i still work there
00:22 SpringBoot my  deepest sympathy that you still work there :-)
00:24 sri wait, are you one of the trainees?
00:24 sri the one i met in prague?
00:25 SpringBoot ;-)
00:25 sri busted
00:27 SpringBoot good night
00:27 sri SpringBoot: but seriously, don't do that shit again, it can really harm your reputation in the open source community
00:28 SpringBoot I was not aware that you are here ;-)
00:28 sri nn
00:28 sri i'm the founder of this project
00:28 SpringBoot hmm...no...then I haven't met you
00:30 SpringBoot but I was in Prague and I did talk to a guy with mojolicious knowledge...but that was not the founder of the project...
00:56 aborazmeh joined #mojo
03:46 disputin joined #mojo
03:58 Leffe joined #mojo
04:02 Leffe joined #mojo
04:08 Leffe joined #mojo
05:36 Leffe joined #mojo
05:41 Leffe joined #mojo
05:47 inokenty-w joined #mojo
05:56 jberger sri https://twitter.com/kazuho/status/943347787785220098
06:06 preaction huh, that's an interesting idea
06:11 mohawk indeed!
06:27 jberger https://twitter.com/joelaberger/status/943366827475984385
06:27 geospeck joined #mojo
06:30 jberger funny how many days of topics I've gotten out of this wishlist app
06:30 geospeck joined #mojo
06:31 jberger when the quote I gave before I started writing it (in another channel) was
06:31 jberger the problem with both of these is that I'm not being very creative with motivating examples. oh well, I'll just start banging out a layouts article. something will come to me
06:31 jberger ^^ quote
06:33 jberger man, the hits keep on coming! https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/
06:48 ghenry joined #mojo
07:06 Vandal joined #mojo
07:14 mohawk jberger, ha!
07:20 jkp joined #mojo
07:30 dod joined #mojo
07:33 dod joined #mojo
07:40 dod joined #mojo
07:43 AndrewIsh joined #mojo
07:43 karjala_ joined #mojo
08:20 trone joined #mojo
08:21 marcus such bad quality trolls these days :-/
08:26 Leffe joined #mojo
08:40 itaipu joined #mojo
09:04 dod1 joined #mojo
09:12 RLPebbles joined #mojo
09:12 TBG joined #mojo
09:42 dod joined #mojo
09:44 dod2 joined #mojo
10:25 sri they don't make em like they used to
10:33 dod joined #mojo
10:57 McA joined #mojo
11:21 Leffe joined #mojo
11:25 sri oh, do we have a winner? https://github.com/kraih/mojo/pull/1171#issuecomment-353003777
11:26 sri batman actually managed to make it two lines shorter :o
11:26 sri and nicely organized
11:27 marcus lgtm
11:28 batman thanks! <3
11:29 batman let me know if you want a pr or if i should just push it...
11:30 batman (if it gets accepted)
11:49 CandyAngel Nice work batman
11:59 itaipu joined #mojo
12:04 sri batman: move the if ROLES check above monkey_patch and you can push
12:05 mib_atsi14 joined #mojo
12:07 mib_atsi14 hey guys, i couldn't find it anywhere in the docs, but is there a way to find out the host name of the url used in Test::Mojo?
12:07 mib_atsi14 i tried doing $t->app->build_controller->url_for('/somewhere')->to_abs but that returns only the endpoint "/somewhere"
12:10 sri Test::Mojo does not use a host name, just the ip 127.0.0.1
12:11 mib_atsi14 thanks! does it use a default scheme/port too? i tried http://127.0.0.1:3000/somewhere but that returned a connection refused
12:12 sri $t->ua->server->url->to_abs
12:13 mib_atsi14 i got http://127.0.0.1:59983/
12:13 mib_atsi14 awesome :)
12:13 mib_atsi14 thanks again!
12:22 rcz How do I manually dump into the debug web view?
12:42 Leffe joined #mojo
12:55 good_news_everyon joined #mojo
12:55 good_news_everyon [mojo] jhthorsen pushed 1 new commit to master: https://git.io/vbMMR
12:55 good_news_everyon mojo/master a9d214d Jan Henning Thorsen: Fix composing classes with multiple Mojo::Base roles, closes #1170 #1171
12:55 good_news_everyon left #mojo
12:56 batman sri: ^^ hope that was what you meant...
12:56 dod joined #mojo
13:13 wilma joined #mojo
13:51 good_news_everyon joined #mojo
13:51 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vbMQS
13:51 good_news_everyon mojo/master 3f9f538 Sebastian Riedel: update Changes
13:51 good_news_everyon left #mojo
13:52 sri yes
13:52 hkclark joined #mojo
13:53 itaipu joined #mojo
13:54 gizmomathboy joined #mojo
13:54 batman awesome! :)
13:58 haarg blead is going to add a warning for bitwise ops on utf8 strings.  this means the heuristic in Mojo::JSON will need to be adjusted.  there are two reasonable options: utf8::downgrade($value, 1) or !utf8::is_utf8($value).  the former keeps the same semantics but is less performant.  the latter is more performant but changes the semantics slightly.  using utf8::is_utf8 arguably make the semantics more correct
13:58 haarg but less consistent.
13:59 haarg alternatively, using the bitwise ops hack is troublesome and maybe it should just be removed.
13:59 bwf joined #mojo
14:06 itaipu joined #mojo
14:15 orev joined #mojo
14:25 sri we'll wait for a pull request
14:27 sri Mojo::JSON::number(...) is not an option btw.
14:28 sri we'll never do that
14:31 haarg i can prepare a pull request either way, but i'm wondering what option you think is more reasonable
14:31 haarg i also need to provide a pr to JSON::PP
14:32 haarg and yeah i had no intention of doing something like Mojo::JSON::number()
14:33 sri performance first imo
14:34 sri after all that's why we used your trick in the first place :)
14:34 haarg ok
14:35 dod1 joined #mojo
14:35 haarg as i said, arguably the semantics of using utf8::is_utf8 make a bit more sense.  if the flag is on, it's more likely meant to be a string than a number.
14:39 Pyritic joined #mojo
14:47 geospeck joined #mojo
14:51 Guest69 joined #mojo
14:55 pink_mist why not just "no warnings 'bitwise';"?
14:57 pink_mist oh wait, that's not a warnings category
14:57 pink_mist what's the warnings category going to be?
15:00 haarg don't know
15:00 haarg and deprecation has been discussed
15:04 marcus sri: horizon zero dawn on sale in psn today. Glad I waited a couple of days :)
15:12 sri yay
15:13 sri best game ever
15:13 sri i'm sad i finished the dlc a few weeks ago :(
15:20 haarg i may end up getting a ps4 for that game
15:21 haarg maybe once i get a screen i can use
15:22 sri definitely get hdr10 for that game, so worth it
15:23 sri if you're into adventure games uncharted 4 and uncharted lost legacy are also worth getting a ps4 for
15:23 haarg yeah there's a few other games i know of that i'd grab
15:24 sri next year there will be shadow of the colossus and the last of us 2
15:25 * sri can't wait for both
15:26 girlbeach joined #mojo
15:26 girlbeach I just post some hot pictures on www.triphile.com ,I am an IT girl from Asia
15:26 sri the spam is getting a bit out of hand
15:27 girlbeach was kicked by sri: girlbeach
15:28 * coolo admits these days he mostly plays tekken 7 on the ps4 against a rapidly typing 7 year old girl - and is getting beat every damn time :)
15:29 sri lol
15:30 sri i remember tekken from the ps1
15:31 BinGOs tekken for a fool!
15:35 marcus I finally started playing fallout 4 yesterday. Pretty damn good too.
15:35 coolo sri: this is serious sport: https://www.youtube.com/watch?v=YBHfwO
15:35 marcus I used to spend many a night with friends playing tekken.
15:36 marcus coolo: unavailable here :-/
15:40 sri coolo: also unavailable here
15:41 sri fallout 4 was nice, played it on pc though
15:42 sri the main quest line was over pretty quick
15:45 sri only competitive game i still play is overwatch
15:46 RLPebbles Is there a reason i can't use say "string\n";  inside a mojo helper, but print "string\n"; works fine?
15:47 jberger RLPebbles is the helper generating HTML?
15:47 gryphon joined #mojo
15:47 RLPebbles for now, no
15:47 jberger if so, newlines are ignored by the browser most of the time
15:47 RLPebbles im just printing to console
15:47 RLPebbles for debugging
15:47 jberger ok, then I'd need to see a (minimal) example of what you are doing
15:48 jberger a mojo helper is just a function
15:49 jberger perl -Mojo -E 'app->helper(mysay => sub { shift; print "@_\n" }); app->mysay("hi")'
15:49 RLPebbles https://pastebin.com/FLjGaZQn
15:49 Repaster Repasted text from RLPebbles: https://perl.bot/p/i4zsy4
15:50 sri you're using base instead of Mojo::Base
15:50 RLPebbles Ah... thanks, didn't see that
15:50 sri base does not activate new perl features for you
15:50 jberger sri++ I missed that
15:50 sri http://mojolicious.org/perldoc#CONVENTIONS
15:51 jberger and I missed that the problem was "say" and not the newline literal
15:51 RLPebbles Haha, silly mistake, works fine now
15:51 jberger nice
15:57 coolo sri: same here - I guess I mispasted. But https://youtu.be/VwTc7avfnck?t=184 nicely shows why she wins :)
16:03 sri heh, they look very bored
16:06 batman haha :D
16:10 sri i'm curious if overwatch as an esport will work out, blizzard is trying really hard
16:46 itaipu joined #mojo
17:08 Grinnz yeah, they are just starting the 'real esport' stuff
17:09 Grinnz lots of people have put a lot of money into it now
17:09 Grinnz sri: the main quest like is like 5% of fallout 4 :P
17:09 Grinnz quest line*
17:09 Grinnz i had played through it a couple years ago, i'm playing through again with all the dlc now
17:10 ChmEarl joined #mojo
17:38 jberger so I only have an anemic idea for a post for tonight (tomorrow) and not much time to write it
17:39 jberger if anyone has a post they want in, today would be a great time
17:39 jberger (this includes those who have already expressed intererst)
17:44 CandyAngel Providing I don't crash-to-sleep again, I can get mine done
17:46 CandyAngel Heading home now, will work on it as soon as I get back
17:47 karjala_ joined #mojo
17:49 karjala_ "In 10 to 15 years, robots will be able to write better computer code than even the most skilled coders today, according to former Pepsi president and Apple CEO John Sculley" https://flipboard.com/@flipboard/-rise-of-the-robots-there-wont-be-enough/f-6c0b180a8b%2Ffoxbusiness.com
17:49 karjala_ do you people agree?
17:49 jberger depends on what you mean by better
17:49 jberger but maybe
17:56 Pyritic joined #mojo
17:59 itaipu joined #mojo
18:02 disputin joined #mojo
18:16 CandyAngel Write, time to rewrite this
18:18 jamesaxl joined #mojo
18:20 tyldis So, I assume there is no difference between "has 'something' => sub { Some::Thing->new; }" and "has something => sub { state $something = Some::Thing->new; }"?
18:22 CandyAngel tyldis: state is more used in helpers, where the callback doesn't get replaced with its returned value
18:23 sh14 joined #mojo
18:23 tyldis CandyAngel: Yeah, makes sense
18:23 pink_mist tyldis: I expect the second one would return the same thing in every single object
18:24 pink_mist if you have more than one object of your class
18:25 tyldis But the former one will not?
18:26 pink_mist yeah, should return a new thing per object of your class
18:26 tyldis Interesting, I thought I understood how state works. Apparently not.
18:28 tyldis Writing a Mojolicious::Plugin::Prometheus as a wrapper around Net::Prometheus. Would never want more than one instance of Net::Prometheus per app.
18:29 tyldis Well, "never". Some people are insane.
18:39 trone joined #mojo
18:43 itaipu joined #mojo
18:44 dod joined #mojo
18:48 Grinnz tyldis: still shouldn't force any singleton aspect of it. multiple apps could exist in the same process (embedding for example)
18:49 Leffe joined #mojo
18:51 tyldis Grinnz: Seems like even a bigger reason to make it a singleton in this use-case. Though I'm all ears :)
18:52 Grinnz ah, well if it's supposed to be a per-process singleton then sure
18:52 tyldis But I guess in that case you know what you are doing so I shouldn't be opinionated, perhaps
18:54 Grinnz whatever makes the common case work by default and the uncommon case possible
18:55 pink_mist you can always pass in a value in ->new
18:55 Pyritic joined #mojo
18:55 pink_mist so the uncommon case is still possible
18:56 tyldis Ah, of course. Perfect sense.
18:56 Grinnz or by setting the attribute
18:57 pink_mist yeah
19:26 karjala_ joined #mojo
20:04 disputin joined #mojo
20:07 gizmomathboy joined #mojo
20:09 tyldis So if anyone has the time and interest to review my module before I put it on CPAN: https://github.com/tyldum/mojolicious-plugin-prometheus
20:12 preaction this looks great! too bad i use InfluxDB...
20:13 tyldis I use both, covers different needs
20:15 preaction they do?
20:17 tyldis For pure monitoring and alerting we use Prometheus (polling at intervals), for instrumentation at high resolutions we do influxdb
20:18 tyldis In our case it turns out that some metrics are actually events (value X changes by Y), which we track with InfluxDB at high resolution
20:19 preaction ah. use grafana's monitoring/alerting features, but they're not enough so i have to add kapacitor to my stack
20:19 tyldis Exactly
20:19 tyldis We came to the same conclusion and then turned to Prometheus
20:19 preaction i guess my larger point was that having this instrumentation in mojolicious seems like a generally-useful thing, so if a future version allowed swapping in of different backends that'd be great
20:21 tyldis I think domm tried to do that with Measure::Everything
20:21 tyldis I think the idea was great, but it would require a lot of work to work on multiple 'backends'
20:22 geospeck joined #mojo
20:28 mohawk jberger, what's the plan for today's advent post?
20:39 mohawk_pts joined #mojo
21:23 berov joined #mojo
21:29 mohawk_pts sri, now Promises are out, and Observables are in: https://blog.graph.cool/all-you-need-to-know-about-apollo-client-2-7e27e36d62fd
21:29 mohawk_pts not sure how i feel about that
21:29 jberger :p
21:31 mohawk jberger, so you are alive ;-)
21:31 jberger traveling and working
21:32 jberger I don't have a plan other than if someone gives me a post I'll use it
21:32 jberger and if not its going to be a quick thing I have in my back pocket in case
21:33 mohawk fair
21:34 mohawk seems batman has gone silent, so i'm pondering a more standalone gql thing
21:38 tyldis I would assume he is busy
21:44 noganex joined #mojo
21:47 CandyAngel I'm like.. maybe nearing finished rewriting mine
21:47 CandyAngel Hopefully using better english than that
21:53 mohawk CandyAngel, share it?
21:56 mohawk collaboration and whatnot
22:00 CandyAngel I ended up rewriting the code I'm showing.. I don't actually know if it works :P
22:00 CandyAngel Need to test it
22:01 mohawk you could get commentary on the explanation while you work
22:01 mohawk it's up to you
22:03 mr_evil joined #mojo
22:03 mr_evil left #mojo
22:23 preaction i wrote another yancy blog post, jberger, if you need more content: http://preaction.me/draft/2017/12/17/yancy-starts-a-conversation/ i'm not pleased with how much boilerplate yancy is making me write though, so i think i need to make yancy better
22:23 Grinnz what is software except a series of responses to annoyance
22:24 preaction i mean, yes
22:24 preaction like, i could make yancy auto-read from the `$c->param` if you don't pass in an argument
22:24 preaction i could make exceptions auto-render a nice error page using a `yancy/exception.html.ep` template (overridable)
22:25 preaction that would take this 20 line method down to 3 lines
22:27 CandyAngel Okay, I have finished it, but the code isn' tested
22:27 preaction i could also have a way for yancy to resolve relationships in data, and that removes a huge slice of code
22:42 mohawk CandyAngel, testing is waayyyy overrated #trolling
22:42 jberger preaction: it looks like one of either CandyAngel or batman/mohawk will come through
22:42 jberger so you can work on stuff if you want, but thanks
22:42 preaction ok
22:44 jberger ok I'm going to be off for a little bit
22:44 jberger if multiple articles emerge, I'll trust that you all can work out who is going tonight
22:44 jberger I'll pop on in a few hours to do the integration
22:45 jberger (why are advent calendars done when everyone is visiting family and friends :-P )
22:45 CandyAngel https://www.youtube.com/watch?v=egne2ZCMM_0
22:45 jberger hahaha
22:45 jberger ROUND 1: FIGHT
22:45 jberger CandyAngel: can you be sure to include an author blurb for yourself
22:46 sri lol
22:46 jberger and an image or gravatar if you want
22:46 CandyAngel mohawk called it!
22:46 mohawk #thuglife
22:46 jberger of course mohawk didn't have one either so I just used the null gravatar for him
22:47 CandyAngel I'll have to find my non-copyrighted avatar..
22:47 CandyAngel Oh wait, I know where it is
22:47 mohawk pleasingly, it's a "G"
22:47 CandyAngel How big is the author avatar thing supposed to be?
22:47 sri i think they are both robots
22:48 jberger mohawk: it is pointed to etj@cpan.org if you ever want to setup a gravatar for yourself btw
22:48 jberger CandyAngel: not too big
22:48 jberger whatever will work, honestly
22:48 mohawk jberger, noted, ta!
22:49 CandyAngel I'm super tempted to send the one my friend just drew
22:51 sri set up a gravatar, then you can change it any time
22:51 sri which reminds me to switch to my seasonal gravatar
22:58 CandyAngel jberger: is 100x100 okay?
23:09 disputin joined #mojo
23:34 jberger CandyAngel should be
23:34 jberger Like sri says, the easiest thing would be to setup a gravatar which I can point to. Then you have control later
23:43 * CandyAngel is fixing the code :P
23:44 Leffe joined #mojo
23:45 CandyAngel Oh wait, I might not need to
23:51 CandyAngel Bleh, it's not working at all :P
23:58 mohawk how do i refer with a url to something in DATA?

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