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

While I applaud the attempt, stating it's "performant" is misleading, as any calculation that could happen client side means a call to the network with Pynecone.

You can see it in their demo:

https://pynecone.io/docs/getting-started/introduction

The counter increment should be instantaneous, but instead, it goes through websocket, calls a python function on the server, and comes back.

In which case the difference between this and django+htmx is not huge: mostly you get widgets in pure Python, and websocket is not experimental.

Not sure it's worth giving up the whole django and htmx community to get locked in their widget set.

I'm not saying this to hit on the project, I do think pycone is a cool idea and it's nice to see people trying to make web dev more accessible.

But I want people to know what they are signing for.

comment 3y ago · link · parent

You are making my point: linux, mac and windows coexist, despite the overwhelming strength of open source, and the proprietary platforms are quite profitable.

comment 3y ago · link · parent

What makes you think open ai won't look at the FOSS improvements, include them in their tech, and make their GPU farm way cheaper, rendering their service even more competitive?

Not to mention it's easy to run stable diffusion, but midjourney is still a good business. I can run sd on my laptop, I still pay for midjourney because it's convenient, the out of the box experience is better than any competition, and it keeps improving.

comment 3y ago · link · parent

And ChatGPT has a super low barrier to entry while open source alternatives have a high one.

Creating a service that can compete with it on that regard implies you can scale GPU farms in a cost effective way.

It's not as easy as it sounds.

Meanwhile, openai still improves their product very fast, and unlike google, it's their only one. It's their baby. It has their entire focus.

Since for most consumers, AI == ChatGPT, they have the best market share right now, which mean the most user feedback to improve their product. Which they do at a fast pace.

They also understand that to get mass adoption, they need to censor the AI, like MacDonald and Disney craft their family friendly image. Which irritate every geeks, including me, but make commercially sense.

Plus, despite the fact you can torrent music and watch it with VLC, and that Amazon+Disney are competitors, netflix exists. Having a quality service has value in itself.

I would not count open ai as dead as a lot of people seem to desperately want it to be. Just because Google missed the AI train doesn't mean wishful thinking the market to be killed by FOSS is going to make it so.

As usual with those things it's impossible to know in advance what's going to happen, but odds are not disfavoring chatgpt as much as this article says.

comment 3y ago · link · parent

Agreed, even the best open source projects, like Linux or Firefox, in their wonderful success, didn't render proprietary competition unable to have there piece of the market share.

And even in markets with very dominant free offers like video consumption, programming languages or VCS, you can still make tons of money by providing a service around it. E.G: github, netflix, etc.

OpenAI has a good product, a good team, a good brand and a good moving speed.

Selling them short is a bit premature.

comment 3y ago · link · parent

Pip and npm are pretty much equivalent, but node_modules makes for an easier setup, while venv makes for easier tooling configuration.

comment 3y ago · link · parent

That should be a motivational poster or a tshirt

comment 3y ago · link · parent

Rust is the golden standard. python and js are on part with each other, they just have different problems:

- tooling and dependencies are hell in js

