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

Because it's cheaper to wait for specific thing to break that to try to fix all the potential things that may break.

comment 3y ago · link · parent

For one entry point, fuzzing may found 30 ways to crash it, none of which you care about.

A thing is only a bug if it's a problem for use case your users will have an issue with.

comment 3y ago · link · parent

That's the post PR story.

And in a few years, there will be no documents stating anything wrong about Gates, only the praises.

comment 3y ago · link · parent

You mean, unlike the genious idea of stealing MS-DOS from Gary Kildall?

I mean, sure, you can make great profits when you put morality asides.

Which Gates did again and again.

People forget about this today because of the extensive PR of the last decades to wash the sins of the past, but Gates and MS were basically in the middle of a scandal every 6 months in the 90. Quite amazing since twitter did not exist to report it.

comment 3y ago · link · parent

Fuzzy is expensive.

It's slow to run, and needs a long configuration then calibration time until you don't find false positives anymore.

Also, many bugs found by fuzzing are in the "it's ok to have them" range.

10Mo URL crashes my Python interpreter? I'm ok with that.

Not to say fuzzing is not useful, but it's not cheap, and the benefits really shines for mature software.

comment 3y ago · link · parent

If you were to just run faster than Usain Bolt, you would not need training.

comment 3y ago · link · parent

Does it mean your i-devices will stop working as well? At least the emails I assume, maybe imessages...

If google shots down your account, you are out of docs, youtube, gmail... This can literally kill your career.

Not to mentions all the "sign up with google/apple" you used.

comment 3y ago · link · parent

Given we are in the AI revolution right now, a part of those workers, often quite well paid so they have a bit of cash aside, have taken the opportunity to explore that.

Maybe those layoff will create tomorrow's unicorns.

comment 3y ago · link · parent

Apple is making you buy a new iphone. They decided not to support the old API or to create adapters so that the ecosystem can live on decades.

Meanwhile, you can sill run apps from 20 years ago on Windows.

comment 3y ago · link · parent

Because nobody cared about going offline first, all those apps are now clients of API that will eventually being deprecated, breaking everything.

comment 3y ago · link · parent

poetry is specialized in managing venv and packages, with the options to run some commands.

doit is a task runner: you declare a name that groups several commands, and when you call the task with the name, it runs all the commands in order. It can accept bash commands, python functions, declare dependencies on other commands or on files, and cascade the tasks to follow those dependencies automatically.

It's make, but in Python: nice syntax, works on windows/mac/linux, easy things are easy, hard things are possible.

comment 3y ago · link · parent

Don't. Use pydoit.org.

comment 3y ago · link · parent

> How does that add up if he's a proponent of replacing fossil fuels with nuclear power?

> Won't that get more expensive too?

Yes, that's the whole point of the conference. Fossil fuels are magical. And at some point, we won't have them anymore.

> He's a weird one, as he's generally on board with consensus climate change, but he's always had a bee in his bonnet about renewables, making lots of claims that haven't came true.

Jancovici doens't make timed predictions, so I can't see how this can be true. A makes statements about how things are, starting from first principles.

The only thing he did insist on some time period was the fact we will cross the +2C°, at some point in the next decades.

We are well on track for that.

comment 3y ago · link · parent

There are many things that can be done better by experts.

But to double the quality, you multiply by 10 the cost.

E.G: I wanted to start writing again. I had an idea for the entire structure of the site, and pretty neat features I only could get if I coded it myself.

Then I started to feel like writing, so I wrote. As usual, it took hours, then I had to go back to my life.

I was now left with the choice of not publishing for months, and being frustrated in the writing process, or just use a ready-made platform.

I chose the latter. I went to substack. And publish the first of the 3 articles I already wrote. Next week, I will be able to publish the next ones, and write more.

Because it turns out I want to write and publish more than I want to code a publication platform. No matter how awesome the platform was going to be in my head.

So page builder are a very good idea. Because we don't live in a universe without constraints, and most humanity has to make Pareto choices.

It's just a trade off, as usual in IT.

comment 3y ago · link · parent

That's really a good field for research right now, because like Jancovici notes in his conf (https://www.youtube.com/watch?v=KtQBPhKSWu0&list=PLMDQXkItOZ...) that we currently price renewable energy in a world where oil is abundant.

But once you have to create your wind turbine, solar panels and battery with electricity from wind turbines and solar panels, the price gets very different.

comment 3y ago · link · parent

The goal is not to apply the rules of the time, but to give them an excuse for when the occasion of banning a customer that annoy them rises.

comment 3y ago · link · parent

