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

I like my prompt being a separator between the output of the previous cmd and the next cmd I type.

comment 2y ago · link · parent

You think it would be a big fork you?

comment 2y ago · link · parent

Now that it's FOSS, you can fork it.

comment 2y ago · link · parent

People always undervalue the beauty of a short feedback loop until it's taken away from them.

And even then, they won't exactly pin point the problem, rather express their general frustration, without realizing that the dynamic system they used had indeed some great properties and were not popular for no reason.

comment 2y ago · link · parent

Functions are a nice to have, but:

- It tends to make things less declarative.

- You lose locality of behavior, which is very useful in configuration.

Also, nickel doesn't support injecting data into the nickel file, so external program can't set variables, query a database and pass the result to the conf file, etc.

comment 2y ago · link · parent

Just noticed that pydantic made their doc executable (https://docs.pydantic.dev/latest/).

Following the JS, I was expecting pyodide to be used, and it was: view-source: https://samuelcolvin.github.io/mkdocs-run-code/run_code_main...

But on top of it, it's wrapped in this project specially made for mkdocs (an alternative to sphinx).

Very cool.

1177.

Make Python Doc Executable(github.com ↗)

1 points · by BiteCode_dev · 2y ago · 1 comment

1178.

Python as a Configuration Language(bitecode.dev ↗)

3 points · by BiteCode_dev · 2y ago · discuss

comment 2y ago · link · parent

"Expensive dev kits made sense for devs 20 years ago, but today they are just a way to lock the ecosystem. "

comment 2y ago · link · parent

"only"

If it's to dev a game with your kid, that pricey. Pricier than the console itself.

Pricier than to dev for android or iphone, or any laptop. Or the steam deck for that matter.

Expensive dev kits made sense for devs 20 years ago, but today they are just a way to lock the ecosystem.

comment 2y ago · link · parent

In France, constraining immigration is equaled to racism for many people. If you include it in your program, you will be compared to the far right, and a lot of voters will ignore you without checking anything you have to say.

comment 2y ago · link · parent

You used JSON twice, how casual.

Your API should clearly be using protobuf.

comment 2y ago · link · parent

Yes, because engineering is about context.

comment 2y ago · link · parent

I'm a big fan of Python as configuration for my own projects, but:

- It requires discipline for devs to keep the conf declarative. Discipline is not automatically enforceable, so it's prone to failure.

- No guarantee of reproducibility.

- You need a Python VM (or a starlark interpreter if that's what you like). It's a big constrain.

- If you are a Saas provider, accepting Python as input is really hard to secure.

comment 2y ago · link · parent

This is where I usually pitch in with "Have your heard of CUELang, our lord and savior?": https://cuelang.org/

- Not turing complete yet sufficiently expressive to DRY

- Define schema and data with the same language, in a separate or same file. With union types.

- Generate YAML or JSON. Can validate itself, or a YAML or JSON file.

The biggest drawback being the only implementation is currently in go, meaning you may have to subprocess of ffi.

comment 2y ago · link · parent

We actually do have all of those.

French research is doing fine, and infrastructures are in a much better shape than in the US. Things keep being built, I can't spend a minute outside without seeing some giant machine running. We are incredibly productive given a 35 hours work week, so getting things done is also right there.

Our problem is rather turning innovation into a business. Getting money for it. Taking risks.

Instead, innovations and innovators emigrate to the US. Yann LeCun went to do AI in the US, he didn't stay in France.

comment 2y ago · link · parent

I didn't mean to come off that way.

I wanted to convey that compared to the wave of discontent that is taking Germany by storm, it's at best step in the opposite direction.

Germans are not known to be proud, but they are. And right now, a lot of them feel they don't get what they deserve.

Protesting against people showing how unhappy they are is unlikely to bring the change we wish it would.

comment 2y ago · link · parent

That's not a lot, in a country of millions. We do much more in France, every year. And it's been showing diminishing returns, as the government realized it could just not listen, and nothing bad would happen.

In fact, it's a drop in the sea, compared to the rising casual xenophobia I can notice with my German acquaintances, friends, and even family. Medias, general discussions, and overall atmosphere is not going in the direction of peace.

The fact that they welcomed many African refugees in the last few years increased the tensions, and the Russian crisis made economy a big focus. As a result, there is a general feeling of unfairness which politics use to push a divisive narrative.

Prices have gone up, which in most countries is visible, but quality has gone down, and in Germany, this is a sin. Everything is touched by this: transport, food, service...

And when people are unhappy, you can sell them an enemy.

comment 2y ago · link · parent

Indeed.

In animal crossing, the player doesn't feel the characters cold, hunger, head aches, sleep deprivation or flue.

The player doesn't really experience the dreadful responsibility for a kid not to die, the requirement to fill forms, queue with irritated people, be stuck in traffic or the sub every day, etc.

And above that, the interactions are in this context. Nobody tries to hit on your girlfriend who you built your life with, no divorce can take half of your house, no firing send you back to your country because your visa depend on it. You don't have an asshole boss, an entitled customer, an asshole clerk or a depressed librarian.

Prosperity is easier when things are predictable, you have low risk and people are homogeneous. E.G: it's easier to live as a Swiss in your own country than as Tunisian refugee in china.

comment 2y ago · link · parent

Given that we still have today people crafting leather belt by hand and sell them for a premium, I assume there will always be a niche market for craftmanship-type software.

And only people that really love it will be able to work in that.

comment 2y ago · link · parent

Same with google with youtube.

Good.

People keep bashing EU for making innovation hard, and there are a lot of truth to it.

But I welcome this kind of restrictions.

comment 2y ago · link · parent

You can be the best tenis player in the world and still miss the ball.

1193.

Concrete real life use of Python decorators(bitecode.dev ↗)

3 points · by BiteCode_dev · 2y ago · discuss

comment 2y ago · link · parent

Not for whales so YMMV.

comment 2y ago · link · parent

That's the problem with standardized and sanitization of food. By rejecting irregularities, smell, dirt, we create souless food.

comment 2y ago · link · parent

It's very hard to find a good camembert now. Easier with goat cheese and other products from the mountain.

But yesterday we bought one in Esteron that finally tasted how it's supposed to taste.

So it still exists, but as with anything popular, it dies from tragedy of the common.

comment 2y ago · link · parent

No it's not.

There are plenty of small cheese makers with diverse biomes and we buy from them every day.

They all have their own batch, many are unique passed from generations or affected by the animals they raise.

Nobody expect supermarket cheese to be sustainable anymore than their standardized vegetable.

comment 2y ago · link · parent

For me it's a plus. I wish it would be done more.

comment 2y ago · link · parent

That's how engineering is supposed to work: you get to decide what to use based on your problems and the nature of the solutions.

Beyond the memes, this one Montana guy is very reasonable.

comment 2y ago · link · parent

No, that's not the purpose nor the scope of HTMX. This is thinking in term of other types of web framework, but it's not the design of this tool.

Since it's neutral to the backend or scripting tech you chose to use, it cannot, and should not, step into that realm.

It provides a more simple, basic service.

You may be tempted provide a django template + view + htmx reusable component.

Or a rail enpoint + htmx reusable component.

But that would not be universal, it would be super specific. Maybe useful in your company, across team, but that's it.

1
394041
184