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

They are not defeated by literature, they are just not that interested in it, and therefore never practiced, and dislike working on it.

It's not a matter of the field being too difficult. It's a matter of personality.

> Quite the claim.

Yes. I've discussed this claim with people defending the opposite idea, and I've yet to find anybody making a good demonstration that philosophy is hard in itself.

They point that there is a lot to know. So reference and memory. Like most expertise in the world.

That texts are hard to read. So style, vocabulary. Well, not different than programming or the law on that point. They are easier than higher level math.

They say few people get novel ideas. Yes, creativity is rare, yet it's not particularly linked to the field. You need creativity to find new theorems too.

So they try to bring complicated topics again and again. Once we are done mapping the references, the vocabulary and cleaned out the awful style a lot of writers use to obfuscate their reasoning, the ideas behind are quite straightforward to grasp.

I've stopped doing it now, it takes a very long time, and it's always disappointing. It feels like debugging a program, only to realize it could have been 10 times shorter and easier to read.

comment 3y ago · link · parent

That's because math is harder for most people.

There is no difference between learning a name in history or in biology, or some workflow.

But math reasoning really filters out people in a way nothing else does.

All other topics just require memory and basic reasoning.

Even physics mostly is hard because of math. And philosophy, mostly because of jargon and references. Otherwise, if you break it down, it's not that complicated.

But you can break down a math problem as much as you want, some of them are beyond what you can do comfortably. And a lot of students reach this limit early in their life.

I see this when I play board games with people: there is a threshold of rules and calculation power above which I lose 90% of the players. They just can't enjoy it, because it requires too much effort to play.

It's similar for me and sport. I've been doing exercise all my life, but my brother will always do more, and harder, because there is a barrier after which it's just too painful for me.

Math and athleticism can be trained, but there is a hard ceiling. And even before you reach that ceiling, closing the gap gets more and more expensive for some people, so much the ROI is difficult to justify.

comment 3y ago · link · parent

What you describe just means our tech is not ready yet.

Not that it's not the best UI.

Nobody miss having to manually change their clock for DST or after a plane trip.

One day, the machine will read your mind, know you need some info, and download it into your brain. You will just know what you need to know without asking, as if it were obvious.

That's the best UI.

It's also the UI that will be the most abused with the most terrible consequences.

Dark patterns on neuralink are going to get, well, dark.

comment 3y ago · link · parent

The perfect UI doesn't have a button, it does what's expected without the user asking for it.

comment 3y ago · link · parent

You milk the captive market.

comment 3y ago · link · parent

Sure, but there is such a thing as peer pressure.

The fact you are telling me this let me think you are coming from a theoretical perspective, but that you have not, in fact, managed such people yourself.

It would be self evident otherwise.

comment 3y ago · link · parent

> Nothing to do with remote.

A lot of those people are comfortable slacking off when noone see them, but will work when being at work.

comment 3y ago · link · parent

The thing that is never said about remote, is that a lot of employers work with employees that are neither very good nor motivated.

Now you could say that it's a management problem, that as to be solved.

But meanwhile, this is the situation right now.

And employees that are not very good nor motivated are not very productive remotely, and are difficult to manager from a distance or with time zone differences.

comment 3y ago · link · parent

Human bodies are already considered as such after death.

comment 3y ago · link · parent

It's getting better: the settlement are big enough for hurting their bottom line.

Now let's get on prison sentencing as well, so that individuals feel concerned.

comment 3y ago · link · parent

I'm rooting for the simula one because of this.

comment 3y ago · link · parent

Well, CPython is 4 years older than Java. That's very old.

When it came out, this was in store:

https://img.redbull.com/images/w_3000/q_auto,f_auto/redbullc...

What was not in store were:

- multi-core CPU

- wide spread internet access

So people solve concurrency with a simple but efficient and sufficient method at the time: the GIL.

And nobody planned for the scientific and ML stack.

comment 3y ago · link · parent

Just learning it exists and it's something I could never found a good software for. And it supports saving things with the excellent SingleFile.

I'm definitely going to give it a try, although as a Firefox user the workflow is going to be a bit less nice.

EDIT: just tried it, it's very nice. Right now, the UI makes it a bit better than just using in SingleFiles, but not enough to justify $50.

However, if this would become a way to fully manage my Firefox bookmarks, I would pay for this, in the spirit of https://www.bitecode.dev/p/i-checked-if-browsers-could-cache.

Right now, the UI to manage the bookmarks sucks. Plus there is no way to:

- save their content for offline reading - search their content

This means it's are very hard to get value out of them.

comment 3y ago · link · parent

> .py obviously isn't

Although .zipapp is to Python what .jar is to .py. Probably even closer to .war.

But for purely stand alone stuff, "nuitka3 /tmp/hello.py --standalone" does output a executable that can be used without the user to manually bring in the Python run time. In that case, the hello world is about 16Mb on Ubuntu.

