Блог пользователя 2147483648

Автор 2147483648, история, 23 месяца назад, По-русски

Вдохновлённый постом Gleefre, предлагаю добавить на Codeforces поддержку языка YoptaScript — первого в мире скриптового языка программирования для гопников и реальных пацанов. Больше информации о языке вы сможете найти на официальном сайте.

YoptaScript — очень мощный язык, который может работать со скоростью JavaScript и даже более выразительный, чем Python (ИМХО). Я думаю, что его действительно стоит добавить в качестве поддерживаемого языка, потому что это очень зрелый язык с очень богатым набором функций.

Вот реализация сортировки с помощью кучи в YoptaScript: https://pastebin.com/k5b8WVJB (и я буду рад создать пиар по желанию).

Лучшей реализацией YoptaScript с открытым исходным кодом, является YoptaScript, который можно установить здесь.

YoptaScript можно так же подключить для вашего проекта с помощью пакетного менеджера npm: npm install -g yopta

Или введите npm install -g yopta чтобы установить йопту глобально.

На моём компьютере, heapSort бенчмарк укладывается в [293..346] ms со средним временем 301.69 ms.

Задача 1А — Театральная площадь может быть решена, например, так:

гыы lines внатуре readline().поделитьЯгу(" ") нахуй
гыы x внатуре Очканавт.чирикГони(lines[0] / lines[2]) нахуй
гыы y внатуре Очканавт.чирикГони(lines[1] / lines[2]) нахуй
наПечать(x * y) нахуй
  • Проголосовать: нравится
  • +20
  • Проголосовать: не нравится

»
23 месяца назад, # |
Rev. 2   Проголосовать: нравится -9 Проголосовать: не нравится

Finally, an actually novel weird/esoteric language!

»
23 месяца назад, # |
  Проголосовать: нравится -7 Проголосовать: не нравится

Omg, can't wait for this language to appear on the site!

»
23 месяца назад, # |
  Проголосовать: нравится -33 Проголосовать: не нравится

MikeMirzayanov, when this language will be added to Codeforces?

»
23 месяца назад, # |
  Проголосовать: нравится +38 Проголосовать: не нравится

Compilation error нахуй expected at the end of line 27

»
23 месяца назад, # |
  Проголосовать: нравится +23 Проголосовать: не нравится

I understand that this is a joke (it is a joke, right?), but I don't think it is an adequate comparison.

First of all, let me disagree that it is a mature language. Its earliest release at github (and there is no others sources) appeared at December of 2016, 6-7 years ago. I don't think this is a mature language. "The language is in the process of development" is said on the official website, and there haven't been much work on it as well -- ~600 commits only, 4-5 years (out of 6-7) of being stale. There is no standard, "The best open source YoptaScript implementation" is the only one.

Comparing to Common Lisp: First appearance at 1984 (almost 40 years ago), ANSI standard was created at 1994 (30 years ago). It has at least 8 implementations listed here, with two of them being commercial. SBCL has recently got a clone on github, and it ~21,500 commits in its repository. I also need to note that thanks to ANSI standard CL program from 2000 can be run without any single problem using modern implementations.

Secondly, I don't think adding it to Codeforces will bring something to the table, since JavaScript is already supported, and, as I understand, YoptaScript is just a wrapping around it. And, this is still an esoteric language, which is not widely used.

Common Lisp, however, differs a lot from currently supported languages. There is no language from lisp family here, and it was requested since the very beginning of existence of Codeforces. And despite being an old language, it is known to be second from old languages still being widely used (the first one is Fortran).

Also, Common Lisp by quite a lot of others CP sites & competitions, like Code Jam.

Final note. Honestly, I don't know how exactly to react to your post. It makes me feel bad, even though it's just a joke.

  • »
    »
    23 месяца назад, # ^ |
    Rev. 2   Проголосовать: нравится -15 Проголосовать: не нравится

    Lol, dude, chill out. You are taking it too seriously. I just want to say that here Lisp is needed by as many people as YoptaScript.

    • »
      »
      »
      23 месяца назад, # ^ |
        Проголосовать: нравится +3 Проголосовать: не нравится

      Of course it is not true. YoptaScript is not needed by anyone for sure — it is an esoteric language which transpiles to JavaScript which is supported on codeforces.

      Common Lisp is not an esoteric languages, and it was asked for quite a lot of times (see this post, also this post and search for "lisp"). And I need to note that not a single language from lisp family is supported on codeforces currently. (Ruby/JS/Haskell are called lispish sometimes but they are not lisps)

      • »
        »
        »
        »
        23 месяца назад, # ^ |
          Проголосовать: нравится +6 Проголосовать: не нравится

        Searched for "lisp" in this post and found your alt account cyberpenguin :D

        Just look at Gleefre's and cyberpenguin's comment under that post and their the only blog entries and everything becomes clear :DDDD

        • »
          »
          »
          »
          »
          23 месяца назад, # ^ |
          Rev. 2   Проголосовать: нравится +6 Проголосовать: не нравится

          You're acting weird now. It is not my alt account obviously. (Why would I create it and why would I repeat the same thing from main account 3 years later in this case? Don't be stupid.)

          Were you unable to find others comments there? Like this one, this one, this one e.t.c?

          • »
            »
            »
            »
            »
            »
            23 месяца назад, # ^ |
            Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

            I'm just having fun, dude :D

            All of these comments are from nooby accounts, and amount of them is just negligible.

            Just look at the submissions of last ABC round on Atcoder. There 60k+ submissions in total, and exactly 20 of them using lisp. And again, all of these people — lowrated. The same statistics will be on Codecorces, so don't bother Mike with such requests.

            • »
              »
              »
              »
              »
              »
              »
              23 месяца назад, # ^ |
              Rev. 4   Проголосовать: нравится 0 Проголосовать: не нравится

              All of these comments are from nooby accounts

              Probably because they can't / don't want to participate in rounds using other languages?

              The same statistics will be on Codecorces

              Do you see future? You can never be sure about it.

              exactly 20 of them using lisp

              And what? They are using it! Compare to OCaml for example — there is less of them, and it is still supported by Codeforces. Perl ~30. D ~50. I don't think it is something you should compare by.

              don't bother Mike with such requests

              This is rude. Please, don't be rude. I don't think you can choose what one can ask him about.