pythonofftopic | Unsorted

Telegram-канал pythonofftopic - Offtopic

12466

Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)

Subscribe to a channel

Offtopic

Yup. JSON type. I don’t have it locally.
Dbeaver had this duckdb, when I googled I saw that it could wrangle parquet, json files with sql. So I started using that

Читать полностью…

Offtopic

As little as possible.

Читать полностью…

Offtopic

ORMs are a thing in Python but not as unanimously considered good in Go.

Читать полностью…

Offtopic

We recently had orm optimisation run

Читать полностью…

Offtopic

Not a single one. The configuration file is YAML, the record keeping is SQL(ite).

Читать полностью…

Offtopic

That just decreases the input of useless data. The core data layer issue remains. Like loading big json into memory.

I was thinking of duckdb. But that’ll help with parsing speed/memory usage. It’ll be efficient.

But the ever growing size of JSON will take space when we load it. Down the line, it’ll be in terra-bytes. And loading that in one go, will need memory.

Читать полностью…

Offtopic

The suggestion is:
Some ban reason allows for user data to be not stored. If user is banned with that reason: no upsert/insert required

Like if someone is ban spamming, that user record don’t need to be saved.

Depending on group, this rule expands.

Читать полностью…

Offtopic

because "Hello" doesn't have memory address, but variable s have memory address

Читать полностью…

Offtopic

/channel/pythonofftopic/1258301

What do you think?

Or is initial optimisation grasping straws? 🤔

Читать полностью…

Offtopic

Long story short, strings are immutable. But sure you can something with pointers to strings.

Читать полностью…

Offtopic

so can you change strings using pointers?

Читать полностью…

Offtopic

Go in my opinion is the best programming language, it is very simple to work with and fast.

Читать полностью…

Offtopic

Why should one use go language. Is it good? I m just curious about it

Читать полностью…

Offtopic

New bot ? I can suggest something if we know what the exact problem is.

Читать полностью…

Offtopic

Oh, Gitlab is something different...

Читать полностью…

Offtopic

you can do the same in postgresql also btw

Читать полностью…

Offtopic

I thought sqlite would suffice, especially considering the previous "storage". It's also less maintenance. I love little maintenance.

Читать полностью…

Offtopic

With duckdb, we can query json with sql from what I worked with. I use it to query parquet

Читать полностью…

Offtopic

I see. You changed it to sql.

Читать полностью…

Offtopic

No, there won't be any JSON files anymore.

Читать полностью…

Offtopic

Oh, I think I get it. You try to save storage space. But the issue is the format of the old bot, not the format of the new bot. I'm also thinking about saving storage space, but at a different dimension. I'm thinking about whether or not to persist all messages. Or if images should be part of that and where I'd put them if they were.

Читать полностью…

Offtopic

I'm not sure what the suggestion is, but I'm generally leaning towards keeping more information. Like the content of the message a person has been banned for.

Читать полностью…

Offtopic

var s = &"Hello" //this does not work
//but
var s = "Hello"
var pointer = &s // this does

I don't understand

Читать полностью…

Offtopic

https://pkg.go.dev/flag should be educational. The first example takes a pointer to an int to change its value. And it's standard library.

Читать полностью…

Offtopic

"change" is very broad.

Читать полностью…

Offtopic

I remember I tried this, it was giving me error, maybe something else was wrong 🤷‍♂

Читать полностью…

Offtopic

I like it. Any[1] other language would be working equally good.
[1] Some exotic languages excluded.

Читать полностью…

Offtopic

We are aware of the technical debt of the current bot. Also, it's not the time to suggest any features or ideas, since we don't have it yet.

And we have a good idea of what it needs to be able to do to replace Doragonsureiya eventually.

Читать полностью…

Offtopic

I’m thinking about optimising what initially go in.

It’s purely data layer issue. Loading of it and querying

Basically, there are rules which are deterministic reason for user to be never able to resurrect.

For example, non English, spam, piracy

Читать полностью…

Offtopic

Still Gitlab. And yes, but the Gitlab one is the only one that'll work.

Читать полностью…
Subscribe to a channel