24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions
https://www.bitecode.dev/
Email: contact at bitecode.dev
comment 3y ago · link · parent
However, for now there is just a single implementation in GO.
comment 3y ago · link · parent
I wish more projects would compile their Python tool into a stand alone executable so that the users wouldn't have to deal with the installation process.
I will at some point write about how to do that with Python, so that the knowledge will more broadly available and maybe the community will grow the habit of doing it.
Meanwhile, I don't have more to offer than the "Relieving your Python packaging pain" procedure: https://www.bitecode.dev/p/relieving-your-python-packaging-p...
It's not perfect, but it's an improvement for any people that don't do a lot of Python but has to.
comment 3y ago · link · parent
DSL are the plague of our field, for one that is useful like SQL, you have a hundred that turn your life into hell. Make's DSL is already full of gotchas, but templated YAML based DSL are just insanity. They have so many footguns, and so little flexibility and ability to be debugged.
After trying a lot of task runners and builders, I finally settled on doit:
https://www.bitecode.dev/p/doit-the-goodest-python-task-runn...
- It makes the simple things simple, and the hard things possible.
- It scales up (you get targets, dependencies, manual scripting, etc), but it also scales down (you can define a simple list of shell commands to run and that's it).
- Instead of a DSL, you have regular Python. Which for all it's faults, is an excellent scripting language. It has great tooling support, and comes with a debugger.
- To avoid people abusing the expressiveness of Python, the default syntax to create tasks encourages a declarative style.
I've been using doit for years, and every single project I introduced it to was improved by it.
Of course, it comes with it's own problems (non python dev can dislike having to install that, and it doesn't yet provide a stand alone executable), but the ROI is way better than the alternatives I tried.
comment 3y ago · link · parent
It's like arch linux.
Everybody tells there is never a problem with it, because, well, geeks lie.
Doesn't mean it's not useful.
I have a part of the article "Why not tell people to "simply" use pyenv, poetry or anaconda" (https://www.bitecode.dev/p/why-not-tell-people-to-simply-use) talking about this lying problem.
But I probably should make it a separate article, because that's an independent issue in itself.
comment 3y ago · link · parent
If you look long enough in most code bases, you will eventually find a spectacular problem.
Case in point, I was working for several months for a client, and I had a slow afternoon, so I decided to convert some calculation to numpy, see if we gained any free perf.
We got a x100 local speed up, which was very fishy. Gaining speed is common with vectorization, but two orders of magnitude is a lot.
So I looked at the original algo. There was a glaring mistake in it, that I fixed by my numpy code without noticing, and just changing that in the pure Python algo, without using numpy at all, made it X50 faster.
I could then call my client, and celebrate the good news. Not "there was a mistake", no. But "we found margin for progress".
comment 3y ago · link · parent
It can be as simple as an email, but sometimes, making a few chat messages or even calls. It takes times, it seems silly, but you get a fantastic ROI on this.
Because now people see your work as valuable. It's concrete to them. They understand its value. And this has many positive consequences on your life.
This, of course, works only if the celebration avoids technical terms, is short, straight to the point, and explain what's the benefit to them and the org and how much it took to to it.
People must know that you are doing a good job, and you are the only one that is in the position to let them know. They will not get out of their way to learn about this.
E.G of a chat message I would send to my client's team boss:
Hello <first name>, it took 3 weeks, but we finally finished improving <system x>. This should save us <y> of <z> in the future. We tried hard to make sure your work is not disturbed by the change so it should be transparent for you. But let me know if you notice anything out of the ordinary. Cheers
Believe it or not, people actually like it. It keeps them in the loop, give them context and perspective, and help them take better decisions. So don't hesitate to do it.
comment 3y ago · link · parent
I have been bitten by this problem more than once, resulting in:
- losing some accounts forever
- losing temporarily access to accounts, preventing me to work for some time
- forcing me to go through recovery procedures with tedious docs and hostile UI, wasting my work time
I eventually found a trick: buy 3 yubikeys, attach each of them to all your accounts, have one on my key ring, one in my desk, one in my bag.
Now, the only thing google ever ask is the yubikey, no matter where I connect from, and I always have one on me. It doesn't require a smarphone, a phone number or an email.
I'm still trying to get rid of as many google accounts as I can, though. Personally, I'm very caution about any dependency on google services, and professionally, adamant to avoid dependency as much as it's reasonably possible.
I used to be a google fan 20 years ago. Between the bad user support, the privacy invasion, the decreasing search quality, the monopolistic practices, the censorship, the DMCA situation, the product cancellations, the term of use / price switcheroo and those shenanigans, they are consistently destroying my faith in them.
But they will not pay the price for it. First, they have enough money to make mistake for a long time without even noticing. Second, they will pull off a Microsoft PR stunt in 15 years, and everybody will forget and forgive.
comment 3y ago · link · parent
OP comes up with an example of a possible solution, and you react like this is some kind of propaganda you have to fight.
It comes out as needinglessly harsh, and you can do this with any country.
I can make up a list of all the awful things about America. But that's just not the topic.
comment 3y ago · link · parent
It will be buggy and slow for a few versions, and likely incompatible with addons. I'll update in a few years.
comment 3y ago · link · parent
No.
I know people that have been explained repeatedly with absolute patience and love that correlation was not causality, with simple examples. They agree on the moment, but wait a week and they still mix it up again and again.
That's one of the smallest and easiest logical concept to grasp, and they never integrate it.
Practically, in day to day life, mixing correlation and causality served them very well. It's actually often true. But as soon as it's on the news or a graph on the internet, it's over. Because it's abstract.
And the persons are not dumb either: they are very competent in other fields.
comment 3y ago · link · parent
The difference is not limited to the extremes. Why would it be?
Hence spectrum.
And math meet people early in the spectrum.
EDIT: thread limit reached, so I can't answer down there.
But in short, it's a HN comment, not a study. But I've been in 11 schools in my life. Some private ones with their own church inside, some for special kids, some for poor kids with a higher degree of violence.
I saw it again and again. The average math teacher is not worse than any other teachers. But the first field kids have a hard time is more often math than other fields. In fact, kids that are good at math usually can do ok in any other, even if not great. The reverse is not necessarily true.
At this point I'm just repeating the argument in the other comments.
comment 3y ago · link · parent
This means loading the entire problem space in your head.
And this is hard.
comment 3y ago · link · parent
Laws of physics are laws of physics. And biology is applied physics.
People in sport have known that for a long time. You can train as much as Usain Bolt, he still has a huge advantage.
Thinking the other human characteristics are not affected by this is weird. You will never be Von Neumann, no matter how much you spend in the class room.
It's not that training has no effect, it does, a lot. Yet this doesn't remove the fact we have a variability between individual.
And there is not a tipping point, it's a spectrum for each characteristic.
It turns out math exhibit some early barrier in that spectrum. There is nothing wrong with that.
comment 3y ago · link · parent
Well, I've tried sincerely to find out what was difficult about philosophy for many years. Have you done the same with math?
> because I think your position to discuss such things is made untenable by the obvious contempt in which you hold the humanities.
You assume I was a math head, and that I have disdain from humanities.
That's a total projection which tells me you are not being objective in this discussion. So you are right, it's a good thing we stop there.
But for the record I actually like humanities.
Just because you think a topic is harder than another doesn't mean you prefer one.
I don't even particularly like math, and I'm very bad at it.
I'm probably better than the average Joe, but I'm way better at writing than at calculating.
And I enjoy reading philosophy and sociology.
It's ironic that someone in humanities can be so judgmental of its fellow human, and in a very black and white way.
comment 3y ago · link · parent
But even with the best teachers for every field, math or sport will filter out people way more harshly, and sooner, than any other field.
You can smooth things out with quality teaching, but there is a human hardware limit, and you reach it sooner with those two.
Many people don't like to hear it because their ego is bruised or because it goes against the idea that "everybody can do anything".
This is wrong. Birds fly, fishes swim. There is nothing bad about either.