Usain Bolt performs significantly worse in a marathon than in a sprint. Yes.

comment 3y ago · link · parent

Same, but with 2 recent :

- can I use ripgrep, fdfind, fzf and choose to do this?

- can I ask chatgpt to do this ?

comment 3y ago · link · parent

It's important on any system, not just XDG. The OS will assume you do, and offer features based on it, such as cleaning cache dirs, emptying temp dirs, etc.

It's not just about being tidy, although it's important.

But remembering all that stuff is annoying.

If you use Python, the wonderful "appdirs" package will make using the best dir for the job on Windows, Mac and Linux, easy and transparent: https://pypi.org/project/appdirs/

I wish it was part of the stdlib.

Another thing that grind my gears is people putting files inside their code project folder for development.

It should be something configurable, that by default use the OS dir for prod, and "../var" dir with everything on it in dev.

Less gitignore trouble, let's watcher overhead, less indexing for nothing, less clutter in file explorers, less possibility for errors.

But you need to provide an easy way to locate those files, such as a cmd line entrypoints, otherwise it's painful.

comment 3y ago · link · parent

I remember when visa rejected my attempt to give money to wikileak, which is legal in my country.

So I donated BTC, and this is when I realized why we need crypto despite all the scams.

comment 3y ago · link · parent

I have a feeling GPT will be used for that soon.

And I will certainly pay for it.

comment 3y ago · link · parent

Been living in Mali for some times, worked in a few African countries.

Done charity work there.

Created an IT company there.

You have it totally backward.

IT is NOT helping the poorest part of Africa. Quite the opposite.

But it does help us create a lot of BS virtue signaling about all the good we do in Africa.

The explanation would take a lot of text, unfortunately and I'm not in the mood for the rant again. But it comes from experience, not from the idealized narrative you have been sold.

comment 3y ago · link · parent

I think one of the reasons it's working so well here is because formal writing is still a big thing:

- heavy administration

- schools have a strong emphasis on essays

- getting a job often implies writing a cover letter

And since French is not easy, so many people find it to be a barrier to entry.

While I love GPT for quickly giving me code snippets of things I would take minutes to come up with, my friends have this problem for the regular day-to-day language.

I never noticed it before, because it's so natural to write to me, that I never have to think to hard to express anything. And because I've been a freelance for so long, doing formal writing is fluid. I know all the canned phrases by heart. The polite words to end the message.

But I came to realize: they don't.

As soon as I showed them chatgpt, their eyes light up. The killer feature for them was not the ability to answer complicated questions or save on search, nor was it the possibility of getting a summary. It was producing boring letter-like messages, with no typo.

comment 3y ago · link · parent

For the same reason they never go on time.

Because for them to do so, every single thing needs to happen perfectly, while to be late of over budget, a single thing needs to go wrong.

Over budgetting doesn't work because then your customers won't chose you when the bidding starts.

comment 3y ago · link · parent

https://en.wikipedia.org/wiki/PRISM

"PRISM collects stored internet communications based on demands made to internet companies such as Google LLC"

comment 3y ago · link · parent

If Google product was ahead of the competition I would agree with you.

But GPT is just miles away better than everything else, and it keeps getting better at a scary rate, especially because the feedback loop from so many users is making it better.

comment 3y ago · link · parent

Fantastic article.

I was exactly in the situation the article describes, I installed it, then, didn't find a use case.

But that's because Ubuntu doesn't come with completion enabled by default.

You have to add in your bashrc:

    if [ -e /usr/share/doc/fzf/examples/key-bindings.bash ]; then
      source /usr/share/doc/fzf/examples/key-bindings.bash
    fi
The fzf and ubuntu docs don't mention you have to.

Couldn't find easily how to do it with google, but chatgpt saved the day once again.

comment 3y ago · link · parent

The syntax is reusing regular python syntax with completely different effects, so you have to learn 2 syntaxes.

Trying to do simple things like matching the content of a variable will fail if you forget you have to use a dotted path if you want to avoid binding.

Trying to do advanced things such as "match a dict with variable key names and values, but you wish to enforce the number and the types and unpack them in variables" is ridiculously twisted to do, when it's even possible.

I use match/case, but it like the early years of type hints or asyncio: terrible ergonomics, and we know there is a ceiling to how much it can improve.

comment 3y ago · link · parent

Given the terrible result we came up with in the Python community, I understand the JS wants to take their time. It's a great feature, but it's hard to get right, especially on an existing language.

Not to mention JS is not typed, but pattern matching that can't match typescript types would be terrible.

1
697071
184