Get the latest tech news

I use Nim instead of Python for data processing (2021)


Lazy programmers often prefer to substitute computing effort for programming effort.

Consider the following simple problem: you have a bunch of DNA sequences (strings which are comprised of four letters, A, T, G, and C), stored in a text file with> delimited comment lines ( i.e. FASTA format). A nice feature of the lines function is that it automatically strips newline characters such as LF and CRLF so we no longer need to do line.rstrip(). I have used Nim regularly for the past year as a daily driver and continue to be impressed by its performance, simplicity, and elegance.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of python

python

Photo of NIM

NIM

Photo of data processing

data processing

Related news:

News photo

Lesser known parts of Python standard library

News photo

Python, JavaScript, Java: ZDNet Calculates The Most Popular Programming Languages

News photo

Solution to the puzzle Cat Walk