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 4y ago · link · parent

But a very expensive one for what it does. You pay for the monopoly, not the tech.

Using alternative breaks the monopoly.

comment 4y ago · link · parent

They need to ban ads, period. For good.

comment 4y ago · link · parent

So I never used "bouton" for "to push forward", and while it is used for a pimple, above all, today, a bouton is simply... a button.

comment 4y ago · link · parent

Well I use both extensively, and I'm very confident that I can write a script of 1000 lines with much less bug and much better error handling that in bash, in half the time it would take me.

In fact, as soon as you need to use arrays, it's game over.

comment 4y ago · link · parent

Scripting in bash in a portable manner on embedded system is exactly the niche use cases I talked about. The router example is aimed at it, because it's the right size ratio to be small, but have an OS running.

Still, the vast majority of IT projects do not fall in that category.

It exists, but it's a very, very small % of why you need a bash script. And in fact, even those advocating for bash portability almost never fall into the category of people that have to do it in their daily job.

I'll go even further and even state that a lot of embedded system don't even have bash scripting capabilities in the first place.

comment 4y ago · link · parent

Portability for shell scripts is over rated in 2022.

If your shell scripts are small, it's easy to write several versions of them.

It they are long, you should use something else than shell scripts for your program, like python.

Worse case scenario, provision the same interpretter everywhere, vendor it, or use a compiled language.

There are some edge cases where portability makes sense (e.g: you are scripting for an heterogeneous parc of routers), but they are niche usages most companies don't care about.

comment 4y ago · link · parent

That's what Microsoft is paying Guido for, for the next versions of python.

comment 4y ago · link · parent

Mind you, it still requires to have a c compiler, to be installed separately. It's very easy on linux, but a x-code install on mac, and can be fiddling on windows.

Still nice, but not like golang or rust where you have a stand alone solution.

It's an alternative to nuitka, which I recommend to try out.

comment 4y ago · link · parent

It was 17 years since I lived in the UK, so it may have changed a lot, but my experience with trains was not that great:

- very expensive

- not enough space, and too small rack areas for luggages

- booking that crossed over several private train companies was complicated and unreliable

The experience was much better in France.

But as I said, it could have changed a lot.

comment 4y ago · link · parent

I don't know, it doesn't seem very far form the python version:

    values = (
        key_value.partition('=')[-1]
        for key_value in 
        s.partition('?')[-1].split('&')
    )

comment 4y ago · link · parent

nice !

comment 4y ago · link · parent

That doesn't work on the local network, does it?

comment 4y ago · link · parent

Yeah it's really cool. I tried to introduce it years ago, but something you must pip install is a deal breaker for most people, even python devs. Too many ways to fail. Besides, casual drag and drop is always going to be easier than cli for windows users.

comment 4y ago · link · parent

On the other hand, of very good friend of mine, a prestigious doctor in Monaco, was adament the vaccine caused no major heatlth problem.

This month, I had weird health problem that sent me to the hospital, and asked again if anything could be related to the vaccine. This time, he said it was a possibility because has has seen some similar cases in the past.

The problem here is not changing your mind using fact. That's how you should do it.

The problem here is stating at first he was sure it could not cause any grave problem (at least not worse than covid). Because this was not rooted in fact, we didn't have remotely enough data to know this.

But this is what a lot of the medical and political elite claimed during the pandemics, and questioning it would get us the rethoric you just used in your comment. This is what a lot of comments on HN, twitter and the whole internet agressively screamed, with disdain toward people that were raising pragmatic worries.

This is not a sane way of approaching science. This is arrogant, and creates distrusts in a world where we desperatly need humility and bonding together.

In fact, you know your position is not in the best light because you are using a throwaway account to state your position, in a thread that has been very cordial.

comment 4y ago · link · parent

I dreamed of this for a long time.

Being always on the road, I often have my emails/contacts/todolist/pictures/whatever scatered accross all my devices, with no easy way to synchronize them without getting access to wifi.

This means in transport, in the country side, or in another country, my system is in shamble. Also, it means everything is slow to sync.

Yesterday I had to send a AI model to my colleague next to me. I was on linux, he was on windows. The fastest way was to get a usb stick. That should be a click in 2022. The closest to something reliable to do this was duckto, but it's not maintained anymore.

Good luck to ditto!

comment 4y ago · link · parent

As the answer to the tweet says:

- it didn't get billions of dollar of investment

- it was born 30 years ago in a different time and carry the weight of those decisions and legacy

- it only got serious focus and investments the last decade, while alternative got 100 times more

- "this is all you get" downplay the enormous qualities of python to focus only on what's wrong with it. It never was in a situation to have success by default, it gained market share because it was good. No monopoly on the browser, no jump start at the begining of the web like php, no .net style founding by a giant. Somehow, the author must ignore some inherant good stuff to the language.

