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

Yep, also GraphQL and all those data lakes.

That reminds me "XML is the future": https://www.bitecode.dev/p/hype-cycles

comment 2y ago · link · parent

Yes but except in remote areas or with specific natural features, where you can't get to other people easily, having a phone not cut for days is not critical enough that it justify maintaining a whole parallel infrastructure.

You may argue it does, but it's easy to figure out: in my country you can get it in some places, but it's an expensive premium.

Very few people do. Which mean they don't value it as much as they say they do. The ones that do usually are the ones that have the need to be able to call health institutions in emergency.

Turns out humanity survives very well without a phone, and while I get how it can become a big problem for an individual, on average for the whole society, it doesn't balance out.

comment 2y ago · link · parent

Because vertical scaling can take you so far these days that 99% of companies will never, ever reach the scale where they need more. There is just few incentives.

Especially since:

- Servers will keep getting better and cheaper with time.

- Data is not only in postgres, you probably have redis, clickhouse and others, so the charge is balanced. In fact you may have different dedicated postgres, like one for GIS tasks.

- Those hacky extensions are damn amazing. No product in the world is that versatile.

- Posgres has much better support from legacy frameworks like django/ror/laravel than nosql alternatives. People shits on ORM, but they enable a huge plugin well integrated ecosystem that makes you super productive, and PG is happily and transparently handling all that.

- If by some miracle you actually reach the point you need this, you'll have plenty of money to pay for commercial HA/sharding, or migrate. So why think about it now?

comment 2y ago · link · parent

Airbus has a limited production capacity, and they are maxed out with this scandal.

So Boing is still getting orders, because the world need planes.

comment 2y ago · link · parent

Or at least require things like intel ME to be forbidden on any computer used by the administration, forcing chip makers to provide alternatives.

comment 2y ago · link · parent

- Not if you have to edit the code. Try to explain your beginner with notepad++ how to do that.

- Not if you have to deploy the code.

- Not if you have to import the code in your own project.

Basically, not if you want to do anything by running the code. For which I would suggest an installer instead.

comment 2y ago · link · parent

Using docker is not free, you are effectively trading one type of complexity for another.

And of course you'll have to make sure people equally have good practices, since incorrectly using sudo pip install in docker and not a venv are very common.

So again, one possible solution for a certain context, but I wouldn't sell that to most people. Certainly not to beginners.

People writing their pythonanywhere website won't pop up a container, won't they ?

comment 2y ago · link · parent

I hope this will be merged with indygreg builds at some point, but the community move slowly on those issues so it may take years.

comment 2y ago · link · parent

Just tried, I get the same result with 3.7, 3.8, 3.10 and 3.11.

comment 2y ago · link · parent

The thankless soul is the awesome Anthony Sottile, who is also the author of pre-commit.ci: https://twitter.com/codewithanthony

Drop by and send thanks cause he really needs them.

comment 2y ago · link · parent

I know you mean well, but such advice is why so many beginners have painful Python experience.

Macports and homebrew Pythons are dependencies of other packages. They can be used by you, but they are not meant for you.

This means at some point, they will contain a surprise, and not a good one.

comment 2y ago · link · parent

