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

IRC log for #mojo, 2017-01-07

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

All times shown according to UTC.

Time Nick Message
00:07 sri wonder if Mojo::Util::slurp/spurt would move completely to Mojo::File
00:08 sri guess they would, since performance is not really a concern
00:10 sri i mean, you can instantiate 1.3 million Mojo::File objects per second on a macbook
00:13 mishanti1 Just think what a cluster of macbooks could do!
00:13 mishanti1 And then think of the absolute management nightmare that would be...
00:13 preaction generate heat through useless tasks?
00:16 mishanti1 The constant reboots due to new service-packs I guess.
00:16 mishanti1 Or was that Windows? Har to tell the two apart these days.
00:27 good_news_everyon joined #mojo
00:27 good_news_everyon [mojo] kraih force-pushed mojo_file from 6a21b74 to 87e4001: https://git.io/vMmLr
00:27 good_news_everyon mojo/mojo_file 87e4001 Sebastian Riedel: add a proof-of-concept version of Mojo::File for easier decision making
00:27 good_news_everyon left #mojo
00:45 good_news_everyon joined #mojo
00:45 good_news_everyon [mojo] kraih force-pushed mojo_file from 87e4001 to 7e1e85f: https://git.io/vMmLr
00:45 good_news_everyon mojo/mojo_file 7e1e85f Sebastian Riedel: add a proof-of-concept version of Mojo::File for easier decision making
00:45 good_news_everyon left #mojo
00:46 sri hmmm
00:47 sri i'm still not entirely sure if all those changes are really improvements :S https://github.com/kraih/mojo/commit/7e1e85f536276f72b205f553b82f18e3a9b25f25
00:48 sri like this file... hard to see that as a gain https://github.com/kraih/mojo/commit/7e1e85f536276f72b205f553b82f18e3a9b25f25#diff-20671582b0d1d1de1b4b66f9a8edd7b8
01:02 nicomen joined #mojo
01:03 howitdo joined #mojo
01:29 Janos joined #mojo
03:27 Janos joined #mojo
05:04 dboehmer joined #mojo
07:38 dod joined #mojo
07:45 dod joined #mojo
09:14 good_news_everyon joined #mojo
09:14 good_news_everyon [mojo] jhthorsen created mojo_file_strings (+1 new commit): https://git.io/vMcx8
09:14 good_news_everyon mojo/mojo_file_strings fa2188d Jan Henning Thorsen: basename() and dirname() return strings. Add parent()
09:14 good_news_everyon left #mojo
09:15 batman sri: not much difference... https://github.com/kraih/mojo/compare/mojo_file...mojo_file_strings
09:43 sh14 joined #mojo
10:09 pink_mist I think I prefer that take on it
10:09 pink_mist batman++
10:10 batman I'm not sure, hehe
10:14 batman jberger: my thinking was that some method called "fooname" would return a string, and that you probably don't want a file object when calling basename()
10:15 batman sri: i got drunk yesterday, so didn't get to hack until today
10:22 sri batman: so, how does it work portability wise?
10:22 batman i don't see the difference
10:24 sri So you ignored all my concerns? :(
10:33 batman i think i have another take on what parent() is
10:37 batman why isn't dirname() the same as parent() ?
10:40 batman i've looked at File::Tiny and the conversation between you and jberger last night.
10:40 batman s/File::Tiny/Path::Tiny/
10:46 sri batman: well, given the circumstances i'm rejecting your first proposal
10:49 sri you were right about basename though
10:49 good_news_everyon joined #mojo
10:49 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCeL
10:49 good_news_everyon mojo/mojo_file c6b1066 Sebastian Riedel: there is no reason for basename to return an object
10:49 good_news_everyon left #mojo
10:51 cpan_mojo Mojolicious-Plugin-Mongol-1.0 by MARGHI https://metacpan.org/release/MARGHI/Mojolicious-Plugin-Mongol-1.0
10:58 batman okidoki
11:22 dod joined #mojo
11:44 good_news_everyon joined #mojo
11:44 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCfZ
11:44 good_news_everyon mojo/mojo_file 47873c6 Sebastian Riedel: use Mojo::File in tests too
11:44 good_news_everyon left #mojo
11:45 sri what remains now is 5 special cases i think
11:45 sri of which some might result in new Mojo::File methods
11:51 sri it looks quite a bit better in tests
11:51 sri https://github.com/kraih/mojo/compare/mojo_file
11:58 pink_mist why isn't https://github.com/kraih/mojo/compare/mojo_file#diff-8f5f4344be333281ca50382ef9d82962R77 path($path)->dirname->make_path; instead?
11:59 pink_mist oh, I suppose the $self->creat_dir call does do some extra things
11:59 pink_mist *create
12:00 sri yes
12:03 jamesaxl joined #mojo
12:03 jamesaxl hi
12:03 jamesaxl does mojo has GraphQl module ?
12:06 pink_mist shouldn't https://github.com/kraih/mojo/compare/mojo_file#diff-0120e14db1e38761ee52391ebb171c26R213 have ->to_string as well or are you just relying on the automatic stringification?
12:07 pink_mist probably the same for a bunch of other lines as well
12:17 stryx` joined #mojo
12:52 dexteruk joined #mojo
12:52 dexteruk Happy New Year everyone
12:56 dexteruk Hoping someone can point me in the right direction.  I have a little bug with websocket, when i write some changes to the code Morbo closes the socket I see Websocket clossed status 1006
12:57 dexteruk but then when the websocket sends an event i get that event twice
12:57 dexteruk and after another change i get it 3 time etc etc
12:58 dexteruk its like an eventemitter being subscribed many times and when you trigger that event it happens multipul times
12:58 dexteruk so im not sure why after closing the socket the reopening of the socket would cause this
12:59 zivester joined #mojo
13:05 sri pink_mist: relying on stringification
14:14 asarch joined #mojo
15:13 jamesaxl pink_mist, have you ever use restful with mojo ?
15:13 vicash batman: when you get time for AssetPack could you please remove the rel_dir deprecated warning, it is filling up the logs everywhere :) thank you!
15:14 pink_mist jamesaxl: there's lots of ways to use mojo in a restful way, but I've not had a need for that myself, no
15:16 jamesaxl Yep I see, cause many people suggest GraphQL and I am looking how to do that with Perl(mojo).
15:18 batman vinnix: yes, gonna fix it later https://github.com/jhthorsen/mojolicious-plugin-assetpack/issues/112
15:18 batman sorry, meant vicash :)
15:43 odc joined #mojo
15:47 vicash thank you batman.
16:05 cpan_mojo Mojolicious-Plugin-HTMLLint-0.05 by KOORCHIK https://metacpan.org/release/KOORCHIK/Mojolicious-Plugin-HTMLLint-0.05
16:06 batman thanks for reminding med vicash :)
16:16 odc joined #mojo
16:20 odc joined #mojo
16:37 odc joined #mojo
16:40 odc joined #mojo
16:42 odc joined #mojo
16:46 odc joined #mojo
17:16 howitdo joined #mojo
17:25 PryMar56 joined #mojo
17:46 stryx` joined #mojo
17:52 Janos joined #mojo
18:11 good_news_everyon joined #mojo
18:11 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCn2
18:11 good_news_everyon mojo/mojo_file e25c058 Sebastian Riedel: add documentation for Mojo::File
18:11 good_news_everyon left #mojo
18:12 good_news_everyon joined #mojo
18:12 good_news_everyon [mojo] kraih force-pushed mojo_file from e25c058 to 2a1b890: https://git.io/vMmLr
18:12 good_news_everyon mojo/mojo_file 2a1b890 Sebastian Riedel: add a proof-of-concept version of Mojo::File for easier decision making
18:12 good_news_everyon left #mojo
18:32 sri still not sure if Mojo::File will ever make it into master
18:32 pink_mist might I request that it gets released onto cpan *anyway*? :P
18:38 good_news_everyon joined #mojo
18:38 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCcr
18:38 good_news_everyon mojo/mojo_file a60872d Sebastian Riedel: fix typo in example
18:38 good_news_everyon left #mojo
19:04 good_news_everyon joined #mojo
19:04 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCCQ
19:04 good_news_everyon mojo/mojo_file d7d1656 Sebastian Riedel: slurp and spurt methods are no longer needed in Mojo::ByteStream
19:04 good_news_everyon left #mojo
19:21 good_news_everyon joined #mojo
19:21 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCWM
19:21 good_news_everyon mojo/mojo_file c3cd577 Sebastian Riedel: slurp and spurt functions are no longer needed in Mojo::Util
19:21 good_news_everyon left #mojo
19:21 sri being able to consolidate this stuff is nice though
19:29 good_news_everyon joined #mojo
19:29 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCln
19:29 good_news_everyon mojo/mojo_file 2468ed8 Sebastian Riedel: show slurp and spurt in examples
19:29 good_news_everyon left #mojo
19:31 sri hmm. the more actual code there is on Mojo::File (slurp, spurt, list_tree...), the better i feel about it
19:31 sri s/on/in/
20:40 good_news_everyon joined #mojo
20:40 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCBS
20:40 good_news_everyon mojo/mojo_file 583d564 Sebastian Riedel: add is_abs method to Mojo::File
20:40 good_news_everyon left #mojo
20:59 mib_3d83c8 joined #mojo
21:24 good_news_everyon joined #mojo
21:24 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMC0H
21:24 good_news_everyon mojo/mojo_file 8978b9f Sebastian Riedel: add list method to Mojo::File
21:24 good_news_everyon left #mojo
21:25 good_news_everyon joined #mojo
21:25 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMC0d
21:25 good_news_everyon mojo/mojo_file a4480d4 Sebastian Riedel: test basename arguments too
21:25 good_news_everyon left #mojo
21:27 sri tried to make ->list and ->list_tree a little consistent
21:42 good_news_everyon joined #mojo
21:42 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCE7
21:42 good_news_everyon mojo/mojo_file 7861725 Sebastian Riedel: use Mojo::File for Mojo::Home tests
21:42 good_news_everyon left #mojo
21:43 sri ok, i guess that actually concludes my preparation work
21:43 sri https://github.com/kraih/mojo/compare/mojo_file
21:43 sri it's used everywhere, and Mojo::File has all features we need in core
21:44 sri now we nitpick about details
21:48 good_news_everyon joined #mojo
21:48 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCut
21:48 good_news_everyon mojo/mojo_file a9f4983 Sebastian Riedel: more Mojo::File tests
21:48 good_news_everyon left #mojo
21:55 good_news_everyon joined #mojo
21:55 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCug
21:55 good_news_everyon mojo/mojo_file 2808cf5 Sebastian Riedel: change return value of move_to method
21:55 good_news_everyon left #mojo
21:58 lluad joined #mojo
22:15 good_news_everyon joined #mojo
22:15 good_news_everyon [mojo] kraih pushed 1 new commit to mojo_file: https://git.io/vMCz6
22:15 good_news_everyon mojo/mojo_file f3d9f5d Sebastian Riedel: tests and documentation
22:15 good_news_everyon left #mojo
22:17 good_news_everyon joined #mojo
22:17 good_news_everyon [mojo] kraih force-pushed mojo_file from f3d9f5d to 1345e17: https://git.io/vMmLr
22:17 good_news_everyon mojo/mojo_file 1345e17 Sebastian Riedel: add a proof-of-concept version of Mojo::File for easier decision making
22:17 good_news_everyon left #mojo
22:17 sri ok, rebased, and i guess if it passes the vote i would be ok with merging it into master
22:20 good_news_everyon joined #mojo
22:20 good_news_everyon [mojo] kraih force-pushed mojo_file from 1345e17 to 451e01c: https://git.io/vMmLr
22:20 good_news_everyon mojo/mojo_file 451e01c Sebastian Riedel: add a Mojo::File module to encapsulate most of the code we use to interact with file systems on different operating systems
22:20 good_news_everyon left #mojo
22:39 * sri opens https://github.com/kraih/mojo/pull/1028
22:39 sri every vote counts
22:41 pink_mist I just voted (or do I need to make an actual comment with +1 for it to count?)
22:42 sri nope
22:42 sri pink_mist++
22:42 sri thats even better than a comment
23:42 sri another thing i noticed it that there were actually a lot of "use File::*" imports that were not actually needed anymore
23:43 sri like some code was removed over time and the imports forgotten
23:44 sri it's especially hard to clean up all the File::Spec::Functions imports
23:50 good_news_everyon joined #mojo
23:50 good_news_everyon [mojo] kraih force-pushed mojo_file from 451e01c to 010d7bd: https://git.io/vMmLr
23:50 good_news_everyon mojo/mojo_file 010d7bd Sebastian Riedel: add a Mojo::File module to encapsulate most of the code we use to interact with file systems on different operating systems
23:50 good_news_everyon left #mojo
23:50 sri one thing i've not changed yet is Mojo::Home
23:50 sri that's something we'll have to think about
23:50 sri how to integrate Mojo::File into Mojo::Home more elegantly

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