comment 4y ago · link · parent

You put everything read only, and you give a 2 years notice before applying the sentence.

What do you think inflation is ? Their externalities being taxed on the population. Since we have to pay no matter what, at least they should feel it too.

comment 4y ago · link · parent

First, 2 years is too long, because the consequences are very heavy. But a 2 months of service interruptions of youtube, google doc and gmap wouldn't crash the world, but would be so painful people would find alternatives quickly and never rely just on one monopoly again.

comment 4y ago · link · parent

And yet despite 30 years of people telling everyone how lisp is amazing, most people keep avoiding it despite that it's free, stable, and available everywhere. Meanwhile, new languages like rust or zig have no problem to be adopted, C#/Php/JS/python are still used massively and produced a lot of value.

But it's probably everybody that is wrong, there is no way Python has a value proposal that is worth something to a lot of people.

comment 4y ago · link · parent

The thing is, it takes a huge scale for web apps before python becomes your bottleneck. Between caching, async, task queue, reverse proxes, databases and compiled extensions, you have so many performant options to glue with python that any hardware saving is more likely affected by your choice between redis, postgres and clickhouse than by the language you query them with.

comment 4y ago · link · parent

That's because of lot of people were not productive even before, but they looked like they were. Remote is revealing how much BS todays' workplace has became.

comment 4y ago · link · parent

Not that absurd. People would start doing way more due diligences to invest. They would put pressure on the company to not do something stupid.

You invest in bad actors and want to make money with it? Well you should pay the consequences for that.

comment 4y ago · link · parent

On the short run, yes. But on the long run, that would be more effective. Once the customers and workers have been burned once, they will be very hesitant to give their trust to the company again.

Companies would then have to get their things in order quickly, and win back the trust. A very effective deterrent.

Imagine Google being out of the EU market for 3 months. How many youtubers would try and publish their videos on other plateforms? That would open competitions. People would boo google everytime they suck because they would fear for themself.

It would create pain right now, but a sane pressure that would force companies to stop playing with fire because they know they can't get a bad burn.

comment 4y ago · link · parent

Too difficult: you need to prove they knew and took a series of actions to get there, but it's very hard to do, and they usually have fall guys all the way to protect themselves. It's also easier than ever to destroy evidence.

The cost of going after those companies is ridiculous already, once they are proven guilty, it would be simpler if we could punish the company as a person, than to find a real person to punish. After all, companies are very happy to be persons for other legal purposes.

comment 4y ago · link · parent

If you were earning minimal wage in France, that would be about $1500 of fine for the equivalent of being caught commiting burglary for the 3rd time.

Quite lucrative.

comment 4y ago · link · parent

We really need the equivalent of jail time for companies. Clearly after a certain size, fines do not cut it. Jailing executives is too hard, so laws should exist that remove the company from a market for x years or something, like if they were in a cell.

comment 4y ago · link · parent

I'm taking that you haven't lived in those countries to say that. I lived in Mali for 2 years. They are never going to join us in the club of first-world standards living, they have no resources but sand in their country, not enough tree to make paper to write on. Their society was perfectly adapted to that before we told them they should have computers that they can't affort because they have nothing to contribute to a global economy.

Besides, you assume you need more people to be developped, while France is only 60 millions people, smaller than a lot of developping country.

comment 4y ago · link · parent

Simple tasks like fiddling with an API json response with rust, haskell or ocaml are always going to take longer than with python.

Now, doing it well will take as much time in any language.

But a huge amount of time is spent not doing things well:

- you try out ideas

- you explore data shape, results and systems behavior

- you demos things to get a sense of the solutions or sell something to management or clients

Eventually, you will have a very well defined problem with an optimal solution. But this is the last mile, unless you work for nasa.

E.G: currenly one of my client is a big financial structure, and they are creating a calculation engine. They have 3 experts on site, but they don't have the full understanding of the problem they want to solve, and disagree on the part they do understand. The result ? We have to rewrite a lot of code, and write even more code in an exploratory manner. This will likely go on for the next few years. You can wish for a better situations, or you can use a tool that make you productive in that situation.

comment 4y ago · link · parent

Yes but it puts the burden on you to fix a problem that is caused by the editors.

comment 4y ago · link · parent

Well, in 2008 the PSF had a budget of $500k for the entire world. To compare with JS, this is the order of magnitude of the salary of one single person working on google chrome.

The community didn't have a lot of resources for a long time, and so had to prioritize: it chose to focus on python strenghts, and not compensate for weaknesses. It couldn't do both. Keeping the implementation simple was also a way to keep the project manageable on the cheap (and by cheap in mean in work hours, since the first 15 years, most core devs were just doing it for free).

Today, a lot of companies with a lot of money have much to gain to invest in python, and so we can finally have our cake and eat it too.

1
858687
184