News for hackers. Stuff that matters.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by avmich on Friday June 07, 2024 @02:23PM (#40611429)
Legends say there were times when you'd have a program.c file and just run cc program.c, and then could just execute the compiled result. Funny that programmer's job is highly automatable, yet we invent ourselves tons of intermediate layers which we absolutely have to deal with manually.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by EnergyAmy on Friday June 07, 2024 @03:17PM (#40611941)
And then you'd have to deal with wrong glibc versions or mysterious segfaults or undefined behavior or the the code assuming the wrong arch or ...
Re:Ask HN: Machine Learning Engineers, what do you do at work? by KeplerBoy on Friday June 07, 2024 @03:45PM (#40612201)
python solves none of those issues. It just adds a myriad of ways those problems can get to you.

All of a sudden you have people with C problems, who have no idea they're even using compiled dependencies.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by EnergyAmy on Friday June 07, 2024 @04:06PM (#40612430)
In theory you're right, CPython is written in C and it could segfault or display undefined behavior. In practice, you're quite wrong.

It's not really much of a counterargument to say that Python is good enough that you don't have to care what's under the hood, except when it breaks because C suck so badly.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by KeplerBoy on Friday June 07, 2024 @04:25PM (#40612610)
I was specifically talking about python packages using C. You type "pip install" and god knows what's going to happen. It might pull a precompiled wheel, it might just compile and link some C or Fortran code, it might need external dependecies. It might install flawlessly and crash as soon as you try to run it. All bets are off.

I never experienced CPython itself segfault, it's always due to some package.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by davedx on Saturday June 08, 2024 @02:23AM (#40615688)
I actually did a small C project a couple of years ago, the spartan simplicity there can have its own pain too, like having to maintain a Makefile. LOL. It’s swings and roundabouts!
Re:Ask HN: Machine Learning Engineers, what do you do at work? by makapuf on Saturday June 08, 2024 @03:40AM (#40615979)
I agree simplicity is king. But you're comparing making a script using dependencies and tooling for those dependencies and a C program with no dependencies. You can download a simple python script and run it directly if it has no dependencies besides stdlib (which is way larger in python). That's why I love using bottle.py by example.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by avmich on Saturday June 08, 2024 @10:41AM (#40617833)
Agree. But even with dependencies running "make" seems to be way simpler than having to install particular version of tools for a project, making venv and then picking versions of dependencies.

The point is the same - we had it simpler and now, with all capabilities for automation, we have it more complex.

Frankly, I suspect most of the efforts now are spent fighting non-essential complexities, like compatibilities, instead of solving the problem at hand. That means we create problems for ourselves faster than removing them.

Re:Ask HN: Machine Learning Engineers, what do you do at work? by reportgunner on Sunday June 09, 2024 @11:25AM (#40625066)
You can do the same in python if you're not new to programming.