/operate/ - Endchan Operations

Let us know what's up

Posting mode: Reply

Name
Email
Subject
Comment
Password
Drawing x size canvas
File(s)

Remember to follow the rules

Max file size: 350.00 MB

Max files: 5

Max message length: 4096

Manage Board | Moderate Thread

Return | Catalog | Bottom

Expand All Images


odilitime Board owner 02/16/2017 (Thu) 15:22:54 [Preview] No. 5684
working with a developer from /librejp/, we'll made some minor adjustments on page loading and refresh. We're trying to:
1. Make sure freshly added posts at the bottom of the page have all the same bells as whistles at the posts that were there when the page loaded
2. Cut down on browser stalls when processing large pages

Let me know if you notice anything better or worse.


to_sha_ki#+NqD6W 02/17/2017 (Fri) 13:11:27 [Preview] No. 5685 del
(33.12 KB 646x213 jsbin.png)
>>5684
うぃ! >>>/librejp/32919


https://jsbin.com/hicubizucu/1/edit?js,output
I rewrote `ioFor' somewhat.
- separate "names for receiving numbers" and "names for function objects"
- support backwards loop
- put semi-colon to end of line
(I feel that initialization of `options' is too complicated)


As the poly fill of `setImmediate', this implementation is good for performance.
https://dbaron.org/log/20100309-faster-timeouts
the licence is Mozilla Public Licence,
but if independence the file, (maybe) can use that without changing the whole license from MIT.


as a try, I going to write a function that you don't need to call next() in the loop body.
with such a name:
 `asyncForCountdown', `asyncForCountup', `asyncForEach', `asyncLoop'


odilitime Board owner 02/18/2017 (Sat) 01:59:54 [Preview] No. 5690 del
>>5685
Wow, thanks, this is cool. Saw the rewrite, took me some time to understand. I like the new names and backwards step feature. I didn't think to add that.

I saw this polyfill but it's 40k of file size
https://github.com/YuzuJS/setImmediate
but what you found is much smaller but supports less browsers (does support most of them).

But we really need to profile and figure out what's causing the pauses on the large pages. I'm guessing it's some sort of non-optimized DOM operation that's causing the jank. After we find the cause then I'll make a decision on whether we need setImmediate or not and which one.

>I going to write a function that you don't need to call next() in the loop body
Well we probably could add an option that makes it wait until next is complete.

