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

If you have to own a specific device to exist administratively, I'd rather use something that:

- doesn't cost hundred of dollars

- doesn't live track me every seconds

- isn't holding also the rest of my entire life

- isn't a good target for stealing, ceasing or hacking

The wonderful thing about the payment card is that it's just that: a payment card.

It's small, cheap to replace, doesn't require a battery, doesn't share my GPS position at every second, can't show me ads, and if it gets stolen, I don't also lose my entire list of contacts and my browser favorites.

I can easily have many in my pocket, and only use one when I want. If I lose it, I can cancel it quickly, it doesn't affect anything else, and it's swiftly replaced.

It's also super simple to use, yet not that easy to abuse.

The phone is already too many things at once. Too many eggs on the same baskets.

comment 3y ago · link · parent

In eat the same food amount than my friends, but make a lot more money. 25% vat on pasta means nothing to me. Heck, I don't even look at food price.

But it means a lot to some of my friends with minimal wage.

comment 3y ago · link · parent

If someone went to set your house on fire, empty your bank account and kill your family, I'm pretty sure "your life wasn't destroyed nor hurt in anyway. It just changed" would not be well accepted by you.

comment 3y ago · link · parent

I also use a password manager. Yukikeys are a poor choice for authentication despite what the article says.

But they are good for 2FA, which is what I need them for to mitigate the risk of phishing, siphoning credentials from my phone or just stupidity on my part.

A robber would still need the password so I'm safe for my threat model, which doesn't include state actors.

But you are right about one thing: adding those keys to all the important account, and adding a new one when you lose one, is a pain in the butt.

comment 3y ago · link · parent

Also, how does the local biome react to it? Mushrooms and insects have strong symbiosis trees after all.

And as usual for complex systemw, wa don't have a way to reliably model the outcome at scale.

But again as usual, instead of taking precautions and testing this in isolation for 30 years, humans deploy in production.

comment 3y ago · link · parent

I have 3 keys. One on my keychain in my pocket, on in my bagpack, on at home. The chance of loosing all of them are really slim.

comment 3y ago · link · parent

Ideally people should be able to understand sentence from anyone without them trying to craft in a way that works for the person.

But they don't.

comment 3y ago · link · parent

Just like you can get better are searching things with google or explaining things to a human, you will be able to get better at getting what you want out of chatgpt.

I don't see why you find that controversial.

comment 3y ago · link · parent

The problem with that approach is that is very hard to verify that the output is consistent. If you get pure json, you can check it against a schema, and regularly check that chatgpt is not outputting BS (which is does easily). With turing complete code, it's way harder.

comment 3y ago · link · parent

We found that having pre-determined sections are indeed very useful.

One for context, one for rules, one for output format, one for input data, etc.

Also, you can as for a structured output (gpt spits out JSON fine) but you need to be super explicit about each field possible values and the conditions they appear in.

Templating prompts with jinja goes a long way for testing.

And you will need a lot of testing, if for nothing else than remove variability in answers.

It's funny because people keep saying gpt will removing all values from having writer skills, but being a good writer helps a lot with crafting good prompts.

comment 3y ago · link · parent

Indeed, like people stating something is a deferred or a future instead of promise, and then pointing out a minor difference in their approach that justifies a whole new taxonomy.

comment 3y ago · link · parent

Exactly. All those talks are always going to tell you the same things:

- limit side effects to your program boundaries

- abstract boundaries with utility functions

- mock program boundaries for integration tests in those utility functions

And then they pretend they didn't see the mock part.

comment 3y ago · link · parent

