Search results

  1. A

    How to transpile my monkeycoder.

    Sorry, but your project uses a lot of modules, which are not supported by the Python → 11l → C++ transpiler (getopt, json, logging, multiprocessing, pickle, queue).
  2. A

    Notable competitive programming problems

    This thread is intended to list competitive programming problems, which can not be solved with Python (CPython and PyPy) because of exceeding time/memory limit, but can be solved with the Python → 11l → C++ transpiler.
  3. A

    How to pronounce '11|'?

    IIl denotes another thing: Intelligent Infinity language.
  4. A

    How to pronounce '11|'?

    I don't find it very interesting to use a font for a logo in which the typeface of the number ‘1’ and the lowercase letter ‘el’ are noticeably different. Because, after all, this is true for the vast majority of fonts. So I intentionally chose a font in which these characters are not just very...
  5. A

    How to pronounce '11|'?

    How did you know about 11l? 11l is pronounced "elevenel". Also please read this page to understand why this language is so named.
  6. A

    Big picture

    No, currently there is no way to link with C libraries. First of all, you should answer the following questions: Why you need your Python code be compiled with the Python → 11l → C++ transpiler? Does it have performance issues? Have you tried PyPy for better performance? Big picture behind 11l...
  7. A

    Big picture

    As I said earlier: So, can you provide your whole source code, which depends on csv library?
  8. A

    Simple python script not resulting in correct result

    Currently, types of class's member variables must be specified inside class definition (not inside __init__!), i.e.: class Test: number : int def __init__(self, number: int): self.number = number ...
  9. A

    Main differences

    The random.randrange(a, b) function, which returns a random number n in the range a <= n < b, and the random.randint(a, b) function, which returns a number in the range a <= n <= b, have been combined into a single function which takes one argument of type "range" (in 11l the range for a <= n <=...
  10. A

    F-string support

    So, I decided to proceed the second way if possible {because it is possible in many cases, including your code}, and proceed the third way otherwise.
  11. A

    My thoughts on UFCS

    "Explicit is better than implicit." ( : The Zen of Python : )
  12. A

    My thoughts on UFCS

    Also parentheses-less methods can replace properties' getters (just like in Ruby): T Value . String val F int_val=(Int new_val) // setter .val = String(new_val) F int_val // getter R Int(.val) Value val val.int_val = 10 // implicit call of `int_val=()` (setter)...
  13. A

    F-string support

    Also I think that f-strings in this code are slightly overused. For example, f"{brackets[0]}" can be written as str(brackets[0]), or just brackets[0].
  14. A

    My thoughts on UFCS

    Can you elaborate on what you mean by this? UFCS feature in itself? Or my statement that this should be denoted explicitly? Or my proposed syntax? Mostly I agree with you, but there are some rare cases when this feature can be useful. Particularly, for extremely short functions, which call...
  15. A

    F-string support

    As I can see, there are no format specifiers in this code at all. Can you look through all of your code, which you wish to compile with Python → 11l → C++ transpiler, and say are there any format specifiers inside f-strings? [Format specifier is a part of replacement field (expression delimited...
  16. A

    My thoughts on UFCS

    [This post is inspired by this article.] This feature is nice, but I strongly believe that this should be denoted explicitly, i.e. if you want to call evenNumbers like this: evenNumbers([1, 2, 3, 4]) than declare it such way: F evenNumbers(Array[Int] arr) R arr.filter(n -> n % 2 == 0)...
  17. A

    F-string support

    Can you bring some examples (maybe links to the source code, if it's open-source)? Currently, Python → 11l transpiler supports Python % formatting (e.g. '%02d: %s' % (1, 's')) and str.format (e.g. '{:02}: {}'.format(1, 's') or '{n:02}: {s}'.format(n = 1, s = 's'), which translates into ‘#02...
  18. A

    Lists with multiple types inside

    You can write something like this:
  19. A

    Основные отличия

    Функция random.randrange(a, b), которая возвращает случайное число n в диапазоне a <= n < b, и функция random.randint(a, b), которая возвращает число в диапазоне a <= n <= b, были объединены в одну функцию, которая принимает один аргумент типа "диапазон" (а диапазон для a <= n <= b в 11l...
  20. A

    Использование транспайлера Python → 11l → C++ при решении олимпиадных задач по программированию

    Эта тема форума предназначена для обсуждения данной статьи. Авторская версия статьи прикреплена к этому сообщению.
Top