<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>DĂ­ky. Jak píšete Rust se dynamicky vyvĂ­jĂ­ a ještÄ› dodám, Ĺľe si ho
      musĂ­ všimnout vĂ­ce editory, aby nÄ›jakou intelisence mÄ›l vĂ­ce
      podporovánu. To, Ĺľe je rekompilovatelnĂ˝ do C je asi dobrĂ˝, protoĹľe
      máte aspoň standardnĂ­ debugger.</p>
    <p>VidĂ­m to, zĹŻstat u C++ , používat syntaxi s referencĂ­:</p>
    <ol class="linenums" style="margin: 0px; padding: 0px; border: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-weight: 400; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; list-style: none; background: none; color: rgb(187, 187, 187); letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><li class="L0" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; list-style-type: none; min-height: 1em; background: none;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">  </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 112, 192);">void</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> f1</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">(</span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 112, 192);">const</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> complex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">*</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> x</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">,</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 112, 192);">const</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> complex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">*</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> y</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> </span><span class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 160, 58);">// without references</span></code></li><li class="L1" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; list-style-type: none; background: none; min-height: 1em;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">    </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">{</span></code></li><li class="L2" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; list-style-type: none; min-height: 1em; background: none;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">        complex z </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">*</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">x</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">+*</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">y</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">  </span><span class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 160, 58);">// ugly</span></code></li><li class="L3" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; list-style-type: none; background: none; min-height: 1em;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">        </span><span class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 160, 58);">// ...</span></code></li><li class="L4" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; min-height: 1em;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">    </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">}</span></code></li><li class="L5" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; list-style-type: none; background: none; min-height: 1em;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"></code>
