Today I Learnt 11

Python List Operations If we start with a list seq = [1,2,3,4] then we have the following operations: Python Expression Results Descriptions seq + [5,6,7,8] [1,2,3,4,5,6,7,8] Concatenation seq * 4 [1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4] Repetition Go 101 This is a continuation of my notes on learning Go. Keywords From Go 101 Go has precisely 25 keywords: break default func interface select case defer go map struct chan else goto package switch const fallthrough if range type continue for import return var Identifiers Composed of Unicode letters, Unicode digits and _ (underscore)...

April 18, 2021 · 2 min · Harsh Kumar

Today I Learnt 10

Lambda Functions in Python First I looked at the following article from realpython.com History Lambda calculus (or $\lambda$-calculus) is a formal system in mathematical logic for expressing computation based on function abstraction and application using variable binding and substitution.1 It is a universal model of computation. Alternative to a Turing Machine. Until the 1960s, the lambda calculus was only a formalism. Since Richard Montague and other linguists’ applied it in understanding the semantics of natural language, the lambda calculus has gained popularity in both linguistics, and computer science....

April 16, 2021 · 3 min · Harsh Kumar

Today I Learnt 9

Go 101 Continued The simplest Go program: package main func main() { } The first line package main specifies the package name (main here) of the containing source file. I just don’t understand this statement. Let me go back to the other book I was reading (Go in action). There I found the following statement: For the build tools to produce an executable, the function main must be declared, and it becomes the entry point for the program....

April 15, 2021 · 3 min · Harsh Kumar

Today I Learnt 8

Go 101 This sets more realistic expectations about Golang. About Go 101 Main selling point of Golang: Fairly flexible for a static language. Unique combination of memory saving, fast program warming-up and fast code execution speed. Built-in concurrent programming support. Great code readability. Great cross-platform support. Vibrant group. I didn’t quite understand how this particular book is useful. He says a few things about it, but I did not understand it....

April 13, 2021 · 2 min · Harsh Kumar

Today I Learnt 7

Banana Pi M5 Learned of its existence from Explaining Computers Has onboard eMMC storage. SOC: Amlogic S905X3 with 4 x A55 cores (up to 2GHz), Mali-G31 MP2 GPU. Can boot from 16 GB eMMC or SD Card slot. Uses USB-C for power (5V @ 2A) and eMMC setup. Has 4 switch (The wiki says 3 : Reset, Power and U-Boot 😕). 4 GB LPDDR4 RAM. 10/100/1000 Mbit/s Ethernet. Wi-Fi/Bluetooth requires an optional USB dongle....

April 12, 2021 · 2 min · Harsh Kumar