12466
Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)
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
ORMs are a thing in Python but not as unanimously considered good in Go.
Читать полностью…
Not a single one. The configuration file is YAML, the record keeping is SQL(ite).
Читать полностью…
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.
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.
because "Hello" doesn't have memory address, but variable s have memory address
Читать полностью…
/channel/pythonofftopic/1258301
What do you think?
Or is initial optimisation grasping straws? 🤔
Long story short, strings are immutable. But sure you can something with pointers to strings.
Читать полностью…
Go in my opinion is the best programming language, it is very simple to work with and fast.
Читать полностью…
Why should one use go language. Is it good? I m just curious about it
Читать полностью…
New bot ? I can suggest something if we know what the exact problem is.
Читать полностью…
I thought sqlite would suffice, especially considering the previous "storage". It's also less maintenance. I love little maintenance.
Читать полностью…
With duckdb, we can query json with sql from what I worked with. I use it to query parquet
Читать полностью…
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.
Читать полностью…
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.
Читать полностью…
var s = &"Hello" //this does not work
//but
var s = "Hello"
var pointer = &s // this does
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.
Читать полностью…
I remember I tried this, it was giving me error, maybe something else was wrong 🤷♂
Читать полностью…
I like it. Any[1] other language would be working equally good.
[1] Some exotic languages excluded.
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.
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
Still Gitlab. And yes, but the Gitlab one is the only one that'll work.
Читать полностью…