- bootstrapping is half the battle in python (see https://bitecode.substack.com/p/relieving-your-python-packag...)

1959.

Dark Matter Developers: The Unseen 99% (2012)(hanselman.com ↗)

133 points · by BiteCode_dev · 3y ago · 123 comments

comment 3y ago · link · parent

Well, as somebody who is currently coding a calculation service that will handle a 500 billions portfolio, I can tell you this: the specs require the data to be interpolated + extrapolated left and right. And they use that to estimate risks and take huge decisions. And when they don't have enough data to interpolate from, they create a synthetic instrument from other instruments that have enough data, and use that to estimate risks and take decisions.

The only thing that makes the whole jenga tower stable is the fact it's all interdependent. E.G: to diminish your exposure, you take a swap with some other entity, and if everybody do that enough, the risk is averaged on the entire economy.

So from the inside, it's worse than it looks from the outside.

And mind you, the client I do that for is one of the most serious in the business. They are extremely risk adverse, and they have been acting nothing but honestly, at least at the level I can observe.

They are so by-the-book we have once found an error in $FAMOUS_DATA_PROVIDER calculations, because we thought we made a mistake, and we looked for it until we realized the data we compared ourselves to was wrong.

So if they manage half a trillion by using excel FORECAST.LINEAR and Matlab interp, imagine what is done by JP Morgan.

comment 3y ago · link · parent

Briar can be banned, but for now it can't really be blocked though.

It's supposed to work in case the infrastructures are down by design.

So it can also work locally, meaning 2 Briar users can meet, and share messages from 1000 other users, and go on their way to propagate the update, without going trough the internet.

Now of course you can always enforce the ban, not through blocking, but through detection and punishment. However I doubt you want to spend that much resources for a single app.

comment 3y ago · link · parent

A serious better would short Bitcoin right before it happens.

1963.

PEP 647 – User-Defined Type Guards (2020)(peps.python.org ↗)

21 points · by BiteCode_dev · 3y ago · 1 comment

comment 3y ago · link · parent

True, there is no such thing as a concept been obvious to everybody.

Feyman has this great bit in his biography where he tackles mathematicians that keep saying in their demonstration that a step is trivial.

comment 3y ago · link · parent

Preferably with zero benchmark or one with a clearly artificial setup.

comment 3y ago · link · parent

The word does have some value though. I'd rather replace it by something that means "it's a popular way to do it", "it will help you to do it that way", or "it's recommended for beginners to use this procedure".

comment 3y ago · link · parent

That's a startup product you got there.

1968.

What's up in the Python community? – April 2023(bitecode.substack.com ↗)

129 points · by BiteCode_dev · 3y ago · 61 comments

comment 3y ago · link · parent

Prohibition on drugs didn't work, on alcohol didn't work, on prostitution didn't work.

I fail to see how it's an alternative to something that took a long time and cost a lot... but worked.

comment 3y ago · link · parent

Depends of what problem you are trying to prevent.

If you are trying to prevent most attacks from the internet, this is perfectly fine.

If you are trying to prevent a close person to gain access to your whole system, this could be improved.

comment 3y ago · link · parent

This and rear car seat belts are to me proof you can change the behavior of an entire society with a mix of punitive and educative actions if you stick to it long enough.

comment 3y ago · link · parent

Latest Huberman postcast episodes tend to discuss the opposite.

comment 3y ago · link · parent

Oh, got own by trolling again.

I still make this mistake after all those years.

comment 3y ago · link · parent

The guys falls from one story, flat on the concrete floor, gets hit by multiple cars, and absorbs the kinetic energy of dozens of bullets, and yet can still climb stairs and fight at the same time.

What are you talking about?

He is wolverine in JW4.

comment 3y ago · link · parent

Best hacker news post of the entire day.

Pure hacking.

People helping each others.

And I learned something.

comment 3y ago · link · parent

I did that for my mother.

She lost it anyway. TWICE.

As for bio-metrics they are not possible on all devices, and some software will require you to enter the master password once in a while even if it's activated.

But even if it was not the case, if you loose your device, you need to setup the new one, and for that, you need the master password or have backups.

Back to square one.

comment 3y ago · link · parent

Well, until we learn that there is a backdoor in their implementation, allowing any big actor to swoop in and either crack the crypto easily, have access to an unencrypted copy, or steal the passphrase.

Then we just have put all the things in the same basket for the convenience of mass spying, like we did with https, which any entity big enough can MITM by using their root certificates.

comment 3y ago · link · parent

Agreed.

I introduced several times password managers to my friends and family, and more often than not, it was a disaster.

Because eventually, either they set a very simple master password they reused elsewhere, defeating the entire purpose of the whole exercise, or they lost the master password.

The latter meant they lost a lot of accesses (unless they have backup discipline, which of course they can't have by nature) because there is no recovery.

So the alternative was for me to hold the backup passwords or recovery passphrase/seed. So much for making them independent.

Bottom lines: security sucks and ergonomics sucks because most users are not tech saavy enough to handle complicated cases.

Making E2EE even an option is nice, and the best you can do for now.

comment 3y ago · link · parent

Yes, and that really hurt the audience more than John Wick.

After that, they were no stakes anymore, because you knew anything could go and it would not matter.

Case in point: in the first (second?) movie, he get stabbed once, and it changes the whole rhythm of the film. You are thinking "oh shit, now everything he does will have to be performed with this wound". And the story matches that, his moves are not the same. He has to overcome this problem, and there is a lot of suffering. It makes you care such much about him.

In the latest one, he gets hit by 3 cars and you go "meh".

I did enjoy JW4, but not remotely as much as the first one, where we were counting bullets and it matched the known gun capacity.

Now it's just another dumb action block buster, albeit a superb one.

It's the tragedy of the common because most viewers will be happy with the DBZ effect taking over. So it's a commercial success. But it has lost part of what made the concept special.

People will remember the feeling of seeing JW1 forever, it set a standard. We compare things to it in the same way we compared things to the Terminator, Alien or the Matrix (twice Keanu? Really?).

It created its own category.

JW4 will just fade away.

1980.

Doit: The goodest Python task-runner you never heard of(bitecode.substack.com ↗)

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

1
656667
184