SHARE
TWEET

first doubts

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