[-] Ephera@lemmy.ml 1 points 5 hours ago

Very interesting, but it's wild to me that needles made from silk proteins are the first choice here. Surely there's gotta be some plant protein or cellulose or such that's a lot cheaper.

I do also wonder, if they looked at bringing out melatonin onto the fields before the harvest, in hope of the plants picking it up via their roots.
The article makes it sound like they had a solution (microneedles) in search of a problem, so maybe they didn't even really look at other solutions. Which is fine, other studies can do that, but yeah, we should do that.

[-] Ephera@lemmy.ml 3 points 1 day ago

Yeah, I also thought it was a meme and used purely in derogatory form, until I learned that the term was actually coined by a co-founder of OpenAI...

[-] Ephera@lemmy.ml 3 points 1 day ago

But like, does that happen often for you, that you need a piece of code that's gonna be thrown away?

I always feel like if code exists, it's not gonna be thrown away, so it's a good idea to make it maintainable. But I do probably have somewhat of a bias...

[-] Ephera@lemmy.ml 1 points 1 day ago

I always find this particularly apparent with open-source games, as there's hardly any rules for how to implement those. Usually you want games to be fun. Maybe you can agree on a genre. But from there onwards, most decisions are rather arbitrary and often decided based on gut feeling, which makes them difficult to discuss.

Commercial titles do struggle with that, too. That's why there's a bazillion Call Of Duty parts, each with merely incremental changes.
But on the open-source side of things, it often feels like for each game with a unique design, there's a dozen copies/reimplementations of commercial titles.

[-] Ephera@lemmy.ml 9 points 1 day ago

According to Wikipedia:

The Israeli Ministry of Defense is Microsoft's second largest military customer.

https://en.wikipedia.org/wiki/Criticism_of_Microsoft#Israeli_military_support

[-] Ephera@lemmy.ml 21 points 3 days ago

One thing to understand here is that it mostly depends on the "desktop environment", which is basically the GUI of the system. (Imagine you could have the Windows XP GUI on a Windows 11 PC. Or the macOS GUI on a Windows 11 PC.)

Distros intended for desktop use will typically come with a certain desktop environment by default, so to some degree, you can talk about the distro, but yeah, there's just gonna be a strong correlation with their default desktop environment.

To my knowledge, GNOME and (recent/Wayland versions of) KDE have good support. Most comments here imply these two desktop environments, so for example Ubuntu, Fedora and POP!_OS are typically GNOME, whereas Kubuntu and Nobara are typically KDE.

Some folks here also mention Linux Mint and LMDE working well, which use the Cinnamon desktop environment, so I guess that works well, too. Cinnamon is somewhat based on GNOME.
Well, and Elementary OS's whole shtick is its Pantheon desktop environment, which is also based on GNOME.

So, basically, as Elementary's Pantheon is its own thing, there's no guarantee that it'll work, but I would not be surprised.
As someone else already said, you can use a Linux Live USB to try it out before installing. You should be able to just follow along the installation instructions of Elementary OS and shortly before you actually install things, you should find yourself in Pantheon and can try it out.

[-] Ephera@lemmy.ml 8 points 4 days ago

I mean, it's kind of the whole point of this article, to explore why they felt it was a good idea to try to create a programming language. Bashing other languages and coming up with reasons why none of the existing ones would do, is kind of the whole point. And they do self-reflect and admit that their reasons were ultimately not good enough from a purely objective point of view.

[-] Ephera@lemmy.ml 21 points 5 days ago

I mean, B does make some amount of sense, if you realize that it's supposed to give you the maximum among the parameters (so you'd normally call it as Math.max(5, 3) === 5).

Well, and you can call that with zero parameters, because you can spread an array into it, which might have zero length. And then given these conditions, and if you don't want to throw an error, then -Infinity is kind of the least bad remaining option, as it's likely to generally work with the rest of your logic.

[-] Ephera@lemmy.ml 8 points 5 days ago

Only a plaid shirt.

[-] Ephera@lemmy.ml 8 points 6 days ago

Damn, those pipes look useful. Can use them to send stdout from one command to the stdin of another, as you'd expect. But you can also easily send stuff to stdin from Rust code (and of course, easily read from stdout and stderr, too): https://doc.rust-lang.org/stable/std/io/fn.pipe.html#examples

37
submitted 1 month ago by Ephera@lemmy.ml to c/linux@lemmy.ml

Screenshot showing how the directory last-modified timestamp changes each time a file underneath it is added, renamed and then removed.

I'm currently working on a build tool, which does caching based on the last-modified timestamp of files. And yeah, man, I was prepared for a world of pain, where I'd have to store a list of all files, so I could tell when one of them disappears.
I probably would've also had to make up some non-existent last-modified timestamp to try to pretend I know when that file got deleted. I figured, there's no way to ask the deleted file when it got deleted, because it doesn't exist anymore.

Thank you, to whomever had that smart idea to design it like that. I can just take the directory last-modified timestamp now, if it's the highest value.
In fact, my implementation accidentally does this correct already. That's how I found out. 🫠

37
submitted 2 months ago by Ephera@lemmy.ml to c/potatoism@lemmy.world
47
submitted 2 months ago by Ephera@lemmy.ml to c/rust@lemmy.ml
52
submitted 3 months ago by Ephera@lemmy.ml to c/rust@lemmy.ml
127
Argh chives (lemmy.ml)
submitted 4 months ago by Ephera@lemmy.ml to c/memes@lemmy.ml

Bought a pot of chives and every time I look away, it seems to grow multiple centimeters in size. I have to give it a haircut almost daily...

850
IEEE 754 (cdn.fosstodon.org)
submitted 4 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml

~~Stolen~~ Cross-posted from here: https://fosstodon.org/@foo/113731569632505985

211
submitted 4 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml
139
submitted 5 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml

The rendered output looks like this:

It even sounds half-decent.

I would also like to congratulate German for having the most fucked up notation system, according to the LilyPond documentation. 🙃

Source code

9
Cyanide and Door Business (sh.itjust.works)
submitted 5 months ago by Ephera@lemmy.ml to c/dadjokes@lemmy.world
242
submitted 5 months ago by Ephera@lemmy.ml to c/linux@lemmy.ml

If I'm interpreting this correctly, many MP4 patents are going to expire next year. 🎉

245
submitted 6 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml
88
submitted 7 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml

So, this uses a macro, but if you're thinking anything is possible with a macro, it's actually not in Rust. The input does still need to parse as valid Rust tokens.

Which means the authors asked themselves at some point: Is the Rust syntax a superset of the Python syntax?
And well, it's not. In particular, some Python keywords will just be tokenized as an identifier (like a variable name).

But it is close enough that the authors decided against requiring a massive string to be passed in, which does amuse me. 🙃

view more: next ›

Ephera

joined 5 years ago