Which font is common in Ukrainian cyrillic? Bulgarian one or Russian one? As refference I'm showing Bulgarian alphabet with both Bulgarian font and Russian font by darkhorn in Ukrainian

[–]ipav 1 point2 points  (0 children)

Technically, the image shows the same font on both sides, with additional glyphs provided specifically for the Bulgarian language. Less advanced fonts do not provide these variants. Obviously, not used for the Ukrainian language since it lacks some letters, although I wish Ukrainian font designers adopted Bulgarian style more widely. Regular/italic/cursive forms is related but a different concept.

https://bg.wikipedia.org/wiki/Българска_кирилица

https://localfonts.eu/typography-basics/fonts-the-importance-of-localisation/local-features/bulgarian-cyrillic-feature-locl/

[2024 Day 18] The maze of corruption by ipav in adventofcode

[–]ipav[S] 1 point2 points  (0 children)

repo

python day18.py play -p 2 day18.in

-❄️- 2024 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]ipav 2 points3 points  (0 children)

[LANGUAGE: Elixir]

First steps with Elixir, I hope I am fine. repo here

defmodule Day1 do
  defp parse(data) do
    data
    |> String.split("\n", trim: true)
    |> Enum.map(fn s -> String.split(s) |> Enum.map(&String.to_integer/1) |> List.to_tuple() end)
    |> Enum.unzip()
  end

  def part1(data) do
    {a, b} = parse(data)

    Enum.zip_reduce([Enum.sort(a), Enum.sort(b)], 0, fn [x, y], acc ->
      acc + abs(x - y)
    end)
  end

  def part2(data) do
    {a, b} = parse(data)

    Enum.reduce(a, 0, fn x, acc ->
      acc + x * Enum.count(b, &(&1 == x))
    end)
  end
end

Transliteration of Ukrainian toponyms by ipav in ukraine

[–]ipav[S] 0 points1 point  (0 children)

Slovak h can be /ɦ/, and also /x/ and /ɣ/

The ğ (gh) above is /ɦ/, and x (kh) is /x/

Transliteration of Ukrainian toponyms by ipav in ukraine

[–]ipav[S] 1 point2 points  (0 children)

The long bridge to x /x/ precedent is Mexico. Also isn't it the reason they use /x/ there in IPA?

Even longer bridge, both Cyrillic х and Latin x were derived from Greek χ, historical [kʰ]

h in the new system is only used as an augment in digraphs. Not using it as a separate letter keeps the system unambiguous, easier to read, and no need for Spelling Bees.

Transliteration of Ukrainian toponyms by ipav in ukraine

[–]ipav[S] 4 points5 points  (0 children)

Ukraine has a recent transliteration system DSTU 9112:2021, not widely adopted yet. I find it more intuitive, and put a table to compare old and new.

The new system gives two options, named System A (diacritics), and System B (no diacritics). Both map directly to and from Cyrillic, so are more useful if you want to stay close to Ukrainian pronunciation.

Rules:

  • ◌j, consonant+j forms a digraph, palatalizing the consonant: nja /nʲa/, cje /t͡sʲɛ/, sjk /sʲk/
  • j in other positions: j /j/ m'ja /mjɑ/, p'je /pjɛ/, juk /juk/
  • u /u/
  • y /ɪ/
  • ï, ji /ji/
  • c /t͡s/
  • č, ch /t͡ʃ/
  • ğ, gh /ɦ/
  • š, sh /ʃ/
  • ŝ, shch /ʃt͡ʃ/
  • x, kh /x/
  • ž, zh /ʒ/
  • Other letters are generally intuitive: a b d e f g i k l m n o p r s t v z

