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

It's a great hack actually.

comment 5y ago · link · parent

> Programming in Python is order of magnitude "harder" and error prone than writing a simple YAML file.

For a simple config, sure.

But as soon as you have something more complicated, you end up with:

- a frankenstein monster DSL, with pseudo flow control + funcs backed in through a patched up templating system

- weird error messages, no stack trace, and type errors that accumulates

- no DRY

- no tooling: type checks, linting, de bugger, logger. Forget about it.

Case in point: ansible playbooks.

So unless your config is going to stay under 20 lines, just use a real programming language. If you don't want to use Python, fine. Use dhall, nix, jsonet or something else.

comment 5y ago · link · parent

Somewhere down the road, people that were against religious extremism took the worst example from it, like dogmatic thinking, blind faith and intolerance, and decided it was ok to use it against religious people.

Humanity and irony have a strong bond.

comment 5y ago · link · parent

I tried factorio for 5 minutes.

Because of the sleep deprivation I felt the day after, I decided it was cocaine and dumped it.

"Factorio is a great cure" my butt.

comment 5y ago · link · parent

Oh, please share.

comment 5y ago · link · parent

Sure, I am not, this is an opinion backed by life anecdotes, not science.

But I do see some of my idealists friends that ended match up this pattern, and I find that there are regularly people in the angry mob that seem to have a similar profile.

I don't hold that theory as gospel, but it helps me develop compassion toward those who are angry.

comment 5y ago · link · parent

I agree, and this is kinda new but to be expected.

For a long time some minorities were particularly silenced by our societal systems. If you were a foss advocate, vegan, ecologist, feminist, LGBT aware, what have you, in the 90', you were ridiculed and you didn't have a voice.

Now the table have turned, and the pendulum is balancing to the other extreme: those who were frustrated 20 years ago now created an anger culture out of it that they express loudly. I understand were they come from.

It will go back to balance, but things take time to stabilize. In the meantime, those who had a point of view that were common in the 90' now are considered bad people by default.

I don't think this is the right move, but I understand the process.

comment 5y ago · link · parent

Ok, then buy insulin shots from the same company that sold you ice cream and soda.

It creates all the wrong incentives and a dangerous positive feedback loop.

comment 5y ago · link · parent

To me it's like buying a google product, complaining it secretly attacks your privacy, then buy a subscription from google that mitigates that.

Or to buy drinkable water in bottle from the same company that polluted your river.

comment 5y ago · link · parent

This is why I don't think you should be downvoted.

As long as you express something in a civil way, you should be able to do it without repercussion.

And you did.

comment 5y ago · link · parent

One thing I learned after 10 years of being vegetarian: antagonism is a a loosing strategy.

Shaming and tribalism doesn't help anybody, and is an arrogant view of the world.

You are probably some *ist right now, compared to a future world view.

Just because people have an opinion you know is unwise doesn't make them a bad person. They are like you. You are more like them than you think, but like them you have blind spots that prevent you from seeing it. Tolerance goes both way.

We all create suffering, at different scales and in different manners.

The idea is not to cater to racists, but just to make sure their believes does not translate to hurtful actions in the work place. If it doesn't, then it's ok, they probably tolerate stupid things on your part too.

If it does, then first, try to engage with them to make it stop.

Only if it doesn't work, should you reject them.

comment 5y ago · link · parent

I upvoted you because I don't think you should be downvoted for expressing your opinion.

But I also think we should wonder: how many white armed men were killed?

comment 5y ago · link · parent

> It looks like people are discoursing, but they are really just signalling.

I was looking to put words on my feeling about this, and you did it perfectly.

I was wondering why suddenly so many people voiced the same engaged opinion, while I know for having discussed with them in private settings that they don't think deeply about society.

Now I realize that's because they want to look like they belong to a certain kind of people. It's not about ideas. It's about tribes.

comment 5y ago · link · parent

Wait, there is a kind of fiction that is illegal?

I though that, at least in free countries, fiction could contain whatever you wanted, since it was not real.

In fact, even not fiction, but books in general. You can still buy the communist little red book and the nazi mein kampf, at least in France.

comment 5y ago · link · parent

