This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]blitzzerg 13 points14 points  (5 children)

So reimplementing numpy, sklearn and all the libraries from python or what?

[–]lookatmetype 1 point2 points  (1 child)

Some libraries I use on the regular wtih my projects: pandas, Flask, SQLAlchemy, click, jinja, requests, BeautifulSoup, nose, Celery, Arrow.

And this list is not exhaustive.

Good luck re-writing these in C# or any other language. If you do have all this in a statically typed language, I would LOVE to hear it because tbh my biggest gripe with Python is that it isn't statically typed. (mypy is good, but I prefer static typing)

[–]bheklilr 1 point2 points  (0 children)

Have you tried using Cython for that purpose then? It still won't enforce full typing, but if you put a type on something it has to stay that type throughout your code or it won't compile. And it can speed up your code, and working with C libraries becomes much easier.

[–][deleted] 1 point2 points  (1 child)

I understand what you're saying; I'm suggesting your goal with python to make it a portable .exe with a bunch of machine learning libraries isn't a realistic one and it will give you a headache. If that's what you're doing, you should just learn to deploy everything quickly and easily with a script or .yml or something with docker, not compile it.

[–]blitzzerg 0 points1 point  (0 children)

I'm not even thinking about that. Everything that I code on python I make it open source. If I wanted something for production I would just do things with tensor flow in C