Good morning(?)!

Looks like our subreddit is growing slowly every day. Apologies for its ugliness. Haven't had the time (or knowledge) to fix the theme, but don't worry, Reddit, just like YouTube years ago, is now switching to a new design which allows us to express ourselves even better /s.

Articles

(Sep 03) #genetic-programming

In this article Kory Becker implements a genetic algorithm in JavaScript that solves a simple mathematical formula. Given a number, the algorithm is suppose to come up with an expression that results in that number. So, for example, given 6 the algorithm can come up with 5+2-1. The author takes this concept one step further and adds variables in the potential expressions it can produce.



(Sep 06) #gcc

A peephole optimization is an optimization technique that looks over generated code and attempts to shorten and potentially replace it with a faster instruction set. Prathamesh Kulkarni, who's been working on the GCC for a while, shares with us one of his peephole optimizations as part of Google Summer of Code back in 2014. The article gives us a very high level view of the GCC architecture and is full of interesting details about its compiler pipeline.



(May 09) #golang [Hacker News]

In this article we learn how Go implements a hashmap and how it compares to C++ and Java's implementations. The author, David Cheney, first begins by introducing some basic concepts of a map, specifically a hashmap, and after the comparison we learn why it's more efficient in detail.

Weekend Reading

Closures

Programming language of the day: LineScript."LineScript is a compiled programming language that is written in statements broken up by line to represent the page structure. It is compiled into a valid HTML document at runtime using the LineCompiler, and can be used to create real webpages. The structure of the document is inspired by a combination of Elm and Haskell, while the tag names are close alterations of HTML. This leads to extremely clean code that is familiar to anyone who has developed for the web, making LineScript the perfect beginner and expert language."