Zelphir Kaltstahl

@zelphirkaltstahl
83 Followers
105 Following
920 Posts

Software developer from Germany.

Computer programming is an endless journey of learning. One never knows it all.

I am interested in computer programming concepts. Often those concepts are associated with specific programming languages or paradigms.

I like free/libre software. All things I code in my free time are free software. Usually I have many projects going on.

#programming #scheme #racket #python #gnu #technology #privacy #guile #emacs

repositorieshttps://notabug.org/ZelphirKaltstahl/
repositorieshttps://codeberg.org/ZelphirKaltstahl
websitehttps://web.xiaolong-hosting.com

Any thoughts on Ente, the non-evil alternative to Google Photos?

Finally downloaded all my stuff from Google Photos this week and now I'm on the hunt for a replacement.

#photos #photosharingapp #google #ente #googlephotos #privacy #bigtech #photobackup #opensource

I think I need some more reading to understand, how far this is from as efficient as it can be in a purely functional implementation.

What I know currently is, that I rely on a purely functional hash table, which is based on a purely functional balanced binary tree from the guile-pfds library. So that is one O(log2(n)) for each lookup, instead of O(1), but how much faster are more advanced algorithms mentioned on Wikipedia?

[3/3]

But this string distance function is a more complicated scenario, because the `min` case wants 3 arguments. It took me quite some time to transform it into #cps and I had to look at an example for a similar transformation for another function given by an LLM. But then I understood the pattern of this transformation and was able to transform the string distance function[1]

[1]: https://codeberg.org/ZelphirKaltstahl/guile-algorithms/src/commit/9f5c1b36e2a4dc4fae903b540305277ac3f13522/strings/levenshtein-distance/levenshtein-distance.scm#L55

[2/3]

guile-algorithms/strings/levenshtein-distance/levenshtein-distance.scm at 9f5c1b36e2a4dc4fae903b540305277ac3f13522

guile-algorithms

Codeberg.org

I have not used my #functionalprogramming brain muscle for a while. Yesterday and today tried writing a #Levenshtein string distance function in GNU #guile . Looked up the naive version on wiki. That came easy. But then I decided, that I wanted an FP solution, but with caching/memoization ... I knew from past experience, that I would probably have to use continuations for that. #TheLittleSchemer strikes again.

#programming #coding #scheme #algorithm

[1/3]

RE: https://todon.eu/@autonomysolidarity/116379235297247574

Maja zur heutigen Wahl in #Ungarn

#FreeMaja Wir denken an dich! Halte durch!

‚Sie erscheint wie ein „Showdown“ zwischen dem Amtierenden Viktor Orbán und seinem entflohenen Ziehsohn Péter Magyar. Je länger ich über diese Schicksalswahl und den im Ausland erwarteten Sieg des jungen Kontrahenten nachdenke, desto unbequemer wird es mir. Denn was spricht dagegen, dass sich das Gegenwärtige bloß mit neuem Gesicht verfestigt? An einen fast genauso wahrscheinlichen Sieg Orbáns zu denken, verweigere ich naiv, dies wäre ein Blick in ein bodenloses Glas Absinth; dystopisch.…‘

#Orban #Magyar #Ungarn #Hungary #Wahl

I desperately want to switch to Linux but I'm terrified of breaking my computer still. I'm sitting on a GTX 980 and Windows 10 (computer is old and I'm very poor).

EDIT: To clarify, I have used a bootable USB stick before to test Linux Mint. It gave me a good impression but was kinda laggy (10 year old USB ports aren't very fast).

Anyone out there willing to poke me in the right direction?

I am dependent on Discord for friends and Microsoft Teams (no matter how much I hate it) for many job search reasons. #linux #windows

In my #python project #xiaolongdictionary I had need for generating example data. I did not want to add more dependencies for that, so I took some time to create a function, that takes a TypedDict type and a dictionary of "constraints" to constrain the produced values and output a "factory", that can be called and outputs example values.

https://codeberg.org/ZelphirKaltstahl/xiaolong-dictionary/src/commit/9437f974e8f59a77e0052d26ee6cc10641052313/test/factories.py

It does not cover all the cases that one could imagine, but seems to cover all of mine.

#test #pytest #factory #programming #coding

xiaolong-dictionary/test/factories.py at 9437f974e8f59a77e0052d26ee6cc10641052313

xiaolong-dictionary - Xiaolong Dictionary — A GUI application to help you learn vocabulary of (probably) any language. It is written in Python using tkinter, and runs on GNU/Linux, Windows, and probably also MacOS.

Codeberg.org

So it's not based on standard type hints. Pydantic is a huge dependency. If they are advertising for the user to do things with standard type hints, then I don't understand it either: You get pydantic through the rear, as a dependency of FastAPI and I can use standard type hints by default, if I am not doing something very bad. What is the positive point here?

Compare that with Falcon, which has zero dependencies.

#python #falcon #fastapi

[2/2]

I just took a look at FastAPI and what all the hype is about. Having used API frameworks like Falcon before, I was wondering, what does it do more or different. Apparently one gets Swagger API docs out of the box and that's it. Then I took a look at the git repo and readme. It states: "FastAPI is a modern, fast (high-performance), web framework for building APIs with Python based on standard Python type hints." -- But in its dependencies is pydantic ... [1/2]

Der deutsche Staat möchte Airline-Konzernen die biometrischen Passdaten von Fluggästen übergeben. Beworben wird das ganze mit einer Zeitersparnis beim Reisen, die sich allerdings als minimal erweist.

"Bisher ist die Verarbeitung dieser verpflichtend erhobenen Daten ausschließlich der Polizei sowie Pass- und Meldebehörden vorbehalten. Mit dem Vorstoß würde erstmals die Privatwirtschaft Zugriff auf diese Informationen erhalten. Das Verfahren sieht vor, dass Fluggäste vor Ort fotografiert und biometrisch erfasst werden, woraufhin die Airline einen Abgleich mit dem im Pass gespeicherten Bild vornimmt."

Auch mit den digitalen Identitäten wie der EUDI wollen Staaten die privatwirtschaftlichen Zugriff auf biometrische und andere private Daten der Bevölkerung aus profitorientierten Gründen weiter ermöglichen.

https://www.golem.de/news/biometrie-daten-airlines-sollen-zugriff-auf-pass-chips-erhalten-2603-206936.html

#Überwachung #Biometrie #Deutschland #Reisen #Grenze #Kapitalismus #Antireport

Biometrie-Daten: Airlines sollen Zugriff auf Pass-Chips erhalten - Golem.de

Die Bundesregierung will privaten Fluglinien erlauben, biometrische Fotos von RFID-Chips im Ausweis auszulesen - für eine Minute Zeitersparnis.

Golem.de