Index ¦ Archives ¦ Atom > Category: Programming ¦ Atom

Don't Convert Generators to List at Once

TL;DR: Convert the generator into list, if and only if the dataset is small, else consume on demand or rethink your design.

Python has a special function called Generators which yields value as we request from it rather than dumping everything into the memory at once. For example think …


Metaprogramming Elixir Notes - 1

For the past 6 months, I have been exploring Elixir language and it's ecosystem. Elixir is a dynamic functional language. It compiles to bytecode to run on BEAM (Erlang's Virtual Machine) similar to how Java code is compiled to bytecode to run on JVM. There are fundamental differences between BEAM …


JVM vs BEAM Architecture Differences

  • Recently read a study comparing the design of widely used Oracle's implementation of JVM (aka. HotSpot VM) and Erricson's implementation Erlang VM (BEAM) with respect to concurrency and parallelism. This study was published in May 2015.
  • This is not about comparing two languages (i.e java vs erlang/elixir) or …

Clojure Notes 1

Started learning another general purpose programming language called Clojure which speaks lisp dialect and runs on top of JVM. Thanks to Kamalavelan for creating an interest for me to learn clojure and particularly the book titled, Clojure For The Brave and True by David Higginbotham is very enjoyable. https://nostarch …


Learnings From Building Offline First Web App

I wrote a web app recently. The purpose of the web app is to map the cooperatives around us. I'll speak about the intentions behind it in another post, for now let us focus on the Offline First approach of this app. The application is hosted here live.

Initial Version …


P2P File & URL Sharing App on LAN

For the past 1 week, I have been working on a peer-to-peer File and URL sharing app and I have named it as Transceiver (the ability to transmit and receive data). I would like to log the progress of what I have done so far.

There are various reasons, why …


Cross Compilation in Go

Recently I have started to explore the Go programming language or golang in short. Go is a compiled language which can produce standalone binaries for the go programs, which means the receiver of this binary need not have go compiler and the libraries that this program is dependent installed on …

© Prasanna Venkadesh. Creative Commons Attribution ShareAlike. Theme by Giulio Fidente on github.