<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Wanjiku Macharia on Medium]]></title>
        <description><![CDATA[Stories by Wanjiku Macharia on Medium]]></description>
        <link>https://medium.com/@edwardscaroline32?source=rss-7ac03a6d3e8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*PSnrRpgCuFEBp32E.</url>
            <title>Stories by Wanjiku Macharia on Medium</title>
            <link>https://medium.com/@edwardscaroline32?source=rss-7ac03a6d3e8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 01:26:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@edwardscaroline32/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Tools I use while coding]]></title>
            <link>https://medium.com/@edwardscaroline32/tools-i-use-while-coding-5ab017e9d88b?source=rss-7ac03a6d3e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ab017e9d88b</guid>
            <category><![CDATA[grep]]></category>
            <category><![CDATA[tmux]]></category>
            <category><![CDATA[intellij]]></category>
            <category><![CDATA[vim]]></category>
            <dc:creator><![CDATA[Wanjiku Macharia]]></dc:creator>
            <pubDate>Tue, 20 Aug 2019 15:55:56 GMT</pubDate>
            <atom:updated>2019-08-20T15:55:56.502Z</atom:updated>
            <content:encoded><![CDATA[<p>Brief intro; the platforms I work on are built with Erlang, Elixir, Mnesia and a bit of python for automation, I also use docker and aws.</p><p><strong>Tmux</strong></p><p>I recently discovered tmux while I was doing a DB synchronization and clearing cache on our mnesia database at work to do this I needed to ssh into the server and run some commands with my colleague.</p><p>By using tmux -a one can attach to a tmux session and run different commands while the other person watches or contribute if they wish to, find the basic tmux commands for beginners <a href="https://medium.com/@jeongwhanchoi/install-tmux-on-osx-and-basics-commands-for-beginners-be22520fd95e">here</a></p><p><strong>IntelliJ and Visual Studio Code</strong></p><p>This two are my to go to editors the color coding on IntelliJ saves me a lot of time trying to figure out syntax bugs. Visual studio code’s ability to have pair programming sessions by starting or joining collaborations gets me hooked to it when I need to work with the remote team, also I kinda prefer VS Code to Intellij while setting up a dockerfile.</p><p><strong>Vim</strong></p><p>I mainly use vim when I’m under pressure(I know 😅) this is mainly because vim is an editor used in the cmd line and if I need to make swift changes, test and commit, vim makes it super fast. Also, vim easier to use while resolving merge conflicts.</p><p><strong><em>New commands in my toolbox</em></strong></p><p><strong>Grep:</strong> I use the grep cmd to search and filter text and also used it to view the environment variables that I export for testing Docker container env variables locally e.g grep | DB_USER=dbuser will show what is set under DB_USER. I mainly do this since I still don’t have a way of testing docker container locally on mac. (Btw anyone who knows how to do this can help out.)</p><p><strong>SCP: </strong>Secure copy which allows you to securely copy file directories between two locations, I use this while copying a file from my local system to the remote system(server)</p><p>That’s what I have in my toolbox for my basic coding activity, what do you guys use?</p><p>Happy hacking !😎</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ab017e9d88b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Kenya Show and Tell Event Discovering Social Robotics -Furhat Robotics]]></title>
            <link>https://medium.com/@edwardscaroline32/ai-kenya-show-and-tell-event-discovering-social-robotics-furhat-robotics-9b4f59e853cd?source=rss-7ac03a6d3e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b4f59e853cd</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[robotics]]></category>
            <dc:creator><![CDATA[Wanjiku Macharia]]></dc:creator>
            <pubDate>Mon, 10 Jun 2019 17:44:16 GMT</pubDate>
            <atom:updated>2019-06-10T17:57:43.448Z</atom:updated>
            <content:encoded><![CDATA[<p>What is a robot? A machine resembling a human being and able to replicate certain human movements and functions automatically. It can be a collaborative robot(can work with people), industrial, terminators(seen in the Hollywood movies), web crawlers, exoskeletons, drones maybe? self-driving vehicles? and social robots.</p><p>In this article, I will expound more on social robots and particularly Furhat, a social robot built by a Stockholm based startup know as <a href="https://www.furhatrobotics.com/">Furhat Robotics.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1HtYtPaXEFMEtQ-yPlt8wQ.jpeg" /></figure><p>Preben Wik of Furhat Robotics graced the AI Kenya show and tell event on 8th June 2019 which I had the privilege to attend. He showcased and gave a detailed explanation of how Furhat, the social robot, operates. Here is a breakdown of some of the things Furhat can do:</p><ol><li>Furhat can make all kinds of expressions eg. smile, sad face and look angry.</li><li>Furhat can also change its face( it just dawned on me that robots are genderless) to a woman’s face and adopt a woman’s voice, to a child’s face and adopt its voice. At this point, I thought Furhat could pass as the many faced god( all my game of thrones fans out there ey!).</li></ol><p>This is achieved by the built-in projector that beams customizable faces onto the Robot’s Head.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AqhikANbCOsL3o5USoqu1A.jpeg" /></figure><p>3. Can also speak multi-languages eg. French, Chinese and German.</p><p>4. It can teach languages and instruct people at the airport.</p><p>Social Robots is a field whose research is at its infancy stage, the first social robot was <a href="https://www.jibo.com/">Jibo</a>. Jibo is the worlds first family robot, here are some of the things that Jibo can do; Takes videos and photos for the family, entertain the kids, read out your notifications etc.</p><p>However, AI without a body is catching on really well, which has seen the birth of the likes of Alexa and Siri. This mainly due to the costs associated with building a robot with the body(A computer with a different interface from what you are used to).</p><p>Different interfaces have different expressive powers, with a good interface you don’t need to understand the underlying technology. The richness in the growth of the user interface is moving to the VR level hence making technology become more human.</p><p>The other concept that was highlighted in this event is the “<strong>Mona Lisa Effect</strong>”. A term used to describe the perception that the subject of an artwork’s eyes are following the viewer as they move. Furhat is designed to achieve the Monalisa effect hence, able to give the user an excellent experience.</p><p>Some companies have bought Furhat robots to create a backend fit for their needs and integrate it with the interface. E.g. The unbiased recruiter, telepresence where you can have a telecon with Furhat showing the face of the individual on the other side.</p><p>Furhat has also been used in the education field via the Furhat 4 Education program.</p><ol><li>Social training for people with Autism Spektrum Disorder(ASD).</li><li>Gaming partner with kids that could aid by giving solution and discussing the possible solutions that can be achieved. This is what is known as problem-based learning.</li></ol><p>The physical presence of a robot tutor increases cognitive learning gains, this was implemented with a physical robot on vocabulary learning.</p><p>Furhat can do all these amazing things, but how is all this put together and how can developers make use of Furhat? Which gets us to a segment that I call how is this coffee brewed.</p><p>Furhat Robotics is building a social robotics platform. The Furhat SDK can be found on <a href="https://docs.furhat.io/gen1/#recommended-start">Furhat Developer Docs</a> with a detailed outline of how to use the SDK.</p><p>Furhat is able to mimic the Neocortex activity, Reptilian brain and Limbic Brain(expresses emotions) by applying the turn taking technique, where the user asks, Furhat listens and responds.</p><p>Furhat posses face tracking head pose/gaze expression identity, speech recognition that relies on Google, touch screen, situation awareness, dialogue management, joint attention, semantic analysis, speech synthesis, body movement, multiparty interaction which can all be found on the Furhat platform.</p><p>With 70 international brands including Disney, Merck and Honda already working with Furhat, this new platform takes the concept of conversational AI to the next level both in terms of creating new social and business opportunities and in accelerating the development process.</p><p>PS: AI Kenya and Furhat robotics are planning a hackathon on September 2019</p><p><em>Take away, think of integrating robots and human beings instead of taking away all the jobs.😊</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b4f59e853cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How processes maintain and update state.]]></title>
            <link>https://medium.com/@edwardscaroline32/how-processes-maintain-and-update-state-50234d996597?source=rss-7ac03a6d3e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/50234d996597</guid>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[erlang]]></category>
            <category><![CDATA[processing]]></category>
            <dc:creator><![CDATA[Wanjiku Macharia]]></dc:creator>
            <pubDate>Fri, 11 Jan 2019 10:50:17 GMT</pubDate>
            <atom:updated>2019-01-18T11:02:37.575Z</atom:updated>
            <content:encoded><![CDATA[<p>A few months ago, I walked into a restaurant with a friend to grab a meal. The first thing we needed was a menu(to enable us place our orders) which was supposed to be brought by the waiter, we ended up waiting for over 30 min to get a waiter for our table. As we were was waiting, I noticed some customers who we had walked into the hotel with stand up and walk out without placing their orders, their faces reflected disappointment. I wondered how many customers they lost on a daily basis and the amount of money they lost on the orders not made.</p><p>Recently when I was working on Elixir processes, I remembered the restaurant incidence and I thought, processes can be used to hold state. Therefore, a restaurant menu can always be availed to customers on their table(perhaps use a screen on the table) at an up to date state, with the new delicacies/meals of the day list. The customers would then be able to place orders directly to the chef, which would take way much less time. This would mean that the menu list has to be flawless and everything listed on it should be available.</p><p>This is where Elixir processes come in handy(powered by Erlang). What are <a href="https://medium.com/@edwardscaroline32/multiprocessing-dfe8a426c67e">processes</a>?, In a nutshell, it is the execution of the passive collection of instructions. A process can be in different states, the send, receive and execution. Take for instance a drawer, you can store items and remove items from the drawer.</p><p>For our use case, we will use processes to keep the menu state;</p><ol><li>Up to date</li><li>Maintain state.</li></ol><p>Take an instance where we have a list of new items that the restaurant needs to add to the menu and maintain the list. By using processes we can return the length state of the items, enable the cook/admin to add an item to the menu and handle any unexpected entries or errors.</p><p>Processes which are isolated from each other, run concurrent to one another and communicate via message parsing. Therefore, we need to create the menu server(to handle the server processes) then add the client instructions (to send the requests and handle responses).</p><p>Let’s create a module Menuprocess.ex and see how we shall execute the process from the client in the menuserver. Below is a breakdown of a couple of processes in our module. Our module will enable three process;</p><ol><li>Return the current menu state</li><li>Add items to the menu</li><li>Handle wrong entries</li></ol><p>For the client requests to be handled on the server, start_link is called, the function menu_state is spawned to its own process then passed the initial state which in our case will change from an empty [] to an actual list of items to be added to the menu. The function responsible for that is shown below;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ee76000a0546831a2ef726fca9b5731/href">https://medium.com/media/3ee76000a0546831a2ef726fca9b5731/href</a></iframe><p>Running the following on iex will automatically start our server;</p><p>Menuprocess.start_link([])</p><p><strong>Return the current menu state:</strong></p><p>To return the current state of the menu, we basically need to send a message from the client requesting for all items present in our server to our mailbox which is handled by the receive do (whose work is to await requests and match them to the messages in the mailbox), then the server responds with the state of the menu.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/850ff6db85ad41aa62050b23f60af4fc/href">https://medium.com/media/850ff6db85ad41aa62050b23f60af4fc/href</a></iframe><p><strong>Add items to the menu;</strong></p><p>Adding a list of items to our menu list is handled by a different function which takes in {self(), :additems, items} (from the client) the same way we return the menu state is the same way we add items to our menu, the receive do function takes the message sent then looks up the mailbox and matches it to {caller, :additems, item} which in turn adds the items to the menu and returns the new_state of the menu.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c35179adc7458fc1f0087a9c5fd0a6bd/href">https://medium.com/media/c35179adc7458fc1f0087a9c5fd0a6bd/href</a></iframe><p><strong>Handle wrong entries:</strong></p><p>To handle all wrong entries that don’t match any messages in the mailbox, we use the function below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/35e09b9bf8509115b4eb66dd78c62d71/href">https://medium.com/media/35e09b9bf8509115b4eb66dd78c62d71/href</a></iframe><p>Let ’s fire up iex and see the processes we build get executed.</p><pre>iex(2)&gt; pid = Menuprocess.start_link()<br>#PID&lt;0.144.0&gt;<br>iex(3)&gt; Menuprocess.add_item({&quot;Tea&quot;, 100})<br>&quot;1&quot;<br>iex(4)&gt; Menuprocess.add_item({&quot;Pancakes&quot;, 100})<br>&quot;2&quot;<br>iex(5)&gt; Menuprocess.all()<br>&quot;[{\&quot;Pancakes\&quot;, 100}, {\&quot;Tea\&quot;, 100}]&quot;<br>iex(6)&gt; Menuprocess.add_item({&quot;Sausages&quot;, 50})<br>&quot;3&quot;<br>iex(7)&gt; Menuprocess.all()<br>&quot;[{\&quot;Sausages\&quot;, 50}, {\&quot;Pancakes\&quot;, 100}, {\&quot;Tea\&quot;, 100}]&quot;</pre><p>Using <em>add_item</em> we are modifying the state and <em>all </em>shows the maintenance of our system state, i.e you can add as many items and the length of the state is maintained, which in our case is a list of 3 items so far.</p><p>With the steps shown above, the chef can instantly perform updates and maintain the state of the menu, which the customer will then use to place their orders and eliminate the need of waiting for someone to take your order.</p><p>This is how the full Menuprocess.ex module looks like;</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3cdbf20e20f7f8f66e0b366f7429b05/href">https://medium.com/media/d3cdbf20e20f7f8f66e0b366f7429b05/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50234d996597" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to sell your Bitcoin on Remitano]]></title>
            <link>https://medium.com/@edwardscaroline32/how-to-sell-your-bitcoin-on-remitano-a7d147d611d9?source=rss-7ac03a6d3e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7d147d611d9</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[digital-currency]]></category>
            <dc:creator><![CDATA[Wanjiku Macharia]]></dc:creator>
            <pubDate>Tue, 08 Jan 2019 10:39:42 GMT</pubDate>
            <atom:updated>2019-01-08T16:28:01.305Z</atom:updated>
            <content:encoded><![CDATA[<p>The must have before starting off the trade:</p><ol><li>A digital wallet credited with bitcoin — get the wallet from <a href="https://www.blockchain.com/">here</a>.</li><li>Remitano Account — <a href="https://remitano.com/btc/ke">here</a>.</li></ol><p>To start off the trade;</p><ol><li>Log in to your remitano account.</li><li>To sell, select the sell now and a list of buyers will automatically appear.</li><li>Select the buyer to start of your trade with.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C625-O0B9tq0dSew8szJBw.png" /><figcaption>My number one buyer is smumo</figcaption></figure><p>Step 2: Key in the amount of bitcoin to sell and click on the `sell BTC` button to initiate the trade:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ykeS-FBICbZRN7eibhzJug.png" /></figure><p>Step 3: You will be prompted to confirm the mobile number to which your BTC will be sent to. (Pretty cool that you can have your bitcoin received on Mpesa instantly huh?😊)</p><p>Step 4: Deposit your BTC coin from your wallet to the Remitano account.</p><p>From here(Your Wallet), select the send option then fill in the details requested. The remitano address is generated automatically on the initiated trade interface, copy and paste it as the address to send to. Transaction charges are $0.02(You got that right!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jP5peG-5IHMC4k1f3YCZgw.png" /></figure><p>Step 5: Remitano then holds your BTC and verifies that it’s legit, which takes 5 min at most.</p><p>Step 6: After verification, Your buyer sends the KSH to your Mpesa.</p><p>Step 7: Confirm that you have received the payment, in order to release the BTC from your remitano account to the buyer.</p><p>Step 8: Enjoy looking at your new Mpesa account balance(and plan).😎</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7d147d611d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MultiProcessing]]></title>
            <link>https://medium.com/@edwardscaroline32/multiprocessing-dfe8a426c67e?source=rss-7ac03a6d3e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfe8a426c67e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[elixir]]></category>
            <category><![CDATA[erlang]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Wanjiku Macharia]]></dc:creator>
            <pubDate>Mon, 19 Nov 2018 20:16:55 GMT</pubDate>
            <atom:updated>2018-11-19T20:16:55.546Z</atom:updated>
            <content:encoded><![CDATA[<p>What is a process? It is the execution of the passive collection of instructions that a computer program contains. A process contains the program code and its activity.</p><p>A process can be in different states, the send, receive and execution. Take for instance a locker room, you can store items and remove items from the locker room. Let&#39;s come up with a flow of how we can handle the execution of those steps, using Erlang processes.</p><p>First, we will create a list of items(user activity)that our locker room(A module that already exists in your program)can hold. Next will need to put/store (An already existing function in our module)the items in the locker, how do we execute that step? send a {pid msg} of the item you want to appear under the stored items, which is received in our mailbox;</p><p>store(Pid, Item) <strong>-&gt;</strong></p><p>Pid <strong>!</strong> {self(), {store, item}},</p><p><strong>receive</strong></p><p>{Pid, Msg} <strong>-&gt;</strong> Msg</p><p><strong>end.</strong></p><p>The item is stored in our mailbox and the system now awaits any calls from the users to remove/take any item from the locker room. The item sent is matched to an already existing item if one is available if not we return an error msg.</p><p>take(Pid, Item) <strong>-&gt;</strong></p><p>Pid <strong>!</strong> {self(), {take, Item}},</p><p><strong>receive</strong></p><p>{Pid, Msg} <strong>-&gt;</strong> Msg</p><p><strong>end.</strong></p><p>Note:</p><p>Messages in the mailbox are retrieved in the order which they are received, more like a first come first serve basis, but in a case where a certain message 2(PID2) is retrieved and (PID 1) message 1 has not been retrieved priority is given to message 2(PID 2). Therefore our mailbox now will have Msg1, Msg3, Msg 4 …..</p><p>In a case where the mailbox has too many msg’s and hence slowing down the execution of different activities, we can create a function that deletes a msg or stores it at a different location for future reference.</p><p>As you were 😎</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfe8a426c67e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Africa Women In Technology Conference]]></title>
            <link>https://medium.com/@edwardscaroline32/africa-women-in-technology-conference-715ed018d7a3?source=rss-7ac03a6d3e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/715ed018d7a3</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <dc:creator><![CDATA[Wanjiku Macharia]]></dc:creator>
            <pubDate>Sun, 11 Nov 2018 19:17:26 GMT</pubDate>
            <atom:updated>2018-11-12T05:10:04.280Z</atom:updated>
            <content:encoded><![CDATA[<p>Africa Women In Technology conference is organized by Akirachix , this year it was held at Raddison Blu in Nairobi, Kenya. I got the privilege to attend the #AWITC18 which had a couple of parallel sessions and a keynote from Michelle Russel of AnitaB.org. Here is my take away from the sessions I managed to attend:</p><blockquote>From the morning keynote session: I am my ancestors wildest dreams.</blockquote><p>To sign up as an inaugural member at <a href="https://anitab.org/membership/">AnitaB.org</a> . Attending the Grace Hopper Celebration(GHC) conference would be a dream come true.</p><p><strong><em>Parallel Sessions:</em></strong></p><p>The first session I attend was <strong>Virtual Reality </strong>by Bob Raphtone from Intel Innovator, my scope from this session was to join the <a href="https://devmesh.intel.com/">developers mesh</a> platform. You can post your Artificial Intelligence projects there and seek aid from other developers, and who knows you could just get someone to work with on your project.</p><p>For the best virtual reality system that completely immerses you inside the virtual world<a href="https://www.oculus.com/rift/"> <strong>Oculus Rift</strong> </a>is an out of this world choice, I tried out their gadgets and maaann!! 👏🏽.</p><p><strong>Android application security</strong>, this was like the coolest session I attended so eye opening especially on all the logical bugs that make applications vulnerable.</p><ol><li>Static analysis is a process that provides an understanding of the code structure, and can help to ensure that the code<strong> </strong>adheres to industry standards. They don’t require the code to be in a running state.</li><li>Dynamic analysis tools are ‘dynamic’ because they require the code to be in a running state. They are ‘analysis’ rather than ‘testing’ tools because they analyze what is happening ‘behind the scenes’ that is in the code while the software is running (whether being executed with test cases or being used in operation).</li></ol><p>The other discovery from a fellow `mkora`(a helpful villain in this context) is using <strong>ILSpy </strong>which<strong> </strong>is a Visual Studio extension for the ILSpy open source decompiler. <a href="https://marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.ILSpy">Check it out here</a></p><p>In case you discover a logical bug for some app you’ve been doing analyzing, you can post it on <a href="https://hackerone.com/bug-bounty-programs">bug bounty </a>and actually get paid, who doesn’t love turning a hobby into quick money, right? right?</p><p>The afternoon workshop I chose to attend (<strong>Be seen! </strong>by Angela Gachui)felt like one of those motivational talks we had in high school, and by the time the talk is over you have a new timetable and goals you feel me?. This session was the motivation I needed to keep going, I loved the energy and how we were able to share our experiences as women in the Tech industry. See below my take away on this session:</p><ol><li>Think like a man act like a boss.</li><li>There are things we can’t control and those we can control.</li><li>Where would you seat in a panel? Yes, you?</li><li>There is no monopoly of knowledge, don’t be afraid to ask and no question is stupid.</li><li>Get a tribe who opens doors for you and calls you out on your bullshit</li><li>Allow yourself to articulate what you need to say, owning the room adds a level of confidence especially when making an intro about yourself.</li><li>Find coping mechanisms in annoying situations and remember it’s not personal it is work.</li></ol><p>With all that motivation and all the Muy bonito! (Very beautiful) giveaways, I was set to continue kicking a** in my tech city.</p><p>#machinelearning, #Elixir #functionalprogramming #erlang</p><p>As you were, Adios!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=715ed018d7a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Erlang Concurrency]]></title>
            <link>https://medium.com/@edwardscaroline32/erlang-concurrency-6fe100da4e7e?source=rss-7ac03a6d3e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fe100da4e7e</guid>
            <category><![CDATA[erlang]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Wanjiku Macharia]]></dc:creator>
            <pubDate>Thu, 08 Nov 2018 19:02:26 GMT</pubDate>
            <atom:updated>2019-05-20T09:42:07.159Z</atom:updated>
            <content:encoded><![CDATA[<p>Concurrency often refers to the same concept as parallelism in other programming languages and other places. However, in Erlang the two are used in a different context, concurrency refers to actors running independently but not at the same time whereas in parallelism the actors run at the same time.</p><p><strong>Concepts of Concurrency</strong></p><p><strong><em>Scalability</em></strong></p><p>For this to be made efficient, it makes sense for a process to be started very quickly, destroyed very quickly and be able to switch them really fast. Having them lightweight is mandatory for this to work. And since applications need reliability, the cleanest way to do things is to forbid processes from shared memory.</p><p>Shared memory can leave things in an inconsistent state after some crashes (especially on data shared across different nodes) and has some complications. Instead, processes should communicate by sending messages where all the data is copied. This would risk being slower, but safer.</p><p><strong><em>Fault-tolerance</em></strong></p><p>Erlang has been able to full fill the reliability requirement.</p><blockquote>The first writers of Erlang always kept in mind that failure is common. You can try to prevent bugs all you want, but most of the time some of them will still happen. In the eventuality bugs don’t happen, nothing can stop hardware failures all the time. The idea is thus to find good ways to handle errors and problems rather than trying to prevent them all.</blockquote><p>The design approach of multiple processes with message passing is a good idea, because error handling could be grafted onto it relatively easily.</p><p>Processes-with-asynchronous-messages model, messages are sent from one process to a second one and stored in a <em>mailbox</em> inside the receiving process until they are taken out to be read. It’s important to mention that messages are sent without even checking if the receiving process exists or not because it would not be useful to do so.</p><p>As implied in the previous paragraph, it’s impossible to know if a process will crash between the time a message is sent and received. And if it’s received, it’s impossible to know if it will be acted upon or again if the receiving process will die before that.</p><p>Asynchronous messages allow safe remote function calls because there is no assumption about what will happen; the programmer is the one to know. If you need to have a confirmation of delivery, you have to send a second message as a reply to the original process. This message will have the same safe semantics, and so will any program or library you build on this principle.</p><p><strong><em>How then do we implement Erlang?</em></strong></p><p>To handle all these potential processes your programs could create, the VM starts one thread per core which acts as a <em>scheduler</em>. Each of these schedulers has a <em>run queue</em> or a list of Erlang processes on which to spend a slice of time. When one of the schedulers has too many tasks in its run queue, some are migrated to another one. This is to say each Erlang VM takes care of doing all the load-balancing and the programmer doesn’t need to worry about it. There are some other optimizations that are done, such as limiting the rate at which messages can be sent on overloaded processes in order to regulate and distribute the load.</p><p>ref:<a href="https://learnyousomeerlang.com/the-hitchhikers-guide-to-concurrency">https://learnyousomeerlang.com/the-hitchhikers-guide-to-concurrency</a></p><p>That’s my understanding of concurrency, keep it locked.</p><p>As you were 😎. Adios!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fe100da4e7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>