SHARE
TWEET
first doubts
a guest
Jan 31st, 2016
19
Never
- 09:38:43 czaks as i see it now, you will need much more powerful servers
- 09:40:25 ~copypaste cc n-tech
- 09:41:30 czaks that's the main problem with php
- 09:41:48 czaks it can't run as a web server
- 09:41:58 czaks or a fastcgi server
- 09:44:02 czaks so initialization erry single time
- 09:46:15 n-tech I don't know enough about 8chan's hardware situation to comment on how the software will run in comparison to vichan.
- 09:47:28 n-tech I run a large PHP suite on a $40 server with 4 CPUs and 4GiB RAM using PHP5-FPM and Apache. I've never seen its RAM anywhere close to filled and I've seen it run fine with over 1000 concurrent users.
- 09:47:47 n-tech I'm not sure the specs of the CPUs. It's Linode, so whatever the 4GB plan provides.
- [...]
- 09:48:47 n-tech model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
- 09:48:53 czaks this isn't a problem of ram
- 09:48:55 ~copypaste better than 8chan's
- 09:48:57 ~copypaste n-tech: i think hhvm support should be a priority
- 09:49:03 czaks this is a problem of concurrency
- 09:49:07 ~copypaste laravel should support hhvm OOTB though.
- 09:50:07 n-tech We use NGINX, right?
- 09:50:16 ~copypaste yes. i want the new system to be nginx+hhvm.
- 09:50:26 ~copypaste and varnish in between. look carefully at function purge().
- 09:50:33 n-tech http://fideloper.com/hhvm-nginx-laravel
- 09:50:36 ~copypaste so nginx LB -> varnish -> nginx+hhvm ye
- 09:50:44 ~copypaste yes it should be no problem.
- 09:50:48 ~copypaste that's why i haven't said anything.
- 09:50:54 ~copypaste i'll also probably use postgres because i know a coredev.
- 09:50:56 ~copypaste lol
- 09:51:06 ~copypaste but laravel is all tech agnostic. i can use whatever i want.
- 09:51:14 n-tech yea exactly, that's the aspiration
- 09:51:35 n-tech I'll probably keep using PHP+Apache+MySQL because that's what most people would use when setting it up, but I would implore you to test locally with what 8chan would use
- 09:51:40 ~copypaste ok
- 09:51:41 n-tech that way we can sort out problems if they arise
- 09:51:53 ~copypaste i already tested it, current version works with nginx/php-fpm
- 09:51:58 n-tech that's awesome
- 09:52:09 ~copypaste i'll try hhvm too but hhvm -rarely- requires changes.
- 09:52:21 n-tech I know nothing about HHVM, first time hearinga bout it.
- 09:52:23 ~copypaste it only did in vichan's case because lol, global constants some lowercase, some uppercase.
- 09:52:30 n-tech Apparently it's another daemo that works in place of PHP5-FPM?
- 09:52:33 ~copypaste (yes it is that bad. see define_groups())
- 09:52:45 ~copypaste yes n-tech. it gives a big performance boost.
- 09:52:51 ~copypaste facebook wrote it for their codebase with is php.
- [...]
- 11:08:54 czaks ok, back to criticism
- 11:09:01 czaks http://laravel.com/docs/5.0/localization
- 11:09:05 czaks this one looks to be hell
- 11:09:14 czaks and it's just on php side
- 11:09:24 czaks we have localizable strings both at js and php side
- 11:09:42 czaks well, i know, this is actually an issue of preference
- 11:10:01 czaks but imo this approach makes the coding actually harder
- 11:21:27 ~copypaste i disagree with you there.
- 11:21:32 ~copypaste the current translation system is a nightmare.
- 11:21:41 ~copypaste i fix a typo in english
- 11:21:46 ~copypaste and then i need to edit a ton of gettext files
- 11:21:54 ~copypaste gettext is using templates/cache...
- 11:21:56 ~copypaste seriously it's shit.
- [...]
- 12:10:08 czaks ok, back to this gettext
- 12:10:16 czaks gettext doesn't prevent you from using the same approach here
- 12:10:41 czaks it is used by major projects
- 12:11:04 czaks just that those projects are mostly versioned ones
- 12:11:14 czaks and before versioning, a string freeze happens
- 12:11:50 czaks what is good, that when you see a string, you can do grep -R string src/
- 12:11:57 czaks and the strings gets to you instantly
- 12:13:50 czaks when you see a localized string, and your idea seems to be like that
- 12:14:16 czaks you first need to get into the locale file, get a string and supply it where it needs to be
- 12:14:51 czaks fuck, i can't write at that time xDDD
- 12:16:16 czaks there is another problem that gettext solves
- 12:16:28 czaks every time you add a new string in your approach, you would need to edit all locale files
- 12:16:49 czaks gettext does that for you
- 12:17:26 czaks i can't imagine translators doing such merges by themselves
- 12:17:48 czaks twig situation is a mess, i know
- 12:18:33 czaks anyway, most locales we got are from transifex
- 12:25:57 ~copypaste i see. the new system also updates translation files when you add a new string
- 12:26:01 ~copypaste i mean they're just simple php arrays
- 12:26:21 ~copypaste i do agree that it's easier to find a string in the old system though if you don't know what template to look at for the key.
- 12:27:21 ~copypaste but that's the only benefit, and it's not really much of one compared to the typo problem which has bitten me personally many times
- [...]
- 12:31:11 czaks this array is a mess imo :^)
- 12:35:34 czaks well, it's all a matter of preference
- 12:36:07 czaks i don't like this approach, if you do, then great
- 12:37:04 czaks and AGPL is the single reason i probably won't contribute to this project
- 12:37:42 czaks my chan engine project is still a thing, just that it's still a project at a current time
- 12:40:06 czaks and i'm currently busy with muh work thing
RAW Paste Data
