News for hackers. Stuff that matters.
Re:I Use Nim Instead of Python for Data Processing by nick__m on Friday September 06, 2024 @01:07AM (#41463072)
while unexplored in this article, the Nim type system is pretty nice too, particularly the subrange type, the enum and the object variants.
Re:I Use Nim Instead of Python for Data Processing by benjamin-lee on Friday September 06, 2024 @10:16AM (#41466457)
Author here. I love the type system. By using distinct strings to represent DNA, RNA, and protein, I can avoid silly errors while still using the optimized implementations under the hood. This is what the `bioseq` library (about two hundred lines) does [1] and I find it incredibly elegant.

[1] https://github.com/Benjamin-Lee/vdsearch/blob/2045b29928f7b4...