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

Just an aside, but I've noticed a lot of popular video trends among the younger generation revolve around watching somebody you don't really know, doing things I would I've done with friends.

Reaction videos, eating things, hanging out and making jokes, making a stupid contest, trying some new experience...

It's like there is an entire part of the children/teen population that have such a bland life they feel good while watching somebody else living it.

Just read my comment and realized how "old man yells at cloud" it sounds, but hey, maybe someone will have something interesting to answer.

comment 3y ago · link · parent

Web UI are amazing to build for, and having the browser for free is fantastic, but if a dev manage to get the essential features without web tech, the end result is usually better. It's most of the time snappier and better integrated.

The problem is it's not guarantee, and it's way more expensive and hard.

Hence electron being so popular.

comment 3y ago · link · parent

Great articles, which lead me to check out warps, which looks like a product I would use and consider paying for the pro features. Kudos

comment 3y ago · link · parent

Building an UI is hard, even with language with good support for it. Web ui are hard. Python ui are hard.

comment 3y ago · link · parent

Don't why you have been downvoted, while there are famous dev outside of the US, american identity and marketting does sell better than the german one.

comment 3y ago · link · parent

That's exactly my point.

comment 3y ago · link · parent

So after graphql, micro services, nosql and serverless, the SPA + "libs not framework" crowd join the "woooops!" club.

Ignoring the noise is really becoming a key skill to survive as a programmer.

comment 3y ago · link · parent

Why do I hear so much about htmx and so little about unpolly, which seems everything htmx promise but with additional high level primitives for the common task?

comment 3y ago · link · parent

Unlimited fully tailored netflix and steam.

comment 3y ago · link · parent

Yes.

comment 3y ago · link · parent

They... don't ?

I don't know where the person is studying, but it's not a general phenomenon.

I have still students around me, and the number of years don't seem to make them more or less bitters.

comment 3y ago · link · parent

Give it 2 years, it will happen, and it will make billions.

In 5 years, unlimited interactive NSFW video games that will be personalized and remember you.

comment 3y ago · link · parent

And that's why.

comment 3y ago · link · parent

Xcom 2 make hits more likely the more you miss because fair proba was frustrating the players when they missed a shot with 95% of success.

So I'm not sure you are right.

comment 3y ago · link · parent

You don't need it to be fair, you need it to be fun. Most video games play with randomness so that the distribution serves the gameplay, sometimes bypassing completely the RNG to balance frustration/satisfaction.

GPT can learn do to that: not providing true randomness, but the illusion of it to serve the game.

comment 3y ago · link · parent

When you think of the content of the books in Baldur's Gate and the sheer amount of human hours poured into something just to give background to the game, this is going to save indeed a lot of time.

But on the other hand, just like open world was a terrible curse with hundred of games feeling empty, I'm afraid we will see a wave of games with a lot of generated but eventually uninteresting content because this is so easy to do.

After all, good content is coherent, and filtered. It's not just about producing a lot, it's what you don't put in the game, and what you do to glue things together.

I sure GPT will eventually be better at it than humans, but for now, having a human veto is necessary to have a good noise/signal ratio and because GPT is "good enough", being lazy is tempting.

But yeah, I can confirm GPT4 is already quite good at it and will only improve from this point.

This is going to be very interesting years.

Edit: I just made it write a full video game scenario, using BG as a competitor for basis. At first it was average, but with directions, it refined it and became quite good. Some kind of steam punk guild called the Navigators reading the wind, living in floating islands and a girl rediscovering the earth bellow the clouds and rebuilding old aliances with lost civilizations, plus a politician leader trying to prevent that and even a mentor to help her. Not bad.

I would play this, and even read it.

You can see the inspiration from "The Pillars of the Earth", "Gunnm", "Baldur's Gate" and "nausica" proving again it's mostly assembling known stuff.

But a cake is mostly assembling known stuff and it's still good. The "last of us" is just a good take on something that has been done a thousand times.

