treeform's comments

treeform | 3 months ago | on: Nimony (Nim 3.0) Design Principles

Nim imports are great. I would hate to qualify everything. It feels so bureaucratic when going back to other languages. They never cause me issues and largely transparent. Best feature.

treeform | 4 months ago | on: Nim 2.2.6

I find that python has this simplicity other languages lack. Nim has it too. It's hard to strictly define it? Its a bit syntax, a bit lists or dicts, batteries included? A bit how you run it. Maybe a culture of straightforward code - at least in the python 2.x days. Maybe its just you write an algorithm and its easy to follow?

treeform | 4 months ago | on: Nim 2.2.6

Thank you for working on the Nim Compiler. This is great. Another great release. The Nim Compiler continues to move forward.

Thank you very much to everyone who has contributed to the development of this superior language. Nim Compiler continues to be one of the most wonderful languages I have worked with. With the speed of C and the simplicity of Python, it has allowed me to write a lot of cool software.

I do not know where I would be if Nim did not exist in my life.

treeform | 6 months ago | on: Why Nim?

I feel like Nim made me fall in love with programming again.

Nim fixes many of the issues I had with Python. First, I can now make games with Nim because it’s super fast and easily interfaces with all of the high performance OS and graphics APIs. Second, typos no longer crash in production because the compiler checks everything. If it complies it runs. Finally, refactors are easy, because the compiler practically guides you through them. The cross compiling story is great you can compile to JS on the front end. You can use pytorch and numpy from Nim. You can write CUDA kernels in Nim. It can do everything.

See: https://www.reddit.com/r/RedditEng/comments/yvbt4h/why_i_enj...

treeform | 8 months ago | on: Svalboard: Datahand Lives

I got one recently. It has a learning curve, but it’s been really fun. It’s infinitely customizable like no other keyboard. The magnetic switches feel really good. I feel like I am in a cyberpunk novel when I use it.

treeform | 1 year ago | on: Show HN: Double – Design and invest in your own stock index

If I were to set up a customized S&P500 (with some tweaks) and over time companies leave and/or are added to the index. Will those changes be reflected in my custom S&P500? In the months or years in the future will it buy or sell these new currently unknown companies?

treeform | 2 years ago | on: Nim 2.0

Not by itself! But together with other library boxy you can: https://github.com/treeform/boxy

You should use pixie to load textures, create text, rasterize vector graphic etc... and send them to boxy to be drawn every frame.

Yes Pixie is CPU only, and just like you can't use Cairo or Skea for real time games you can't use Pixie, but boxy you totally can.

treeform | 2 years ago | on: Nim 2.0

To be fair to Nim, only Python has the huge ML ecosystem of numpy, scipy, pandas, opencv, pytorch, tensorflow, keres... Doing ML/AI style work in anything but python is really hard!

That said Nim does have the nimpy library that allows for pretty seamless interop with python. Which means you can just import PyTorch, or scipy, or opencv and use them in Nim.

treeform | 2 years ago | on: Nim 2.0

I would not call std/json it "terrible in performance" probably still way faster then what you get in many other languages (like python). But yes the JSON lib I wrote is faster due to avoiding branches and allocations.

treeform | 2 years ago | on: Nim 2.0

Reddit was hiring for Nim positions. So demand is growing. New languages have easier time being adopted at startups which grow into big players eventually.

treeform | 2 years ago | on: Nim 2.0

For most of us the move from GC to Orc is pretty transparent. Most libraries just work and don't require any major restructuring.

treeform | 2 years ago | on: Ask HN: What is your proudest little invention or discovery?

At 13, I reinvented perspective divide: https://www.khronos.org/opengl/wiki/Vertex_Post-Processing#P... . I wanted to draw 3D things like in 3D games, but with QBasic. I knew how to draw lines and shapes in 2D, but I couldn't figure out how to do that in 3D. I would ask adults about this and they had no idea. They couldn't even understand the question. Eventually, I figured out that you needed to divide or multiply by the Z-axis with a "zoom" constant to make stuff move in 3D.

treeform | 2 years ago | on: Nim 2.0.0 RC2

Style insensitivity does not really come up once you start using the language.
page 1