I was also working on an ioForIn version. I have some other functions in other projects I'm working on that are similar I'm realizing. I had a "serialMap" that's very similar to ioFor. And it's partner "asyncMap" (see https://gitgud.io/Sapphire/FutaBilly/blob/master/archive/archive.js#L235 ). Also have a "apertureMap" (but forget which project has it). Probably can roll all this up into it's own library here.
Edited last time by odilitime on 02/18/2017 (Sat) 02:01:10.


to_sha_ki#+NqD6W 02/18/2017 (Sat) 06:59:27 [Preview] No. 5691 del
>>>/librejp/32951
>I can't open quick-reply window with click the post number.
1 line of that fix (and addition of a setImmediate call)
https://gitgud.io/to_sha_ki/8TailedLynxJa/commit/0a6199731aeb028a879750e93d15a7afd730de3b

I will write some more reply later.


odilitime Board owner 02/18/2017 (Sat) 11:26:09 [Preview] No. 5693 del
>>5691
Ah yes, thank you. All fixed


to_sha_ki#+NqD6W 02/18/2017 (Sat) 16:53:23 [Preview] No. 5695 del
>>5690
ya. I like the backwards step. I often use it in my code.

>After we find the cause then I'll make a decision on whether we need setImmediate or not and which one.
I think too.
(why I wanted to introduce something like setImmidiate.
that main-reason was for a certain feature )

I wait for those library functions without writing my async-functions.

Besides improving JS-code, there are a few things that can be easy.
1. move the <script> tag to the end of <body> tag
2. and... I going to change the lynxchan engine for fix the thumb size.
Maybe need to add it code here.
https://gitgud.io/InfinityNow/LynxChan/blob/master/src/be/engine/domManipulator/common.js#L721


odilitime Board owner 02/18/2017 (Sat) 16:59:07 [Preview] No. 5696 del
>>5695
> I going to change the lynxchan engine for fix the thumb size
What thumbnail size fix? I already made one.


to_sha_ki#+NqD6W 02/18/2017 (Sat) 17:14:35 [Preview] No. 5697 del
>>5696
Oh! I've seen the tag attributes now.
When did you make it?


to_sha_ki#+NqD6W 02/19/2017 (Sun) 12:28:38 [Preview] No. 5702 del
I localized day-of-week expression.
https://gitgud.io/to_sha_ki/8TailedLynxJa/commit/0aaa2356399db76cd59be56322e8ead27ec31dab
https://jsbin.com/zefazeqeqi/1/edit?js,output


[Hide User Posts] is duplicated.
hookShowHideUi is called from thread.js/refreshCallback and showHide.js .

rather than code change to detect duplicates,
I think that it is better to shift to the method of hooking to addPost .


odilitime Board owner 02/20/2017 (Mon) 05:16:42 [Preview] No. 5706 del
>>5702
Thanks again! Applied.

>[Hide User Posts] is duplicated.
Oh didn't know. Good catch.

>I think that it is better to shift to the method of hooking to addPost .
but the initial pageload wouldn't be covered would it?
Either way it needs to be rewritten.

Hey here's a feature I'd really like. 8ch.net has the ability to screenshot a page. I'd really like that for EndChan. I've made something before but my time is best spent on fixing bugs. I also have to fix the unban system apparently.
Edited last time by odilitime on 02/20/2017 (Mon) 06:43:43.


to_sha_ki#+NqD6W 02/20/2017 (Mon) 14:27:48 [Preview] No. 5710 del
>>5706
teeheehee

>but the initial pageload wouldn't be covered would it?
my description was insufficient.
I said shift from "hooking to refreshCallback" to "hooking to addPost".
write a new function that receive a postCell, and add it to the bottom of addPost.
to leave hookShowHideUi call on page loading.

>Hey here's a feature I'd really like. 8ch.net has the ability to screenshot a page. I'd really like that for EndChan. I've made something before but my time is best spent on fixing bugs. I also have to fix the unban system apparently.
would you like to reflect endchan server's front-end files and back-end files to the repository?
(Several files in the repository look old)
I want to see the bug.

I found this. but I have never used it yet.
https://html2canvas.hertzen.com/examples.html


to_sha_ki#+NqD6W 02/20/2017 (Mon) 15:30:50 [Preview] No. 5712 del
(24.60 KB 408x234 code.png)
I just confirmed that html2canvas can work.
I will not proceed with this, I will write each hook for addPost.


to_sha_ki#+NqD6W 02/22/2017 (Wed) 10:31:31 [Preview] No. 5719 del
https://gitgud.io/to_sha_ki/8TailedLynxJa/commit/927bc3fe442b211c5c96ad95ec33c301788d7a6a
I changed not to use updateTimes() and hookShowHideUi()

refreshCallback calls addPost and
addPost calls processPostCell and
processPostCell calls adjustPostTime and applyShowHidePost

adjustPostTime() is a substitue for updateTimes()
applyShowHidePost() is a substitue for hookShowHideUi()

new postCell to be added newly will be processed individually.
processes only postCell to be newly added to page.


odilitime Board owner 03/06/2017 (Mon) 06:09:34 [Preview] No. 5765 del
>>5719
thank you and applied. Sorry for the delay, it has been a busy week.


to_sha_ki#+NqD6W 03/07/2017 (Tue) 15:18:29 [Preview] No. 5769 del
>>5765
thank you. the real-life is important.


to_sha_ki#+NqD6W 03/13/2017 (Mon) 12:55:25 [Preview] No. 5798 del
(29.15 KB 458x197 id_with_tag.png)
https://gitgud.io/to_sha_ki/8TailedLynxJa/commit/4300f390ea6f54e7dc0ae97dc4f1dd3ba2c7fb71
I fixed that "[Hide User Post]" will not work after a post with the existing ID are added with javascript-Refresh.

userID=hasId.innerHTML
in this expression, when hasId.innerHTML is changed, userID is also changed.
labelId.innerHTML was changed by thread.js/updateIdLabels function.



Top | Return | Catalog | Post a reply