So why not?

2147.

PEP 603 – Adding a frozenmap type to collections(peps.python.org ↗)

3 points · by BiteCode_dev · 3y ago · discuss

comment 3y ago · link · parent

Another one bites the dust

Another one bites the dust

And another one gone, and another one gone, Another one bites the dust

comment 3y ago · link · parent

You would be surprised.

I know a government agency storing their entire list of all credentials for every one of their IT services and servers in an .ods file.

I introduced them to password managers, but it was too hard for them. SSH keys? Too hard.

I managed to make they bite the bullet of using keypass.

Then they lost their master password.

And went back to the .ods file.

So I can buy it.

comment 3y ago · link · parent

At first I didn't get it.

I never have a hard time to write things with words for the average stuff, which is what the AI is good at. It's always faster for me to type it. And for the hard stuff, AI cannot help (yet).

For programming having help for the average stuff saves me time. But for words? That's my natural way of expressing thoughts, why would I need speed up with the most natural thing in the world?

But then I saw some of my friends use it, and I understood.

Most people suck at writing.

In fact, they suck at communicating in words in general. I started to pay attention, and realized that most of the discussion is not even proper French or complete sentences most of the time. The tone, the gestures, grunts and context are all used by every day people to express essential basic ideas.

And we rarely express anything beyond basic idea in days to days activity, no matter how smart we think we are, life is mostly mundane stuff.

And unlike me, they didn't have to write a ton of paperwork in their life, or articles, they have no training.

They struggle with the medium like a fish trying to climb a tree.

For them, GPT is a savior for any formal writing task.

comment 3y ago · link · parent

Since this is DARPA, this shows they are interested in rust, which mean we will probably have strong toolchain certifications coming up eventually, making rust even more fall in the category of "the language you want to use for serious stuff".

comment 3y ago · link · parent

If you have a secret to use in your python program, such as a password or an API KEY, you can use keyring to store it easily and securely.

This uses Keychain on macOS, Freedesktop Secret Service/KWallet on linux and Windows Credential Locker on Windows. So decrypting is managed by the OS usually it's done when the user log in or at first access, and is transparent to your program.

This avoids a pitfall I see too often where people hard code their password in their script because it's the simple thing to do.

Keyring is nice because it's only an inch more effort than that. It's the best ratio "ease of use" / "security" there is. You manipulate it like a key-value store, don't bother about encryption, prompting the user for decryption or anything. And you don't risk committing your secret or letting linger at the wrong place. Plus you benefit from your OS security team effort.

You can also use "os.environ" to read the key from env vars in production and only use keyring if it's not there.

2153.

Python Keyring Library(pypi.org ↗)

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

comment 3y ago · link · parent

Can confirm. This week a physicist friend came by to give it a try. He asked some questions related to his domain. I was fully expecting GPT to bullshit its way through it, from experience with GPT 3. But to my surprise, and to his, it got quite decent answers.

comment 3y ago · link · parent

Rather someone in the 80 changing the numbers on your phone book so that you dial a wrong number.

comment 3y ago · link · parent

Instead of freaking out about it, it would be more fun to do a similar joke to him. What's fair is fair.

comment 3y ago · link · parent

Is it because the phone is very intimate to you, or because of the implications?

comment 3y ago · link · parent

Sounds like a good joke to be of either side on to me. No harm done.

comment 3y ago · link · parent

And despite Epic having great games, this is why I have not installed it or paid for any of their product so far.

Also why steam is still the leader despite having a terrible UI: they have been very good to their customers.

comment 3y ago · link · parent

Since this is highly incompatible with most python ecosystem right now, may I plug nuitka?

https://nuitka.net/index.html

It's a compiler for python code that can create stand alone executables, and up to 4 times the speed of the initial code.

Best of all, it's extremely reliable, with a high level of support of event the tricky things like the scientic and gui stacks.

1
717273
184