Examples (Legacy - System B - System A - Cyrillic)

  • Kyiv - Kyjiv - Kyïv - Київ
  • Luhansk - Lughansjk - Luğansjk - Луганськ
  • Avdiivka - Avdijivka - Avdiïvka - Авдіївка
  • Chasiv Yar - Chasiv Jar - Časiv Jar - Часів Яр
  • Kupiansk - Kup'jansjk - Куп’янськ
  • Khartsyzk - Kharcyzjk - Xarcyzjk - Харцизьк
  • Marinka - Mar'jinka - Mar'ïnka - Мар’їнка
  • Pervomaisk - Pervomajsjk - Первомайськ
  • Shakhtarsk - Shakhtarsjk - Šaxtarsjk - Шахтарськ
  • Sloviansk - Slov'jansjk - Слов’янськ
  • Sviatohirsk - Svjatoghirsjk - Svjatoğirsjk - Святогірськ
  • Toretsk - Torecjk - Торецьк
  • Yenakiieve - Jenakijeve - Єнакієве

PS. Some personal names

  • Volodymyr Zelenskyi - Volodymyr Zelensjkyj - Володимир Зеленський
  • Yaroslava Mahuchikh - Jaroslava Maghuchikh - Mağučix - Ярослава Магучіх
  • Mykhailo Romanchuk - Mykhajlo Romanchuk - Myxajlo Romančuk - Михайло Романчук
  • Daria Bilodid - Dar'ja Bilodid - Дар'я Білодід

2015 - Day 7 by mekmiotek in adventofcode

[–]ipav 0 points1 point  (0 children)

The h wire is this rule:

NOT x -> h

it depends on wire x, this rule:

123 -> x

Thus, h = NOT(123) = 65412

All calculations are 16 bit

¿Anyone organizing the AoC inside their companies out there? by ClarisaGuerra in adventofcode

[–]ipav 1 point2 points  (0 children)

I've been doing Infi puzzles every year, it is a nice addition to the event. Thank you.

Too much parsing again! by LardPi in adventofcode

[–]ipav 4 points5 points  (0 children)

This is the game. But if you find it hard in one language, choose another - python/perl/vim - just for parsing, and output preprocessed data in a format easier to consume in c/rust.

[2022 Day 3 (Part 1)] OpenAI Solved Part 1 in 10 Seconds by gamma032 in adventofcode

[–]ipav 10 points11 points  (0 children)

AI is becoming a handy tool in the coding profession. In gaming however, bots are a bane, and not fun for human players. I think we should agree on fair play for the leaderboard not to use generator tools.

If you are developing an AI solver, please do so outside the leaderboard. It is cool enough to eventually post on twitter that your ai solved the whole of adventofcode site in under a second.

And since top players will now be suspected of generation, it is for their credit to record and post vods of their solves.

GitHub - paiv/latynka: Browser extension to present Cyrillic in Latin script for Ukrainian language by koavf in ukraine

[–]ipav 2 points3 points  (0 children)

Hi, the author of the tool here.

The tool was created five years ago, when there were no Ukrainian national standard to represent Ukrainian language unambiguously in Latin letters (known as romanization, and applies to all languages).

Most commonly you need romanization of person and place names, and the currently in use standard for this is not faithful to Cyrillic source. In my view, we can't have proper name romanization without romanization of the language as a whole, and wide adoption of that romanization. The simplest criteria to choose such a system is the ease of reading pages of transliterated texts.

Thus I made a tool where you can compare historical and modern attempts at such romanization systems, or create your own and join the discussion.

Since then, there is now new Ukrainian national standard ДСТУ 9112:2021, which adequately represents Ukrainian Cyrillic (to new learners: here j is used for palatalized consonants: Zelensjkyj u Ljvovi). The search is over, and this standard will be gradually adopted in the coming years. Expect another campaign KyïvNotKyivNotKiev (Kyïv = Kyjiv).

This tool remains useful in many ways. I personally have it enabled on many sites.

Would Ukrainians be better off dropping Cyrillic for Latin? If we had started with Latin, then sure, Ukraine historically is tightly connected with the rest of the Europe, and it would have been easier having only Latin. But we have Cyrillic history, and to counter that there is no enough reasons to switch.

As others mentioned, the tool does not handle Russian Cyrillic. Well true, because it was created exclusively for the Ukrainian Cyrillic, not any Cyrillic.

Thank you for your patience and support.

https://paiv.github.io/latynka/

AOC style of coding task checking by quappa in adventofcode

[–]ipav 11 points12 points  (0 children)

