www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

index.html (2885B)


      1 <!DOCTYPE html>
      2 <html>
      3 	<head>
      4 		<title>banna - ramblings</title>
      5 		<meta name="viewport" content="width=device-width, initial-scale=1">
      6 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      7 		<link rel="stylesheet" href="/styles/style.css" />
      8 		<link rel="stylesheet" href="/styles/look.css" />
      9 		<link rel="stylesheet" href="/styles/codetheme.css" />
     10 		<script src="/scripts/highlight.js"></script>
     11 		<script>hljs.initHighlightingOnLoad();</script>
     12 	</head>
     13 
     14 	<body>
     15 		<div id="sidebar">
     16 			<div id="logo">
     17 				<a href="/">
     18 					<img src="/banna.png" alt="banna.tech" height="45" width="201" />
     19 				</a>
     20 			</div>
     21 			<div id="nav">
     22 				<a class="current" href="/post">blog</a>
     23 				<a class="" href="/things">things</a>
     24 				<a class="" href="/about">about</a>
     25 			</div>
     26 		</div>
     27 
     28 		<div id="wrapper">
     29 			<div id="content">
     30 <div class="post">
     31     <a href="/post/the_struggles_of_being_forced_to_think_about_what_youre_coding" class="link"><h1 class="header">The struggles of being forced to think about what you're coding</h1></a>
     32     <span class="date">Posted on December, 19 2014</span>
     33     <div class="content">
     34 <p>Embarking on a project from scratch in a new environment was an interesting task. This week I was planning, and started the base for a toy assembly compiler for an instruction set I implemented not too long ago in a <a href="http://www.cburch.com/logisim/">logisim</a> CPU. For the futures sake, I decided instead of using the boring Python to accomplish this task, I would use C. Over the summer and beginning of this year I have been browsing around C source code for popular applications, and getting to know the standard libraries and how people use them efficiently.</p>
     35 <p>Starting out was hard. I had to sit down and think how the program would read the file, and break the lines up into consumable chunks for my program to decipher. Working in a different language makes you think about how you are going to do things with the tools at hand. Unlike python, C is a simple procedural language with many different types of tools to manipulate data at a low level. The design for this program was thought out keeping in mind the way C operates.</p>
     36 <p><img alt="compiled vs. interpreted" src="//i.banna.tech/110blog.gif" /></p>
     37 <p>Implementation was another task. Compiling, running and debugging is a new experience that I wish I started out in. Compared to a programming language, an interpreted language uses high-level datatypes that require a lot of effort to implement in C. Going from having a nice air conditioned house to a hut in the middle of Antarctica where all of the conveniences have been ripped out and stomped on by a large elephant. In all, it was a fun challenge and I hope what I learned this week will help me make bigger and better projects for the future.</p>
     38     </div>
     39 </div>
     40 
     41 
     42 			</div>
     43 		</div>
     44 	</body>
     45 </html>