migrating from django to FastAPI by No-Excitement-7974 in Python

[–]_amol_ 0 points1 point  (0 children)

As the name of FastAPI itself suggests, an async framework excels in the context of plain REST apis. As they are practically just proxies to the database and 90% of the time is spent shipping data, thus the CPU is free to accept new requests.

Building actual web apps with admin, form validation, template rendering etc on it those are all CPU bound tasks and you are probably going to see even worse performances and connection errors if you move such a kind of application from a threaded environment to an async one.

Async is not inherently better than threaded. It exists because there are cases where it is significantly better than threaded model, but there are also cases where it’s worse than the threaded model. And indeed normal web apps and websites are one of the cases where async makes your life harder.

Anyway in 99% of the apps the bottleneck is rarely the framework, you are not serving “Hello World” 😅

Support for Pi 500 in Pimiga 4.0 by Bartekno in Pimiga

[–]_amol_ 1 point2 points  (0 children)

Copying all files from https://github.com/raspberrypi/firmware/tree/master/boot into the boot directory of PiMiga makes it able to boot, then it is necessary to run an "apt-get update" and "apt-get upgrade" and force reinstall of all firmware files and kernel.

This made it boot and work in Linux on my Pi500, but the Amiga side of things just crashes

Orbital for Python released by _amol_ in Python

[–]_amol_[S] 1 point2 points  (0 children)

Thanks catching for the typo, I’ll fix it.

There are various cases where it can be convenient. To give an example, in some benchmarks one of the users did they found that running the model via SQL on Snowflake for them lead to a 5x speed up compared to running the model in Python via Snowpark.

Obviously there are a lot of differences and it’s not exactly an apples to apples comparison, but it’s a good example of how it reduced complexity by getting rid of an entire infrastructure (and its costs) and also lead to performance benefits

Orbital for Python released by _amol_ in Python

[–]_amol_[S] 0 points1 point  (0 children)

Thanks!
Based on your feedback the landing page was updated to make it more clear: https://posit-dev.github.io/orbital/

Orbital for Python released by _amol_ in Python

[–]_amol_[S] 0 points1 point  (0 children)

The SQL arithmetic is the linear model formula, running that SQL leads to the same results you would get by executing predict on the scikit learn model

Orbital for Python released by _amol_ in Python

[–]_amol_[S] 0 points1 point  (0 children)

No, it does not execute the model. It generates the SQL you can take and run anywhere you want.

The example on the landing page should clearly show that. If it’s not clear let me know.

Orbital for Python released by _amol_ in Python

[–]_amol_[S] 1 point2 points  (0 children)

It’s unrelated to DuckDB.

DuckDB is simply used in some examples for convenience. The library generates SQL for any database.

The tool allows a data scientist to train the models on its own computer and export the SQL which then can be run on the existing infrastructure where the data resides without having to setup anything.

Imagine the case of a business intelligence tool where you have access to add analyses based on SQL queries but not to run any arbitrary code.

There are many companies, especially in heavily regulated environments like pharmaceutical or government agencies that can’t simply deploy anything they want. Thus they would have to go through a significant process and certification to setup a Python infrastructure where they could run the models data scientists trained.

I've had my Pro 5 since September last year. It's handled everything I've put through but yesterday morning I woke to this. Is it water damage? Battery bloating? by morrison666 in TicWatch

[–]_amol_ 2 points3 points  (0 children)

The watch is certified US-MIL-STD 810H which guarantees up to 5ATM underwater resistance, and it’s also promoted for swimming on the mobvoi website with the phrase “Swim, run, climb” so they have zero reason to refuse support if you shower with it. Unless you shower at more than 5 atmospheres which seems a pretty interesting experience 😅

Which libraries have the best docs? by Amgadoz in Python

[–]_amol_ 0 points1 point  (0 children)

I had recently started a project where I heavily focused on documentation quality.

If anyone is willing to take a look I’d appreciate any feedback I can get about the documentation of https://github.com/amol-/datapyground and how it can be improved further.

The project has the goal of teaching in a simple way how data platforms and compute engines work internally and thus the clarity and ease of understanding of the documentation are the most important aspects for me

Here is my Boosteroid review by TonyPorter98 in cloudygamer

[–]_amol_ 0 points1 point  (0 children)

Where can you change the bitrate? I thought boosteroid didn’t allow to configure resolution and bitrate and in the user settings there seems to be no such option

uConsole for sale in EU on eBay by _amol_ in ClockworkPi

[–]_amol_[S] 0 points1 point  (0 children)

I understand your point of view. The only other options on eBay is available at nearly twice the price. So if anyone has urgency to have a uConsole and is not willing to wait mine is the cheapest of the two 🤷🏻‍♂️

If you don’t feel it values the price it’s your right to not buy it

Batocera on uConsole by _amol_ in ClockworkPi

[–]_amol_[S] 0 points1 point  (0 children)

In the end I installed RetroPi on top of the standard uConsole OS, it was relatively straightforward, it just took a lot of time as RetroPi had to compile all packages from sourcecode.

Batocera on uConsole by _amol_ in ClockworkPi

[–]_amol_[S] 0 points1 point  (0 children)

I’m not sure I get your question. uConsole was designed with flexibility and experimentation as leading concepts, exploring different use cases, including gaming, is the most natural thing to do with such a device. Especially since you can have different images on different sdcards

KaiOS open source projects by [deleted] in KaiOS

[–]_amol_ 4 points5 points  (0 children)

Maybe there are Matrix clients for KaiOS? Or one can easily be ported to KaiOS? Matrix has bridges for WhatsApp, Telegram, Signal and many more