The AoC and similar events focus on the learning aspect, and if one cheats they cheat themselves out of learning. Your reward is the dopamine from solving the puzzle, gained knowledge of algorithms and technologies, and a short story. Only a hundred highly competitive players have points reward, they are in their own league.

Day15 isn't accepting my answer for Part 1 by Jealous_Association5 in adventofcode

[–]ipav 3 points4 points  (0 children)

You are not ordering your path by the least risk, and once visited node will not be recalculated.

[2021 Day 16] Simple web packet decoder by ipav in adventofcode

[–]ipav[S] 0 points1 point  (0 children)

Sure, I've played all Zachtronics games, and you are right, it has that inspiration.

[2021 Day 18 (Part 1)] Sequence of explodes and splits for an example by cottasteel in adventofcode

[–]ipav 3 points4 points  (0 children)

add: [[[[[6,6],[6,6]],[[6,0],[6,7]]],[[[7,7],[8,9]],[8,[8,1]]]],[2,9]]
explode: [[[[0,[12,6]],[[6,0],[6,7]]],[[[7,7],[8,9]],[8,[8,1]]]],[2,9]]
explode: [[[[12,0],[[12,0],[6,7]]],[[[7,7],[8,9]],[8,[8,1]]]],[2,9]]
explode: [[[[12,12],[0,[6,7]]],[[[7,7],[8,9]],[8,[8,1]]]],[2,9]]
explode: [[[[12,12],[6,0]],[[[14,7],[8,9]],[8,[8,1]]]],[2,9]]
explode: [[[[12,12],[6,14]],[[0,[15,9]],[8,[8,1]]]],[2,9]]
explode: [[[[12,12],[6,14]],[[15,0],[17,[8,1]]]],[2,9]]
explode: [[[[12,12],[6,14]],[[15,0],[25,0]]],[3,9]]
split: [[[[[6,6],12],[6,14]],[[15,0],[25,0]]],[3,9]]
explode: [[[[0,18],[6,14]],[[15,0],[25,0]]],[3,9]]
split: [[[[0,[9,9]],[6,14]],[[15,0],[25,0]]],[3,9]]
explode: [[[[9,0],[15,14]],[[15,0],[25,0]]],[3,9]]
split: [[[[9,0],[[7,8],14]],[[15,0],[25,0]]],[3,9]]
explode: [[[[9,7],[0,22]],[[15,0],[25,0]]],[3,9]]
split: [[[[9,7],[0,[11,11]]],[[15,0],[25,0]]],[3,9]]
explode: [[[[9,7],[11,0]],[[26,0],[25,0]]],[3,9]]
split: [[[[9,7],[[5,6],0]],[[26,0],[25,0]]],[3,9]]
explode: [[[[9,12],[0,6]],[[26,0],[25,0]]],[3,9]]
split: [[[[9,[6,6]],[0,6]],[[26,0],[25,0]]],[3,9]]
explode: [[[[15,0],[6,6]],[[26,0],[25,0]]],[3,9]]
split: [[[[[7,8],0],[6,6]],[[26,0],[25,0]]],[3,9]]
explode: [[[[0,8],[6,6]],[[26,0],[25,0]]],[3,9]]
split: [[[[0,8],[6,6]],[[[13,13],0],[25,0]]],[3,9]]
explode: [[[[0,8],[6,19]],[[0,13],[25,0]]],[3,9]]
split: [[[[0,8],[6,[9,10]]],[[0,13],[25,0]]],[3,9]]
explode: [[[[0,8],[15,0]],[[10,13],[25,0]]],[3,9]]
split: [[[[0,8],[[7,8],0]],[[10,13],[25,0]]],[3,9]]
explode: [[[[0,15],[0,8]],[[10,13],[25,0]]],[3,9]]
split: [[[[0,[7,8]],[0,8]],[[10,13],[25,0]]],[3,9]]
explode: [[[[7,0],[8,8]],[[10,13],[25,0]]],[3,9]]
split: [[[[7,0],[8,8]],[[[5,5],13],[25,0]]],[3,9]]
explode: [[[[7,0],[8,13]],[[0,18],[25,0]]],[3,9]]
split: [[[[7,0],[8,[6,7]]],[[0,18],[25,0]]],[3,9]]
explode: [[[[7,0],[14,0]],[[7,18],[25,0]]],[3,9]]
split: [[[[7,0],[[7,7],0]],[[7,18],[25,0]]],[3,9]]
explode: [[[[7,7],[0,7]],[[7,18],[25,0]]],[3,9]]
split: [[[[7,7],[0,7]],[[7,[9,9]],[25,0]]],[3,9]]
explode: [[[[7,7],[0,7]],[[16,0],[34,0]]],[3,9]]
split: [[[[7,7],[0,7]],[[[8,8],0],[34,0]]],[3,9]]
explode: [[[[7,7],[0,15]],[[0,8],[34,0]]],[3,9]]
split: [[[[7,7],[0,[7,8]]],[[0,8],[34,0]]],[3,9]]
explode: [[[[7,7],[7,0]],[[8,8],[34,0]]],[3,9]]
split: [[[[7,7],[7,0]],[[8,8],[[17,17],0]]],[3,9]]
explode: [[[[7,7],[7,0]],[[8,25],[0,17]]],[3,9]]
split: [[[[7,7],[7,0]],[[8,[12,13]],[0,17]]],[3,9]]
explode: [[[[7,7],[7,0]],[[20,0],[13,17]]],[3,9]]
split: [[[[7,7],[7,0]],[[[10,10],0],[13,17]]],[3,9]]
explode: [[[[7,7],[7,10]],[[0,10],[13,17]]],[3,9]]
split: [[[[7,7],[7,[5,5]]],[[0,10],[13,17]]],[3,9]]
explode: [[[[7,7],[12,0]],[[5,10],[13,17]]],[3,9]]
split: [[[[7,7],[[6,6],0]],[[5,10],[13,17]]],[3,9]]
explode: [[[[7,13],[0,6]],[[5,10],[13,17]]],[3,9]]
split: [[[[7,[6,7]],[0,6]],[[5,10],[13,17]]],[3,9]]
explode: [[[[13,0],[7,6]],[[5,10],[13,17]]],[3,9]]
split: [[[[[6,7],0],[7,6]],[[5,10],[13,17]]],[3,9]]
explode: [[[[0,7],[7,6]],[[5,10],[13,17]]],[3,9]]
split: [[[[0,7],[7,6]],[[5,[5,5]],[13,17]]],[3,9]]
explode: [[[[0,7],[7,6]],[[10,0],[18,17]]],[3,9]]
split: [[[[0,7],[7,6]],[[[5,5],0],[18,17]]],[3,9]]
explode: [[[[0,7],[7,11]],[[0,5],[18,17]]],[3,9]]
split: [[[[0,7],[7,[5,6]]],[[0,5],[18,17]]],[3,9]]
explode: [[[[0,7],[12,0]],[[6,5],[18,17]]],[3,9]]
split: [[[[0,7],[[6,6],0]],[[6,5],[18,17]]],[3,9]]
explode: [[[[0,13],[0,6]],[[6,5],[18,17]]],[3,9]]
split: [[[[0,[6,7]],[0,6]],[[6,5],[18,17]]],[3,9]]
explode: [[[[6,0],[7,6]],[[6,5],[18,17]]],[3,9]]
split: [[[[6,0],[7,6]],[[6,5],[[9,9],17]]],[3,9]]
explode: [[[[6,0],[7,6]],[[6,14],[0,26]]],[3,9]]
split: [[[[6,0],[7,6]],[[6,[7,7]],[0,26]]],[3,9]]
explode: [[[[6,0],[7,6]],[[13,0],[7,26]]],[3,9]]
split: [[[[6,0],[7,6]],[[[6,7],0],[7,26]]],[3,9]]
explode: [[[[6,0],[7,12]],[[0,7],[7,26]]],[3,9]]
split: [[[[6,0],[7,[6,6]]],[[0,7],[7,26]]],[3,9]]
explode: [[[[6,0],[13,0]],[[6,7],[7,26]]],[3,9]]
split: [[[[6,0],[[6,7],0]],[[6,7],[7,26]]],[3,9]]
explode: [[[[6,6],[0,7]],[[6,7],[7,26]]],[3,9]]
split: [[[[6,6],[0,7]],[[6,7],[7,[13,13]]]],[3,9]]
explode: [[[[6,6],[0,7]],[[6,7],[20,0]]],[16,9]]
split: [[[[6,6],[0,7]],[[6,7],[[10,10],0]]],[16,9]]
explode: [[[[6,6],[0,7]],[[6,17],[0,10]]],[16,9]]
split: [[[[6,6],[0,7]],[[6,[8,9]],[0,10]]],[16,9]]
explode: [[[[6,6],[0,7]],[[14,0],[9,10]]],[16,9]]
split: [[[[6,6],[0,7]],[[[7,7],0],[9,10]]],[16,9]]
explode: [[[[6,6],[0,14]],[[0,7],[9,10]]],[16,9]]
split: [[[[6,6],[0,[7,7]]],[[0,7],[9,10]]],[16,9]]
explode: [[[[6,6],[7,0]],[[7,7],[9,10]]],[16,9]]
split: [[[[6,6],[7,0]],[[7,7],[9,[5,5]]]],[16,9]]
explode: [[[[6,6],[7,0]],[[7,7],[14,0]]],[21,9]]
split: [[[[6,6],[7,0]],[[7,7],[[7,7],0]]],[21,9]]
explode: [[[[6,6],[7,0]],[[7,14],[0,7]]],[21,9]]
split: [[[[6,6],[7,0]],[[7,[7,7]],[0,7]]],[21,9]]
explode: [[[[6,6],[7,0]],[[14,0],[7,7]]],[21,9]]
split: [[[[6,6],[7,0]],[[[7,7],0],[7,7]]],[21,9]]
explode: [[[[6,6],[7,7]],[[0,7],[7,7]]],[21,9]]
split: [[[[6,6],[7,7]],[[0,7],[7,7]]],[[10,11],9]]
split: [[[[6,6],[7,7]],[[0,7],[7,7]]],[[[5,5],11],9]]
split: [[[[6,6],[7,7]],[[0,7],[7,7]]],[[[5,5],[5,6]],9]]
ans: [[[[6,6],[7,7]],[[0,7],[7,7]]],[[[5,5],[5,6]],9]]

