<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: George Lemon</title>
    <description>The latest articles on DEV Community by George Lemon (@georgelemon).</description>
    <link>https://dev.to/georgelemon</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F232453%2F5d4fa304-7fcd-4a46-8575-5e2c152ff787.jpeg</url>
      <title>DEV Community: George Lemon</title>
      <link>https://dev.to/georgelemon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/georgelemon"/>
    <language>en</language>
    <item>
      <title>A super fast style sheet language for cool kids! (WIP)</title>
      <dc:creator>George Lemon</dc:creator>
      <pubDate>Tue, 27 Jun 2023 11:21:21 +0000</pubDate>
      <link>https://dev.to/georgelemon/a-super-fast-style-sheet-language-for-cool-kids-wip-1hi0</link>
      <guid>https://dev.to/georgelemon/a-super-fast-style-sheet-language-for-cool-kids-wip-1hi0</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/openpeeps/bro"&gt;This is Bro&lt;/a&gt; — A super fast style sheet language, alternative to SassC, DartSass, SassJS and Less.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning!&lt;/strong&gt; Bro is still under development. Expect bugs and incomplete features.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Key features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🍃 Lightweight, tiny executable&lt;/li&gt;
&lt;li&gt;🐱 Dependency Free / &lt;strong&gt;No Virtual Machine&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;🌍 Works on &lt;strong&gt;Linux&lt;/strong&gt;, &lt;strong&gt;macOS&lt;/strong&gt;, &lt;strong&gt;Windows&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;💪 &lt;strong&gt;Strong Typed&lt;/strong&gt; = Perfect &lt;strong&gt;Cascading Style Sheets&lt;/strong&gt; 🤩&lt;/li&gt;
&lt;li&gt;🎁 &lt;strong&gt;CSS Minifier&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;🗺 &lt;strong&gt;CSS SourceMap Generator&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;🔄 &lt;strong&gt;CSS Reload&lt;/strong&gt; &amp;amp; &lt;strong&gt;Browser sync&lt;/strong&gt; &lt;a href="https://github.com/openpeeps/bro/wiki/Index#css-reload--browser-syncing"&gt;Setup info&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🖌 &lt;code&gt;JSON&lt;/code&gt; / &lt;code&gt;YAML&lt;/code&gt; stream to Stylesheet&lt;/li&gt;
&lt;li&gt;🌴 &lt;strong&gt;Abstract Syntax Tree&lt;/strong&gt; binary serialization via &lt;strong&gt;MessagePack&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;🎉 Built-in &lt;code&gt;HTML&lt;/code&gt; Documentation Generator&lt;/li&gt;
&lt;li&gt;🔥 Works with &lt;strong&gt;NodeJS&lt;/strong&gt; &amp;amp; &lt;strong&gt;BunJS&lt;/strong&gt; via &lt;code&gt;NAPI&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;🎩 Open Source | &lt;a href="https://github.com/openpeeps/bro/blob/main/LICENSE"&gt;LGPLv3 license&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;👑 Written in &lt;strong&gt;Nim language&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;😋 &lt;strong&gt;Made for Cool Kids&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What makes Bro fast?
&lt;/h2&gt;

&lt;p&gt;First of all, Bro is fully &lt;a href="https://nim-lang.org"&gt;written in Nim&lt;/a&gt;, a state-of-the-art programming language well-suited for systems and application programming. It offers high performance with type and memory safety while keeping the source code short and readable. Wanna know more about it? &lt;a href="https://ssalewski.de/nimprogramming.html#_why_nim"&gt;Check "Computer Programming with Nim"&lt;/a&gt; written by Dr. Stefan Salewski.&lt;/p&gt;

&lt;h2&gt;
  
  
  Benchmark
&lt;/h2&gt;

&lt;p&gt;1.572.876 lines of&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sass"&gt;&lt;code&gt;&lt;span class="nt"&gt;button_0&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;yellow&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Benchmark 1: ./dart sass.snapshot big.sass:big.css --no-source-map --style=compressed
  Time (abs ≡):         5.009 s               [User: 6.379 s, System: 0.278 s]

Benchmark 2: sassc big.sass big.css --style=compressed
  Time (abs ≡):         6.448 s               [User: 5.881 s, System: 0.564 s]

Benchmark 3: bro big.sass --minify
  Time (abs ≡):         1.066 s               [User: 0.697 s, System: 0.367 s]

Benchmark 4: node bro.js
  Time (abs ≡):         1.598 s               [User: 1.226 s, System: 0.373 s]

Benchmark 5: bun bro.js
  Time (abs ≡):         1.396 s               [User: 1.088 s, System: 0.308 s]

Benchmark 6: node sass.js
  Time (abs ≡):        14.910 s               [User: 22.484 s, System: 1.483 s]

Benchmark 7: bun sass.js
  Time (abs ≡):        11.963 s               [User: 20.004 s, System: 1.236 s]

Summary
  'bro big.sass --minify' ran
    1.31 times faster than 'bun bro.js'
    1.50 times faster than 'node bro.js'
    4.70 times faster than './dart sass.snapshot big.sass:big.css --no-source-map --style=compressed'
    6.05 times faster than 'sassc big.sass big.css --style=compressed'
   11.22 times faster than 'bun sass.js'
   13.98 times faster than 'node sass.js'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Learn Bro in 5 minutes
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/openpeeps/bro/wiki/Learn-Bro-in-5-minutes"&gt;https://github.com/openpeeps/bro/wiki/Learn-Bro-in-5-minutes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow us on GitHub for more!&lt;br&gt;
&lt;a href="https://github.com/openpeeps/bro"&gt;https://github.com/openpeeps/bro&lt;/a&gt;&lt;/p&gt;

</description>
      <category>frontend</category>
      <category>css</category>
      <category>node</category>
      <category>performance</category>
    </item>
    <item>
      <title>Build native NodeJS / Bun addons with Nim language, in seconds 👑</title>
      <dc:creator>George Lemon</dc:creator>
      <pubDate>Tue, 27 Jun 2023 10:01:22 +0000</pubDate>
      <link>https://dev.to/georgelemon/build-native-nodejs-bun-addons-with-nim-language-in-seconds-2acj</link>
      <guid>https://dev.to/georgelemon/build-native-nodejs-bun-addons-with-nim-language-in-seconds-2acj</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/openpeeps/denim"&gt;This is DENIM!&lt;/a&gt; a little CLI monster and library that provides Nim bindings for writing safe and fast native NodeJS/Bun modules.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight nim"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;denim&lt;/span&gt;

&lt;span class="n"&gt;init&lt;/span&gt; &lt;span class="k"&gt;proc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;module&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;Module&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
  &lt;span class="k"&gt;proc &lt;/span&gt;&lt;span class="nf"&gt;hello&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="p"&gt;{.&lt;/span&gt;&lt;span class="n"&gt;export_napi&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="o"&gt;%*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Hello, "&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;getStr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In JavaScript:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;hello&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./my.node&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;hello&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;World!&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="c1"&gt;// Hello, World!&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it!&lt;/p&gt;

&lt;p&gt;Check GitHub:&lt;br&gt;
&lt;a href="https://github.com/openpeeps/denim"&gt;https://github.com/openpeeps/denim&lt;/a&gt;&lt;/p&gt;

</description>
      <category>napi</category>
      <category>node</category>
      <category>bunjs</category>
      <category>nim</category>
    </item>
  </channel>
</rss>