</li><li class="L6" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; list-style-type: none; min-height: 1em; background: none;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">    </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 112, 192);">void</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> f2</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">(</span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 112, 192);">const</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> complex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">&</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> x</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">,</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 112, 192);">const</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> complex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">&</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> y</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">)</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> </span><span class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 160, 58);">// with references</span></code></li><li class="L7" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; list-style-type: none; background: none; min-height: 1em;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">    </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">{</span></code></li><li class="L8" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; list-style-type: none; min-height: 1em; background: none;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">        complex z </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);"> x</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">+</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">y</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">    </span><span class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 160, 58);">// better</span></code></li><li class="L9" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; background: none; min-height: 1em; list-style-type: none;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">        </span><span class="com" style="margin: 0px; padding: 0px; border: 0px; font-style: italic; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 160, 58);">// ...</span></code></li><li class="L0" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; list-style-type: none; min-height: 1em; background: none;"><code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, "Courier New", "Lucida Console", monospace; font-size: 12px; vertical-align: baseline; white-space: pre;"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">    </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(89, 89, 89);">}</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-size: 12px; vertical-align: baseline; color: rgb(0, 0, 0);">   </span></code></li></ol>
    <p>A taky moĹľná nÄ›jakĂ© lepší stringy, s pascal notacĂ­ dĂ©lky na
      začátku a tĹ™eba i dĂ©lky bufferu. Ty standardnĂ­ string operace jsme
      všechny pĹ™epsali, to je ĹˇĂ­lenost na Ăşnik... .Jestli máte nÄ›jakĂ˝
      lepší tip. Jinak jedeme v UTF8 s zakonÄŤenĂ­m 0.</p>
    <p>Jirka<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Dne 12.03.2021 v 10:58 Miroslav Mraz
      napsal(a):<br>
    </div>
    <blockquote type="cite"
      cite="mid:eb0b8086-ad42-990b-49e6-0aa37772c307@volny.cz">Do
      nativnĂ­ho kĂłdu jde pĹ™eloĹľit ledacos, tĹ™eba i java. Pokud chcete
      experimentovat, doporuÄŤuji vyzkoušet Rust. Ĺ˜eší nÄ›kterĂ© problĂ©my
      C/C++, pĹ™edevším bezpeÄŤnost - takovĂ© ty pravidla MISRA pro C máte
      de facto zakompovány (a o mnoho lĂ©pe) uĹľ v jazyce.
      <br>
      PĹ™ed ÄŤasem jsem to zkoušel, ale moc mÄ› to nenadchlo, pro
      bare-metal je Rust příliš restriktivnĂ­, C++ mnÄ› poskytuje daleko
      vÄ›tší volnost. CoĹľ samozĹ™ejmÄ› znamená i vÄ›tší prostor pro to
      udÄ›lat chybu.
      <br>
      Ale hodnÄ› dynamicky se to rozvĂ­jĂ­ a od tĂ© doby to udÄ›lalo dost
      velkĂ˝ skok dopĹ™edu. Co jsem tak koukal, tak uĹľ je v tom udÄ›lanĂ˝ i
      nÄ›jakĂ˝ RTOS a zaÄŤĂ­ná to vypadat trochu pouĹľitelnÄ›. Dokonce je v
      tom i nÄ›jakĂ© jakoby Arduino.
      <br>
      OpÄ›t to asi nebude univerzálnĂ­ všelĂ©k, nÄ›jakĂ© problĂ©my to Ĺ™eší a
      na druhou stranu to jinĂ© bude pĹ™inášet. ProtoĹľe je to myšleno jako
      jazyk dost univerzálnĂ­, tedy i low-level, umožňuje spojit Rust +
      C/C++ (dokonce i assembler), takĹľe moĹľná by bylo schĹŻdnĂ© udÄ›lat
      nÄ›jakĂ© "jádro" pro přístup na Ĺľelezo v C a logiku aplikace pak
      psát bezpeÄŤnÄ› v Rustu. Ale zĹ™ejmÄ› je v tom nÄ›jakĂ˝ ÄŤertĂ­k skrytĂ˝ v
      detailu, co jsem zatĂ­m zkoumal, tak je spíš snaha vše udÄ›lat v
      Rustu (coĹľ mi pĹ™ipadá pomÄ›rnÄ› komplikovanĂ©).
      <br>
      <br>
      MrazĂ­k
      <br>
      <br>
      Dne 12. 03. 21 v 10:29 Marek Sembol napsal(a):
      <br>
      <blockquote type="cite">Jen poznamka: pokud vam ten nativni
        kod pripada jako vyhoda, tak vam nic nebrani si ten C# (obecne
        .NET) nechat prelozit do nativu. A treba pro Micro.NET (pro
        embeded) se to taky prekladalo do nativu (nevim jestli se to
        nezmenilo, ale spis ne, prece jen neni tam prostor ani vykon)
        <br>
        Na velke masine je ten nenativni kod .NET spis vyhodou :)
        <br>
        BR,
        <br>
        Marek
        <br>
        <br>
        On Fri, Mar 12, 2021 at 8:30 AM Jiří Nesvacil
        <<a class="moz-txt-link-abbreviated" href="mailto:nesvacil@posys.eu">nesvacil@posys.eu</a> <a class="moz-txt-link-rfc2396E" href="mailto:nesvacil@posys.eu"><mailto:nesvacil@posys.eu></a>>
        wrote:
        <br>
        <br>
        Â Â Â  Psát kousek programu v C, struktury, mraky pointeru se dá,
        ale pĹ™i
        <br>
        Â Â Â  vÄ›tším projektu to bĂ˝vá neudrĹľitelnĂ©. PĹ™i porovnánĂ­ verzĂ­,
        commitu se
        <br>
        Â Â Â  jednoduše nÄ›jaká * ÄŤi & ztratĂ­.
        <br>
        <br>
        Â Â Â  Mimochodem,  Ĺˇlo tady spoustu emailĹŻ na Pascal a ten je
        daleko
        <br>
        Â Â Â  ÄŤistÄ›jší.
        <br>
        Â Â Â  Oproti C se vypořádal dobĹ™e i s Ĺ™etÄ›zci a ne jako dnes v C
        je spoustu
        <br>
        Â Â Â  kĂłdovánĂ­, pĹ™evodĹŻ, zkoumánĂ­ dĂ©lek, indexacĂ­,... . Nemá taky
        pro neznalĂ©
        <br>
        Â Â Â  pointery pĹ™es * & a je to daleko ÄŤistÄ›jší. NavĂ­c je to
        nativnĂ­ kĂłd na
        <br>
        Â Â Â  rozdĂ­l od Java,C#. Pro u embedded systĂ©mĹŻ je taky, Ĺľe nemá
        garbadge
        <br>
        Â Â Â  collector. Jsou tady novÄ›jší jazyky jako GO, ale ten má
        garbadge
        <br>
        Â Â Â  collector, to je pro embedded zařízenĂ­ trošku moc. TakĹľe
        pascal by
        <br>
        Â Â Â  mohla
        <br>
        Â Â Â  bĂ˝t lepší forma neĹľ C aĹľ na ĂşplnÄ› nejnižší volánĂ­.
        <br>
        <br>
        Â Â Â  V c++ se zápisu obÄŤas dá vyhnout pouĹľitĂ­m pointerĹŻ zápisĹŻ
        pĹ™es
        <br>
        Â Â Â  referencovánĂ­ a následnÄ› na properties ÄŤistÄ› pĹ™es ".", to
        povaĹľuji za
        <br>
        Â Â Â  ÄŤistÄ›jší.
        <br>
        <br>
        Â Â Â  Psát komplexnÄ›jší projekt v ARMu ÄŤistÄ› v C má svĂ© limity dle
        mĂ©ho soudu.
        <br>
        <br>
        Â Â Â  Jirka
        <br>
        <br>
      </blockquote>
      _______________________________________________
      <br>
      HW-list mailing list  -  sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
      <br>
    </blockquote>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="http://www.avg.com/internet-security">
                                <img border=0 src="http://static.avast.com/emails/avg-mail-stamp.png" alt="Logo AVG" />
                        </a>
                </td>
                <td>
                        <p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
                                Tento e-mail byl zkontrolován na viry antivirovĂ˝m softwarem AVG.
                                <br><a href="http://www.avg.com/internet-security">www.avg.cz</a>
                        </p>
                </td>
        </tr>
</table>
<br />
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>