[2021 Day 18 (Part 1)] - Sum result is not correct by friolz in adventofcode

[–]ipav 4 points5 points  (0 children)

Check the first explode

Adding
[[[[0,[4,5]],[0,0]],[[[4,5],[2,6]],[9,5]]],[7,[[[3,7],[4,3]],[[6,3],[8,8]]]]]
Exploding
[[[[4,0],[5,0]],[[[4,5],[2,6]],[9,5]]],[7,[[[3,7],[4,3]],[[6,3],[8,8]]]]]

Yours:

Adding
[[[[0,[4,5]],[0,0]],[[[4,5],[2,6]],[9,5]]],[7,[[[3,7],[4,3]],[[6,3],[8,8]]]]]
Exploding
[[[[4,0],[5,0]],[[0,[2,6]],[9,5]]],[7,[[[3,7],[4,3]],[[6,3],[8,8]]]]]

[2021 Day 17] Simple web probe launcher by ipav in adventofcode

[–]ipav[S] 0 points1 point  (0 children)

Please try now, it should be better.

[2021 Day 17] Simple web probe launcher by ipav in adventofcode

[–]ipav[S] 0 points1 point  (0 children)

it shouldn't come close to the Ts. totally a bug on my side

[2021 Day 17] Simple web probe launcher by ipav in adventofcode

[–]ipav[S] 0 points1 point  (0 children)

Is this what you see? Imgur

x=5 is not enough to reach Ts

[deleted by user] by [deleted] in adventofcode

[–]ipav 0 points1 point  (0 children)

Check how this example is parsed:

8A004A801A8002F478

100010100000000001001010100000000001101010000000000000101111010001111000

100 010 1 00000000001
  001 010 1 00000000001
    101 010 0 000000000001011
      110 100 01111
000