Better HN
topnewbestaskshowjobs
Log inSign up

BiteCode_dev

24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions

I write to save you time and effort when dealing with Python:

https://www.bitecode.dev/

Email: contact at bitecode.dev

Submissions

comment 3y ago · link · parent

Cheers :)

comment 3y ago · link · parent

People that love bash usually are comfortable with make.

comment 3y ago · link · parent

I have hopes that one day something like CUElang (https://cuelang.org) will become popular to be the configuration language of everything. Just enough logic to get by, but not turing complete, plus strong typing and embedded schemas.

However, for now there is just a single implementation in GO.

comment 3y ago · link · parent

Agreed.

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

The dose makes the poison

comment 3y ago · link · parent

Sorry for the plug, but I can't help myself everytime I read about task managers to notice you have to learn yet another DSL.

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

You don't understand, it's the future !

https://www.bitecode.dev/p/hype-cycles

comment 3y ago · link · parent

Can you ELI5 why the fact we have evidence of Hellings and Downs correlations is mind-blowing?

comment 3y ago · link · parent

The boss only cared about the end result and got a quick message. He won't read more anyway.

The technical team an in depth explanation with code snippets.

Know your audience.

comment 3y ago · link · parent

Also, you foster the need for (and respect of) very competent people, which has a positive impact on the whole economic and social culture.

Imagine one day the first Dalit in space, what message it would send.

comment 3y ago · link · parent

Yukibey based workflow are finicky. Sometimes, I need to try several times and reload the page or unplug/plug back for it to work. Sometimes, I need to switch key.

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

Not to mention, ping, jitter and packet loss are all better with ethernet.

Most users never until you put them in a situation where their performance is dependent of those factors, like gaming.

comment 3y ago · link · parent

You don't need to do it artificially.

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

That's good feedback to have. If your boss/client step in and says "we don't need that", this allows you to re-calibrate the team priorities and shows you need to get better at extracting the real need in the future.

comment 3y ago · link · parent

So basically, the trick to avoid the legislation is to make your device water proof.

comment 3y ago · link · parent

This is a lesson I keep repeating to our juniors: when you do something notable, celebrate it, and make sure to include the whole team, the users and the boss in the celebration.

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've used a similar software for linux: open snitch.

I never caught anything weird, but it surely annoyed me a lot for all my basic tasks.

comment 3y ago · link · parent

After I deleted my personal google accounts, I was left with work google accounts I would have to maintain.

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

And the hearing aids, the pacemakers, etc

comment 3y ago · link · parent

Your comment is weird.

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

I welcome the UI change, but given that, appart from the terrible search, thunderbird has been working very well so far, I'm not going to risk upgrading one of my most important business software to something that changes so many things.

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

Well, I have the same experience, and I went to 11 different schools, including rich and poor ones.

And I also got into teaching between dev gigs.

comment 3y ago · link · parent

> Almost all people can follow logical sequence of arguments provided they understand the language in which they are described.

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

I don't disagree with any of this, I'm just stating math is a topic that shows the limits of people quicker in the curriculum than other fields.

comment 3y ago · link · parent

Just using the extremum to show there is a difference.

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

There is truth in this, but even then, to apply the formulas to many problems, you need to have seriously strong pattern recognition abilities, and the capacity and flexibility to adapt what you know to the given situation. Then piping the right thing into the other right things requires a deeper understanding, not always of what the thing very nature, but at least what it does, and what's it compatible with.

This means loading the entire problem space in your head.

And this is hard.

comment 3y ago · link · parent

Indeed. After all, this is an HN comment, not a white paper. It comes with the usual caveat.

comment 3y ago · link · parent

> I believe that any perceived immutable barriers or obstacles are almost entirely psychological.

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

> If you truly believe this

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

True.

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.

1
555657
184