While there are no silver bullet, for beginners, I found that "Relieving your Python packaging pain" (https://www.bitecode.dev/p/relieving-your-python-packaging-p...) is the Pareto solution. That is, the solution that has the best ratio of effort, reward, but also the lower risk of failure. It's not no risk, but I've been helping beginners for 15 years with Python, and have tried everything you can think of.

It does imply, on linux, to limit yourself to the choices of Python you can install. This constraint is, for most people, preferable than the alternative, even if it gets frustrating to our geeky soul.

comment 2y ago · link · parent

That happens way more often than people want to admit, and I think it's not genuine to present the tool that way.

E.G, I'm on Ubuntu 20.04 on an Dell XPS, a fairly standard machine, I'll get:

    pyenv install 3.9 -v
    /tmp/python-build.20240325124651.73089 ~
    Downloading Python-3.9.19.tar.xz...
    -> https://www.python.org/ftp/python/3.9.19/Python-3.9.19.tar.xz
    ...
    LD_LIBRARY_PATH=/tmp/python-build.20240325124651.73089/Python-3.9.19 CC='gcc -pthread' LDSHARED='gcc -pthread -shared -L/home/user/.pyenv/versions/3.9.19/lib -Wl,-rpath,/home/user/.pyenv/versions/3.9.19/lib -L/home/user/.pyenv/versions/3.9.19/lib -Wl,-rpath,/home/user/.pyenv/versions/3.9.19/lib  ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall'  _TCLTK_INCLUDES='' _TCLTK_LIBS=''  ./python -E ./setup.py  build
    running build
    running build_ext
    ... etc
There are obviously binaries for this Python, since I can apt install it and I didn't specify the minor version.

But by default it downloads the source, and compiles it.

On top of that it will use a shim which comes with its own world of possible pain.

Again, I don't want to bash on pyenv.

But I do want to lower people's expectations.

It's a tool for experts, not beginners.

comment 2y ago · link · parent

Because it's not a solved problem, pyenv is niche and people discover it once again and think that they finally solved their pain.

They will try it, and most of them will pay the price for it.

It's a cycle.

comment 2y ago · link · parent

Binaries are quite reliable and from a serious project, but rye is young and uses shim.

Still, it's part of those new generation of tooling that bringing hope for the next few years.

comment 2y ago · link · parent

For now most people would do well to stick to python.org installers for mac and windows.

For linux, official repos are ideal. If you really, really can't (which is different than wanting to), ubuntu deadsnake and red hat epl are the best second plan, while already more finicky.

If you use something more exotic, you chose hardship, and you will have to be up to the task.

Anything else will come with bigger caveats than the people promoting them will really admit to.

The story is of course a bit richer because linux packaging is fun, so I'll complete with:

https://www.bitecode.dev/p/installing-python-the-bare-minimu...

Thete are currently no silver bullet to bootstrap python on linux. I tried all of them with hundred of colleagues and trainees.

I do have hope for astral to come up with one but don't run on rye thinking your life is saved.

comment 2y ago · link · parent

I have to warn again users that think they have found the silver bullet that pyenv comes with a big caveat: it compiles python on your machine.

The number of possible modes of failure in this situation is huge.

See also: "Why not tell people to "simply" use pyenv, poetry or anaconda"

https://www.bitecode.dev/p/why-not-tell-people-to-simply-use

I'm not saying pyenv is not a useful tool, but it is not a tool for beginners fighting with python packaging problems. It's a specialist tool to normalize your setup.

Very often, I see people tell me they don't have problems with pyenv, but later on have other unrelated problems with their dependencies. Analysis then prove it was because of pyenv, they just didn't know it. The cost is not obvious.

comment 2y ago · link · parent

In other news, Google returns spam sites and Excel parses dates incorrectly.

How is this ramble of a post became front page on HN is beyond me.

comment 2y ago · link · parent

It has sqlite performances, which is the fastest you can get with Pareto effort.

comment 2y ago · link · parent

But you write and read fine apparently? I always thougth it was linked.

comment 2y ago · link · parent

What's your system prompt?

1072.

There is no EU cookie banner law(bitecode.dev ↗)

54 points · by BiteCode_dev · 2y ago · 18 comments

comment 2y ago · link · parent

With this line of logic, you give absolution to anything immoral that is actually legal, saying the state should have done better.

comment 2y ago · link · parent

No banner is required. No interaction at all in fact.

Companies can comply with the law by following the old and standard DNT header. It's transparent to the user, no pop up of any kind.

They chose not to.

They are the ones you should be angry at, not the EU.

comment 2y ago · link · parent

I thought we agreed not to talk about Bruno.

comment 2y ago · link · parent

Yeah, those fire, pots and crops where so useless compared to those. And the wheel? Na, it's not that important.

comment 2y ago · link · parent

What's the difference with "absolute enable right click and copy"?

(https://chromewebstore.google.com/detail/absolute-enable-rig...)

comment 2y ago · link · parent

And like MS they will just pay a few billions in PR and Foss to make a come back in 10 years and all will be forgiven.

They will get away with this, we let them. They have no incentive to be better.

comment 2y ago · link · parent

Systems that are used as cache such as redis evict keys with some randomness to avoid scanning all of them. They also evict keys you read that expired without you having to check for that. And they don't store both a key and an id.

Given the value of redis for caching and outside of caching, bur the ease and low cost of setting it up, I would say postgres as a cache seems niche.

1080.

How much effort is it to create software?(bitecode.dev ↗)

1 points · by BiteCode_dev · 2y ago · discuss

1
353637
184