Show newer
timorl boosted

Good news as EU formally adopts Ecodesign measures:

- As of 2021, all TVs, monitors, fridges, freezers, washing machines, washer-dryers, dishwashers and lighting products on the EU market will have to meet minimum repairability requirements
- Manufacturers will have to ensure easy disassembly with commonly available tools.
- Spare parts and repair information will have to be made available to professional repairers for a minimum number of years.

bbc.co.uk/news/business-498848
coolproducts.eu/news/eu-to-pul

timorl boosted

Floating-point rounding errors as an energy source: In one simulation, robots learned that small rounding errors in the math that calculated forces meant that they got a tiny bit of extra energy with motion. They learned to twitch rapidly, generating lots of free energy that they could harness. The programmer noticed the problem when the robots started swimming extraordinarily fast.

aiweirdness.com/post/172894792

My friend is a very good floutist and she just uploaded some music I really liked, so here: youtube.com/watch?v=lfaH76cHvp . Somewhat instance-appropriate, her project is called Flute Infinity: www.fluteinfinity.com .

timorl boosted

Just re-upping this offer: because being comfortable with git is a barrier to entry to many FS/OSS projects, and because I care deeply about lowering those barriers, I will tutor anyone who asks for help with git, and/or connect them with any mentor(s) they might prefer.

I'll do this while I put energy and work into making the tool more approachable, and into making better tools and learning paths.

Boosts gratefully appreciated.

#gittutors

Show thread
timorl boosted

I want to propose a programming challenge. This could be fun for beginners and experienced programmers as well. It is language agnostic. It might even be more about community than the programming part itself. The challenge itself should not take more than an hour. But it shouldn't be so simple that you don't have to put in a little effort. I will propose the first one, and those who participate are welcome to propose the next and as we can agree on it we can go off and knock it out.

Once you see other people's results you can modify your own, or even propose something to make someone else's better or faster or fix a bug that you find.

These can become toy programs for you to have around for testing concepts, and helping to try out other languages.

If you are interested or know someone else who might want to play too share this with them.

I guess we can use this thread to get started, and I guess i am supposed to use a hashtag for something like this so how about

I will try to work in Python at least in the beginning but you are welcome to work in whatever you are comfortable with.


First challenge:

"Ninety-nine bottles of beer on the wall"

Generate the whole song from "Ninety-nine" to "No". The output should look like :

Ninety-nine bottles of beer on the wall.
Ninety-nine bottles of beer. Take one down,
pass it around... Ninety-eight bottles of beer.

(You know what the middle looks like)

Two bottles of beer on the wall.
Two bottles of beer. Take one down,
pass it around... one bottle of beer.

One bottle of beer on the wall.
One bottle of beer. Take one down,
pass it around... No bottles of beer.

I won't put too many specifics on how you get there, but the output should be words, not numerals :) Try to write clean, maintainable and visually understandable code.

Let see if I am alone or anyone wants to play along. :)

Here is my first attempt total time 48 minutes.

git.qoto.org/Absinthe/ninety_n

@Merristasis Oh, and of course if you'd like some help with the transition feel free to message me here. :>

@Merristasis There are two very different financially approaches to veganism, you either eat heavily processed food (like all the meat substitutes and whatnot) or not. The former is much more expensive, but the latter requires more time for meal preparation. If you go with the latter you should probably still drink some fortified plant milks, which are a bit expensive, but their cost should be offset by the lower cost of other food (pulses as a source of protein mainly). Other than that just remember to get some B12 supplements, and possibly D too (although you should've probably taken the latter regardless of your diet, if you are in non-southern France).

I also second @yojimbo 's opinion, you can do this in steps to easen the burder (although I quit cold turkey and it wasn't that hard either).

@MrJimmy Duuh, it's all the math there is, have you guys not heard about Gödel numbering?

@myconidiosyncracy Dune is brilliant, it's one of the two books that temporarily altered my basic perception of reality. For a couple of weeks after reading it I was struck with awe everytime I saw a body of water.

The drawback is that the book conveys the aridity of the world so well, that I don't remember almost anything else about it. There was some psychodelic drug and something about not sitting with your back to the door, but I remember literally nothing else.

timorl boosted

Great online book "Programming Language Foundations in #agda" written by the marvelous Phlip Wadler plfa.github.io/

@Shamar Ugh, that reminds me of the time when I was trying to work within the Polish Pirate Party. Most of the people were nice and had good ideas (duh), but one guy in particular was very disruptive to any constructive work. Add to that problems with being a really small party, so the biggest portion of our workhours went towards maintenance stuff, and I eventually gave up and left.

Saddest part to me is that the disruptive guy was possibly the most enthusiastic about the party, but his extremely cynical worldview make him argue for very strange ideas about how to run the party. They kept not working, and no one had any time left to pursue other ideas, so it was a mess. :/

@freemo I'm not sure how to see the posts there without logging in, but based on your description I guess they are TERF's: en.wikipedia.org/wiki/TERF . Key quote: "These feminists, mainly second-wave feminists, perceive trans men as "traitors" to womanhood and trans women as "infiltrators"."

This seems like a pretty natural stance for radical feminists that consider gender to be based purely on non-brain biology, but it still makes me a bit sad.

@mngrif I'm using it and it's fine for casual browsing, but I kind of suspect it's missing some features I don't even know about. Also, it doesn't show custom emojis, not sure how normal that is for an app.

@freemo Ah well, I suspect you will post any public progress here, so I will stay tuned. :>

@freemo So what is the blockchain stuff you are working on?

Feel free to ask me about Aleph, although I'm under an NDA about some things that are not public. Thankfully, this pertains mostly details of the implementation that is currently being developed.

solution, excessive smugness 

@freemo

The jars with papers inside represent a permutation, every piece of paper points to the next jar in the permutation, say we number the jars from left to right. As all permutation, this one can be represented as a collection of cycles. Two key insights about these cycles:
1. Every cycle containing the jar numbered $k$ neccessarily contains the piece of paper with $k$ written on it, otherwise it wouldn't be a cycle.
2. At most one cycle has length greater than $50$.
With these insights the solution is simple. Your assistant looks at the whole permutation, and if any of the cycles has length greater than $50$ they switch the pieces of paper to break the cycle in half. They do nothing if there are no big cycles. Now you get told the number you are looking for and go for the jar numbered with it. Afterwards just trust the pieces of paper to lead you to the correct jar.

Thanks for this puzzle, solving it gave me a very needed confidence boost. *smugness incoming* Especially since I didn't even need to use paper.

timorl boosted

should make everyone realise how important Freedom is worth fighting for.
Look at the Hong Kong Youth, knowing they could be jailed for 10 years for so called "rioting", knowing that the PRC millitary could invade with/without the request of the HK government and slaughter them all.
That is why we shouldn't give up on basic rights just as Privacy, Freedom of Speech etc. because it is what matters the most.

@freemo With pleasure, although my response times withing the next couple of days might vary wildly. It should get better around Monday.

Aleph released the proof-of-concept implementation: gitlab.com/alephledger/proof-o ! I helped writing it, so this is a bit of a brag.

Transaction validation time was ~6s with 256 machines all around the world, so pretty nice. Since then, we have been working on a proper implementation in Go (this one I am even more involved in), but it'll take a while before it's published.

@freemo what is your reasoning behind setting up a discourse instance? I thought these work best when focused on a specific topic, and I cannot see what this topic would be in QOTO's case.

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.