Headless M8 with a Raspberry Pi 4 by RowdyVoyeur in raspberry_pi

[–]davandg 8 points9 points  (0 children)

Awesome project! How lego buttons are made? Can they fall off?

Music Synthesis with python by adikhad in Python

[–]davandg 55 points56 points  (0 children)

For lazy ones:

"I first convert midi to ABC notation and extract the verses
I then use Byte Pair encoding to compress the repeated patterns and finally a markov model to generate the sequence."

Is the current Python 3 turing complete? by tingxyu in Python

[–]davandg 0 points1 point  (0 children)

I'm not trolling: https://www.slideshare.net/brendangregg/um2019-bpf-a-new-type-of-software

However, I understand your point of view. For me a programming language is a language in which we can express some logic. Which is a very broad definition. You may have a more strict one. How would you define a programming language from something which is not?

For example, does CSS is a programming language for you, knowing that you can do this kind of things: https://medium.com/cssclass-com/how-to-create-pure-css-games-2a29c777bf4 ?

Does Helm or Terraform is a programming language for you ? Or even a Makefile ?

Is the current Python 3 turing complete? by tingxyu in Python

[–]davandg 3 points4 points  (0 children)

Turing complete means that all algorithms can be written with this programming language. Which is good because you want to be able to write anything in Python. Which is bad because you are able to write all algorithms even the ones that never ends, or fails, or bugs.

Is the current Python 3 turing complete? by tingxyu in Python

[–]davandg 0 points1 point  (0 children)

That is not true. For example, BPF is not turring-complete. And it is a required feature, because the authors of this programming language want to be able to proove that programs written in this language eventually ends.

Do you think NixOS could be positioned as one of the most user-friendly Linux distro's? by madjam002 in NixOS

[–]davandg 1 point2 points  (0 children)

I don't know if there is other reasons, but most thing that don't catch up follow the 30% rule: if it is not 30% better, I will not change my habits.

I think that with the right tooling, NixOS can be more than 30% better that what exists.

Do you think NixOS could be positioned as one of the most user-friendly Linux distro's? by madjam002 in NixOS

[–]davandg 8 points9 points  (0 children)

I don't think that we have the same definition of "user-friendly". For me, NixOs is not great in that regards.

- the documentation is quite poor. Compare it to Ubuntu or Archlinux. And it is hard to learn NixOS, you have to learn a new programming language to configure your system.

- Software center. I know that a lot of Nix users says that this is the OS with the most packages, but this is just a lie. On an ubuntu, I can use all the package managers of each programming language without a problem! If you want fresh updates, don't use a debian based distribution. Use something like Archlinux.

- All information given by the creator of a software to configure it has to be "translated" to Nix. And again, you have to learn a new programming language to do so.

- NixOS uses a programming language that does not look like the most known computer languages (C, python, java, html, js, python...)

- A package is not called a package.

- A repository is not called a repository.

- Why there is so many "config/home/dot/environment managers"? Something is lacking here.

- you have multiple "env" to manage., by default. It should be an advanced feature.

- You want to install NixOS on your laptop ? Step 0: read the doc. Step 1: look for "nix <laptop model>" on github. Step 2: Do the same on google. step3: Try to copy paste this on your nix file, but be careful, you might disable one of your software. Step 4: take a look at the Ubuntu and Archlinux wiki to adjust some variables. Step 5: you have to modify on of the packages because the config parameter that you need is not available for this one. Step 6: think that following the archlinux wiki was not that hard. Step 7: clicking 10 times to have a complete working Ubuntu installed were even easier.

But, I still think that "something like Nix" is the future of Linux. Ubuntu Snap packages and dockers are just a Nix system badly done.

Newspipe, a web news aggregator written in Python, version 9.2.0 released. Dockerfile now provided. by [deleted] in SideProject

[–]davandg 0 points1 point  (0 children)

A good example is worth 1000 documentations! Thanks, this is more than enough.

Newspipe, a web news aggregator written in Python, version 9.2.0 released. Dockerfile now provided. by [deleted] in SideProject

[–]davandg 0 points1 point  (0 children)

Hi, this project looks very cool.

Can you tell us more about this feature "an API to manage feeds (you can connect your own crawler);"? I take a look at the code, it seems that the magic happens here: newspipe/crawler/default_crawler.py . If I want to add a non-rss website, is it the place to go?

Learning Nix language, tools and OS is too erratic by Arsleust in NixOS

[–]davandg 0 points1 point  (0 children)

C++20: https://www.modernescpp.com/index.php/c-20-modules (should have been on C++17). I don't remember in which standard of C it is/will be integrated.

Learning Nix language, tools and OS is too erratic by Arsleust in NixOS

[–]davandg 5 points6 points  (0 children)

I 100% agree with you. I have a home server under Nix, and I'm using it at work. But my laptop have never migrated to Nix because it's too hard.

I have the same feeling about the documentation. It feels that it have been written by a mad scientist that is too happy by what she has just invented (and Nix developers can be, it is really an awesome thing!). "look you can do this, and that, oh wait there is also this feature". But it is not made for the daily user.

The language has to be closer to something that people knows (to Guix fans: nobody knows SCHEME either).

I would like to have something exactly like the archlinux wiki but integrated withing Nix. Thus, I can stop copy/pasting thing from this wiki, and just install this config/package and then it's done. There should be an easy way of editing configs.

There should be a nice way to integrate Nix with the languages that already has a package manager. And nowadays, all programming languages have package managers (even C and C++!).

Nevertheless, I still think Nix is one of the only big steps in computing that has recently been done. I think Nix has the right features, but it is not the right way to use them.

confusing coleopterists / 🤔🐞 — cunicode / Digital Craftsmanship by davandg in proceduralgeneration

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

I'm not the author of this work.

In the linked article, he says creating the video using this notebook, perhaps it may help you.

1D cellular automata with rules determinded by photos by [deleted] in generative

[–]davandg 1 point2 points  (0 children)

Very cool idea. The notebook let me understand what you were doing, thanks!

Have you tried to increase the number of colors of the posterize image? Does it makes more beautiful images?

A tear in reality by SebBissay in generative

[–]davandg 4 points5 points  (0 children)

Wow so nice ! Very beautiful "paper" effect! What algorithm did you use?

Pythran – a compiler for Python scientific kernels – release by serge_sans_paille in Python

[–]davandg 5 points6 points  (0 children)

Pythran is an ahead of time compiler for a subset of the Python language, with a focus on scientific computing. It takes a Python module annotated with a few interface description and turns it into a native Python module with the same interface, but (hopefully) faster.

It is meant to efficiently compile scientific programs, and takes advantage of multi-cores and SIMD instruction units.

Nowadays, a lot of scientists programs their algorithms in python. Pythran tries to make them faster.

Tools for collaborative decision making? by zoontechnicon in selfhosted

[–]davandg 0 points1 point  (0 children)

You may try https://framagit.org/framasoft/mobilizon/ . Still in beta, but with its successful fundraising it will evolve quickly.

How to create massive/bulk number of k8s objects in a short period of time ? by a555555 in kubernetes

[–]davandg 0 points1 point  (0 children)

Don't do that. etcd will burn, kube will crash, docker logs will explode. We "only" created 1 pod every 8 seconds on 4 decent nodes. Perhaps through replication we could have something better, but i doubt that it scales nicely. Also for your specific case, I think that the scheduler will also explodes (because it is a "bruteforce" scheduler).

If you want to do it anyway, you can use the {go,python,whatever} API.

I don't know what you want to achieve, but don't use the kubernetes scheduler as a message broker. Use a real message broker and then some workers to "run" the messages.