Alright, so you get numbers from a json file in a ftp servers, you use scipy.newton to perform root finding on it, but needs the number of steps to be outputted as well (which newton() doesn't return), and you will save the result in a postgres table.

All this should be send to a task queue, triggered by a call to your REST API.

Good luck with purity.

comment 3y ago · link · parent

As a side note, if you want an efficient python REPL and you don't need custom commands like offered in the project above, you can do the following:

- install ipython and rich

- set PYTHONSTARTUP to auto load whatever you like on start up

- call rich.pretty.install() in your startup script for a boosted repr()

- set %autocall to 1 to benefit from optional parentheses

- use ! to call shell commands

This covers most people needs for a non-custom REPL.

Still no reload() though, but python really doesn't like that.

comment 3y ago · link · parent

2.4 billions is not enough for such a project given the EU overhead in cost. Espacially since the deadline is 2027, so 2030 with delays really, that means 350 millions a year for paying satellite design, build them, send them to space.

comment 3y ago · link · parent

Antidote is a great commercial product for that, it's the best I could find in a the market and professionnally the ROI is fantastic.

But if you don't want or can't pay for it, gpt3 is actually also a good proof reader!

comment 3y ago · link · parent

That's zoomers in a nutshell.

comment 3y ago · link · parent

Useful doesn't mean it should be done. There are a ton of useful things for me I don't do because it's not right to do them.

Apparently as soon as a company becomes big enough, the line between convenience and ethical becomes very blurry.

comment 3y ago · link · parent

And this is why trio got it right, and why I think the task groups (nurseries from trio) can't arrive soon enough in the stdlib.

Because not only you must maintain a reference to any task, but you should also explicitly await it somewhere, using something like asyncio.wait() or asyncio.gather().

Most people don't know this, and it makes asyncio very difficult to use for them.

comment 3y ago · link · parent

Unfortunatly most stdlib don't have a peg module, and peg libs are complicated.

comment 3y ago · link · parent

And the community and philosophy/culture the languages come with seems to promote that as well.

comment 3y ago · link · parent

Gpt is the equivalent of the calculator but for words.

You don't expect your calculator to prevent people to make morally wrong calculations like quantities of alcohol in a molotov cocktail or uranium in a nuclear bomb.

Gpt has no more morality than a calculator becauqe that's what it is, and we should not have unrealistic expectations about it.

comment 3y ago · link · parent

Very american reaction: reading too much into text messages and expecting superficial over friendliness.

That's not a gen z thing. That's an entitle US social media projection.

comment 3y ago · link · parent

I was expecting this threads to turn into a fire dumpster, and instead it turned into exactly the kind of debate I read HN for.

comment 3y ago · link · parent

Well, this means that content curators and good content producers will gain in value.

The hard part will be to stand out, and to create things that AI can't easily reproduce, such as linking content to a service.

I think it's a good news for actual high quality original creator: they will rise to the sun.

comment 3y ago · link · parent

If it were the case, there would be no society with drugs and polyamory. Yet there are mormons, muslims, alchohol and cigarets.

What you call anti-social, some other group call it life. And vice versa.

A christian taboo or an american indulgence is not a universal construct. The same construct is not event stable throught time and extremely diverse and functioning social configurations have existed along history. Also, there is such thing as one that was so good that it lasted forever. No reference point to consider a standard.

However, they are local norms and ignoring them will cause contextual mismatch. So indeed, an austistic person may fail to appreciate this and only see the arbitrary aspect of it, and cause trouble.

comment 3y ago · link · parent

I do thay for my desk: got a small radiator next to my chair, a blanket above us.

Warm all day.

comment 3y ago · link · parent

So any transformation thay requires accessing something else than the data must be done in sql? Connecting to a ftp, parsing a yaml file, getting data from a rst api? And then text, date and maths opeartiond also in sql?

Yeah, no.

Sql is good at look up and filtering, but not for linking heterogenous sources and massaging data.

comment 3y ago · link · parent

Well, if you work for facebook, ethics is not your priority in the first place.

On the other hand, if I ever decided to throw mine on the toilet and work for a company that manipulate people, and perform mass spying on them, then I would go all the way and just do things like this.

comment 3y ago · link · parent

This is cool, but both safari and firefox will not implement it:

https://usefulangle.com/web-updates/post/80/firefox-decines-...

I assume this is because of security concerns.

1
757677
184