It would be interesting to do this with MicroPython though.

comment 3y ago · link · parent

True, but it's way better than what we had before.

comment 3y ago · link · parent

This is a delicate issue. As guido stated (https://discuss.python.org/t/pep-703-making-the-global-inter...):

> If there’s one lesson we’ve learned from the Python 2 to 3 transition, it’s that it would have been very beneficial if Python 2 and 3 code could coexist in the same Python interpreter. We blew it that time, and it set us back by about a decade.

So it's not so easy to decide to go with again 2 different versions of Python.

I understand how caution they are.

However, this commitment from Meta, complemented with MS financing Guido, and the quality of Sam Gross proposal makes me optimistic.

comment 3y ago · link · parent

Transpilation won't work with semantics.

And it won't change anything about c extensions.

comment 3y ago · link · parent

Same with asyncio, but you have explicit await to tell you where this happens.

But this only solves network concurrency problems.

comment 3y ago · link · parent

Python3 had 2to3 and python-future, the migration still took 15 years.

1700.

Meta says it can commit 3 engineer-years on nogil CPython(discuss.python.org ↗)

3 points · by BiteCode_dev · 3y ago · discuss

comment 3y ago · link · parent

It's Nacker Hews, obviously.

comment 3y ago · link · parent

Substack has finally added a setting to disable the subscribe wall.

Can you give me a feedback to confirm it’s indeed of for all of you?

I know this was the number one complaint I got on lobster and NH

1703.

This Will Be Easy(bitecode.dev ↗)

4 points · by BiteCode_dev · 3y ago · 3 comments

comment 3y ago · link · parent

While type hints in Python are not as nice as typescript annotations, I understand their plea, because once thing Python does better is runtime introspection.

Which means we can have dataclass, pydantic, typer and fastapi all generating their stuff from regular type hints. No need for special syntax or functions. And that's super nice.

comment 3y ago · link · parent

YMMV also depending of who you are. In China, I look like a tourist, so pickpockets have a field trip with me, they don't even bother to be discreet.

In Paris, I never had a problem, because I look local. But my mother from the country side actually got troubles, because she looked like an easy prey, despite take much more care about her sutff than I do.

comment 3y ago · link · parent

Translation is a killer feature. All https//bitecode.dev is in english, but I'm French.

When I needed some complicated translation, deepl and google translate were rarely up to the task. They has about the same level of proficiency than me with auto-correct, sometimes less.

For single rare or technical words, I used Wikipedia a lot: you chose your topic in your language, you look for the article in English, and voila.

For slang and cultural references, urbandictionary.com is unmatched.

But for translating jokes or expressions, there is no good tool.

Until chatgpt. It also finds typo, suggest alternative, offer rhymes and synonymous. It does everything, in a single flexible interface.

Just for that it's worth the price.

comment 3y ago · link · parent

Yes, the 4 doc model is flawed, but if everybody followed it, we would still get on average 10 times better doc. When that happen, we can worry about improving, but most people are just terrible at explaining things.

Also, how to guide are not more and more covered by chatgpt.

But I don't think it should be a good reason to stop writing them.

For example, I wrote an article on "Parameters, options and flags for Python scripts":

https://www.bitecode.dev/p/parameters-options-and-flags-for

This is typically the type of things you get great ROI with chatgpt.

Yet:

- it's still faster to copy the summary of the article

- you need to understand the output of chatgpt so the article is useful to beginners

- you need to be able to use the right words to ask chatgpt what you want, which again, implies you understand the problem

- good practices and conventions are contextual, so the doc still helps

On the other hand, it's hard to find a lone article on the net, most people will find it faster with chatgpt.

But for your particular documentation of your particular product, that's still important to produce it. Because your best users will get familiar about your docs.

comment 3y ago · link · parent

If you remove the ads, suddenly, it evens the playing field. They have to compete with the product, not the brand. With what they bring to people, not the image they can create with money. With producing for society, not rent seeking.

Plenty of businesses would die without ads, they would be naturally selected out of people lives because without the brain washing, they are just not that important enough.

comment 3y ago · link · parent

You used the keyword, "niche".

But most businesses are not niche, that's why it's called a niche.

People sell food, clothes, accommodations, services.

You can't fight wall-mart on general food or nike on shoes, or any big player on phones.

If you create a new tech product, your only chance is to go reddit, HN, etc, like the pine phone. Because you can't advertise it like apple with the iphone.

You can't buy product placement in movies and video games, you can't be at every bus stop.

So sure, if you sell biodegradable bamboo socks, your ads can do something.

But that's not 99% of what are sold in the world.

What is really sold is transparent to people, because they are so used to it. They don't realize they have maybe 3 choices of providers because all those brands belong to the same big super company. And each of them have their own dedicated marketing department.

comment 3y ago · link · parent

Nor the fact they still show ads before the movie you paid for.
1
565758
184