I wonder if this is not a good argument to actually make all kind of advertising illegal.

There is no way that ensuring huge entities with enormous capital are able sustain their dominant position thanks to flushing cash at ads is healthy.

I've yet to see a situation where advertising was better than word of mouth, personal experience or expert feedback.

It seems it's all gain for them, no gain for us.

comment 5y ago · link · parent

It's fascinating how the farmer by products from an industry, see it causes terrible problems, and then by more products from the same industry to solve the problem it caused in the first place.

At that point, it reads like Stockholm syndrome.

comment 5y ago · link · parent

I miss KDE Connect every time I'm on windows.

When watching a movie on the laptop, it's so handy to use the remote control to pause/play/change sound or move the timeline.

Now some stuff don't work so well: file transfer is flaky sometimes, sending a text from the laptop has a very primitive UI and I never seem to be able to share the clipboard when I want to.

But I love to ping my phone when it's lost in the house.

comment 5y ago · link · parent

I don't talk about open source anywhere in my comment.

I'm simply noting that those "dangerous features" are, practically, only accessible to the people that are tech saavy enough to understand the risks.

So the "it's to protect the innocent" argument doesn't seem to hold well.

comment 5y ago · link · parent

My GF has no idea how to administrate her phone, she has an android, and certainly doesn't side load apps, install them from websites or use an alternative app store.

She wouldn't know how to do those things, so this point seems kinda moot.

comment 5y ago · link · parent

Long tail: if you want a nice intro of the topic, "fooled by randomness" is a fun read.

comment 5y ago · link · parent

I have seen thousands of pine cones in my life, living in France, and none of them have hairs on top, not such a different coloration between the body and the head.

It doesn't mean it's a pineable though, Occam razor would lead me to thing it's more likely a fruit most people are not accustom to see.

E.G: figue de barbarie: https://fr.wikipedia.org/wiki/Figue_de_Barbarie (and if you wonder, it's very good)

Not that I think it's a figue de barbarie, the body matches, but not the head, yet there are a lot of fruits people don't know about, or it could have been a fruit that disappeared since. After all, we lost a whole class of banana type, why not other things?

comment 5y ago · link · parent

n = 1, but using my oura ring, I can see a diff of 10% higher RHR pmb during my sleep when drinking a single glass of beer after diner.

It surprised me a lot.

comment 5y ago · link · parent

Use the qt-console, best of both worlds.

comment 5y ago · link · parent

The concept rocks, so I really hope it will work and become popular.

A few remarks:

- the go get install is broken in the readme. I opened a ticket.

- since go cross compile, maybe you could provide binaries for Linux/Windows/Mac ? No need to go get, no need to install docker. That would open the door to include the tool in web frameworks.

Good luck, and thanks for sharing.

comment 5y ago · link · parent

Yes, being able to compile my VueJS component from inside my Python VM would be a huge plus: I would finally have one single template language on the frontend and the backend, and just one endpoint for rendered pages and API.

comment 5y ago · link · parent

You just wrapped your titles in <p>

comment 5y ago · link · parent

I was going to say: "let's now wait 10 years for it to be usable", but then I went to canisuse and wow: 96.01% of availability!

https://caniuse.com/?search=grid

comment 5y ago · link · parent

I agree, and went the html road as well for a time, but I hit roadblocks:

- When I'm in the flow, I really don't want to think about the structure of my text. The ms required for the tag insertion breaks that.

- Unless you very disciplined with your HTML use, it's hard to get back structure from you HTML doc. You have to limit yourself to the subset you would get from markdown.

I'm experimenting with asciidoc now, let's see if it's working.

comment 5y ago · link · parent

The problem with entr is that:

- it's unix only, which, when using a multi-plateform language like python, is limitating

- can't be used programmatically without subprocess hacks

If you use Python, watchdog is an interesting alternative:

- it works were Python works: pretty much everywhere

- it uses the best API for the job (e.g: inotify on linux), but will fallback on manual scanning in a thread if the underlying OS has no special file system watcher API

- it's a lib that can be use programmatically

- it features the command "watchmedo", which is basically what entr does, but with an optional rich file format and plugin system

- for simple use cases, all that stuff stays super simple

1
143144145
184